From ee710dece3adb584d711a68e0f077da910fdae71 Mon Sep 17 00:00:00 2001 From: salman01zp Date: Fri, 1 Mar 2024 13:48:20 +0530 Subject: [PATCH 1/4] tangle subxt --- Cargo.lock | 373 + Cargo.toml | 1 + tangle-subxt/Cargo.toml | 42 + tangle-subxt/README.md | 34 + tangle-subxt/build.rs | 57 + tangle-subxt/metadata/tangle-runtime.scale | Bin 0 -> 207245 bytes tangle-subxt/src/lib.rs | 11 + tangle-subxt/src/tangle_runtime.rs | 41048 +++++++++++++++++++ 8 files changed, 41566 insertions(+) create mode 100644 tangle-subxt/Cargo.toml create mode 100644 tangle-subxt/README.md create mode 100644 tangle-subxt/build.rs create mode 100644 tangle-subxt/metadata/tangle-runtime.scale create mode 100644 tangle-subxt/src/lib.rs create mode 100644 tangle-subxt/src/tangle_runtime.rs diff --git a/Cargo.lock b/Cargo.lock index 8b1decab5..ebada939b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12920,6 +12920,15 @@ dependencies = [ "secp256k1-sys 0.6.1", ] +[[package]] +name = "secp256k1" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25996b82292a7a57ed3508f052cfff8640d38d32018784acd714758b43da9c8f" +dependencies = [ + "secp256k1-sys 0.8.1", +] + [[package]] name = "secp256k1-sys" version = "0.4.2" @@ -12938,6 +12947,15 @@ dependencies = [ "cc", ] +[[package]] +name = "secp256k1-sys" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70a129b9e9efbfb223753b9163c4ab3b13cff7fd9c7f010fbac25ab4099fa07e" +dependencies = [ + "cc", +] + [[package]] name = "secrecy" version = "0.8.0" @@ -13651,6 +13669,20 @@ dependencies = [ "sp-std 8.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0)", ] +[[package]] +name = "sp-application-crypto" +version = "25.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fa730e4f3a2aec3f4ee777410599a86eb17067ee5410c58ab496e88d7bb840c" +dependencies = [ + "parity-scale-codec 3.6.9", + "scale-info", + "serde", + "sp-core 23.0.0", + "sp-io 25.0.0", + "sp-std 10.0.0", +] + [[package]] name = "sp-arithmetic" version = "16.0.0" @@ -13680,6 +13712,21 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "sp-arithmetic" +version = "18.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d3d3ff6d6d717d7563659e9e47e958d33ebd2d0b3d8b1a9961cf9832944375e" +dependencies = [ + "integer-sqrt", + "num-traits", + "parity-scale-codec 3.6.9", + "scale-info", + "serde", + "sp-std 10.0.0", + "static_assertions", +] + [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" @@ -13895,6 +13942,53 @@ dependencies = [ "zeroize", ] +[[package]] +name = "sp-core" +version = "23.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "412e2ec53b1bc63778e2d70c347224e6cd2e25c4bacb509585db85f0788747b7" +dependencies = [ + "array-bytes 6.2.2", + "arrayvec 0.7.4", + "bitflags 1.3.2", + "blake2", + "bounded-collections", + "bs58 0.5.0", + "dyn-clonable", + "ed25519-zebra", + "futures 0.3.30", + "hash-db 0.16.0", + "hash256-std-hasher", + "impl-serde", + "lazy_static", + "libsecp256k1", + "log", + "merlin 2.0.1", + "parity-scale-codec 3.6.9", + "parking_lot 0.12.1", + "paste", + "primitive-types 0.12.2", + "rand 0.8.5", + "regex", + "scale-info", + "schnorrkel 0.9.1", + "secp256k1 0.24.3", + "secrecy", + "serde", + "sp-core-hashing 11.0.0", + "sp-debug-derive 10.0.0", + "sp-externalities 0.21.0", + "sp-runtime-interface 19.0.0", + "sp-std 10.0.0", + "sp-storage 15.0.0", + "ss58-registry", + "substrate-bip39", + "thiserror", + "tiny-bip39", + "tracing", + "zeroize", +] + [[package]] name = "sp-core-hashing" version = "9.0.0" @@ -13923,6 +14017,20 @@ dependencies = [ "twox-hash", ] +[[package]] +name = "sp-core-hashing" +version = "11.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "558116d02341b6f28b033c19a2a5fa555afa3c52628639170087e7685d51e743" +dependencies = [ + "blake2b_simd", + "byteorder", + "digest 0.10.7", + "sha2 0.10.8", + "sha3 0.10.8", + "twox-hash", +] + [[package]] name = "sp-core-hashing-proc-macro" version = "9.0.0" @@ -13963,6 +14071,17 @@ dependencies = [ "syn 2.0.51", ] +[[package]] +name = "sp-debug-derive" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4b235a0ad7124d58e6f0a728c8354da5b185b77bcf18b131b3a480cdaa23d95" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.51", +] + [[package]] name = "sp-externalities" version = "0.19.0" @@ -13986,6 +14105,18 @@ dependencies = [ "sp-storage 13.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0)", ] +[[package]] +name = "sp-externalities" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "588cf40c36de918f545d712ad1a70631ae71653e4a321506dfcd8fa6fd26453c" +dependencies = [ + "environmental", + "parity-scale-codec 3.6.9", + "sp-std 10.0.0", + "sp-storage 15.0.0", +] + [[package]] name = "sp-genesis-builder" version = "0.1.0" @@ -14062,6 +14193,31 @@ dependencies = [ "tracing-core", ] +[[package]] +name = "sp-io" +version = "25.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9926dba7d67d87e40f49e18ff6cfc01373d5be13e3d373f02182bb5ec8ab37b" +dependencies = [ + "bytes", + "ed25519-dalek 2.1.1", + "libsecp256k1", + "log", + "parity-scale-codec 3.6.9", + "rustversion", + "secp256k1 0.24.3", + "sp-core 23.0.0", + "sp-externalities 0.21.0", + "sp-keystore 0.29.0", + "sp-runtime-interface 19.0.0", + "sp-state-machine 0.30.0", + "sp-std 10.0.0", + "sp-tracing 12.0.0", + "sp-trie 24.0.0", + "tracing", + "tracing-core", +] + [[package]] name = "sp-keyring" version = "24.0.0" @@ -14085,6 +14241,18 @@ dependencies = [ "strum 0.24.1", ] +[[package]] +name = "sp-keyring" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dfcca2fad349d5fd197a56b4deef229b872c9172a8267d77c81a9f45a38f18a" +dependencies = [ + "lazy_static", + "sp-core 23.0.0", + "sp-runtime 26.0.0", + "strum 0.24.1", +] + [[package]] name = "sp-keystore" version = "0.27.0" @@ -14111,6 +14279,19 @@ dependencies = [ "thiserror", ] +[[package]] +name = "sp-keystore" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44f0f9546dd151881c60e75355806f1cbbc893f64aa465fc5bf87a47de59467b" +dependencies = [ + "parity-scale-codec 3.6.9", + "parking_lot 0.12.1", + "sp-core 23.0.0", + "sp-externalities 0.21.0", + "thiserror", +] + [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" @@ -14194,6 +14375,17 @@ dependencies = [ "regex", ] +[[package]] +name = "sp-panic-handler" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "261572cc0db4b41cf7587b4f7bdc15b8f83f748f17ae1c3c2f56a3e8e62ee913" +dependencies = [ + "backtrace", + "lazy_static", + "regex", +] + [[package]] name = "sp-rpc" version = "6.0.0" @@ -14249,6 +14441,29 @@ dependencies = [ "sp-weights 20.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0)", ] +[[package]] +name = "sp-runtime" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f645e9e2c82d052ea48ed987a8789daca1c03f9b5ed1aa49cd080092eda85330" +dependencies = [ + "either", + "hash256-std-hasher", + "impl-trait-for-tuples", + "log", + "parity-scale-codec 3.6.9", + "paste", + "rand 0.8.5", + "scale-info", + "serde", + "sp-application-crypto 25.0.0", + "sp-arithmetic 18.0.0", + "sp-core 23.0.0", + "sp-io 25.0.0", + "sp-std 10.0.0", + "sp-weights 22.0.0", +] + [[package]] name = "sp-runtime-interface" version = "17.0.0" @@ -14286,6 +14501,25 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "sp-runtime-interface" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ef767d6e400ee54a420bcbc570030741420c2d938a6e379d21cab9875a339c5" +dependencies = [ + "bytes", + "impl-trait-for-tuples", + "parity-scale-codec 3.6.9", + "primitive-types 0.12.2", + "sp-externalities 0.21.0", + "sp-runtime-interface-proc-macro 13.0.0", + "sp-std 10.0.0", + "sp-storage 15.0.0", + "sp-tracing 12.0.0", + "sp-wasm-interface 16.0.0", + "static_assertions", +] + [[package]] name = "sp-runtime-interface-proc-macro" version = "11.0.0" @@ -14311,6 +14545,19 @@ dependencies = [ "syn 2.0.51", ] +[[package]] +name = "sp-runtime-interface-proc-macro" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdd795a4a2205b64d95da897f85b7c83a0044f30df22b0ea282f8387dc6ca428" +dependencies = [ + "Inflector", + "proc-macro-crate 1.1.3", + "proc-macro2", + "quote", + "syn 2.0.51", +] + [[package]] name = "sp-session" version = "4.0.0-dev" @@ -14382,6 +14629,28 @@ dependencies = [ "trie-db", ] +[[package]] +name = "sp-state-machine" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "771dce7d78335718ab8475984b6dbc1f374777049ed1c308186679e611333be2" +dependencies = [ + "hash-db 0.16.0", + "log", + "parity-scale-codec 3.6.9", + "parking_lot 0.12.1", + "rand 0.8.5", + "smallvec", + "sp-core 23.0.0", + "sp-externalities 0.21.0", + "sp-panic-handler 10.0.0", + "sp-std 10.0.0", + "sp-trie 24.0.0", + "thiserror", + "tracing", + "trie-db", +] + [[package]] name = "sp-statement-store" version = "4.0.0-dev" @@ -14417,6 +14686,12 @@ name = "sp-std" version = "8.0.0" source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" +[[package]] +name = "sp-std" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed09ef1760e8be9b64b7f739f1cf9a94528130be475d8e4f2d1be1e690c9f9c" + [[package]] name = "sp-storage" version = "13.0.0" @@ -14444,6 +14719,20 @@ dependencies = [ "sp-std 8.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0)", ] +[[package]] +name = "sp-storage" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c20f503280c004d94033a32cb84274ede30ef0b4b634770b1e7d595f8245bda4" +dependencies = [ + "impl-serde", + "parity-scale-codec 3.6.9", + "ref-cast", + "serde", + "sp-debug-derive 10.0.0", + "sp-std 10.0.0", +] + [[package]] name = "sp-timestamp" version = "4.0.0-dev" @@ -14482,6 +14771,19 @@ dependencies = [ "tracing-subscriber 0.2.25", ] +[[package]] +name = "sp-tracing" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebabec43485ebdb2fdb5c6f9b388590d4797a3888024d74724ada2f16b2113b8" +dependencies = [ + "parity-scale-codec 3.6.9", + "sp-std 10.0.0", + "tracing", + "tracing-core", + "tracing-subscriber 0.2.25", +] + [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" @@ -14553,6 +14855,30 @@ dependencies = [ "trie-root", ] +[[package]] +name = "sp-trie" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e78585a84d02d1c71e8eb8c00ed586c22a46ad4e773d9ff65c8ed3b8e98b9f51" +dependencies = [ + "ahash 0.8.10", + "hash-db 0.16.0", + "hashbrown 0.13.2", + "lazy_static", + "memory-db", + "nohash-hasher", + "parity-scale-codec 3.6.9", + "parking_lot 0.12.1", + "scale-info", + "schnellru", + "sp-core 23.0.0", + "sp-std 10.0.0", + "thiserror", + "tracing", + "trie-db", + "trie-root", +] + [[package]] name = "sp-version" version = "22.0.0" @@ -14608,6 +14934,20 @@ dependencies = [ "wasmtime", ] +[[package]] +name = "sp-wasm-interface" +version = "16.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee009ac79098027f5990984e0c5ee2fd4883b16bbd6ab97931f28c2148aaa3ea" +dependencies = [ + "anyhow", + "impl-trait-for-tuples", + "log", + "parity-scale-codec 3.6.9", + "sp-std 10.0.0", + "wasmtime", +] + [[package]] name = "sp-weights" version = "20.0.0" @@ -14639,6 +14979,22 @@ dependencies = [ "sp-std 8.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0)", ] +[[package]] +name = "sp-weights" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86566cae93412e40bea0db9e6b110a7379105412a9aed1af73b5d2fb69cb7000" +dependencies = [ + "parity-scale-codec 3.6.9", + "scale-info", + "serde", + "smallvec", + "sp-arithmetic 18.0.0", + "sp-core 23.0.0", + "sp-debug-derive 10.0.0", + "sp-std 10.0.0", +] + [[package]] name = "spin" version = "0.5.2" @@ -15348,6 +15704,7 @@ dependencies = [ "pbkdf2 0.12.2", "regex", "schnorrkel 0.10.2", + "secp256k1 0.27.0", "secrecy", "sha2 0.10.8", "sp-core-hashing 9.0.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -15745,6 +16102,22 @@ dependencies = [ "tangle-primitives 0.6.1", ] +[[package]] +name = "tangle-subxt" +version = "0.6.1" +dependencies = [ + "parity-scale-codec 3.6.9", + "prettyplease 0.2.16", + "scale-info", + "serde_json", + "sp-keyring 26.0.0", + "subxt 0.31.0", + "subxt-codegen 0.31.0", + "subxt-metadata 0.31.0", + "subxt-signer", + "syn 2.0.51", +] + [[package]] name = "tangle-testnet-runtime" version = "0.6.1" diff --git a/Cargo.toml b/Cargo.toml index c0020667f..2087bb450 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,6 +34,7 @@ members = [ "precompiles/proxy", "precompiles/preimage", "precompiles/jobs", + "tangle-subxt" # "relayer-gadget", # "relayer-gadget/cli", ] diff --git a/tangle-subxt/Cargo.toml b/tangle-subxt/Cargo.toml new file mode 100644 index 000000000..3aba41be0 --- /dev/null +++ b/tangle-subxt/Cargo.toml @@ -0,0 +1,42 @@ +[package] +name = "tangle-subxt" +version ={ workspace = true } +authors = { workspace = true } +edition = { workspace = true } +homepage = { workspace = true } +license = { workspace = true } +repository = { workspace = true } + +[dependencies] +parity-scale-codec = { workspace = true, optional = true } +scale-info = { workspace = true, optional = true } +subxt = { version = "0.31.0", optional = true } +subxt-metadata = { version = "0.31.0", optional = true } +subxt-codegen = { version = "0.31.0", optional = true } +serde_json = "1" +syn = { version = "2", features = ["full", "parsing"], optional = true } + + +[dev-dependencies] +sp-keyring = "26.0.0" +subxt-signer = { version = "0.31.0", features = ["subxt"] } + +[build-dependencies] +prettyplease = "0.2" +parity-scale-codec = { workspace = true, optional = true } +syn = { version = "2", features = ["full", "parsing"], optional = true } +serde_json = "1" +subxt = { version = "0.31.0", optional = true } +subxt-metadata = { version = "0.31.0", optional = true } +subxt-codegen = { version = "0.31.0", optional = true } + +[features] +default = [ + "subxt", + "subxt-codegen", + "subxt-metadata", + "parity-scale-codec", + "scale-info", + "syn" +] + diff --git a/tangle-subxt/README.md b/tangle-subxt/README.md new file mode 100644 index 000000000..c96471843 --- /dev/null +++ b/tangle-subxt/README.md @@ -0,0 +1,34 @@ +

Tangle-Subxt

+ +

+ Rust interface to interact with tangle node via RPC +
+

+ +
+ +### Downloading metadata from a Substrate node + +Use the [`subxt-cli`](https://lib.rs/crates/subxt-cli) tool to download the metadata for your target runtime from a node. + +1. Install: +```bash +cargo install subxt-cli +``` + +2. To Save the metadata of `tangle`: +Run the release build of the `tangle` node, then on another terminal run: + +```bash +subxt metadata -f bytes > ./metadata/tangle-runtime.scale +``` + +3. Generating the rust code from the metadata: + +```bash +cargo build +``` + +> Tip: See the [build.rs](./build.rs) file to see how everything is being generated. + + diff --git a/tangle-subxt/build.rs b/tangle-subxt/build.rs new file mode 100644 index 000000000..093e17751 --- /dev/null +++ b/tangle-subxt/build.rs @@ -0,0 +1,57 @@ +use std::error::Error; +use subxt_codegen::TypeSubstitutes; + +mod substrate { + use super::*; + use parity_scale_codec::Decode; + use subxt_codegen::CratePath; + + fn parse_and_generate_runtime(path: &str, out: &str) -> Result<(), Box> { + println!("cargo:rerun-if-changed=./{}", path); + let bytes = std::fs::read(path)?; + + let metadata = ::decode(&mut &bytes[..])?; + let crate_path = CratePath::default(); + // Module under which the API is generated. + let item_mod = syn::parse_quote!( + pub mod api {} + ); + // Default type substitutes. + let substs = TypeSubstitutes::with_default_substitutes(&crate_path); + // Generate the Runtime API. + let generator = subxt_codegen::RuntimeGenerator::new(metadata); + let mut generated_type_derives = + subxt_codegen::DerivesRegistry::with_default_derives(&crate_path); + + generated_type_derives.extend_for_all( + [syn::parse_quote!(Eq), syn::parse_quote!(PartialEq), syn::parse_quote!(Clone)] + .into_iter(), + [], + ); + + // Include metadata documentation in the Runtime API. + let generate_docs = true; + let runtime_api = generator.generate_runtime( + item_mod, + generated_type_derives, + substs, + crate_path, + generate_docs, + )?; + let syntax_tree = syn::parse_file(&runtime_api.to_string()).unwrap(); + let formatted = prettyplease::unparse(&syntax_tree); + std::fs::write(out, formatted)?; + Ok(()) + } + + pub fn generate_tangle_runtime() -> Result<(), Box> { + parse_and_generate_runtime("metadata/tangle-runtime.scale", "src/tangle_runtime.rs") + } +} + +fn main() -> Result<(), Box> { + { + substrate::generate_tangle_runtime()?; + } + Ok(()) +} diff --git a/tangle-subxt/metadata/tangle-runtime.scale b/tangle-subxt/metadata/tangle-runtime.scale new file mode 100644 index 0000000000000000000000000000000000000000..2f6d0dec625b364f6b2a0513e86349988905efca GIT binary patch literal 207245 zcmdRX4~S$}mG`|>uX<`?O;XW{TiLDbR(3nz)_l|yJ(HSzo!L(4p6Q-+o1U4@bWfb< zgzD<5*WKk*S5@j&%}h%I1`HT5prD`-LBYTZ3JL}k3@8{-SV2Ky11l&fte~K;Kkt3R}ht>Nxq)UVF9 zTK#cvwA6m|j1ZQvWckD6>3=Fedggh06zQ@MB8&eQnY74dr#6Sp9lPP|IwO0>t=rq| zXA776y_PNW=H+~I)RYBLkcA$7$V*i~$jMf}=Ztskp_7;8tM=vvLXX#jVgFXA9e!PP z#+#d+R>$s*g5~pVASg&bIwA6CW=0fpGlOQgYmXWm&2AIOox*5$U_1V@R_VO@CW|63 z^P5B4E=u!G$nwy3?BOlD?SEO^9QHqI_x!I4o89J?Q<9a1JELLqB0UIEL@SPoQbH>N zMJ-X3`SIy9(?XPUbv?M_!Jt1JmD?R>&>Xe4XIJduy#9Tm+jJbuT9cC^CyTxQaHrXw zl-8P%)&9U9Hbg?DRnHxV=7qWs$>2Efi&PUBFQ4wOIDyrz>gqX_C42GSZ&Zu+CZtxK27tfr1EJ8ha(47s^a~67Aou0ka7NRaogl0Vbq?izsZh-?7w?ux` zZgvk)67+awv~3S9KQH)FN@{S%3HXF z@>gvvAqyC`Na=s>IkvhGGAzjH{ zA2oYhUCbUPp@$Wtr)SEvj;ag!$>J)ncuTCwfu9AOJI5`V(ZvB0<1%jdEpbP7^&)ie z94VI)WxW6$OMF7U7+SEA@|IX!8#a4RvqdDn(%hv1v&5(5KkJ%Ue&%aqpgu={WJKvH z6l)KfmiUZZ(>1r$D_t5xURvt4JK!3Y_-A=X7wV{25s=5lN%LVmVNq3@g4yZc1E4vmL-1R zHusi#6@vAo$cf1X#)GwBiGPt_*1&D^vN6~mHn%Xik*X)ewyC0@ep&8kuG(O^vej?_ktQ}8|u)cANMM3=$DZS?-TV4+nsLPt93%k&zPB_FO9^y z1tR?|XSw5mfbW+s$!y?dql>o@Y!8T;%l(~BkJOvXmUvvs>$-7$ z{ZdyD4~p5qLLNInFel{~b@|{r#@7g@zZT`Coh!XAc(^4Nyv}rX8hw5nsqr_c(FVWh zj6e?^uQL!g_+_L*NtCXQI$bWmA5A-)s@?^^0FFt}7k%ASGo4<)+el_I|N&9AWging%hil*XcQ(*6O$g;&v=qHatG_dVENZvQjsmbb?sj);GcMeV%}&>DXXUgD)*cSA zvCF!FyFkxkAH3393EKLh|6002$`JI&!u z8iyjJG@Jv%_+=jZ$M%#gp;e3cB{J6FO0V4Sooa12J3Yv*1faa#91I{@wrkdaXR*B5 zAC|Gc%1VOKyJ_uulC&L~Oi0;EQl6AXP?iO(8OOQd%@0fELIU=#Lo07x<{_crByb}M zi#xTtYOZ*hWqHU?)hnJLFQk~fWTbeJ5@J0Gph76Kx#w))71_&u)D`WlPvmxSYI2%Z zaw$qrU1;`t{n2v2e{(z_oadYEE5ieI$yiEUX`KUMv-V2PSeax{0H9`VPbm?Z&V`KG;F?l@@4V1V5eB{sp*Z0sKp1i{5Bt3WvC%;VjDJxU#t(w)-YNGt(HJyAjp~b5QH@X*XUdP^Y}uCC?3J6A_!#B^a>)=9B&Gxtfftq#AGeBX zC`cgta8(T4|xzre&B-+=V3eYuh%8ogz5M zxpVp;iROGOw7KZ*sf^*@E<0#YnQE7{TBuf@$J8(PozWinip?E51Oze3>=QDC3foT~ z`l9mf?Y`q;;5`!huTvid?Uy&kqw)qV;_?E|E@aPUcitZKozAFwN6{RZXc?PX6C2wY zatEZWa<}g|H5_PgzTLEkIZ{^jcOtuEb_9+e+_7bB+f&xEfu$r8yG?Ya2XWQLVC2w= z2r!@}9hrZ?StQVd$z28KDR1nSp)?xNj;>T_3GiYYXIZ}>x-m1vKrt|^iYr&t2vhgf zJdXOVp6+C=a;;}d9tLB^`u7ONu?s1H(|`xFVEiX*i@J|jZD{I-9TJ6DnfRB?k6di? z;hhhA4IG3=W9O5yh(j`dh>7ea8ELO?Tu9QG*Gi2~nXAZj>$z$aJ74#^aUgP*e=h>RJuwhB-fN4e4&m0Q5M!E_I8H#*q`cw)w`>a!P ztv|wo?4TGa`nYzdNBfzB4uZ$7D}r9HmU)w-eWOV~+ZYc_F@{4k=5}ooN28*4ZAd ziR>aaZpdNohD;LKr*cNK1PEcpc|bU0HHhVx)1h!$X?EJVSfZB|sOZPdE}esma!NPm z$|l(xWNy?MgkOs6b8@ciYXz};khcp3Bn}bv_I9VWU0w$OrMqahLC-|##J<7Y=u`ym z*6NPwv_UYcH=r=ULa=)fZ98hwK(JZgf0RFyo7P7RZ5s#-2)Z#%3X}0@yN@#w>5OH) zsh@TmkbyoY>*nh&sd*upeiAjxZXs;HBWNmg>!7h9(Z5z)!I>539cg{;!gx5OeK?`U zfD6`2SlHOF+ahJXzE2JCFe)-dlMi7bkvG&U?Ln}&eS6-Umf0n zAEy)AzNcZ#!B4Df9>2Vtq;K3mAxm0-i!5y#v7J6?UOZ}7fYc_|EDxB7%;bQblK$b{ z;*-|D&KZcNy&mEbgJ$6pc5Z0ldu_0cTm6w;n}#yh9zp_E=&_zYgPj{XTz*+jf>k5a z)sSVgNiv=5p_zeKg9fh$XmYfT1-Om#{?}#wSzuf<&rqx0m?OKpX^$eQtueNi6;KjU z#OLqo*b{USfDV{sZsWz*CwIoIS|-PJlLWA5m+gsV4+fK*`xv9r?nH-$6|U5 zT80Rx0MuYl?b=&(luFv7G3HxPafMF1$E<(zNn13GZ3Bq*h|Z9wnifqHx=vVOT%v=1 z%q^O%|IS*!3c+{V49N?2F-YrU7b%gv>yc4|!F|-XlXlFynZ5>E4Gp()qL2kLNOr4o zo>g&|$2%ML@M3>R8|m@==<^oit5wfKqji&PiZnCvccGB7LC$Fy?RCqvVTBQc$cfrqA3al6?S{X-ErjbakO6Oi`ZdgZM?A4@>f z*mSFx;C)5@N~~QeKuK#4za#7B?G<{qX3S%mzt@btW6IcJ7eO4>w0WXQ+OFMe{nV{S zh7PagWq$Gv77Zf{Ly$dcF0u<scBdn3)qU2l4&ADjYDjI_)HF&ev@S=3Zr^Ie zH*p<9qSoGy9%eIw34K~7Su9*uTbK46?Y#9>(>iaBu;dE%O$Sdf7qXD43EWqh|9W&2 zo+d(XxVuGYuaLQw)iKuLrRGOS^4y(MOdhg*==~PVF%UbUeqZg7_0d!y_4_xYSb0Sn z?>JhIKJPf0En|~|T>zd&YUzGU=BW&}eSO08Im8K3ScNc4Iz;H}eII15*WC3#3-PUl zhA8L|E8zzvz7s8^ocV&Q2QoR7s%pEYqmEg&aMKD%Dxz}L-D>GuWUIyieK$9+Wh2ii zCmWJV}H*M3hL6|GM_D$(Y4SAT}Y~ugQSyE(|q$^lew%|0x^40c9 zk17=d14&k(D^MjgKRv0m;Z1CcS|%wg5HssO9P1}FlP@H9ExF~qFSNfe^BeF-!QAZH zaNZ1bL1ugX$g9kLy;9o%w$^Z`s%5Z`TTp^LAki^6f9{qmK+5}ugAKo3?)CM98Vq!O zp!}^+6r3^C_p)AEF}tQaKPl_G?j(>k-7j*{p>$}!Fzzr{Fauqy!U$!GMfYPDa@zWF z05as2gFwd$uv=pmoRX)eNGHKKgP3JK>orssi0{Z z+9RdLUEe4GdYSHnW&t~2lqXN+0u@#WE=1njwF47(=w_U9u-2d$M zefZuA@dNkNtbP3gEQ(Lf*=g+=sNFyIuyU2hJpx1i&Ow!p$UY<2NI}k4u(B%Tu^Hn* zQeGnqB0R}q(Znf;Z3kuOBiVLJa@!^uxXZ5Py#|FNpy~}oGbliybz?O3tnk6RuDv;O z+gGm8VjgWn(pGxGleJmh%L~TQCRv7;*6R@ZZhTm?LYQZjR0JO#*h$DQNB405S@@S6 z+(_BU93mb&r8=(fWOOP@CCD6Wkf342g@n*h^z8gt{+3*ED>G}vgMyB=@R-=_Y(437 z!KoUTS=OeVgtKj70W?Sw2Z(7$@pT_`7!7Gw%zV)3HnBo`{qfc|9k{TX*u#GQ}gzXUkmxG84RG|1C1ljVfW_OGgOICF-3;RwJ+Bv(uAeAEy z8Z;OWNvlvR&z0BpuvBh*_{Q@m!Bu>AC$yEl{OQXLIMgnc8>JN4VA82n7sv9;uUwAZYlWtX*wol8;{c;71 zmxe?QZbyf(9P`l7EZ}I^fiEPh^~m(|gHYdVIL_GAJDgjc*096=1*G{j<<@KU z1x;$O!owjfW&LUiMjg^yD87qnQO-}?a{wFel3f7v3ZW6L+Ht3~Hl;Z9(;ag1fEhv& zq>!IG7%7T$b`GSc*|K}I(55X-cu;r{KWKJu!x@TbVG~ZyWZtLk+s1|gVsSf%^U9QO zqR40gLWNQQt($b`>EI2ttk01RfP5*ac^GyDP1BEt*xId;JB(Thu6^&_;PWgwK?a)1 zKaPQNJHTAtkS&HmGrKlc45o>E_VkSPH%8>u*2Kvc3jsaQW8EKCut>4aPK^gO@vF;_ z#1%P{Gl?pr1Rhn&K{1$h!BxACpWbWp2wxbH_m4ev`&}hm4N_ClLHeMikks=D>nwWC z%~v23`i@c9u&LLe(3Y*ZaKuJRht_=$R6mC9`lsTjq`O8C&cEh972?pb9_dkLU7TL+ zcj4>X@2#@kFDFan#0kmj-{g#0g0$P<4Ln3~6a&9VbP1Z`qpQ}N8If3&zKNmHSk$;E z6C-=75ED>hs>WLrY8PHtxPpAr#?qk{7<<0~TPrVtdAKzo$P>$ z)KkqFZ@>c!OBHabIZ9JrW*>f9zD=^ZVEwx7U3cNGV{_+-m)jl3uBzHGJ=F{V;tx|i zaE#$)OX_`%1&nrM_mW(PhtEZ#j4RyBb+y&3)5!wkfL@J;WAbO+#vzE*A6gd>=#9}@ zVu|fEZ`zA+P=N~x5U}GDctma9%qu%WAl?b5-MwbL;7}0VFQm(oSLqq1n+N3@y29IH zK<&Lr4i*F#+Y(qG4~u_}+1-OTGKLJ5wC457Jy@i2%Me{$xZ1lHK@i{o*lb}N1CJpl z>yWLhiRc3e>?}fQ8iIVm9>HctA-a+~Gg--R<8aR%)^gDy)_#F^`>@oQhCw-`U1QbL zP@~dgPaCH0m>NabuUj|=}HeCk?;&goZ~7F2GmTj(yM`i zf~kBFV(|vl&hSZv_+&#@-)rrXtKcuP^Drj%Ap1289Xp}*gBZ3t8*^c3g6q>wsF27} zo_$EPj#$V^m@<>U&bwb5&I@BwZpOe6zdG0es5m++d%h>DGM__)OMJgA@$a%yA)W*w zy>}AB;Olx?h<~R&>HAgj+x)cNlc;x~Exr3hH=+5`!mz2#?2`!WG#czO-fG3sEK?)} zcv8R{)_ZsrlHrIPv$30pKZ)!$#ixc~nOxZu>9N%+_f+LLX3l6}wX_kqNKdJHs;G7+ z>p0(~GA>%r!D^>@hb{D4-ho)Fc!8h&6fh?6>krv=lEe#`V~Nx1;3q6tcNM!_2Ky8< zc!ku*NQz8bQNxAnuMw2tQg9-}c1`p+ELYqSz`pCD_vzjY7h&{fC)aJLGc$v~AR>H; zQ%t(hBK@ZGARjD$FH0--a0A*GqJ3h94NwH4r(Ie|vkwJ-GOShe0~dTX^Z_S=7K}NF z@6vJu@nY&>wG4TaW|4O%oSK>>eQNftnqAwz(rt4`K*6dnP;9k$7lB$!N8=fiozf9| zifpaygS0h}w94%z{yOC0(5_wB!r}IY15K0JUE2Ug6O3L(DH`VK7={f`Z)7-xPOtJ5 zIlOhkEh1xmTpf==($q^egAT)G4um?z^KA2h0R&$UPJI*kABQ(MWjpc{9QlD0Pz))n zPi{OfF3HPR))vmGletaNwIstJZVe|Q2wWs_u_UAQCE)pV(#6|b9n6Cp6Hcb=S{YkE ze(Y8smQcm9c1{n80mb{6Vl;Zaq4OjtVSXXQ(Xqg|(eT)iyOqLs*zq_PG1-kZq`(rK z{Gjo@JS>7Nk$7;+Zjt__U0x@7iu^en2IV?->^5;Bwt%a*L}#t-aqlKZ0BaAfM0!72 zZ@Z3|%14Y!zA(1OcCDz6$5}b)a+$~~jVGJq7UX-klE<2E@_E}(y1O`QYpZIOm~tUR zXrb>O>#M}$%x zytS@@vc~QTdw{vmg5L?bG@wCIIAuQkEDW2#y@Sxb|B@wogLx8p@@pdXAJ#d1M2Q@z zggU?-1CyDmZRvN&Y{5`&MZ~scYQ> z@P8tY#P7v_g(13qllcnRo9QV`dOQqJ7ed^eRKF?EBqgf+Fvm(Jh@3bPxtejk5e0-R z9MLG;QSV9n?N%cDxI}3XiaMJR(HJEg^Ixre0TKC}=ar;n>W~0-$LLY**Lfhy2)uzg zk5(F0C1-jZs43dR8E;WSjQy1z8R-Vqn7H;pM~#(o(zQ}rQ7^8LF;ZA{>aDSAKqX0D z*B}Q=&Tfp`AW_6q=~zEV)tZBnI=Wh3qVT6*eUQ{`P!O}kjtz_5wn_ci>El!iuB^8y zI731gNFfHwG*BzesZ(ff-$u$plZwXS_YR1`NSKuMBI!P~6@nYc0*z?{$Db+bY3od-F2#-M8`g+JHWIU$+Nh4kLj0XeS(`05vD&L zMtZ@OAxM*U6_IzCD+F8fPcKd?GFKV+n48(<{Rs++4uv<6K#xsDi~Cw$X9EC1g{%S; zP}RUS39RQ12$o31jRb-JBv}5K&TZkbnMjxfH~OPi=LQ+m>j5aimDeN4FrX9gZ%g)Lw@pt?r2ep_^%4&Ph?^)|#Xv2eYgW>79 z#KaOCP)9?xfS5jwd2QeG{Be&Nn7k9Q%%C*Q87nBRlpQ-gch{==poDZ`tq>nzP`e&G z(3P)hbsBbH=54U!`zw>xzZW|;*1yb!Ve($J=Neg5u+KyK-?8U-)Dl{qLi}F@KIoX1 z6=WRZK6HlA=Hpv-t*$_8&Xd%gy(lRSM?8ZPn3ypE74(cv;BpDjU_!Jvav$N?7e8>A zGIfqW964KXW%D%x(dmSQw6y*v=*fe%gPqb6#xR2beLpPMEmK!F%9w=e6V|}3Zr>Sn zh8)}qHo^PB{+rqfnKNm5T7fJo0cvLJcD^u2XP3lTQ}yErRFJ10e?FxtoTiR|`F5fB z8LB2j-IL=;a;J@;R6AajT1uKukTfl>{c^8XxHJ@0VeHwul=bCk>k`PQYzXLG41AiX zBRmRFTWinXeYxEI()9*&ljQ^m!^k{YD78@nVcQ8oDy*Qb$}(&VT5%7Btp8b9U%ter z$EJ5+;&UPy6akti4X16WWouIm!gaEUjRczP!RpVNeLogBtm|sb|M@#BDo9w-%6P&= zn}aeIXf@KlL-l~n-O!rGaC)G?i1AXIDP6#>h7AoTUA-GqzLB5|B} zpyn#PZfoNkMEU}Xm85MRyc~^Uk2N6my30o9??Rsl(;!7ga5QIh06cXOkJ+!#1dO+f zpAOleF=bk#+GfCvcbw^e?V4Otw$tVYGTPvLj@B5JC!0m#BgV2aG*aYQw?oMuVYF41 zppb~KbxH0!1ZW?%EZ7r;1QUcjOzZ)p8^@Z-cG4`?JdNF<*79MA+A2aM_tCJ?>3K2Q zE)hR0*U&k|4!xmp>BKwT`KKBbL7s{<2QEd_#B&n<(Z~e@LvX*meobpEkr#s$vsIdB z8povhE3@Msfn*wG`d4eKVu;~1g|j%LVSkr&M^O%%p`=PgXYP_B?;lkj`wBuhZJmDv z=4dJx;J?sI(yl_K9+dEN#&@nFaMYqP;xE)b79{ zYzVa#wF0mW_!V@fq^zet{v)}t8t9}P9?_0yHak5_?bBgh@;HQuWq z=c#al4(-vwS@(hSk(GMeu7zewpJ!s(j89=4mUQm5K2BZrPl`7g>Xcivu5&IUUYV@8 zQc`d2L77bwfPIWo=JH6l)`L;sO?V|mMYC*7J_XD?B>gFl9+r_DM-L;O9)I+YmHoXC zk0hgBi5qqcVS31!aG6!YvI-^o6w!=H_u!)#ISJ>827(ovyHzM%yjlWTJ>9dBo7FQa z=@;EZpcKtRrohF7_@Su>SwQP=$%D0yRA#Jlt&Bd-W z^y-w9ch>MPPWTXmoH)9a*-rbkl(Qxe7fN4-Y6nW_#0ZC!wdP^+;h(vH{l}Ml4I}fH zHX?1EWVS~pO4slXwK`=uZxct^X2lnoYd6VB7_H&GgYbF`2VPucU8_xlb3uRJX(_Yd z5wy>;p5XSWy^67tZxMpmVOVBChP*f+U7)oH!GQ3}f)HGJ+H7(pFHPkq0A|h>4J>&t zK=cYWHI+8;2-=#leos4yuc_X~331khspxjX0tamlDXCQhYSxry5S+2-6fe?hUYriB zYAdp+;je_EXFa_t1aeM?8(ma6q_)R2!9GV5JLP4l6fE88dfv2R)-kDYaMlN>Xhmt= z0n?3CbcJ-7dR4e&v}(%gMyevbT1Qvzt2cPu>#)h(8|W}>JSCmy7gGxlruGw3=AXvD zLY679yVLED>T>$Zpo!kC;l(OmAaNW!u<|JlidcwIoGKVJraVeWuJUB3b%IN~iuPvL z4k_!}qNeQ3Y~(*HD^&Ir6#1>Y>yGD$R;Qy z4LP;t8y_ZcIGyR9+;~1jKTm)t(s}F`StKpat!otv`{I%C)$hR<3&B4{*kO@0)0ap# zJI^kHs*po!Xd1pz=X_DAXh80#k zA@mO1sl09KYCD1gp!5mrz8dS$>~_0P_4|}v<;Qc%!3oUF(4D3%veLS=$st`Nw~<#) ztx6U+P(G)fmL(7{{dz{qE=BMxaVBXHAiMFdfv{}E=|71OjgxW@Y#?kbOoXVARuQ@Y z<>A16QQLx2sc2;TtIwBYepZvDJLDy2$f;SXSWON6+n0*vl9V(0t(UyzlJv5-M5|c- z>@Ck=L8Pupfj@G)e@@~rY}7|!BCJj0p`D#{EFj5_e5 z$m&+7Ddksr%%QNteu`W}2K`40-mm;8&T557qcpX6+ zSk~hBn~Egku5sR^{EU)*rK-qgvWII6kv?H)|S{ zs}q^jk#7`cddlI4jCqX$OzMNt|n`r-#npWQ7r0qe{Vp67lY5J;p0~$c8 zpfs6=-7(}*he!q~h?W1OSkwS&D=t<_JgK+xca0Y&em`CfP;)gjn3As4rd^azQOq|| zWkZnyr;LcIe*b=ENQoZorxLI@w!`bCH$H4_v*iAuC&+~8LQq4<#%j z#x%^3w4$dy8pkQ6Lan=nG;d_m`pZY{IJx0Qhb>`|n*oEkX7Zf6I{P2cZ287mXQ9%{ zu)xGD1C*s7+IY$qhO){ToQweyYvv?c%kBmQ;j)G@I zIPt6e|ByU>5Qo~J1drheWKxTg9HM~0O%)w=fqW1jxhD=}i*N1?j`9tYzJviewL0CS zOcm6`k&(F$$Ya z5uAnFZx9|6`GPRhZkIDIL82lZ#3FgfB3Gc2ZB0EdkCZ+_QgX0agIjq^HM_`jlH7(# zI?u3?Vl3r=PG$TMt5-Q}dqLH(+~__=+DburzEormglNdRUh_?gh{Atc^AjluNfr0* zn9)4c=FMa%?b(w2#0;>yL(#>O1P=RzWLBp_k`mrgFn)4oJ{iklFdC{5EstD#M zPt~T=@4X`Faz4IH08c_z;EV)Ub;`!&J8KINF`_FWW76e3{$nmn6aJf9T!qvAoa7}M zzwiZl)Diepzby4B>dX}GhIkoglXQXA3a=oQ5pMh8OBxj~4YWUB;(KUtN*1q5S*5P& z7pPs}t-%tn!5T*h6VvF7TCI=>Sn-MRiF9 zUVdP_GXTUX{dkpZ8EED_RP_i#giWKZzhG#q#7lAS$h>V2kSb+HIk#MZ_bT5+fh#bU z&8r@Z)_mIpZox3f=*k>iAcTwZt_EM2hN&bBi zT3lQ6!!|? z_Xwfb=Z2W}pp)tf67gASe=;ddwg(_UNj&#hXNoF#3PAwj!aP-q z9%OzBDo*4cQ`$P9SiIJQJ*f>==gMH1{8<`#Cb~IC6IPHEL2w)zZlU3ELjb~iL*^=) z>0lWIcmwaeh1_x<{^&Ve6ZsV>=>f~>MO;>;mM-i2D3=N%yphh2=huP0R5>_NY8Yix z@c0N>|4d0wN!wBtNXe}ZM!H_Du0a`jCju~KWgzLe5J~)KLWP7JBsfMYg^mVZ+3=!m5v~*PfIpHAu9*hMYX?W3>&@!ha>SvXG`RUy7cik~T5k>=`T%oS+?>O!8fSqOFdN;OzBu)INM zX!@JjfUfbyrUIV1eB+vrMN!Da0*v+)K!pqDu*0|yZ$Y0$W)TYAOo2+*Fx7k9z4B(v zexdMM;@iAmJXZgwavl4{w`sqCi2@g~z9sh#;$h_A3?_)@d!CDJ@D8}ZVDM72j3X)p z+#wX~1G?@lBE}XS1SPcWx22q7IS5C4GTPygrkoYSDjo>9q)R20r|~f*u@G7x^03DW zp;YGkZ?11A^`k&XMkmykth!O}htPH!R$D! zW(}D(G-*bmhqwA4d1eDt4ql}foq~LRsYmG)r^$NNZos|{18}GP6Abnmy@Bz*(}PA_ zR-p>VJ_^0oX8&hWeq1eaa1^N5@t&@xoALWSKrbpj0o4c8+vgFn&{t9Y%Ot?5OaGKJ z0fI30!;Elzf`U-F2x%-stq;%*wh%T{3x5vAuQ0OxS~U-Q$C_$PsNIL``7dD+KHtBi z4mJujl<;C%b!Kgdq*QjB(-t61W*V78=o$ALBkf3}_38Z=>`$PlxNUE2P+}QqxRGNA zGB6EyXmTdatw_0rTRZMjL?9dbOzKEv+%)SmCFWQ9-J8ueC2EG=kLK6?m=-fnkDcaD zGy2IAGgtd9{D1UQ1{Xl~ot-|eS=3Bm0=XOdh#GCWZ;pxFQtzhwh}4@u!>wK*P<5}f zCd}o~>=0F1o+=#cB`0w^7c9p}BZR~3J0!UilUteB{0i@& zjo{14jedJK_)h%N-*n}np($J}Ck#y$RzA3vg$AssOklsp4q_OUjBUj{=*L{(-~?ME z>)_fpGKq!XPhwN0McLo^jl?!dKX5Xl{A8ULPV&2dG#ei77-z2(Gdh#l%yIcAmb+J^ zOz-I80`C%15+{n*d-D4cqi0xbzl6SAlfa`738yKuWk%5RX~+VNnDXgrq&tU zQI6eymP8GT|Hks;{vS`tDP6({1VoI{*Ha)>x`T^b5cw>A?Vn3^0>wTG!7)mQe5m`4 zzq}q*RQMe(kPQ>A8ghKflAyyg;Z^tpm>AzEcz*fHl}qOOz(3HI4?c<0#~=NOv}9t5 zH)9&6q=!HG%k!|JS$~#tIovE7aeT;42S2c1gQ+J|vc#>Mh8!Ys$V*e6-mJ)^{BBa! zh(iUgj7Q^-2TEaqg)fYI2Ziu=B9+7JuH#Lib$z4!lIc(+99x_hf=tu0OB+a z0u9)ckTp3VP*+!14v|4h(`(0_rrf8^95%&j-9d zlT!{Hhiug`oEAfwdiFgj z-Ji9!TYrnvxqi&R&>hb@4-XZ>#^*Q)iGQr!|12 zbn`UYvogQgb1ppf)TNa(r@i+w?)~sI+A!-c50fyZ-kSbU3sZD)h}$h!NCLA0Zyuel zLo>GQmGRI_i0j_#t7I*QA9NosBv6pedtVmRg+E~YGya$L`ZQExvrpN*UUS%=fBLEO zUFXs1)6k5G2a^Y?sBY*^8vATrUF!YR5FQ|>AHxVusTY@;Lzv@ezjz2Uk-9%69;SaE zNeTSH9p(O16*r5!7sk@6je2I~rm(=(;RCz@(PAiuBUV)w@ScuVlS3?EmV*Pk2wi)F z9GzX~R7x%y5S%7L-F77?+L4@;0M8?Nb69Fqm8%@4vv}pzUABAjYzn82qKY;S+a7YG5pGcN0~M0ygJ<*c zl>8}LLOYz_b0~zfN=n%PMjV|_C-yDeWDu)3n^-#18!G;IV)2r0Zq7esVT=ibB#YBn zj%%x{oRshi?h_VIq~!O5@Ae-K(i`{zt=;ZhVksqG_W{B?11LIn&=UKLA~!x-@=QwJ z2*1@Jz~5$kpDse#WQl9or9&@GabkTpSDQ^=Kc7p<6EgVHv~SL2L*;4q(^}lT6BG4d zbJsiQdhneA9ql^Owm%Wa1bI==X0hh$6J|(53izVM%r;K->Lf!6oUlsfQu1?@*#Jfu zl4O#*h{Kb2$ArGqd=|$n*5*LjMDjQ8x}MjEDHjmcb9v%^yXzb>mr@iKS_7LFAhJuV zQ#J2y*{zD#T10TejIj#lEf!J|_a?RIz9akwTNj|Sn7uZ3^gI%@B5O=>jHv+_rrm%V zGQe;v%srVgT}sK1c`ch6PsfqOAx7fTp+_RCMxyQw#4~%2K;jyrn3DMZ9(*FN?TI>R zIf6GQV4lU^h?MzplW_1xJ(t)hSEle5thc1z4Fmm4me~PURnggnLUQN%l)R&O$|^t8 znh)(jKC(*|TE+AGjgFS16q?wT0)Kxkc3GmCk}v9q#D-yeXzqu#9sm-HR^YCnR%h56 z!!s!*yNlSPhx0I1#|=dVIx6VBk&fFj>ZTcb1qKcJ_lT?EOY)((Q2U=-^~?wRzhT2WpcL`K6VMs|PGCMSgK@ZRLQa z!IL}t^<^z~dyMT@GP5XYkJz2acB_4U;|RlJBYUiookO-?zH?*@oWU8K>m0e0!cthS6rnZ-$6l zJQ6^a7n+Dx;3mD4lE3gZ>6y8eReFE07K!npH(fiWcHLc{{IN^&hn*5H9U9up8rmy9 zXfN+K+hxx1~>6DD4=Gd-0ZSP)1BnThGtK`H%O1Xf5HaY4?-;o}d zwK_hZE=f15LZJ4rLVZAx_qQ#-7U-?IaIT~~SPS?IV zfX{}Tl025kXcIS&7^83n zm`mgog)BB8VbFEuZ=~chIhwW3og)WrM0?C2?>`;0xKs}TK%bYgjqLfj)rEkaJEx(p zQhVV6^#)onkr!Wq*~H&HJ@a|;%VL*~GITvV&=9icH2v@`7-8L@D~LY4zQTr=bLUji z_2+BT@OmTj{Q%L8$W96;Z~oUvRY>d@s241a`V_eYaSUE{GEe{bkfyA5v@(@JwHu~d zgG_wTti%7oZrud_Fcf&b#zP6!1W;UZGeXW3UP6?`4)V71HEr+!_j#7s(38Tl22p^z z7Jy9MgiDVHB@g+~c{3%;bY2CJCy{!56s+&BK&{|s$~xS+1GS&}QI|PX#>JXAgAznz ztq-@wR~Mk>)iiNW8*sm(gra(uedBx#IYa}K6sZMJ)(Lq5K64P6;jIOZJnTT9P=@I3 zI?!``IJwaBDuJ1UZ5;@&RSbuCZS8Bc8orSd_=66%UKelDi@NxBm^j&x>`cKJ+Pe8c z_8o?|7A|{bJ^-U=>*k~^st;HSJCH3RFUcqjFCxczDoHJw!Zh%t!Hdzz#bZF~d%> z750bm{ZRT;=w7!*6t5t2XvdFWIth=UVq)S)ha2-esdLqk=OZJo-gpDf&*CSkYz55m zwxXdK%^T-8H0^-h=Hbo>m3|H`0|?l>joWi={Um;-Dr;6ett&sPII|GtAQP?!8LynA z3w9ftLx(@k>o{hdAT@Zsq=W3=eaWywCG*We$9V@v_c{Cv{vzbE&*LKuw+_o3ZV=Wm zw3F~VDc4E(=Ws(5_>bWKq<)za_`@odsl50#eq}82oA9KorLBF-X$cf(w6pap_OQ#? zoUozYFUgQd<3Q0;CLUkeFWY^1f0C7yQ=Gw8I=XGEO9;w3O%Gi>Nc-A~3DF~oP`^Vy zcA(MoaT#gYowfc_k6dUST)2dL=m>ETq3*s3`^R?1*UrKD7JDpLJai*Q%2#%+Pa*;~ z=n$Eta=%pt$itTwEsC%aSa$;VO7c$chRv~M$n;PgmkZe8z-LM4iVeNIegW4>nQ2_7 zs9&@kDM08`5cRro8D56x_`JQ@ge{1Kh`s|FhvELev_n3FCdXWT|AU)flI%vke(zLU z)rIG>u3V-diP{Xnl1=ogy{T>=ws5Z-hFs@z;Hn?Rcd#3sK_3t>o0PwTHX~{>y5^!| z&un$!8!m!Giq6^;NhcROU3d`MbZN(rX+rg#X7EZ7@91P3={umlBFyyBH$j0XiQ zi>iumhr$($0g)mW1#p*0YFbiKU37oSIF-2Ytpg1o9E79F9X+a zYGo2ab^zP%AXYEf>_ebHO6#&Y2Z)4^9%G2NKulU)+%}qwrMA8a+rwa5NXM z2DquEoaTViki9e*|8+Q{qVe#R`EoJ9b@(H+y{3#{hyqmZUCLeyB zF3&eNVE2^iyW4NV;=_APK$(v%b^yoUN7C{eceC3Xkq>)Tlqk^#u2`|eb9WiLM&!ee zK&^RXyKG@+-nGQ@>AOqqE-GIO?hz&0L0cWf+l}vX|1}~X_VEjWiIOK2@c85SPWm^9EZZ3yp+`cy6D-c!5_X1kt z1?%pvPmRcj{XSq<_uL>n?`~sPhcLkMgfs;@5Y1JPalu{=Wf!&i96B zPw~gQjbCH(;V+5OHH0`)u&MZL=I-ti8j%nCLx@t>**?H0Gk2Fy8%#d@e=Euhq$)w4 z25_gljNf4L;r~0KLP>v~kzcx-3t-{dOFpb+WF_8(b`3dT$zSq!8Tr=TMDF48wc+n6 zWgkaBq##_<%wf=m(G-{mJj#;7SNCQ@+Kf?80UAt zn$q04G`Rw$ch7+ixB-Pz|2EQ;H%Hr0FhX-RO4iu9$uld^xN21il$f6hY69axLsfU3 z6pI^5lLLIvI8!=bed$v&PSU+MD8JtGNQdJ?E2nTRHO0oU*)06gdOg^tc-&~!^d?=$ z+AwW~HA`hkNN&)(86&#WGN648VnsWYorosnCNkk*RuClh?&c$HeJY5{^vwqu2&dfF zpn!cbRlHVxpY9CocVTr8Sy8(FS~>+SVDTi zFi>e1IAfy)hZq?s562zlGwbt-NQp@uTmR@83wG=>$2C8C=6S@=nJ;IiLJ2$wW7-WV z+kk@A&kfnhCbz8enm6F`*||lx+``8vD;NEb6pGv5%%tU~$fC30D+ujWe{)7<4Y&xs zJ@QDy);|OLNdp;?v6{K&18F%6)&+l&EA)~pfp3P^X-qpXhv1Wx$SKe~n1)m^^#6-? zO6!}!C9_w9(BMV7;+)JMFnCc86eRzGkBfSKFf9?AdcSIP;Nd%@)D(l`eztg7UpSIqq+nh+ zGn(8Nun6NCgDHA_?i{k4!LuGlf0YTMB6U6CPe&0cJ>xpAsGJOu0>yTR?zx_p#d-dL zkpFaUJ}`!~wsOc>wO_XK`(p=RrTKujgYoltAk9u9I@SA(x&X`B?hN$WLG-%*hIlHi z2xVr1p2FYBZuH=lMqXZ1v(aN?;~ zTG?k$XQkD8C@m`$xUE#n_|HkqI!jlSwT4LS;WXHsa&MrtCdj&kSXg9Hv$EBycsQMn zj%cWOZfXSq)VPmJRTpBUpXYjQ1O@NEUhoSuQ-jVbW#)r;ygTu2^CyBDx;DPz-L zz#vbiGg|h~Y%$A@qy@dg`#ObtrT2!8h&H8A!q1zYe zaE^AXFIvyavuSHpK2F=#)DXO_?GlIbtaI~#e^G5^1>UL;6f~NPVxw zr5Nm!E+rj)P@mzBU80U%OJ_^G7>9QL**;|x5U}REEWe{H{1KL4D6~jd=G`0a&qhZA zJ!a&3P+sE-U?RT5)1LlAZl>V~Xt~Gv30FZwqncb7w}u6qMdi_|$SMEbwyj72KWdvZ zaC+Z!y{@oFo2{@Xzd~_j4Eg!A>rdAkufVIZ*V;w=JalDU%ZDo; zMU@U~55n~s<{daeVpFE0AC0K5-?1ZVMSz9?04Ta11lrhXegs~Zl)}^<)mZ2m>z{-3 zk_ZWC)*~OapXq*BCaf>-gGB=ZlFBCHY)IkOx|x%8LlSzU&>0Bpm>~F~Qp6PQ(u0fBJd|hvLWL2QX1Z!6v>|KV3Bm}}0+@M4GEhMpdh}CI9Hkx)>ue$r02aQ( zU3&|f(VWCJ_sMEVT*cYD)#3aM9h^EYxK9X4(OTAU#;|+BoYkPBS)rs43Nh|j4Go|7 z4JEJhy(5i*id!}F=ZIWb=NexQ5Q^g-9Rr{hP$EHMCr^YqgQ^G+RYb&4NEt0;A8!rw zhI_-&IKFCtLeV$`h3~3jSnf4FiEZ*WpD?of!qXdp4wRD{T@XH!nB z?VDzLJ85}CN0Wq5J}L6nc92S4@W3^r>C4O!(jC)JmzDZ>@cm&uYp5!qO_7McgDgtq zX^x`_>$komaXGbm#i}hFzg6o=E%5@hJ-Xo#XZS)!It4x{-WxuN_(22J(daFk>3lGJ zs0gOh899hXRE=>;dV8bjA^2<+T z1@rfk{h(T)soswN?wb&C-`9B21Qw@q9unUjshanpL3PtdErXSCV51mcPcV*`xR&Ab zu8V5<2p3vJ7-324ix6KD(vinhN0V_}fuNO7hLhazHPvy5Ybs(w&6F>0B6bERqQ@UJ z04+Hh&b8|u(U2;UB%z4FUdYoIoWsK7jJIe(8P(dcaA|&-=vkIAtIt^^mREVHyN90%sb%U46w-%x8!i=U5&j>t)gz62a-^FDb{oZTf zxnzYw(ka{B9V+@C1h;q!N>o3OI~+N4p)24fwPU9gkW93 zJ`>{0p*CQ+yDTwvdYv827%XY#zJ?ZpV=XzWjs-m&yTSeNs%gnJeK;`T7OV6g?XkWd zoZmeF1Mi4Fdx{vt9mq8Zo(j-hI4XGnX=1MHYmpqk*0D_rqHje}Cc*^LqUyf|&H7(5 z^y%;cSAhkBxUgbXp?K6Eay7f&4<&0|bNjY~9e@L3}!$ z6wEn&8TvRw;FOwpRu*}KIQ?0u%=PaxU-EuG`lk20{yp#a*&lhoAA869{eOP#{ht1V z_xtfb)9;ePHFezb9!@{tdpPs3@8Qu?zK8nbzK635zK6%2!Goaor#_z+_=7e1jno&? z0)JuxSpuj#sW;LBf5OVWk@`v+U%tZSzL5S}THsGid?PKskCrZ}6Q_t|5!YzI;KEO582U*=llpdA;E&>9c3S{uW7bO4!O;+lJCGf`u z?xzCxQ-R|O0!?7*K}+C|3p_*x9-;zBqfKp~NliV17*1W_Bo#PG1>U0y&_t(B!zQT< zoTUP1sX$H@pvg}?0UMYuFh>REsK5zTfCwVB1e>ESaES_Bq5`;@j@m#(lDdXeyt=@1 zRNy%(aGxshymhd3nz%pURG>JLk!oZ~Dfb-nLNqPE2H_VG-M}wcH(*m!JC?v7NLlPy z_+!tA9u}`FX*jr9kuSIl-e?206sK4z;^ru5%%Re3>m!F=-b3fd^5f(VQZfE%?JBNs z3lzoe0SM^JPwU+oa_LPh0=*AMw&QJhL-xp2A1_T(_N86h9$WH7mDd|iPmpri%Ph1B zMb2^r7@W95|8jB}?3vTV+2MVMtX6#(86whar^x=;XenjWCUA0az4!qr4JY)cG&M~!8Aqeq~RR7&Kpq|!8)HFi9_x5v}~ zpmk&^;LIvfXcdpP4A6VR#+{_vfV}3kn#jK&X=HH|Iad0^moQh@OInBrftBHN!MTmC z3Yc|unC`)5GsGpHx$xm4@Yz=$xzUTI=x%tF2v#{k}$x7xE^?3 zh}AXT8z%Ay9Ir8u)#(lwunGJda~ntUQo1j``5GWFtOWW4&+*&MT?dAN&><=Q4_~$%416N^DgG85LTjj&;UDs zvqJ_ia!lWwNj(r&=ut%g;I&WVMywWG17|nfMze^>Tev!M{4F>Fb^H~aa@5)G${=J0 zSH-;{->>*G?KK{B<~OfmZMfi7-a{_tK}{+)!z>mOB@SlWP{Y4w(WSD~5j0dY1swjS zsY~n##d+O79V)c}e*C0(e;l6+jSdE_s!+0d55_MHn_;%0i{Jk$to`>@1e|TPc%ZoM z?lyw$gIdSydMphWt*-|8Trx1AS|lbCMnT>xzh}-#-G`_d((Xj-0MgMM;Ko)qBnZt% z~CfhLGWbo=?;Nch= zgr~CL`Qg2G7;E2IB9-0Dm8W_gTyJ5z}tg5xFCaoagmh21y1R+Y-&O5V zj(`m$xy&Qr3Eu4|((?OYs2g+@U3n6zX-3HG%EsWezE0CLHyEt2TLc*a`3Fw@+C}q= z^2akzDHrR*0YK71Tzo+R^h;9ybjHNE9}Y;Kt^oOhC4a#8#35nmA-W*GVCB|zdaTxP z7x5ZURGNFdit3He?f*;IA?#M$X}V(|zGS&hng#ykEB=OMLU|sAf94xl!Rd#w7PCkz z;)XJgNLWR#5kCeq|xPs!5;U=G`=oVptD*zuv zI5V_Af{Rgn_Di~{0H;$J5j$k$4I4+py3(=4 zaPST=woqti5G1-ZZRSQHftQ&2p@^k=o*KBTrR=bH8>~u0ZonfMCuOmPqd+pWk}i}; z>wIH+9AQN4upzW)$?UkN?&NG}EPHh<;yD?v%;VH**#n%3RnPVUXGO*-P!+(YaK-Ep zK@mK-a3M_|qysU9NQ!7bctXei&l=rcEuRS64gD1rAb1iS0MM~0Ag>|-t&oEw^hUbl z>dLh}2O^q>IvYMj#=!)xqgk}yuySk0D~OUSsiudPF2`(^W}&4(Y@u6dHz#NHRo2N9 zouKoQ)ue^}@t`CU#)*!HS7ZJF&ERv8J1@Lp1bM)LS8dR4EyK(;x@4!Dfn@@F(!PVX zUuz?g?Lib6qX?fk3bY5|CyQ#09+ph@>+!*)2rGO>i#7&hv#3_TzlldNI+-x?C>n*F zIL1*UpNJw4qXF`xVHs~)ZfwH_a+Be&n1!$5CcqBj>^MizpcuiYGm${@&@k+gt7g(wTqaLOiG+pL9!qQ@tSnZo zLi?80FLjZJ9{$3AZ)0P~;8<8s8q;cY#xUGk;5_5qB+G~Gr4~6;+YigNN_btm8fDolPZ%1|LRZ_Jp9uoI?#rK)7ks>%TVAi&} z{SBxgsJN#?|6!~S{XJowH;suN0~%;`?N@^oM=plj(;o5-{kq`?0o zGQmGlFc*eQ3jU2w4GI8ilQja|xuLNudYUHOqrHcud{MjkRnP^pUsTI})bO^rKYW^3 zlxWaUPl9iVzT=Sx3EyWkd2hIbQHa2^9eS(M*EC4i8;cJHCdzNa1s;*|^$QgI&tr3e zKU_t{nMm%2C&l~1Hlbv^Xw|G1-(BEw)LjUZTeuPc9gWcamX%Es^Cr(5q04vkp3GJ+ zB5GPY;*f!*WSnw@C@E_a=R)~jGT_6SY~DT~r~_DQet1Ao2QaJr=zyRQJr=YfL1+!x zq<)eND#9;he#+w>Y?!<5J%hVDAlm^XAxaMr`tm_|1GeGf3NzSzu+AI|k#L^-nRfy+ zfegcluwQf|D_~2ZJ8j}4dg0qdfsX?Y`t7vdvE)}Z>oA~UQs9p<$(9Hggk`|G_0Yba&CapE4d>DcuClIKwB`7W9n{%&JgTz0Z`KhEMH00 zF34;LURC9_rgM`oYT66M|Cq6gD1d^ULN}+hI|$u3h5m&)nGWyg{?dU#YHs4BjZAX< z@BeTLiYTbvQQ_93Un}k#9+w8ckCMRu7rl){WW@CieLkA~=beBb=_wg;B*o>P;AF_Y z?ivtH#BYQ%K+{b6}tXIyHk(4}`419H`U2n?PW)hO1cMux2(? z13+f=mDzhhiJ1JtRRCs@vTgF!)q4Pn1P4Vc9oby{5~gFV65{wlcmc9bs5y4*;!d9u z^?Uc7W)T#O_bSp*l|&*Tqfr9)@J)-XbLbEOqxIwaBEss02vGEHdEASuxs)d z_qbAyk)<~I3&i+1`0_A?&+IPdBkTTetSrnG90BNdf70!f6^cAW&Z}TTH2-%TOSM~z ziLDIf5S-C>K_bJJ-pVH_&bNU&lsvDF_vW{2ByVDTOWyd_xYI#VYT*3jO9mVDS8;uHa64H-xi zkGT=%7XW~%Wp#`}h`b3D8u}+oewhN$%)JX7`3qinsd;D4bzHyLvAb=D)v+NJD;!xarHOYkzHg+ zR2jmRi8Mb@8Q}OTKQsnz4NS#x4bH_ib|RdhfJPAosfqMclMSY6Ptec=BvRI~aO;C` zfvLhsnN0S=QrzSsuV&=5Avi@_aHtQtl6e3Dejesg3bt&xbDQ@Kcid3z8$Ukjg8Fnu z-uQr_nXvuA&AaEztPn{J6loorT<5!_4gKyP*MCpglPORi086x-u{z-HjsGUj71F|E zb!9R#Ppb@$`=L}{8Vb!B;*7ByA0B2dJXand1(yAU&`5Yg?$y*2Q8=b1;FOWMnc0E3 zH_Ru@7nHIFhLFl?zoF|~yGMJZp8TVs3jgC4E#{H#5}G`=HCdcdk`Nc_~9{2JcNg1{P2G)@h~2;{4kA} zK)C)M=LZDfJ%TUyhyvk63r^zcJ?aTfIEAO2dO{mc0b4ORy>ZU`_vQK z@dTdo>In^b0!Nnn)e~AWhi~syPiV>lp5CXP(3T}U75GUdJQv~t^@O%u!ngOUC$!}m zJpGk=LR+rksi>aNmgn&Fpn5`Ep2yQ)t0%OjiKo9&PiTvcr;>U?TRM1pNIjt~J9zqA zetHz+@&cazPCcP5V?34B6Qyhy;$ZnzR;zi_ zyqFYKd|pG$fNfqqf>{Az=$>endJ%PP|PgPCI?++c`7-)GRyPGfs|REw)Fkn2AZ?KEM<|O?f|D*{?|26-l*+~Bl|D>r%m-r{m zL;4~9Nt2NNTmDHikp4UVxr?7EnGr8#{85-MM^Dc$V>I#iGL?TNBk)IYn3;@tHEEfa z&v!-_yYRmtfBM%lnAWPS8*a!PO^DZ$Du)Wna%o<1Jv5>~`MA1R-nkFj8@!gm;4r;~ z1>$U2JJTy$gNq(VBWhdPX>QqKR+QEh-x41a;?qgUC*4ijudgnZuJvx>X6YUVu5{71 zSDMhv`PJ44Xt)ZGWCUO$S`5vbe40u>)$g}KmXk=req|F}ogx`3%l+HWj1jar+6Dia zTo}T2#O{wB%Bc0(jO%2NEDcm7a+)g^HkzZ>Hq;WNx^zCDkuMVe-1|=Hkh3mBz_wOz zI*9Tbc5Y!Gqq{|vO!#XZ&wX&^s0>RL0k}Xk$r$NknZvX@6+S__Pyn(@J0Xn(Un@Nc zjOxnqFJ$Bz9W`(kSmC3gb7k1s>h!RW9a!0$4%0f?jmquw#0>tJ5?{z9Y7eNO{gH(Fn44QE@%9`&V6E|`R{Y{+X8vV`a58I;wzc#OlW95^e}uZn=AR&yela!@sdQ2#M6%<6`;VKgs$kv z_sT#C6=8z;6|8su>IDxraNWW@Te2HUZ`H@84+-um2WJH$Y*>#&j70@?m}*eLm!{9< zqz7)7PV_lK!b0{1`$k57N(xluaKJDSb-lG=q&Kc+wEn;VK^-u-v= zagw$?P77?A2q9ed6W^hTZrsF8m`(i+cFEn{;Pw42HGWbYb&RubQv-dZ$_GO`vemERr8dBpnoH2UAp$f|FV zLu3qDP)*q*>(#e2xw2`dza@2FGoFR@)lKRu-pa^%mEhG^gm#~WrIj;})A8j;8Qe3W z9{fcl7dd_QEY3Ucs3P>>F9K%xRzic~aF%4D*T-JBS4|4o63bw-X>GAkIna)(;`j`S4uD{S!!o1q%drlOg5S<-xKX^HcmV z0Y?H9KAZ6M7ntmL0*a#m9B9gL^?^qq-BF^h&-m||!76mG@YrBa_n%}WrLn;yUH=W2 zu0GUxyGT<)MjMlhFJat%LK5B2GU8_mqcH6OUV?5pp1RxBiAondVw{T)rm4w|FGhJ+cw_gC`AcG~tvH*9YA61#6)BYAa&0Avu<7AN5s$Emv=!w)3Zq-X_7iuuWRu369U+fR3zxepb)XgT5D?r@2&gw-Me_-~Puo*{8yrqMS7etc`ox0~2yr>b=KjlDns({ge6nAml0E zJ8St#c4)unQuB_^iM^_`pF2-hF&dK`x6`pR{QqFgm5_3FrFGn>uPFXQbvxa=+sauqsUt;(tQ^Wpx#iL zQ(_w`id{#kWN}I0ok3@~Ycht%-IBz8G9{2`GU5XcVY&!f$m!d&2w4+iE|_ zOe8GE0+|S$gta2GxrJwu@ALSCoL*=l^@?v9iQ;8e_`^6lA!k>WJCgSuXpc|iP27Eu z0Vtfa=9EooCrSQ~pnwr}!d$X<7D-%Az_^i~!^s*pxxM=nZ4VA;@QCtzIz12=x(6pB zL-!!ip&JiQ9M&xT(1bEeKRn@?r5^$?D_1PyLRS1r;qj3G{*zJsCl&sa6WRD-tOpjm zz%`Wc-6~2*xDG14@LTPNqKr zBV4052tMib=**l)3TWr_gdDIx7KGd-(g(0}pYr@#YQqI95?D*(Fi8J(cv?XD(Acn> zhzrwb{0(cU*sB9HWI3kVr3vU`sGAqKm)8dHGJ!SC`bBVQ9Lu%4cF3eak zN5+j#Pvj;+WexUQ(bP4$WXL06ju2(Jt!^8oJ7&Wp8y+cn!z-()Mh)rN2}!}&NJxT= zyi86U6{QDQUT=+&d=lHbvkUQwqsOq>*^f`i`YPUVSQWhxa#>}N->=xLcG0voi8`)2 zWDWYH&L-^{xcJ*>y}ZxMbcvJgG`3ovvB4Z}LzDP%Ij?tf=t{_q5{pTQv;MKo(^}r6 z<8(oW8lay`IUh4H^LiAOFDnIGzC+d%)`B6!i{0Y<{%QkcUAg;NJRWICXe>#kgInAv z3ELAB@bB*)Qtu3rJmKQE#A6f#iG?|&Q;!*@& z4C}$I>erPl15(!mzvt{sGr79M^Nc3fIWu0!X6cd`Ujbe<_r%Yrbpkb(TIo%QhHzw1 zS2?Ryq4}X)3$6)WVP`^ijV$S3A*vQe@|j4FdHTJ!VfvRtpf_+k+BIT{PbG%j4ZbZKdAZDFBteravBvAXo3g~rll zHKUl#=OREOc;UtbKBFKmJ#~3*?b=lU^HId}L=o#u5zPp=gbBbn)fE-!p|>aGRB(#C z+1!Ak6Jf;@0X?W4K^3eIE>J%Rx$V8+<(kJ2h>0~~+tQ&0_Kp-g0jcJNs8sU;3PLV< zA=38c0Ci|8C1N@lXWot}7T?tIL~cqeQaA`bA_kSFmD&e7;r?c)%OSez*Y1R@tf-&l zY$!QJEm=-*JaOzH?#;9#_hN{!ULgn^oA0z*s|Fn+v(<~Xc@st(h8V0*5b4fMjve9- zK==u{qzAvFhE7x-Ny%qo*{4*tkOrb-+Hjdq%AR3`qwf6GfF_#y12W1df`XaRDZ3fr zsYAhh%J9Q2R)K!-<5nl`8tIfUnSt;=iX-a`6NGja52Yai#!uueJ!QK)iai9K9!fuMzS- z(h#!<9~x&MVKZgn{}T5;@Npe?V&8kA9#lDpgSsl@RfnfcA{|NMq-LG>n=Ou#pGrG~T?W+q$9e!(pG-E0R;O0hQX68EUb_^cRzGEBhHt|`L}|R(6_1LzDgWWfdMihNHroUp$5{n znC3TKV%L_hQkwIh(abTo(%|5HWr;jvHI9Rg!Bq`fIRcx{OE z)4Td6UFKo@zAOL?yg}x$`NmK{<$*&`yVG)a;6jxvNSclKK-UmOC@<5M)%e+6@;*qY zQuL8s!xYK63we5e*N8NLZnY?nFF@-?Cf|M!VQ!7esa3*bKCvslDW+t0W`;JinXsKC zty@a5S+fp8Z6?=6s0p~pHqn@eR>S0z=J-anFghgP6qmOJ^Z!;=L z?dP|wox>8T_`;SI^9Uq0Ke4NS3$*QPHX7wH;hS-(Zzznz;cb5A!0XNMgUTqaha29G zp%;s;R6ZpbKpb?lv>cE{oDwUr;l4|ijTh09aAF2h6mI{&N7WKC#$u3{j{1> zvd7!U$Ji-{-P@VU!WtDW9U!)U+?Sad9aNrnC1>PJZKc`dV9Oogs{i;*rTn(_dHxdc z??0X@>ycni9gVt=r^;hv<5(#M?_O@)K7N2xN70MdEv&U)82;JoZsSEK@O>^P@O@4M zt`~PjpTF+bzUW%}Qm(ZxUUw_)ziq>X>cR`y zU1aoaT*vOxlagP>F4d0Uj+(PAGWX{fcf}93*UZB}^)a(pO3KJmW|xt^(l^;~WB&IclSriCjNuDN1}LTkdixiq2DA_pHx!a+g*SWUW zHDll0a>fSVcd1b-HKsf8-$Z!ECN_e#W)LB&Wp-MK{uqiCE3>>NuuvwYn+p9vOAS>=%rEw$M0YF6t@%3 zSFQ!}WZSTRa)4jmQe4_XVe210ZptFjKX7L(A*%ibYN*nZs9?yv(`WP!4vtWZ?&rdh zyQ0~NwKb0QSNyl`1?O;n+zFbz!n1|80|VGf(MweY#X;C|g-QF)8hg(=F-=@MqQZ6D z9na+ytGDIfVc_WQpz!3u-1^(NFlaP0iFS6!)AoB)^UBtBWeP4VT)eolcH4o22Xn7m`;4ODcOAiEeY9R{U}f9a z9Y6NI1+ie0XuHuocrbg}`W>+Lba!AP`S}{n!!Wlc2pkhY*ST0(?Q4~OZ|IK4#A={E zh1+kJ1M*2ToEE{dBBwz2P|3cYn8)U!8TN)LaJtt|(&WwEXq=%1-z*0aWH%rQ{3LDO z+HIa1KKBiBY~coO!tLVPojunzlbgmH_fNasI*ApK9GFc@mNKX}GatCIJ3c0WSITF^ zVtIlf5;>%cEmIzED{b*UihQe1PF8Y=*V27_U2Je6<5e<;yc*tWA}c3i}zj8AwL_~807wRG232ss8FaIueI$uO`$lD8)BZW z2c+D)V$++8+sa9txzgw+S^68hqnod5={w=&kYA|lT7Fxi+qRg+&Z`gY_mg{~R#t>y z3Tz+V0-Cvr*B57WcY0K~?WaJOY(EnzSRaS^4xf>{wk?GmdY|IjSnmJAM1+1Ez@e1c81~SeT0^WGl*OrCW@O|1 zT3=po9B-V)f>&W^W1(c~fyycaJA8Z<*8zTw=E>&L8Dbnf90ef&?v>c9THm52-+EnB zp#I_<^^5yQfL)jK)Z*J^)E;{pRq*U|_N1U2{GbBtdqobTSIU!>WfJ1BdG}olkdYim zJHI7EEBq8(XnzMT^wY451MTbrhP(fI2D+I`6wdo86|)|5PTB+r?nUV1)j35JdGy5^ zgPBEl2}+Faur1lk)i)r6IdDCLX~Ujm){Q2UP{rRDz}g1AxhhQpA@8^rPuNO^yR$o- zDJoxTKT@6e)LJ-CtHp^gEID04xKFt-lC%S< zyh=+JD3+A<+mxu|?48ZTRQL5pv5uM|&Dpz3qEW)>f z4>*?r9KlGrbmJY}F>$dXPIKkvJGSaEREhigKvuR$Kh$^uYTY-%*%0K}vm(@-=#K8| zJO?B5B8S=Vhg*k!zZ-ffH}w0r0)!QpK$42^=K@#a>O(fvIPS{L2V7O>qrG0IDTzul zg!{Xr%5@K+>W1*%+z_f;4Iw>Vo=}&3p>Vt$uXJw)c%?h$MMnr%y0^*$GU?KK93%SQ z%U?th$%v}m(fW0dXv2-@q1=czwl|`OHxKCHEyweaz_-yIJ<{HC%Wn6Vjt-BzqaJPp zu;-s~C8^sYX|q;Kmk4j>2RSTP%PGR*dZjo!U4>MXv2lPjO%8mEI7NV6^1CilBVG0t z(t552$;~T>OU-Z^w6t7AI?9e1c~H8NEAFR)uw1*m34&u&S8!I)RJF7`iI=`Xin<-i zA7M#Zhg1Qz`^4g(Jk3hW`Zld(ACnhPzb=kVU6B}>61O{u?IuYc(=*)MDF0@ncSIFT zFW1(W%c&$F^bHozD;&sUn~u#8Y4m#&DURMI??UGIw6qMRC~p`54M#hxTxDxCwKy`# zYd44Dq`o`5>($pWg3Ltj*HIJ?&DLrsN~^LGvX>iCck-E&>vEA3ww-hpNxm#=pzr8+ zp~CYV=2TyQt~lyi5Oi;laq`jZbGhTZk^f5T%oWGoCvqpk`{=VLc`Ew|XRQ?GKXdiw zipj&X@R2!X9dl`Ab$vykY%Vbe#yg51fT1?lF39=sCA5(0!U)IKpmmx_Way~;K6~Ic zdk;*kF35od$ZkP$D-ey-c|&i9 z(>(5W_LI4t{W$wDDcrDQBzjVIB#%#b?%*n9+!>ai%{BY1G)5|-?))K~=OJ&K5@9?~ zJqGnWQWw+6nFsc5W4*x%$N37$7%zg7jiJ-^3cgi-;!7o1th&Nw!b$W(cYN4Ae|LBPUY)Rd#pf#S z#d10AlZy5G~Jq6y2=V{Ie%!cKj{#e>Z|m)#UlJ^ zPU&a63+*^~POcxHTB|KA9nrh08Z;cKy55l*Q}>l zdP*-akgRxi1 z3Anrgvyo;h<)XJew63#c?$;w(R7oKVTvz5$AU_S)<`ZA+E{r>x?{23bnIVk_s38}y zCCSN{g9`oA3O4Hb}&)Or49QX4QjnIqWGBm z5N^4?a?LNHXkTgrYudna4RNduqf|k_8*rI*N%MYncyRh&Az`(nZ{!I3a(8gF1*#|M zQx0j1VmQ{bpyi!i@sK-UaT532mpkv4?J&A$Y}Y)MZJMukhs=*|{@eG>UhHd3xS6Ec z;XC6Ad|xYTO_k;(Bw;zd=gh>($|*?72$k2uLjN)qB@w%g_1#1(;5~TT}arW46+6 z+1XX!*?R08egr90Do*kEZyr%`FXGlr4I;TC`RyYmxvC>=*zDOlOI{yopn;T5wN&q6 zNhJ-zRp?3b8q*U`x!P&u&exbmZbi9vy;hX#+SKRkBINZ&gI|cgk?jMH!ONkH_I)rg za zffzWxdbS}4P}j0gLKhEUdzWmlMFGcaH{jIoN?l8(LxW{hB2inE$@zxqwGPO7D+9s9 z#i7&05|>s*j!u%VWPOPo@84)!T!*FO!-6DwLHW&ws^x8H0^jURuC5|Bf7^-UFXiOs zZ|h3+m!Qori3rW}ccrNCa`#~L@^yC+86lj?i4WiJ4i`9=D=W2ydTC+9Y)f2sfc^+s zT3->9WMBUNj(8-6ucLdGmgCZnOwH$L^{Lg1T-I-95quWUJn!MB9bWJhA5vIW6sYVrG$kpZ@h|me^!1Ra@GPy|LT?_8PKY&HopGS1{*fJ z%rEX=Ep4}{^sSCRR1m7*Va=%fDu;2s2cR<1u=&LOAGW1W)3;n)&w(pi3#a2czp zrGt|gUKg5uq%M+@xDfv!v+ErqQFDey5RH-4H7cKnp_9VHw}=EVBB!o6?<$6w8w&Ah zygdFfe4%;^QS*BW@q_4nwYr!(Tk$KK*J#)`v3hYJ-aBtb)ZDE29q$DG$x6}v^S3Wbh1pqRY=B87h%+cW+#4lN$bB8$7E9I|8&&Dk1n2W zC~UREG1!E8&0`j+sdXju^RsuMv?k%qxw2?ahn5wSP|@9j6k5?HLoNKLn>KPjzjt(_ zj-s^VlhIB3Yvg6T)*eMZSxi%sp2r&(C68(=!j>AWvW%QdV%!pzh% zb!ftjT?i}-OcK&`@`Mv!EK8`$c?}Fyfhwfj)38vP42p?w86Gw3e+N#vLSBPuUrI{; zg-gp~5-h`zmV9vvBg0xZpS_)g_03dQ)|M+LO7GDme3zonz&({4v7Zl$pwslwerpqXHHnEUIobyu7T*G_L(ffaVfxIO88Rc0Xroo0t@7z zyuN?}Ku1)AEEFf*ocOH-s5c~!3M3u|5qg~EwCwiV>c!$@-g0~tk4S?nQGSG|Y$oec zuwsh<#IQ{pZ!VR5@0#!+1sMfrON&flxj4pbQ|h zYY-(kk~)QmM8LImO!af?tJ1-oC?|86o7XPrqfQs+keUq88Bw^j`1b|Ms%9N;=J1AZ zB?Y}`SW$QI6~6J zQM7O<@N|R=6_Pr==pge&`wD&S8Qxo%j`v873^CW1-W|qs-t{O*D4VX7+I{97*aPYG z0?!D9)9Y1=v2A>-D+#>AJSxhwh80U~Vs<2lvmhDM*2Y3FGT$(oOcT{jouc503F?@m zXp)Ww2Nj`DWw^}4E_1!^UQf>?O_8f|OA76pD%F=aU@WoHkA>wLyIoFes-h??Pw|sm z5SKSbaLYrp%r%cxZ=RHjKmvvr57V0L3cuXq8Tt|1oe!Wa>{G}WS{c*owiotEaSVm} zb4sAGazHy(Xm1p!b$)z}cUC0x5ll=KKw}%1wahkihz;-!=pfww+SC?DRW3G{U~0Lx zmbGjY_e=Dn({Uu46)Uud~!nYJ2k>$nz*vlC4r zul5D;sA>Zh{o~daZsl=Pc$Hwp<`3rJ;&3CuH*dIvohkoXZ@eS+47H5uo7oog1WchQ z*Pl1AAP`bgsl!|@nwTg*vR2?ZaAE3*43src95OGz5bUl5Got$ZL0|b=U4BSBY&@YA z4!@)Y@BM9a#1`lL=yk8-#yPd9Y^i~$`4#N>N-GszQT=3~%AFcvi`f)rfEPm?m77%! zqHI7SZivkS*#Zxzc*3`gVnJ=64HDU7ymY~r+PU`%B+b@f8@Hg;mYXw*cL{z?aC1|k zPAFj;Ti5z75^>C#PW}Ds|!~+w1&zA!IpiA9nk;nH)WGCF0?U6A~Y#Uy2BhY$?8GPzEz@Xd<}Sr9;gqhCy^+a4yeBYCRxmn)8jdjU=EY;w9gIQWJ9N0R6Oy$JCPP#f$Q zY{%&ed`Ltrr`8t_`6)VG+PE8$9rmSSSzURD&`_M~j?=I=R?Ec^nTWe90&gAuby(*` z`HM_Wy*M3sXBlX0YT-x^XT{m@(?&R|Uz~JoEPNy(3Qti8-&)T=M&DU&B3w5lTni29TSD&Ptftlkiku0_ zZcu{3kVSI(T6}Wxu+v#(sg4LCM{WAOYc(c|xTziVFV#fP$T$e9KyUjQl`xoCU*Z)B zgl6;raru?f%c2RSbJ=He8PyA8#TkjxuJ_eO{mG9I#<8u7x=7;}$>1S`A5WvN<6IuL zO?iQ8gd)$dwXrpKc&0{*Q6`TglVABjR&$u#DVai0;4c0d_FbmxM*qXyv*at2zteN=~4wDs5o>VT^`?C=-U?lSZ3q$VTn8ugzy=3`ZAu&2`NXqSb=<}E_F|D@WG}!`+b_SD~28vk4j$6Vf8ZBf(DN=T~0|H<>4Mf(Wj{PK7fe zG$Q+ELarD_is!5wcm$uoTPIDFf=53g6xf+v7WE95NQ}Z|r4=V~6;Ipuj`BK&0CRrM z{Y;TqO7fwLc;~%ZmpOV$-USx~UPCeh#i6t{h=OBH!zD zn4Di6m$ATdC(OKsrSvJ857oP!3PlC6e2IW((TaHJn#J*>l+R;&c2NeqlWF;I(UtN; z4&#j|`KNsb8}%i}O$C+$KQ3Fx9}Jo9#-$ zLX~R3%52;ySL~QIG2P`+1hm}96jPB5VXk9%8|DAgaM{<1q!|l+WtRd~2XHav> z^#w+Je#^pENe6FlVrPJeC~B+fzF0pA*x;CzlAZ-Zt`j<-Kh z(a|q*?!@2e+R~KZUA?)pD;{ytOhgB=eoqP)F7!vy({0Vlx}VWhZ>MFWHj+Ghl};38 zF?i-G;jBdMuOhy1obcH~{P5kgL@b;rt>wkFTzw#TwveR0Rv~$N93}V0{X`~z1jzKC zuICF8e*u%5eqWG<{X`-9L>su{s9S49<4Is6JFG>l@~Fa@6w=Nq*(!m>QHz$|M@(Rj zixZ^^*QhtX5|?EY$PHT}=pV;h;I@_AF*M{t_3E7@uo%U8W0T+eQ!;=T3lV>1;`^h| z>W}XYMxV>fRgQq94H=1268B?<%w~wj{a^;aKo`uyyh#uuV57y8GY4&f%j86Vnh5M|NuFo-otz$cf@A|6qIas zc*TP!wP?Pv6e@V9qA2PZ3A(sgNZ-S{yeUsqbUY=#Cg)sHsE~1TFo=}kt212Q7e}Xv z)!UdQ0e^*P+a#HDKfNvtbCGC1wC142+e+?C4u=xQW4*Sh2yV4@CGXcKxDtXG#yi1? zw8h{i%4+U-h*%=J`|gWPelm@}B!^POQiJ)0zpF;w_$9dwM=Yq08VGTjxr5CSOdjP5 zd92~=^BZ@?7xAd!0>)vT4mTh zFLOyBH^$H&)Lzuqk#x?|+op@vI`$z%G;`pIrRZ1iPXR2EUD;UP90npj))NS-#_|x9 z9%K0G67hD^R82_6REY(Idp5+8nPWp3Kc4en)hhy}PK?a8eI`J=FGt02Q7PM6BMbem z3tW^cfDI`I9Rd=nq+xD$kx$H+;Vl+y#o3yXOuWlpYD+71l~L^fbOkLi=G0=2 z%OEXXac^_-znd9mwNX6AhM3WKQpi8%|Rf^*i zE;vE1;9)1cF6oI4&fKXS0aFb%ep{Gv$v(*r?*#M{BQS_8kvw@x1FOjIgcqW;Xrwew zY86IAw8tQ)ms|#OjtID}CEX!Ry;0Bp{j( zP;-bdxZ)5nIox`Ea#uXzcdXcU9BzrWCDMb`H&Iqf^!@+}WSJlNaQVDPc!qtd=&f*a^!xb=BhVQN2*9GC% zKqZmmB}#ky5FW;OwPG|*payxyYfqC{RDXT5Fcy8Y(B}^aaRVdiBWgn&(2yLx94<@v+$&%vW$r@F}3HDJMr^IMz zt{3$ls0Qqt9|A%XFOd*#iuv9ngBMU_J%tQQ$UH_D33q|x5m!}Xdc-~?-s)C?WC?OHP-7JA+B^QDH_oc%PyTm99o2EyLmV-_l?YF z2QXXf_6zyQRgGSLEwr`o7YbvG;sC^Oq1NN{v<}#?jMM0bX5*mQD}`{N-H*Hl&wNnD zz*=5{0^fAt4W|Zxdd}frsk0{YrgP^vpvP1vq9>1m7&d(v*dfL9qF6v5g<$cI%5Wj} zz*3o&mc{4waNrIWlT4|nhH7IIo|lPw1n4*l5$z~U#Sm3^n+7?A$Rwp+Y84VvX_?t2 zl1k-Rv(|uE_7!DP;>>f@pLX@B0nL|6&0>fML8dUskqnaLL7Oy&D;!f0S>*s51q>~@ z((0V`%i)pr)eJ{1vF zNtiUi{Ktj(F#}H|2LjIX%3~J5jCS?o_JNJ&ziiont%Jg{?NAZ=8Kq&i<7m*NPtIN) zI%2^4iX@myi7W*yWtCl3W+;>$|HL+2I<1B2*Yc z9pX<+mVukkSBXhF%Tcy9U>u5ZvV+${MO?C$n8cw2JMz3M@x;e1 zTG7)gBp=j(ogul6uLs3Ia2QQt-(F%hp%nZCKV-{ZK(&>v@>vEH;^#xXvEU&Ip}f>AX;CO2?Zu zAPimAg^Va8HRa2RZEEK!BSpAy#^UK?rH1Vfk%={BHt7v|2%-_1>IR*YekI~8-+>an zk{an$H0GVqE{IrhjFlGwSe+(iwVHeDbVlMu2lM)q()sNi{pslm_YjIW&P`UX&yn09 zwnse&V)FCgkmd?NrMcMr?$#fUp|vyp>mj0!X5P>fe>4Z#wFu`8TMcirt&ywI(Eb7L ztA#~H+a;AyS3`v@NNIN7^);u5JECY$Pq-Jfbx~X77L9D{n#wByu6kx294 zV1flK_qD7EFr@M-?F z04H_p^m8*JB_zo1j|b(QD2;=fMuh`zn_P7S(qMTvJ8bZ!kv#-TU#Wk9ydW&O*~b)9 zMROVt*3JtU${PE7;%~_=gCKd2NY44@cAk2T{OwL>y|olka(`!8X;L;FEnb*MsIFXC z!56csk3PIE{dipl&GmJlCms*ozkMXVm$nb|v^r_DI!gN;V3GdQb!Sh+UoqkjMt5yJ z!}Kk{=v+#ik52P|9C7p3jESCjEVE7MwQb`TljP@;7>@PZZ`*ny2E-8DIMEZImu}9; zL+e$y7LnPk+!V({Qbl+TQ9u)0gUz8k51&U2gbyLFH^=dV&Z9Pr!bR#M0vz&WLA*qL z#1>BV#D`o(SC1DXc9i!58b;-KPyE}iLe|?6J(Yfj*ZD(*M{9K^h6{}1F*&l*Y;pq> zNs?D^@0DE>xpR`Pb`(wZj_&_y3F3V{MiEOLC}ODtMZB*El2{RvDF1X-dm{b{N#w;!XJD>!thQZ~eQ!_S zR-CJaXUl}e501)22gVmAk4~h+VsWdK_oZvRA{9XvOlv{e$K(^^f8oP8S)LHFP#Kvh zZL0`){vc8DShk147hTCM@dU0p*<9Asrej{|aT?@24$0js;^d=I{^F9|z@oZ>mFZ%2 z!K8}fVUL@k^&QF5gak=-Y`N?VEq7Oz36O2f*3^F?qhc9O#H|DIDphs>Q3YVehx2v*Ik3bxkA@iL|;Kj)!>g*w8ZmCSD#x`c(|7M-VDLO)PMq5;8iSrxk}SX~(EK@d-x ze4W<$JUGR4mL%9>k|R6y+6Jo?^%m}Dk1Ou4h^LLlnA>;Hon}T=oZ_B`P-HM$gduT+lQBR3KV8JOZyalx43Tm$Vpu&fSJ=T@x7Y$t)@q#S^0 zo`SFAYS%@3#hd=yuByXgA%CPm7oMmAve~rQ z7sd08Gt&vq2oiCU1GCkQ$<49gyDSmDrFpQ^uz`4|1&7s>DB8Gg1>qs5o_wGub9PZS zXchpJfcTM~HXZ*FG!m5eM|ui}oe|7Oz}1Il+`-%OK>tbXXK~Vh1RN!`R^BZakBph* z(>SGW!Vxxlqm(Vn7vsL1HWI z82gyD1U)3HM0MdCN&JLsFZZ#&%v(pqE;4AxK%U)6t_GSU_R^pwG+b1(hkBw9W`;)J zSiN0~8aQmn5@u_Da!}~XRwhX5KZW@V=#mJ=R-AkaFw|8D5TTL6VIZJ>dbMityhU*3 z3^m8OH->z|UCBr9frCM%Elf~Jmyc9qn|S_BUD3aMvrqvgJ@^B^mzBEn6G7z0dL9H) zBUL%LRD&6iwGyZOS8~}FApi`K@ZtTd@>XIL?IV9ybx>_VBFiKvTI6RRm$d(vB6m85a z${Mo)N{i6xzZAW|B~XM`eUjaxfEBZK27`NIbQC`YJ~@<%ahmrhBrA16ePXjCy^k^_ zhiDDeF9Po15Z@n*xDr}*^|pj`6)Qo9X5nl&O180Ep6%%))?WhpB}UL+cR%j(4NoF7 zSC<=w^h`xF2G`>#)mI$3jnBrM(m)$WBIfaI9EVp?>$wFD`S&egmivfWt?r7)qUU@1 z<{X>IDUsMWS>VAHxzVYTJH1#KF_L#$UPC9x5I|*Fh~lB(u#+F4QlxjpCjy>fRWO|i zG_*qGwFPKBsT(z@;c98_U+BD}wv&tZxJzOEi5%3dD4Shbhq@Pnn?tgq|^m$oa9>1t1gJ0^2zI5F^bT|_I z4k1=3tFMF6jX+ zKDaX;_bcTQz%h7=d)Q)Bbh0L7<=uOT^H77LY>$zoci?};k4l6)-h9d=tsj}!H z@;zWwg99YrVUw!r?JTauXVg8$WqILJC-6$l2PSGgQPXxx1Z$UHTVkw525?ykZ3&5< zZh|h@y4GftZAlejA$SMY=RLA0DoAGMG6t?ksqbG?NbEl6sqhqv3M^L9(CaqXz_)usYAcdx$Zb3A+b{8#(ufk*y75F+kw|5| zyl@-cy`)qVE%m#Z?7p(T+^iCm$LRw5(ch{ib|yljLhki)W{GI#AY;Ew%z7N3o5g#g z9=;Y;t}`du%8NV{V&-1%jz5%RVh-ix@MazW7|qKWCG#U{pUQF4*r^jDORCK6Zs8$Z z@OGP+eJ>(OBi$5z@>Uxzs2V39m!-%fy}@g^suHn8IZCwgMsboe0e+%R68l60UCA@r zfGBW+=5pLcciOPHgZ8;Z)l97J;-i(zGp;oWuiBA(4D#S4-6p!gq9oADDtNV00(gpn za%b-$n;&m&K+n)`)xvD9?^BW+?3CmrgSy_J@^k((V#-CJc3F7ToV{q?f?s0`$yo?X zVSwPSJ_HE%v=Im5d~yKp@@*U8kn>J*(n`#;axhZbvQtm_VgH(hyITh`rSl|Ng9I5L z>Q4T^BX=&Rs8A#23bv=oK`IA0WfzM@PBZle`c#L$?~hMOos?`fn`TK-b3|99y!z!5 zr%yEvMb>mLU{B2LeMZMu9J6wH6h-PJ(Y{E$8I}oh$R@zx9!~VyB_sG_o||P@J_`s~Cx;9Lg)(Mk zCEK8!-xq=Dm7a*d;v9^oP;|cieGjs3H&fDqIZN(*cl9{SoAh(v3Naurs1U^+M!W4B_Pq z7fX#7nd!5-Bps(GZlA~KhFr%3YSWXs{@l|xAU@wbvll*^A zZ*;T#pB;RQ{QuRS=+@qFw!|ZMyYx`-mJefAa!esg9Dn3N=!zHVN3pxH>!!pwB&iX9 zpXdGTKdFPsN%Fsq2+<{bxY+MJcF1cLlFfm*4Z5_iw=nDsJCz4kMvs8v-jNz%HR^AW zaMw>=e;!?;{R}-RJQR;c2YSQh!nDyo?vY_oXox>nf4{x!=h## z8o#F`*Of0+9D`x2Qo>45By;XLh}YLJ0xig)nZx=cx3JQXhTph`c3DG;$oYm27 zUyBZTPI_#qD309X&{J5h^$iY$OxTZx~c7Q0I zb4JN2$C~n6blJU2{Yxh|vS&l~tdpST1C{J6Qmy%~>=j8c>bKo-$ALTdWnZ6mRjh{7 zO_1&%-1Mmz7t3TA5R<57ysIB85pQusVn-3`uLR&6Pj`lK=Nmq3f^zPYB>AN4Q4Tqa zf~la9+fKXqne@g6C>lDwgKXZu*ap>{P#pVeJQ7Xy_6>At$+Ryc#`pPr;C_3KTclvT=em-~Cs5U&lT4`Rc)h|go z@h)R0?a`uN?fxh}N2C}ew9fW~Yh2>S@46fW zpNvP2@_4U3Me*rP)zB#xmOKwQ&BZIy%2iu9)>0||eRQHXI1-q)+hE~L3)@mAtetZ_ z+$sBel>AWSa{UtQmM?{L`Xxm{_gUc8oWh1qWfF;G5EmE7zTCDJaHI)inedvAG8>%1 z&TDfP1fp6_zS~)q+a}C#Wos#Jv##X4z6c;SbeVaD`g4f@AKbfQcXI2#BYD^rvty*( zvU7+#fbAx`a0x!bC1a3i0tZlZkqDE79lgBB#l^&`o28(6uVvS%7=AVA1S2UH2#a~z zX-bg|B_ziYWeBZOHC{<{D1jQ9uLI}3q=sxB(|#rXNbuR3+GVLZ{N#u4Ll~i>15E*0 zKE(t`wtb2H6nb#?^o-CzV8CS$moSyAwz~I(b?NEt%*N`12DGpimAk9W#tcD7-O&@B z%BSgN7AtPB#c-ofAg?XEr6-zpl;!T_Mn}*_nFD3u2dE@ zX|1kvv^#oYLJ!s1ipqtm9v-d_vr7x45XJPSSa4Tl91<+M6>jj#yY({@$L26Cc)Ybl zHn3Xr5U2Scs9iPWyGwpF?0Yzi}zFp8x2NA4CO_oF<7cMmYC46(j zs#d{7Co!?xFf1v`@)I*KR=|r32)&y6YI)<0(|D^$(xV|ncUO++k@Dyb$&z$n3=Q%t z4bqIAXur0I{EptfQK$6j5jneI@z5DI+vY^2>GdWm-OHv~Bvb3gu6P*im7i*;u)}y~ zd&6yf;b@_p50msiBLpun?lRR!nI)vd#@WrhOJX{bMB_m_0FwqZ{jsKskKRR)3#Hx8=HpT zF4#`XX@!8*%)Ur?qKWtfiN!+@8A1OEO?ZJ+87ChKAE;{Pgb3Ne;U3%KA^C>3!e?E{ zCoPCj>p9|MSu_yzpgBT+vu?#LCQXQ+=ox-nGDR~x=7!AX|=Zx~|E~WsWK#%VxM>=wh>ydQ6~Gfm^aFghnJj7<117Mx^yc zD|hbpOjL8eMJ5S=SKKM5(1f0)!qD^H^(x_VGJ}$iNl3BHn6q^il5?&&wQ?6DT0HHF zoo3@y=$_>Fe08sDRn$JIYL>d2GDHfrH+Sjh>9F>VwdXt-h}EMf0ek zKqwZbmNUC3vX-h-4511U`BeLEHtXQoK~ z{<`G66H1YfBvu_4Z8?Re6y! z>KINjiJ$^C`epC!eOql_0+t4{Xr#@T?qyK~;_XAVB@U-bg3e|mKG1cTB2~Y2J>dQE z9bFhj1|<9g=SkKo{t`sZYJFo<@~XIxqw|}~Qb1F?&YfNH*MLxDlzalOO>k&LK?@W} zAe%y}qDQuzgOSrni(qyG$48n$ym=lvjD83}Oyr55-6c1th@VU*;rU%sI|$HH^pRbi z=4wQSBFcSlO!77QAj5U)DZv=%tvMtXC7%0zWofWv5S zpb1Lkg#`?STb%5VUxRguKG0bjxQf_wtCJ~i$;lKS?Cry|2Bggk;7+4GF!tCXw_%w- zU2i!5Ij?2toj9T{DuMA^JMer2fTxU;2X3uYN1rTks5Y;bF8`@?A~qmNsq>-Gic}Y{LDcjBL{@Nh%qmaGwn9ot2r7edbgv^X&RRDD zrb`JY#0tC5QWkIFyY>hMbw{)E$24D;JVykHZa5{PG75`|v_jd1;Ee3TX?$0bsw_{0 zvA|q$k`ji)D`Lp>1loL7jY;>KZO_PrJ;I+nrlu4rdz6?^X`88OV1^A7f|ccC;lc4x z?+t^$NtaF>W*!^Y=0zXQT$bfa7u)6YPo6eDe5OLO9Ou}9l|;$M9Dn8l6n&w#K`iH~ zgk7l28mwC)(ofk5GPT)?ANOI(JjzH#{Zg$9Y?LJ~6!bRBK(&QlvVZjw75{}EAlC;n zH-vaZoC+m5LYPfGQwZNjlIJvYeo5r4GcP7j)c(pUh#qsDy zY=UmbLMVG^6*2jlP?|OC_83B*TE-ROJSt@0b|>Btocl7E(%bAqaxQB{693IPX!Bp` zJMUHtU2w1)`=D4=)dbC!et-M79M#TO^7cpECDp|ZgmX}r?d{t(o3@lo)W3~S_Kx=k z=0DrqJ=fd$?#%%0TiFD{F&TjMe4^S=D;nbHvXrt(#mbH*nc)R+_=(Kn#_4rAnjpa6 zkmZHXZ`e+wc|y ze*o0ML(NHp+zb0=_C#qJ8qE>3GlI$|5XHGi8Zz-54rQ0vAe%N+PvIR>6BDpjmD9G| zUN2L2_l7?zgOK|>ZW^`O)U~Umwqf&2G_f@1kJA(o2=xMjkz;f4BHXJNtZF99TgD73NP?2u zf&R~21tOsw>=v|>3^uMez7E*hTi6zq#_^64a83-VZVl%Rif-)JY#iAXx@9BiLeqhy z?xPkTQZd>SUkmK*w6iVPZQY?dTvJ_F={fqjfhSsL*}awgyl|;(a=DoKIwn^V!{GgT zzi&;<7luJ0W3!>ctSWAsP@%Z2sBi{?aheEt=Bl73MEi~ z;0&kLD$z~-alHSh_>;c*&2Nt5bc;Vn&zzc>O{dPBIdx`ciz=zL@Kb=WUs^CkNv%Vn zb~;9kSq$=FN5Y8@YG7PY5;~LTizF)ekSFujg4=0?mgIP>=Y#onHuJ$>%=lnyOBq2| ze(hnh^BbI7kxVW5&PZe6`*Wu?q!LuMrPj3W4+SVJELjb{qQz~qVbogG19D&G*qLPn znRK4~3?$q^$Gm&LswedXhU_$8uI3w()0wc8)m;m>l=xd+vTqtuDx!yT7kMYL(3;Ry zN7pQlCeEs?R;Rlo960`38x7iH_n7E?$G@AEQR^vem3Og}jL zyhS*h3vWZ;CYnXRl91b^^-CG6&{ssVbI3xRVZNweS(Jmy4#NqTa_Ad3(oAwVW{cD$ z!)*{X_GRL(0hd)jq)i`{<6IWD@upS!6q{fT#~oA_aM??FOZv$}tlo* zk(*$9-&MdK<)>VW9nKu~N~d#B18 z+LuIk?TC+6?18+#o`m9R+dE^?e@XQHgp?QdkgpO)15*p-Mk$G&?u`#uepwB$+R`lng8!osBs#64fItKszY%&{XmF&jw!_o(;ZR!n48m#_(+L{Ze=~_=du>!FOwTHu!!yJR5w!;-AM1zTxm}@a+rF z2H%^)v%&Xg!?VFR5}pmd{o&c*D~4x-@6F-a;2RCk2Hyeye22kzTX;73ZV%4}-&lAy z`0fbL2H#u4v%&YP;o0CD56=eQo#ENwI~bk~zF+gtZ!!1|g=d5BuJCN|y)`@=e7_!^ z4Zg$S+2ET9&j#P!;o0Cj5}pmd$?$COP5I|vHTaH(XM^va@NDoM3(p4M@$hW$y)8T& zd~XlW2H$jeHuz42XM^u#csBS>`R8$i?{s)J_}&qo4Zbts+2ETA&j#OYcsBUXhG&EC z-tcVjy)!%;eCNWm!FQj3zSH1)S9mt~-W{F|zVqSP;JZIO8+?B*JR5u$!n46Q7oH8i zQg}A_=EJkWw-60^`fLD}vjT&#k`)+;i&=recrhz5AeXWNgR+_x7?|(L3JlImS%Cq% zoD~?PE1}?kLAsh17^JnVz#v`A3JlWsW(5XmJu5Is8(D!t+RO?J()FysAblV!Fi0@OYWCaH4Mpj^uzAq~Uv1qSIeS%E?NY*t{9{ufz+LHb*vz%ifavI2wj zBUyn#`q#1ogY>Uw1qSIyvjT(k`K-Vo{To?8!vYeK9LA zNdI0|V37XTS%E?NnXJGd{cKiXkp4GWfkFEBvjT(kx3dC+^mC!Wv8MkvD={c=`dkp7QZfkFB|Wd#Q5SF!?w^sAx3@u+{26&R%db5>xG zel067NWY#H7^MG8R$!3+uUUaX`ukadLHdoXz##qKvI2wje-8zYNBu!oV32+@D=cggY*xx0)zCWP~dpfKhFvb(tnW^7^L6H z3JlWkW(5Z6zsw2@(tni|7^Huc6&R#1X9Wi7A7=#y>Hif99FO{5R$!2RKPxau|L?58 zApL)`0)zAiS%E?NN>*Ty{_Cv3ApMi9z##o$R$!368VVeb`hT+mgY^H)3JlU8Wd#Q5 zkFx@U^xtF!2I;>gwc6IU53ZwewxET|u$oQuAhWZ1Jl_>de7+V%(dV{qX4IOo{2N?1 zN1K+X!&zTG-&S(FSXJRP0R0(mk@ z%gvw}1++@z>%`zo8iw!@nHauI$R9~Q8l2XX%?FP`Ga8Hc%KWa6 z1K&4$^V#yg(c6}JR81g0R7EWDCq6Y;Zu+P<#=q0QC5`jV4 z9G=djr8++`1kU9!Qhh{}nbABh>~-d8GGz6}$J|4%KHcqg-k>CUnJVrfUj>lAdu=E> zH6D*Bl1L|Rt1x~pfz=x^iHIfedbz^YXL6Oj8O*tEdtz0O>EB)D#t%ErxHBSHYl&2y z%?9&UTj%cfMzkv$JVHrr1yh&iKbCG>sB91}+g9>)E(OQnr3#M~xKlJR(C5wMoIWr;nfMzA(mU?4tGY(m!wVQYM z^^q2Z+o>S;tL1^aOE443t>W*i%Cgm1(wXoa-O|#*OFP?ocxk70aVzyQ3b$`JB(Cfz z+&+fnNgU}lfM?%sO*#cguqk(pS%UBHy$!w!8V|%H628g>hI0Av2jX~mipMkhL?Udc z;Cf|@#I-D+PlB|6cf9v3d3VTA0@@n8XTL4h4(yJPxy0JW_@yJFy*p$@+8@9QO)*Du z0tT8=&!_aMkbqIoPiGT#pk<=&XkXboY-R5VoeXF2NcO>T66stJ0l{(#aev;3gPWv5 z0DM^ehZiJ9YKt0K3*2^av2xWGI@XBpY+1#-@~e1P+bZ4_M$%~&$+@+iWh9}~Yrc*X zElY7j`{ud9HqTT`y_?(X-E8%ax753(z1}TW?*vnn^iAxZ+I@U?^p2K~KG&X<>~m}c z{+^YO3KR0leY>y8_*;^+DO(iZ@9|aRnxx^FuHjOrU6G+Gb&l(E?PzpAuw6P>BM4_9MILoC|nA^$0iWsn6R?aXJp<8v|(3go5**l1bfhuYWpAzR~zIt}~0 z3Hk&hOD^AfW2w4k;^`)d|B;qX9&TfY4=WmdV0YhDv`RbcKJE0u$!cRwvJePg%B9O5 zv=xqrBpcu5isYynid~^x2Eipkjq~xC|N4kLgGCxXjmSo7vRuCN=!4q;Nb*vt^O zqsKI_kwi>Lvmf3ab6J?AuslT6*YdiQ^JU1u4odblt84k*Kio2DkGHSPtJ=9ux_7hE43I_tBHP3#VK5{6*PgYo+ZX$_XA|LMz6Tdozv}oh z`pE9BEE1y*1D)ph=-`Y7;L_?FDB46Mlh>aw=xe!0>+AsUkwoiJay^=_7p}L$z`wH=o z+z0L+Ob+mD`eKC0W(`lv*C2}r(&j?tz+1`agPnmx2V6f9-B}0<f{aZEEbTQC~DP zB^Pe88=30kh4`bcdE(}*^upRwy>t|?`p-}uF2)Fw=-avKR@PRXSe{wY5Z3D~ z(JO_3Tbzp0!nO|x?vZ32!eNtWXHWP*jwVZC+Xt_Y#*Qpim&@5#dwSw0{Iba#?%3So zTOx(H^qowLa#Q^+JpqB{DMWs6G~0T+F*@Wfk7Neqk}sfqZ%_P;>(AfTDb`7O+4lX< zMd8*gj7cBNx@=(6lj~9HZJ!XH#DPn_mWQCfY(_XcsfBGH3`U1@GM8Sil5jIi{G0=_ z$(C%$F*voMqMWt0K!nrr6|zv12|M9_lQ1vgev`H@h=KA^rwO+`gk=LwS+?dz+Xs6w za9JjL@Te#39G9KGt@_QxJYfBh1o9Zfvi23TDQx?IAgigS*l*UcMBUmO03w^57Pfux z1`K@no=C`28hfz--M6h;8ciP4)Ri+?=1T6h?+shIJ+Wn58$(#1BpoBTa~I|$w=Au> zC)+-{H5z6>w^>r6gamnEJsDDKg1okGe>ob^Gzm$x(HpP1{^}gOYDdstiTcHu18(*P zu7N$Kz2b1xH+hN0_;5B~9Fc76dS5j7u1hne(o7OP-WxYv-xlrLR{2d)^l``FV)y^U zdtLTPbkMG-Zvy%MHU0B&@*TZ=S8iDj2`0oQ;ZuNH2)~MKl3A8`es{I?@yX(Nu)u42 zQaElBC7-eT%Q=1O4EB;%9sMDdC)jN%^BW{x-IN>Xf}wy%+c~}6^B%F zCDF_hi?DNK^xp|w+F?h*tzHn)-ILrwt=$p<=w2f(5OQovJi%fDj{I0DP2PdoC z1KNxu9Dd37QhV}sJtAn;5prrY?4+)LZ{RO!D#+sC6t@938(cR@6!3GYJ#k)Rt=6c@ z`RtC9S&VLu)03xWrw;18P;o^f;N{+AISz?z?bFpL1*HvA<>^(^WE2y*mxMTS6r9`P zzLFl7yHVwQrQXeax!REHXckE-Y9}mD*Y34*gv>MG@)Xiq0NgGe%kGRnAIZ)N9lB*A`vnA8|bj7qo) z7jU4+f-8ns8c)dYO+Xw9P~fy;5j7Y@W^y-z|I92*A-= zU9-mNB%x|luI!s*85ZQaxs($im&rfOez(+4fpsS!$5j zkLy;Zxy#cjdS};Ar^p~2eFXGM&c^8slg#NA0c0+Jv|>*2$ck2ha84#O93jRu(e&7# zu3MYTq}*x^0i1QclxJ&aZ@=wKWzp@7FVH1(MDABVf4XB`tLNk z;oSP|w{h|PQAk-O9VQ)l3HffHtO7GroXa|#tykBUN!F3;lgs3<-KUcq#AKt30cDa| zA+Na}4R6Ts=X|psl4I?lz~r6#Lscyf*vLd1e>Q%AAnmf9(4@?}5%lPe#8AJj_KQ8_-g$6f9wAI!{=VO83*83F8tQtD8{c}v_F3%-W@&lCvUw! zRQm@=KfdO__kWeHCr2uyQ4?Xyr=nk$L|j7XF|okk}5#yFK0}X+osfZ)i|iu z896k}?W&3{n$fM{gcL*!%%flG8jYeuG<914OFpJ#k<=QRj@=0zOoSusIr*bFu3ZaJ zQ~ZG&J8@3%mW&_TLPlV98a=^<(AzV+Y>7-BN<&%D8mHtcYw0jaF(3sn)pf~kuvo1( zn){0B^$Q~G+><2%MJrewd1DcSTWeZLDkzx@BuKYhBv`3pDh;P;>W=CAzbOTRufE#-gv(9Zh4H~g#LlyCp>Kf3jw{no%Q{f3nP z_Ol;+?9{ve;;&2jum0}efBoqf{@TX`hL@lI;>Z8apL_WgY3FlSZoU81AOFiYNcmsC z>&Pp=ao`j0mv7~pD0x2#*yJJTr60I2tSI{a@-TyeS$m1Yvdb zoEwWH6-4@>hHOHZuU@T(kSqal zoaP(@R@oyJidTfvh*J{z<$w@ymnG0IpG%J?8Meu&Drp2|&pLQ$OfQWR#9AQ>pD+Xg zlC%k>#u|GfcVyOpR~`rK@pqY}p;>>CNSysF^qs6-ZV^5oOOM#S>w2Hj76RGOWVLJw z_u@zh?Wd6m?an6=Q83V~tfdIWgEYSy zr6E)DK;`IibuHfVO)_rZkR_QlDlNy+RCf~fmEiL{vq8X38>$KaxePj#zhEa}XQe1c!|5-fP3srY zSUNX1w_4-u_ZmquKbfX-rG__gXXbwM*(p^zWBO3~=Wpst`J-Z-!*!K2)4NpOL~lT= znOUl?9Fpq>4jy!Mf;R%wf@BD}U{iJQ;Av-?&Q%Coh%m!^8)6#B99Mm5`cS_NBf2pT zsaRDVmbs9P%+@z=hD=a46MnJgW|XeXxnaL%6V%*ldbGO?Y}B#4mF2L@SO|8o?kH5E za)o3;WV`i?>Xy(CM=TpUJexz04La<`N}SH+XL!!cCM9viH=wfmp>Gg&QBsk(UP7&A zmtLdCeKhWo(9fGsj0$@c3NbfhsvTH>hGZ>p0L@r3 zUWErmi;8OeF%`)%0`eis6~MCPL@8fHnb61@b`~%zKa0@%vmq>r(sC)QYmvwtW=8+7&-KaEvG|ysB6^O3RaG z5fa*3{+oaI?|thAPoYv)NreT9pS zlr*W7h5^9jqz^G#O>PEAsJqfO=w&c56*3RS=zAEtnuO7U$g7oufTcr_=x{(?EIlCO z5foGzRfN-Kx{T0^g=DpIi|A6iEBgCyV@(S`u+?l+uxxASUUNb*A${6Lj&K(LASDY7 zG=e+@P2{hN7{?bXNRyIaOgAM3PK8X7OYusH{irDEV*QRVK)7&q3rNHuk=rE-lBijo z;E~bk-f(ugo3?6nNp_Txk}cYjX_E}!DkcuouG?6yWpGQkLEFS3;ZzY`bElAPbyZ5sEe#ctowMNigkE9?a#x$$zViP3M{{{=0Z1w$#5&g8H$Ff-xLyZS zU3;T$gJcUJbchdxm6!PnOHHLYv_&zZdmWMHv&F=f z1CznR2%UtM=^ZoDK(31F)TJ)s`8WGg1iX3X{m%8gk#K=s?(T7bS@iq&qSkkUZ&yET|;?m_v ztYIAO*^vUD{we%WDX0WD3jMQ-9ApO7K$p6f7KDVb94K3L3<;))$}S&$3K5hVFmOm{|uYs$6y7OTp(w#+Puk4{hMq! zMZAo^gbG6`;%Br|cnCvL(Fp&Vh&q93UM#JUUUl^%9zBF%oMw<3-ixnny~1`-;#m42 zT%IJX)f!e42u2n8oi%sjGK{+p!NrkN6moWA;=a%WHOQB_fugif-&n)TTQ99~lLn|= zYoY`$Bc?2QX^Figx`MzVjxxCqVr3qS9@EUaiG)Qn!^>4HVj^B`P(tmB81HMV`*j^K z-YaRg9Is|@ak{G7Tx@X6hYlal12SF7n|GNZcV(mJp|VL;=9(8LnKKVTLQAVi5v8)2 z8&O}(XT7#w$GHhnXsm<6jKN^ozffZiM4;L));_Kuz`w=lYm1HI+-dV|O$pYU#(P9$ z`$`nuw1d6HW_L9lmSUMAxYdOcn;zgOm-pWI-5s1N>hm$YVSI?RVkRq&3p+m(@Mt?I zn4C}LBL_)_gT+Hq+`d=m^40Sjb#$g8(Pd=GW0!l+=Fo#_2990AF6to?pBe3n(GSyi zLW9K|3ZE5C6;CU6C+ENv^-(;BPGy43A(*PW&b$G|IF|3Fn#>sZPw#aWC+or)q$EIE z5W8Ves&xzDyjgo9ojZGSa_Y>5Bd1Qz%$_-WWcK)}lNV;D?m01aa`wXX)X95hkIfaM zKT1yt6A?3@4ih{s5m+Ty%mNrRXs&3c6_hxIMb`+FFJf&0NKw=vRk-5<3^E$axhw2u zZWKqFN;uYtChCJ6>8{x8NC5dA86j8|=1_who)$XFKAL^!sdM|y*FKkD5Os_}0^lwH zE@}Vx*{t9Z#3~@1jzREOj(-(Lj%OEG;{2oK0@FN8mUtEewcaF);RUn;F_HtaQBHTQ zn+k*b96_edxfyH`b2nrBL!n`DtTN_dyChSqt7p~U>0-N5lr9S>a7560DNY+s-dkVH zFe{D@#DtE@_+=pEwYNrTG7X)V11Rqr3O+z z+8~$U$Y6062-Zl*ye6PE?XipirZ)$bYjSfXm7Pd=@0p`w+e3ogSB#FU7zjYJ@U$`~ zA=K^?Md9prbvC3;x4Cab(AcIJ(a*(1sh zQliGh8d7iIhnrF1PKRMD&?pqh-p3N{0X<9#DFMxq_B{JL`ya(>SCqLJ19>K#t4+Dl6dRJ3$1w zm+Ju+jN_#iY?~d*?}$;5P`e#*0zUCP?bmyaM1!!eRbcg-+QF*Z3%iwYX4s;LU}@>j z7+}>fjBw9{T67@vQHN)vw=pqN3C%~m6Eff%VC%SH2x%!bnbzEubvh9;c?zE3w1)|p zWq0_;0HW-o%O-~6v@mau6NPlDwMEA*RC;t@B6sYF`p0yMC!OF1V)Ym`?)xL%1kSc8 z3yxQnkvKjgGXu7W{NVa>J4|q*2=_4pd&K;>kYL*mf}Dt==7Tg+2%;(u+m!ipSZQey zq5T%IUOGKS*=taNDZqi&G7mCTL=ZyW~g+T+umJi=4$b^WxoN)tl9^to^(8 z-UZICvb^_SYqCQolTZf;8Z_z#f=*zv7%*rE0dptO03jJJ3Uv0)%uX_9GBeDcfsBfb ziY<6KMGGFZVnIQ%2P;@;vBegTSTDsM=z*%ORq}3M zKc7$e_%VC-UhBO+?{oP*m-jh7)kS86l}eRQGjn@RjBsp(37#^}4h3(K%S&R|fC~n^jI5DIR z@SvShqq%T`M#i%AQ}c>MnlxtAEMA0qF^+5WGjOiT)wtm#$wkH`9v%mVX$>~MA{aE$ z&iTCFyf-&udS^&XuzS%VrKa0Vhc}P23INh{0`fRea^) z2(tQMFQ%1y51A59q&JfEE=%ib!ovt4gHu}s9s)PYAcq9>Xx0-B+K$HfmVvTFw^%Ty zT!amIFU@M#PNGkZ?PDC9DFK6V?qvqZkcnIAkR$t`TxaAQTu51<#ez zPnYF2TH5L0FD2>1IA@nH zr*B_-=7w!+T`3>T zn1BufTQEDwwaC(A=A_pwoSmUuXbh#qXheFv{cGeR=fjZ7-?xi|vPQiVfrLUTk-cng|Kv!+$R@<}?+#fMCX_7)RxI~)48=@doH~q@Ia?)g4 zN6`WCW+70N3aD-$_>ka=UG=f7yJ!|A`yVvv zpo@4jMJrjAGCe?<4*!a}I5=qSArC<$6no4Vx8*XNwM$I4^E))VP=Q!LfNc7Rk40*b zWSGL(mH3b)UoIcm9raykdop8YfGtv$LTe9n8FB`~ zMw73h*Gogmsv9ph58cRDtF>uUF`3KwnCf6t7)c$@HKTzw#aoJ|4y*ost@<6f$RRfO z_=?r_Q_#YP!UgqU6LQ1FA!iA?TZw1xSi5PX?*POpj}F5qm?uHpga46_!f?-HC)u6p73!IU5LOfP*smbF5cF}6r2 ztaW3(5jzW)HfY!m1Oi-ei@7vrrD=~iD~u4`OiWb_%t%)Klo-XYX_?_$>|Ax+-ZH^j+_eSW zTltcq$r#5EBNb4_sbV4R=D4on)b>bkjJ;AmsU0v--O^pTCkqCN{lRCAgR50bD8eE! zDPeryLPVgGIFO>RbJQ;E*)tddv_>FfPK(AVO{CFc=uOsyoF7ubF14fq0*JH|Mwyru zt8T)OsLi^HCi!ci5Y0yI6d<-eda}g)>~}LNluid#%U*(e9n^CK>(G9-bVMf>buT7% zNn?D3gDfFNV2u*pBLA~(H6c-$nieR5pbmzi^BeFHcb^#)!5T*7j5#A7CU*L@xt?KE z>Jw(UV!Z+{hY+z^0FK&0J@>-A5yIPzq%}&E_Y#^L@+iOIat ztSeURGltT3cTXi*{21Zol=i@E#0PdDzLKwlNx7W63_2~s#jmJh)tgC>T zVjRH9v!1PWmD7x?G<9N|EmP$YgM>$bV}?Ch#loVN!67b<_fp^kBkhIG+*?T(A|kd3zBFgL8i1A13@ z9El=bbEHJ z`!nJ@ET0P<2~s0x_SgN|H%M1va7A{WY4n=DaF10O;BG*wG17X-$ zPdbn@T9<_;1*;@8cSZ#V9+^JBy{NjA#_~Ihm*%UICP$(HfdZ=eps>QgG}eHzL?2rO@WOnfu5by?6jNVe zI~FyeOj?=7)hEE!hKe*nzoSvT0(;VU`XDwQ_!Bq5ZYsrC8ec}8BRJg zoHl4cmo0O0C09)Z;Jt-eoBEff6LZpgDjQ0~>}i!tSIu1qv-ket8fgBBpg zISnrwx{$AW9_JdsV&V#^O_ZgRbJEYXZ-5_bevJXx_HYx8RYCck{mXyzvwP=8k?7jo zbcqOj_oaWtSXJOxMIkJ%E;*Z{?dW&6+OOwKUv;dMaOwKtSmcloFg!%sc{$p^?uM`^*wZ z*ugXQNOpl5@G~EPu&23ID`Vj?yX>4Phwyli_Fj&dLl_0ZWh})mQ4b2B37Dv+bR*1S z473I{F^WXiX;lnXV9SQ=Y;3=!va$2$wWr zl%;Q+lit@=-NwN(*Has*{y@)c52^H9itBJC_B9{-NjCHHSjr7ZN$(53p_fH;BmD{ODEYD8_rg`bW;cGVCU*& z+m6pa_aozxmvml3swL+m>dz3}5_(-PIgz1ogz@rjzPIUyDyS_)jwCak^B)`VAbF4oyOPcQ8+y%bniADhNF>#whTQZGwkP`B9$faOH8=!K5yRa)O|cb`G6`MS}$=hgl|` zYNTlR`~^4Z3~@u}4W&qQwnW+ch&90KR}jKBZ775|3gH0q>Ze8~XH_6>R<*N}g3HO` zM~p>8b)eYdK&(8dc0db5-NSq+S;FYgs~eiEl0>Y92h;lkDD^@cQ$BKG0eF&?=TP7X zCNICb-u(g;AsQlFnAxP}$#kHG0BD0O1+s=<{ThXLT)h#ty=qll&Ac`vfu^7%=jA>i zE0Uqj@@Ufmt*BumrAf+EM*6XvoH1rx9(T4>;u)G$pn#6(;-4O1)x=sI%;I!uo9)@U)3hVyPSTeH396cQZU)LPs#%dJn>~`aEg! z2qwYmJgdd3o@OfvucS7>j*%fMOpZ_~?+j_Qr-ImqIvi5^FtYq-qF(I65aGSRn)bQ7 z3aF*>0xnWKAe=uZq*#VAWl3$i=1b%a9w6+w9m7EQ6o;gmyt*FEzwk`$z{+fIj9jDr zXYp6`1Ao^-THtz&IoB6qq&7{{7GuP>4NNN}P0daanQ;q4tvaLMDQL<$_wAWbGoc!=MglYvR`t@Tb~+g?_JdE?2_CHK7Y? zM$_?~+C@*NE5AWzV27yGq7~(H0_H0vJHY*W>Bb~z?rxWU!t=T%MpK5~pi9?F!?#BG z)}$f*8;wG9j$Zs~8f0ur?o<-dLu}6}PR!mZ>*JO6>>RPXg|gZpB08Tyet^r74O*ut zmNGUX|3e-HGK5}hhu3VI@aUah2Cff)A_Ex-OX}n(MAKA4H`=E8 zR!iLjCFyGe2bf%% zG&q%u_sI?CMk|s3B6Oxz6yB?K*p%zG(n>CEycp#~`(vPq3QNL!p|F01ph@}l9*-xq=59^?Lmns?6g(n;tz%g);FA=nbBM1XiX15^iIpVZ z0F*%o?`5bFbTaa1@XX7o{Ke=P{?3bY;pw61vi4X9{+Ao8@K`yAGbql$YFZ9`$chP6P*Ru4gIq8=-uZXvLnbhyDp6}kgq%u{F_EjLQT!ed( zzO35`Z2EiqXS^4v%QcAJb<~1tjQP90Kme@s(7@wX8nm6*$nr83<|zD5zEwkEjM1|{ zfmmHJ@WqU#9b^=LtvB~qkHTk5pGRpKMKRuan8t-ZptuaBA>Hs>Y4Yzgq^TK0irt4n ztvqYjE;GBfQ#(}Q!#Uz`hpiA0nhaZ&VYKy&TZBW&UbE_61l=U{)Kc7w{85W6;nbd_ z(@PWOy!}}F;-uW~Bw<5*;3&K*_j`Llee(*PT;rOqQ3=Iuj3LP4(r2qV5REaecL*8v z-PM2dGL1RB9TV*1@S~DgPU9}A%3=HBQy@by(ZJ`hUJ4EstmY+;OfzcKPoTzv-^&nY zA#$!R?bNh-{Pxl=q|q|f`XwVoY5Hv%#^A;KP$u-5V;9v3L#t(tS;jg~ke(4VZn1so zBph`dE$o~GZAo7tr@|?-m`KnWtQxMy5=1Go+E}j%LJPMff9FT&(85wnKg~KmrTTD{ z0pM(bGu2h1^+3G`jYW&0j6p4z*pWg!F_6M>G;>p4KlCWh*qDkHcRvp2w)6{Q^MP3O zWTX*y+PWS>SP?u*w#q2AZ2Pm-z8Gw5aFVQ9(0SE)zf-E~x#*gFf6ES%xWj=3m>B?A zb3tvrWk0Q2WpwF(xQ6X+QYlr&VqAF*!=2U|@$f|&8HSJTgM)OGreNm7bX4kK)v7qx zZ~=?=Sazctrm-6~-yH8LZ65l*X&)@WcFfA*0jPQo)@kL4z$JsdUT{f;W!NpJrS)Zd z@H+Fh#s-mdpjC_l6E(KKUDXM5fODXwf)Sy$25^qqGp0jJM4Nse=e5Cy8N8@^d}bvi z+>+K#1WIKg&uA!{))JtiT6*h6`#1K>EVutEH;`ySUM)Z7uzu(%QKJ)ydh zm7Fw-(`VuASM0;^JN*XUoxn||Lu>wP@@ArKs z-%xH~EyZ#QHUS@n-+9%BX0B}=pqaH4!gY15)QVghV%KgW4#H+IDMDg0i;g01!F4fo z#8F(h0#Q2y*$Uip6GKd2(ULfCZhva zWOXmOXS7LZm|1>QcH~qEwc(IXVn)D?QR^(qg;{v+I0ivD#Q<`UJfSeWu*Z?VeVQyw z)`jNk31K;UYV3L!g|2Qz|0zwu!xa%jK-4OzV4R%4@W?i^#d3O(TBO+Ego&oCC#eP& zTrVCHTmeV1q|H4?#V8SD^Tua9$e4Rr;!jy}{|ujzPq`FyYes)rtp=_f9M1E8 zcPR32))^i$>kRX8%X_{z2l62}K)52zEb1n>76ymckL(MWPMWydy>M2KI19tFg-4yN z^I@CqB%C5krj+aI3DegR!HcEbmRN9r3j6!_pCO>M&7sWh#W%I>j(?x6=)%Y6A3U;AwBmYbmY*3@X`YaGv zQGe`!iI05QpW*1X8Ha6*Z5kOXjWc?mZwx z5BZew6e~4oZt@O@Z7Xn1%OBa{qK2sfWT1{k2bqAO*rg2UFnD`|H52X9I#363lL~&bA}{2*U1D?aSdf~|wG`Yw9FGkAdYM6uLh(RVRK#Y~(QMbr)_YCxGu+Vt5ur*pY z#w>Ev|;_JOkwOa!KD9^+kHwyVtqFs6n+`iso zFIv>O&)8a!@e_M;&K&>prNi+8l9l%t@>*|F%wy}i>By3raSj`!jwbjRPRBSLd06$cejZmv(!54v#)ND8;2H<%mBNv~qh6fq}3z`kbX+PYl zw!rLN{~)K=(`-1j`G7PCM88_}`w4?mKwkJ`a#vZ08i_Ki>iCDjuyB_5503Ru>|=d- z0B?m|+Ou2w|FFJUmaRF55GvUoK3K3!QN>3D&D?8g{1fr_09}UTA#*UqZi(wkBOJ@R z948c+rOEBm)u7&KWqQnpTrM<@g<~^m&tu+Pl((uNwq;THe~#OV*^FpCBI@Zm6iLt+ ztTBBMi4tD7yRqtS)DqYC`b0O&-9m$O`eNYEDM8!R?-$j!=KRIBZp-jSRAbjrKEZU_ zH!>Y8VA}<$PoTO&jZrOfo?{Ph?FF5N=_$0^B%|#h4r~z`^a=nX71h3V!U}ZC zfU>Q*?J#3Ja6M%Q9$+}R1bk}4nbGkI>yIh!02g-z<&&a`w^!p2Tnff7##W)OLX&D{ zOZARDCR)0={Zs8ztzMRyf3@Q~^AvdLlEtEeFcPA`!f2T_Xk|4(V_sH9%qWpk$EH}!&njNNOey}kii)OZR zy)c%1=t**!@bt5Tu9b(Ii07KIm`73t6IDd5m8zAo8eGNQdPh~VaDXk(5xO`YHAr42>2WD-lmbUV{6n?59Xg;AvL4fh?LS1EQeRI zd5*Q$Ys<3q;!671;-1au3ATuG z4;I3=tm{dXUj8e$2lUP^YV;xd;GkZU2le4ETf6xZ_|M`}k$WrFo4`b3ABXz|ZTq=H zLtsftJYTAuoSA2{8L67- zh(4rhVHTz1wB&#Wdt$BH=Ix{XS3rmYqk_6V^zG1}186vg|&Mku54L}ugpKzVAZ zHY0+=tF9X5I8@lFsb2*e5pR+*Z8z7VnpbduLMQ~2Rx2w;sT#sio$Ce`8?$M~*J$R* zK|26S2g|i-=W4$Kypqg4nE-FGEwzCs$XQp=FrEnzC7{Jy-YOSgeHbAj5Q5rtB^OtoD<9Ng`C~%howB|k>;kn{DYA>v4KaN5A13gdy8%dBTs##7AC=+HQ-9arNitV_Xko*B6m|w4#LxrC)4+RZg{;<}{MdT^8}9r?w8UeZAB@&v zD`q*kU-VwKc|$OC&W*f=F}@K!coD%ag?W`*CHc&NkismUmV*Bz>iuAo2J?=dvQlrC zZ-hDZxvi)QZUWkx_&Lmq31n65Z)TU>Xh$r3;yp~b;?a2J^|z%pc1$_2xIPv}bJnE< z$LZCtv=cEFuZ1sFr)P0p%jbj4A7j$=*E>1d*h0-;E=Yp_&>g`22GmcMURz1iG)W(B z?@YQ}1ClkJmOi&{F23L4yJ+L@{FcCri!9b?R0M0Pn(GT{Bj0kU*bHW=Wd8ng1!@x= zhLH-OiNgpw&!>uVhhahT0}6g)V7uRRbf@|X=%K#R*_+vw&N12u za!A5aBtBzeY*L5PKXo3UKn~ZT=1Pd+N(ZVRn-%qe3^@Oe2KxF^d7T{i<^bWavY4pu z4MgFthugU-7BEbARF?c-2B$)0(*J_C&e}R}>Yv298!Do4sJ^S={4^hq7?J(w^5;rcx65FVzDg(=Ia8xQPb0pRMNTWlAdj$WRTRhPo|yQKFx)l=aBsnKw@o) zZlm+MLL7N^6iC;#H@}+$P7%~KRL?x!2A8+TW#%tusMBjvPGcH+Y}AcwXjs`2R1H(X zlCg%WH$u+&Lv~l5yxd#MBMxDJvqVmBDI!@5)YuixX@j?s8nBZW>$QW*g;P2J#q6hb z?Ks<22eB9GY(`l5|7B<0I}|2>;ypM*s@a;AqIQ(;D;0OmR}h{TR15)&it{BQOJGFj zIv5svY0tChyig!H0{u{oeQ>e#wC|_B-^r^$cW61*SSZbwXjF*^9OMR^KOsHH;9@M8HgiLfZnQ<<<#wY^$XFdCDvvt zc}~=M-DlZRm(~@`8^DSfTVVpxGQQ6|t9N54;lR|x{S5F?+6Z;oN`XnT{!D6b1Ciml z;3ELWl1m(YKh)pO(jT`Uns7s|Kgx~T;ZtX~eVQ~BBtoKD<0rivU z1J0K(tF^T6{-X`TKuQM&xJ;B}&`2O>Yt*8{ETIR75PAngCSl7}TR z^rH=LdT0MeBLdOEXr52uf>RtZ(i|Ey8dIPGC}`d6nLBl-h65ZBv1-feDKRnKqwDTa z{;4-PPV^eiPKgg#T{flOZnuYGQcE{mx6tmGvAQNMuPs_IH0Bo>TCCeT)XqKo>MBGB zjUjz>b_C3C{KJwJ0@VlX9AQVLt$!|B zQ~WxO;ZBtpt~=O;sv|K2n?{Z!>W0UQ2GqQ~xytB4|GBNyK$HxT`l zX6D|)^4DUTew9K2(6ly1Dbw=w%z1ie`+RZiYbY929`JOY@3q)3EZzrU&$)Yv^IvyB z&Tm7(w=BMo7hb(Fr*MwBUD=moX2=6}g|&&NT-PK@=_of<=03(`P0X|`OqSkWNe@oj z2T+*ST8La}8YVcs2$AZEMxE+FOX%w&6#z0T-NoJ7VR@aVpVn!70;&($Pvz5Eo?(_A zGJg@WzrMS<6~q?VA3iNys=v>~26H>`a5i$`l(xAZRMFhWgxGwVVPQ z@s1lfx>Jy&1e36k6!B)eRjxSO2CZ4*z1E&4nrxr8(ef1XA>_)((+RUGUWxBu?8j*v2APGYFWTj0l*p{qI+D#oe@nb#hbvDHLWdD-hxC>9WYfIiq5 z+LfhuR?U^oxHv@i}i!k~wEx^v)e`OOnHuZfq>NCQ0_U zccwe9=liywtls$HBsn=7x%{)YC&`cBcl2NW;O-=O#kXJcu?IevB(Hkwz!f78CCQ<` z|MB%-{$`TA{HTX-UHttddC5&zY&{L^^_$;%-c{#O>gbXW+;bZxCz9P)-7)WjFG-Wh z)4u$rpKMB#{f9m8jc>dlO%^Ws;aktWI88RZ?0bLw)+^KG{dewLwBp7zdC717{^76r zGv533XK&v4r8GHl@ekKL{G&Aa+Jd7Ge$}G3Wbl25{P+tewIv_j_JMoPeN|iX-ba?4 z{({TflKYpQxqIV>+mfGM@zJw?@IYH~>$g9A-5I}ZOKx0z;stLyeopesn?Aem&v(vA z&R_70x19K%Imt&p_Sbt3{hwSu_uel*?^>c|zw(8fkNEM~m1O1DH(xdSUn|L5+lUvte1|MK{`$sbjIw)liM&rRO+wqM@ymA{{x9D35qQx~l|D7pELV^3f8{)3X2 z?pi+ozqQXx{$YZ=OuT&;dj3@?+5deUp{v9Jr7*mp4|1y1&@8;XYI-7zxs!- zed4P5$vY>GyJh#$9m&A=zj)Rqf7y||bpD@T^6BP+WPhXY>pwhhVRF;FAK(1P|GY5S z{*&i@`!j!WaPoH-|Jmrb-}f8I!QVOb4d4CkXC;d+z3%cqd1GhtPv2|&^NDXeBsp~O z-%h;n=0lU0{B+&hUjD#g$=hyz?O{KE*5S$Xj;r1Or#qjW9Q^#3-T&z?JSQ0%`1yr< zw;YkY=%~-Gef~F|n^Z3N#L^3|UXmPr>YIP^-!FJU^0`ZwOdhnMn)Dp@i?99U6-On1 z@V4PA-Z-{2dDA`bzW3vIzbJY32Y>!ge{$Ti5YWOfAhg@ z@85Sq^1hDuzWCi&u1FsF`Nuwf`9m*D{_!8rcyz6q`{%LRX{RSEzP9w;C*AeRyp>5oA>7A zw)ful<{Q?%E$Q0y@gMcKU6XvSe$%mEJM;Qv+uxk}ihu0+a58mv`r(Ifzdc#`t@Pvf z{r%lZ_1W9^Z}`OLl9g92{nM+@c_B4_~JefLa&qYgLn4~v+ z`m0~r`_j(z{{1^2eZ#gR)7qok@BjVFUXotDtNZ+C|Bp>+=Zm+#WX*XOq*Jf_=A|E4 zc5&MCrcW$?;?-BCQ-5>GyjQ0;rnmk0kXIeI;?L4GCye)-KL{rXD@?6(3!C{M>uyePQ%X zZ+X+)gyMryl&bfu9}yy@koX`&WMNh(A9#dBN2;T~qzN z-$*+D;=JGJ_^oFpfA^Z}Z@csI&g3r!KKA9#s}4#2?1I`CpYy>(lb`kf@DKm?uMbNe zdc1PUYYsj<`Nn%LZELGNJLx=i*C}8B>~oT@owj`K`J0YN9{c-`e*DW{eQvVxv&p>w z_4XynU7!5M6NjAtg5*yxJod=vuBj$#E_-C(Uu`-n`P$7F%sFg$Y4Qi(|KSr){K<=w zMMsVF|M82KB?Ir8I_-DvJ}$Z9w?6dQCtk-@@sIc2^Lx8bNdB(>U%q?dn^q)`-~RGX z-uc%rOMdXqdpl3xc1p7D*ypZZ-SP6Id+CwKSCjS0t-rhO!9PCf^yI$bFWr=U?3KyA z_aAlXX`|bcYI@mKKfdgoZ_BtZ@v5tz3-|e)t&QxaK#6ACHK8x?q6+r zHiUibYe(;WyqP?>>gsRqKlydZ${*Dq+wm`NN^Te%_{8leye--M`9FGa;PKy0lFPqy z-6v1EKIxqMJI{I75;*qPKX&=1_uZa6y70;ce|zuU$@!oBtINK61BCs+J6?9fDGwz* z4_)y1k{iF7jK1QY=RWIek9)a{U;gse`%PIHLaa$a%cCR&T%#knds;@53J2?Ydqf>z zG}giv3?acG;W^ALTy?0h;f^SK&>)OZ>e&MGkj+*jCV0Ihr3VS*HpCVs{=nT^x5CB- z2LMs{E5f{1B}smNzLMooWH;E8*4tfrxbRx?R9;|0h>Kf!dEchBpQj-E!7#;8^$N(w z0`D*sSOlAV{KY~)07H~m6s+N3F>1M3Vg_LKP%yO(&+r!wG-*}|!P+;t+~aimR#~^~ zMd&M3^pWAf@>()qyz!dh@tk$E90#k40(p|#Xakc+qYqjURxnv2;nF0nlx>{H1)*!< z-e_3-pktF+vZs2qasyCKEZE14W&ji2&yW`gltW%$1?XwCqvF7^_g~UhvrKj!P@h= z&&L+kHPQ%!<`~7!#*wT}AT_U_%OEu=mV%3sWN+fg)Qv(p5m;SloIXHWDi|fu&=&Iq zx&MleJ@L&0kn~*a8&A6SE5G%GPgb|Y3D4i6zt?*=(Vb+tw7X3d?L?H%N;YDB05l*L zmHQ>sigh6+k`!u&#kqql{Q4J53)P97ewLXo0bUJMYV8aU_{D;G{vj)_5i(CN7HGr=D8vDt&oT_1OCrs$%rfXRj~Iz$sgw;Z5=o&Dtkm zueO&M9!^Iu+oE##(tyJ*)sCkmvgV@5CPE{%Eo~O#-)?!U|>Z(;9Wx$mu z0RRwJQB^({k`}YTLE{KoOp4zqMCB~jw-lg|9y$N;WOWF4;WTZdo@_In{>8R#aDi8l zpCT{WYzYc@d?RuYa5}9h4~u^(IiKmORIQhi07n~d9H^-!H{?xO1GB*+CXJ2(4BEy&2Z(C2DZV!AzQ3>TyILCyv@Rz717Sokrx{~ie{dIak4|j11G0w2~ z+-_LaQAId2r%P|UfU+I3#SdY+#&zSH>P`ZajUq(bl``+wR!gw9`-P^ojld>iPcDJN z4;J*S&>g@b+bm1SZ6BNsEea7)nt~QTcw0m+HYg%{;ge?~+DfNIK|SWfC<10TgtvG0Ic%L?b?*QfqXeEw07n=w4CN1yGx}UDFW{bnc}}~bV6APNAkej zOA)G^9o+!k+d8gojWLbVhld#C*HWo!t$u9XcFp6OhExO|s?~};$;f#7mi%=nVA|NE z&8USiu&t*LaZURW16ZFIM@f>$L73RMUS_*53{8UHOXvDok7s+2>V?80h^`MKJ4fl4 ztV8JyPhc}}$(HGu)W=Xf5=cNI=Co>UmO()Y!(3$5Y|0OWenbk@go@4)C^+lm5-p{u zE7vVTTDZ->)Hm1BmS_fyEmDf!p3;*vi zhaUgrz_SPtzTsdsJi`nhqGQ9E3JH&cRxMb;ixM9?d-0l8HV^Ynk(<=e(GT85pg>}9 zoFwg)(t1QDR$iCVw4Twrtfso5ZHPcuHo^S6=V)z?NVyq)gaYL{&_zsQSg4JP{@ktK zXZacBLC4)rOnq5e-c-y%d^@(ZR?Y$ydFS%b=C7XkKtT}G#{G;YUyY@^%}cXS)X1IX zv2wS_QCpzVWt)qh;{(sA%dV~U=C~Go3j*K$LY4cg8wp>4d0R;s$+3dbOHkSJ_~jxH zM!14&>vriq6x_77w%Tpm+C0@h@BFI8y4dfqk&(UZk_BAF=>P`=xhJg*t}K(D>x=TM zQ8)q?xtoVuSWGfQgLS)d@6r<$(K8#Jz%^2}$m@DDS99-)-MPStYB>6qg1=DrEt-SL z*(kZFb-Y;aS>~Cq+|zMGtXZ$4i0lf2z0Wz;QD`emKT$~!Pur)(vkZ@n4mB%Rm?WB}G_V7CR10OtB==F5Ne*6DCj+jZy4@W; zxT<&2o7y1jTTX`jCM_<#IQWg_pB3&LCo}IsXc~U8{~0 zd?;;FiGxs&@rBuJ}mE|dX@TXP(CR9pviQ{M4qh?~uqI7qyhl!Kgy4SE3 z?ZhQ7sV+aQdWqu4S&|~ZuTbiXxLqR%?wQ=%IC1%jC%x2SR+$c+B2V08ykrGw9(f>l zmOfNTm!<8xXh>>wUhXrQ8vgC^^sxKFf4Zf*m;R$l>j4i82@AkgY_`^K!9#ySo>*9r zV?`i!ge{NO$Duye%gnaXS=>Ga1Fq9DBaYfAS}~376!c#-FQ%PCO%@X8{Y0;{b)6-P zs}>{&c61zshx@8! z&+>pyMNIlsEHavRXd=A&t@dkqH%b4YlAc7M^n2znPO6rRit3-{pW2sf$Ali^q7sfn z&-LmJBTsv)TP|fGxXarDT(rFbz>>|Xd||kWpv*DgRl>6Utc186Co8-IW6kXR_1rw* zHbdxdi_VtSwYhQrM>!uNskNn>AiNQqrYPNV;;^fsUK<5a647kf(n4Rt&sHItYbq%5 zlAfF<$q~t#UQ+hL%{trar~&DWZz`MZ2fr3lLCGPo@b8=v8WB+xB1L5Z>90yPOa!knXU>(`3GtNbF1By-Xrt%{a zwqYs1TVbgz!G>Jx%h+=FjoBCBA&XB}T9}Yo+K%$THX|@VL2W15eQ3M)IBKe$**7>a z0LT$oS!}LIHWR5qDV8@a#x$sEG8UD{QA6)n8_0oDAxOl!su3{;UxgsP!o1?N?Bb2c zq;DzK!K+iqs`iv0;SIPjqCs2)6gt*p51IPOQ$__S0tkBMYGEtb&xG#pQs4)p2Z82C z=^gOAm@|NdJ~l!YC-u=uQ8e_^Wk5|==j`xZ*iI!D(H_RRX&Sl?JU$H+9YqYV6BywYFQ_i4e|9K(MiAGsJmD=6SW*;DGh;>OJ~qh=X8{9 zrZz(ZTYeyK8QwwNt~=ZBrAY_?{^PN?akEXB0a_~gra_4d9UDu$fGCO@X|RJ(25RlZ z_#R^ql%v*XrBj$tKuxv+VIhX?@Tc3?xsi^x3|QTKb`0|RTok+v$0&*o4!sJD5dj7S z-oE9!oh30z z*aN}r%aVJ_^`FmrW%Zj=*H)jj_Vbb*Dkfp0X-nQR7lfehLd%LwEcb4Gfz{6tT$Cct z0-%n<#^<(=Ff+!;kp)?C_kk==)wN{tVja)=I2r@{IL=Wus8HmP+pD4UtU}#d5L^rt zVF|GtQ<#VS0w@P#v&CQr&9in%2~9pTe?#Q&`M-YoH@ddtpFvHit1jjjp^Z*7>R!4Ij!Y^uho4C# zgWp2Yp7|0uCfI=A_YUV1X-9S&!X5X3>~Irm{TBBD6V}b?!68)b8XDXyhrQe^h+J6k zz7g@zWmyvRQ{y}+({|9Abc9;LJw%>Zd|_nHZVDD|635|wQXwkoV7j$jBpu+utuFVKJV3J&GprJ2;74>Lp_kMODxML&Ao`;IonuJ^#BF9pd_ic9uCB; z?SV3&Q^yNyxdy>5jR}iITJ``ZvvRO6O|*JS)(D3^Oqi3UvL0-)HpjP_eaXE(nQjVS zo9~%ze`vp*_2I{9{)_4RTN2L9*g{ZcFUqS)q7j*zvCfUVQMC43jz8-g(V#K&kFiP} z;gv{-9(NMX2WI6s+*5{+-8q{d69%fPb?xv(2D)$BNQ-lxuR+kw+>JB);M_vrk7#&3 z0uiTcwmT!YN|E$}A73+p8%_1un_2n~^Oqz`&LNh7hm-W$x#_;NvUR5{Nh*n$9oT19 zT4(1U9LsjyVuTz5PFzbWwk*6RbqRDoeR%%!6AF+ZERpEUE_|vijh{@(Y5Ugv??`dF z###>SO(>VkSzaxnLSzWdO)pLtk~C>N1O8#RmhAcBn?Lo7OXmhwA8$4{%^(~)^a5AP zDE?N|Ekc7-B?S}sc4wuQ2W2V@HQ*L-0=d7(N3L+%;E8B%+g$B+;@Wiu6xw9eGAt>{ z4mXsPQ)kO5Z8=MJhz6TLIkgp7)cSK|S67#*X=hpnYBzD?1|N3g{1Jm5-!ia_fDvVK zi1busNM{p$(_Tj?O;u~0z`V8MweVK9A}r;BZmV8+P7CvzWgT@WsdykuCPZVHqEx;v zd**_gi8OPiSSEHL@(fqZP1eW+Xm~AgJrP-*aUo|dqz5WJ3P~PVi`Q96hWj z>4z$gGfTfa{{=~Pqc~q2_{wqXJ?f;9QQtNZJN+ivFs*$^6<>ASGsl4&A=g2tnN&Erot&Z@IUFDbJIzT@nbq($i)ojo{{SR zI(q``tykg#ZM9vNt^iEgR{lErUO-Oxc^N}YR)^n%155TwTif!Er!Wii$SdyT8pcu^trMmep$i@Dw}Pgc!R_hUXfVP{Etk!HcX=44)&A% zl9oQVEA->^dJ`+ApF2kGOs5XKT;Z1uy>@$T>Ai&aH0bY&u^p8x5w}x6@k2Y=5BANr z#u$BhH(z+~DNou}*Tx}KH5O)^Eeh$rN&5Y{>FsHf9Gz^~JTks(klWpMDXmd5B1wNt z|LI8`OOwUsV`--0-$mhHp=zH=DVUfnvdUGng}Nj?1Wyi*k#i;cjbsXu-{%xj$(I3j z5Cf|_Uz6H6;5=Tstwpj}^6`>$Wx@~d_CAjwjkjw7)11H}vF=N}x9pMX4p;L_jpS7ii}$=hNl;Xb5oGrn<=E$F6f*!> zlBUCj4k8@Ev7?mwk{z(9e3HwQD~<($)}d2rlAAk?SS*JWLWwW2HAC0|F^93Ie=#@x zR9aaKgvoxc7}{fdSM5Es7uMu%>9E$TlJwM$V>l1vdrqX78GFuo$Um=KLD3SsU{mdn zL0gRG7z|arh^E^u3vM(3-|e@TL&hEv$*yaX-lNwMNP6EPBI%VOp?|Ssg<=Q~q=GxH zLl0`Is5tU;9|1>_$Uvi`4j4vvP;>RUjyyCxmDV_lHPC*G9QNYZw!mRf2nyj{!Fl6J zh0W|_+$N3#MFU9+h|Cz!s3t*TqJe?N&WYU^N5nL$AeMa)sTMbeS4Stt&_^20t>+R( zx@&UXP*Xc-uyir7%5Ad_OmE2iT(@NBSMgM<;HnYU9s`6~cv*G^QpSh`a!$I%iFYeg2u=(ut;_76KeCzxT$v%w*js)LiU(M z7*-6;<8iZEhbHHy)ss%xo6F=dQ~U-ZYaR>j7spah!?Ydclwp_EHc>8vE2kR+8_hMv zcP8hglD4(2?f43eS4DDs6XKGFd#WL3cS}hzw3Dry6|E+%pDY~7J_h34CAZiVT=e53 zY}o8Oz@kfWp|VsQO<;*(D!8Yn^=OW#-h3A8K$b^_fe+b8iMt2Vlf*T)R=1WG% zre1#UA&H!AL37wa4b}CEt>R)y#g5SK$+VknFqriKKT^jkUnsSl&uKWFd#0nF%`UY)fyC^OdE84lU%SSJ^&m#Y<~5K&x+hFj#o14-?lTPhYYX84v1$dMvjp$2x5!#MvyG&<5NLBHRy5R)P z?LLH?6_cJ<4pTacMZoZlFTGJOZ7Wm4mVv?npS(psugQP*jpbdyS80Mv#UU7i;-CtV z1w#^DLNx%n(TH2!i$@o|mPs2Ao{gY^CJsuMwM{?4G}LTXuyNgCxP`h_QQqmNfY9R^ z?&wMuZrHm!)&EtN(3x=dGUl z{@-_-~*SbWC;I zUmn!($&RTSteKG8lEq1R6+um(>X`aW$Lh}Y2*ZU-P#QFVn7^b=5sfzS2R-_wowFU!-z?ZhN>xwl#j;S0C>St5=E3*!d3~oj1+i2m_1( z4dE@T9f0nx)%JaGvh=J2; zTHbcClC>-rsHmM0rh?m4J3OWuQMS*%0LobOoy+-5+@c=iUF(DbHO4wuBgls)`{03; zGRMbJS(<DdAJ`OU8*LlXhPe=5@PlqQ3%0tl{X=o zW3MUJdT@BFZ=@Xz0hy@o*~+M*`RPdJ&mmG9b<*xugf{vktfk1IZ0q2#kg(zLVn)ph zE&G?>?|7)Ag0d{GVTU08fYKV~Zwa5$VEheKeTx1WWsyWX>ArhMRTPBEPBvNWkilm^kZ|D zy{EP9qy1hFXFsuCY#bz-b;L>SQtIfGHV28dDgQ}x3rbox0&m$ zX4e$c9<%M6b>4?B=z1`pw;JOd)t3)cz3m+$dy&AIvalr{D;mJ z6+YHyD+IArmf)`9+h%gag3i&r+4vm34WkgAY-zo#THP+n(f7Roh~_%k?i$SYZR_E9 zYn-*)cq@0ra}u>2fHs5@Q}(!;zQ!f{R;@Bqe+w7F2NLPSsfRd?BfKnq{(?%O8I<2# z>qxTUkYPUA(%toDA5oaZEd#AzlaFB2ATh}iu2+uea9{r9>e#a?<)VL;`d(3a!c*mA zG*bYtLwDUd8=7TY<_5_YdstL*Sz38KAB|{$1A=xWHjhvq@Q|%lt5~0bK7SvrjtY=z_^QrAl>mDx2f7w0(T! zveabqibZg&iN>9&Ewed^?@U+Yfa}}UX!K#WYEd7aThljef(2}~{VP{$`PNLB=uC@4&87oadXr#B6tRbg5aACAtr zWa9#Se6u_s9>_-H8znDXp8z{~;gT&2$Q7RD?b5@+WtVlwhS;Ozj0MS>TnX!=cpl=u zvT*-+^P!HzI}}-HE=8OWkVcKmD^{O1T8Fu8jC$K?9zW!dsMFwe9HT8x&a8_X zn!&Y{oV@_&Vrjs|PceRuAm(gTr_2bY&s?v%C~d4S==RB!68JDQ46us+093hMRbE2} z0nI2iX3CZ>JT9#X0X!Crz{PCidn}yccp>=8mOs7TT((k*a&AdvD-^jm8YW%-U^Rida`0MC5(T1&k4LvD2a}0J|qO<@J8DdyB~Dz$0Ohm9632_mw75 z=`Q{8iMe0wNRsn=>)Zoc4zNCZqA}5^Yzry_x*Wrfz1W!s&u##9 zY<6Zy*?{Q*NRc5LSIjbQ0xl-P!yTob{XT$f133+5gPjMa4iX7nt|l|VzUmXs4i71z zDWAi~f!ERvA)Z@q4`OoQ#Z#}o^0u16r;`EPXxOn)`FwOmMtyXUTJP*G*6u5bnQrfm zl}+M}Y<6dRrLzgTa>RlaOAap?omfI%l+E{5 zv=<7mkwhvRrxsX!y`l&7C3daceONbxIYzTu#;#&wfyv~`Np7<#s(lMMGB5~B!NU9j zKWh`?yH;BDLv};S+s-U~72yK?P%a)s-rli(?beNi`g*1Q(TSZyWXfqM+13G2e3X(f zV_%#l;mH+^1q-huFGo+<=zYTB{qiDZq+OJIw_+No&*9Or`la!stc3rcO2>`0Wg-4wak*_hczm+9KEf%a5_(=K=@ zTcXoiFg4s>sdk0xBCs48awNLId9nU<8fen~kIe0HJs+*dcLT0~0VUq=SHgz$|lR zH0A)HmZbvgkGsRua#;ZlFpodos*kqrPyK+X)BkA znzH1`5l)?uwvZ_$#^80}fjzWF7B#IEl+c&aq{XgjQ((1nH$+55&xFOKjaDfKHn)2i zE~2B(3KlO(4oG}KAB+H12q~vtZApR*4lX1VF;>VVj%)?wSU*WOmP|<=Gs1&ROS{0$ zWCnbnXCDW;P>EHI&B;>SS$_pqsI$a?hUB?Ik1{q+EikKOG0Q9rzKi2UIx=>w4Tfdl z9`OYpV-5lmWXJu1&r>Xeo*XjM(o@9;=Fc8mc!uFA^-Itml*^di;d{ibc0#55%G<+LNx z{ore344qvL5lOzaFPzvv{>6@kBz||kWkC|aBbnquNiRQe)q-TJzv>Cded8lC(JPDn z&!vmw&tA?w|JncST%06br!$~|(Yi*lb+>;Gn1yLZ$#sj(S0K5aGs)`d+t;4CVcXgq z)i4kfe(2rCdXa&cMWb*h-Tl+pFM0-P6^U3>o&Uh0R@4JN1W6uPrF3ldm+SnZF~8mc zr5`TbM4>a}oaiy?1LYjncYYlVl_biNFHEfkjWbG84ce8Fm|VzA&2E4a!EVqEU#sjP z<>(JkCo)(uP`Y>0weC1dq^&!Sf^1Y{^AjF^S|=nIZ`(aO7qO|_swfY@YHWl-FF)be zz(1GG;Gft2C;v2h`%nHk8~=QA6?QRaM(&Ch9rlLz{CZT_C!#9DrFZ|Sy`tef746mb z9lu816(yxmUZdrXwrZf%tP1OlQHytDT09+vb#{G~%O0Oh zVO<#wS0{Apqg>Y_^`}cZt6n1ve<@ZaiicMs6I6rnG}AoxI zQOX9*jD__9W%)>vd$NwCp(FPYwitm8mALSC^-bQS1Zi^>PKwxUF#~^};hVyxyVk%_ z)ykPJ8C4V1Wjos3#Q2DErzN~69|46Bo-CWnM1P#P*LJ{|!(@q#pfqCiL?z$}Q@YRx zsrS$%hY?kMe59Y+S0?}aN360e)`~T&tCZ0pbNGiE#j7_cWPH0XGxsncwbGJBpOrOv2LbnQui`E=@Zq73 WrF`@fg%5RHzkoX}+P2-eAo)M+=Rp<# literal 0 HcmV?d00001 diff --git a/tangle-subxt/src/lib.rs b/tangle-subxt/src/lib.rs new file mode 100644 index 000000000..597a62d9a --- /dev/null +++ b/tangle-subxt/src/lib.rs @@ -0,0 +1,11 @@ +#![deny( + trivial_casts, + trivial_numeric_casts, + stable_features, + non_shorthand_field_patterns, + renamed_and_removed_lints, + unsafe_code, + clippy::exhaustive_enums +)] + +pub mod tangle_runtime; diff --git a/tangle-subxt/src/tangle_runtime.rs b/tangle-subxt/src/tangle_runtime.rs new file mode 100644 index 000000000..89e74efd0 --- /dev/null +++ b/tangle-subxt/src/tangle_runtime.rs @@ -0,0 +1,41048 @@ +#[allow(dead_code, unused_imports, non_camel_case_types)] +#[allow(clippy::all)] +#[allow(rustdoc::broken_intra_doc_links)] +pub mod api { + #[allow(unused_imports)] + mod root_mod { + pub use super::*; + } + pub static PALLETS: [&str; 43usize] = [ + "System", + "Timestamp", + "Sudo", + "RandomnessCollectiveFlip", + "Balances", + "TransactionPayment", + "Authorship", + "Babe", + "Grandpa", + "Indices", + "Democracy", + "Council", + "Vesting", + "Elections", + "ElectionProviderMultiPhase", + "Staking", + "Session", + "Historical", + "Treasury", + "Bounties", + "ChildBounties", + "BagsList", + "NominationPools", + "Scheduler", + "Preimage", + "Offences", + "TransactionPause", + "ImOnline", + "Identity", + "Utility", + "Multisig", + "Ethereum", + "EVM", + "EVMChainId", + "DynamicFee", + "BaseFee", + "HotfixSufficients", + "Claims", + "Eth2Client", + "Roles", + "Jobs", + "Dkg", + "ZkSaaS", + ]; + pub static RUNTIME_APIS: [&str; 15usize] = [ + "Core", + "Metadata", + "BlockBuilder", + "JobsApi", + "EthereumRuntimeRPCApi", + "ConvertTransactionRuntimeApi", + "TaggedTransactionQueue", + "OffchainWorkerApi", + "SessionKeys", + "BabeApi", + "AccountNonceApi", + "TransactionPaymentApi", + "GrandpaApi", + "DebugRuntimeApi", + "TxPoolRuntimeApi", + ]; + /// The error type returned when there is a runtime issue. + pub type DispatchError = runtime_types::sp_runtime::DispatchError; + /// The outer event enum. + pub type Event = runtime_types::tangle_testnet_runtime::RuntimeEvent; + /// The outer extrinsic enum. + pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; + /// The outer error enum representing the DispatchError's Module variant. + pub type Error = runtime_types::tangle_testnet_runtime::RuntimeError; + pub fn constants() -> ConstantsApi { + ConstantsApi + } + pub fn storage() -> StorageApi { + StorageApi + } + pub fn tx() -> TransactionApi { + TransactionApi + } + pub fn apis() -> runtime_apis::RuntimeApi { + runtime_apis::RuntimeApi + } + pub mod runtime_apis { + use super::{root_mod, runtime_types}; + use ::subxt::ext::codec::Encode; + pub struct RuntimeApi; + impl RuntimeApi { + pub fn core(&self) -> core::Core { + core::Core + } + pub fn metadata(&self) -> metadata::Metadata { + metadata::Metadata + } + pub fn block_builder(&self) -> block_builder::BlockBuilder { + block_builder::BlockBuilder + } + pub fn jobs_api(&self) -> jobs_api::JobsApi { + jobs_api::JobsApi + } + pub fn ethereum_runtime_rpc_api( + &self, + ) -> ethereum_runtime_rpc_api::EthereumRuntimeRPCApi { + ethereum_runtime_rpc_api::EthereumRuntimeRPCApi + } + pub fn convert_transaction_runtime_api( + &self, + ) -> convert_transaction_runtime_api::ConvertTransactionRuntimeApi { + convert_transaction_runtime_api::ConvertTransactionRuntimeApi + } + pub fn tagged_transaction_queue( + &self, + ) -> tagged_transaction_queue::TaggedTransactionQueue { + tagged_transaction_queue::TaggedTransactionQueue + } + pub fn offchain_worker_api(&self) -> offchain_worker_api::OffchainWorkerApi { + offchain_worker_api::OffchainWorkerApi + } + pub fn session_keys(&self) -> session_keys::SessionKeys { + session_keys::SessionKeys + } + pub fn babe_api(&self) -> babe_api::BabeApi { + babe_api::BabeApi + } + pub fn account_nonce_api(&self) -> account_nonce_api::AccountNonceApi { + account_nonce_api::AccountNonceApi + } + pub fn transaction_payment_api( + &self, + ) -> transaction_payment_api::TransactionPaymentApi { + transaction_payment_api::TransactionPaymentApi + } + pub fn grandpa_api(&self) -> grandpa_api::GrandpaApi { + grandpa_api::GrandpaApi + } + pub fn debug_runtime_api(&self) -> debug_runtime_api::DebugRuntimeApi { + debug_runtime_api::DebugRuntimeApi + } + pub fn tx_pool_runtime_api(&self) -> tx_pool_runtime_api::TxPoolRuntimeApi { + tx_pool_runtime_api::TxPoolRuntimeApi + } + } + pub mod core { + use super::{root_mod, runtime_types}; + /// The `Core` runtime api that every Substrate runtime needs to implement. + pub struct Core; + impl Core { + /// Returns the version of the runtime. + pub fn version( + &self, + ) -> ::subxt::runtime_api::Payload< + types::Version, + runtime_types::sp_version::RuntimeVersion, + > { + ::subxt::runtime_api::Payload::new_static( + "Core", + "version", + types::Version {}, + [ + 76u8, 202u8, 17u8, 117u8, 189u8, 237u8, 239u8, 237u8, 151u8, 17u8, + 125u8, 159u8, 218u8, 92u8, 57u8, 238u8, 64u8, 147u8, 40u8, 72u8, 157u8, + 116u8, 37u8, 195u8, 156u8, 27u8, 123u8, 173u8, 178u8, 102u8, 136u8, + 6u8, + ], + ) + } + /// Execute the given block. + pub fn execute_block( + &self, + block: runtime_types::sp_runtime::generic::block::Block< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + >, + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + ) -> ::subxt::runtime_api::Payload { + ::subxt::runtime_api::Payload::new_static( + "Core", + "execute_block", + types::ExecuteBlock { block }, + [ + 200u8, 29u8, 171u8, 41u8, 8u8, 93u8, 153u8, 56u8, 180u8, 96u8, 155u8, + 206u8, 141u8, 20u8, 230u8, 221u8, 153u8, 233u8, 14u8, 55u8, 185u8, + 140u8, 67u8, 162u8, 154u8, 238u8, 212u8, 116u8, 230u8, 53u8, 155u8, + 231u8, + ], + ) + } + /// Initialize a block with the given header. + pub fn initialize_block( + &self, + header: runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + >, + ) -> ::subxt::runtime_api::Payload { + ::subxt::runtime_api::Payload::new_static( + "Core", + "initialize_block", + types::InitializeBlock { header }, + [ + 132u8, 63u8, 66u8, 154u8, 46u8, 75u8, 44u8, 136u8, 79u8, 137u8, 77u8, + 228u8, 84u8, 94u8, 107u8, 125u8, 248u8, 16u8, 164u8, 164u8, 86u8, + 149u8, 18u8, 243u8, 121u8, 103u8, 3u8, 231u8, 64u8, 195u8, 138u8, 51u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Version {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecuteBlock { + pub block: runtime_types::sp_runtime::generic::block::Block< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + >, + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct InitializeBlock { + pub header: + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u64>, + } + } + } + pub mod metadata { + use super::{root_mod, runtime_types}; + /// The `Metadata` api trait that returns metadata for the runtime. + pub struct Metadata; + impl Metadata { + /// Returns the metadata of a runtime. + pub fn metadata( + &self, + ) -> ::subxt::runtime_api::Payload< + types::Metadata, + runtime_types::sp_core::OpaqueMetadata, + > { + ::subxt::runtime_api::Payload::new_static( + "Metadata", + "metadata", + types::Metadata {}, + [ + 231u8, 24u8, 67u8, 152u8, 23u8, 26u8, 188u8, 82u8, 229u8, 6u8, 185u8, + 27u8, 175u8, 68u8, 83u8, 122u8, 69u8, 89u8, 185u8, 74u8, 248u8, 87u8, + 217u8, 124u8, 193u8, 252u8, 199u8, 186u8, 196u8, 179u8, 179u8, 96u8, + ], + ) + } + /// Returns the metadata at a given version. + /// + /// If the given `version` isn't supported, this will return `None`. + /// Use [`Self::metadata_versions`] to find out about supported metadata version of + /// the runtime. + pub fn metadata_at_version( + &self, + version: ::core::primitive::u32, + ) -> ::subxt::runtime_api::Payload< + types::MetadataAtVersion, + ::core::option::Option, + > { + ::subxt::runtime_api::Payload::new_static( + "Metadata", + "metadata_at_version", + types::MetadataAtVersion { version }, + [ + 131u8, 53u8, 212u8, 234u8, 16u8, 25u8, 120u8, 252u8, 153u8, 153u8, + 216u8, 28u8, 54u8, 113u8, 52u8, 236u8, 146u8, 68u8, 142u8, 8u8, 10u8, + 169u8, 131u8, 142u8, 204u8, 38u8, 48u8, 108u8, 134u8, 86u8, 226u8, + 61u8, + ], + ) + } + /// Returns the supported metadata versions. + /// + /// This can be used to call `metadata_at_version`. + pub fn metadata_versions( + &self, + ) -> ::subxt::runtime_api::Payload< + types::MetadataVersions, + ::std::vec::Vec<::core::primitive::u32>, + > { + ::subxt::runtime_api::Payload::new_static( + "Metadata", + "metadata_versions", + types::MetadataVersions {}, + [ + 23u8, 144u8, 137u8, 91u8, 188u8, 39u8, 231u8, 208u8, 252u8, 218u8, + 224u8, 176u8, 77u8, 32u8, 130u8, 212u8, 223u8, 76u8, 100u8, 190u8, + 82u8, 94u8, 190u8, 8u8, 82u8, 244u8, 225u8, 179u8, 85u8, 176u8, 56u8, + 16u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Metadata {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MetadataAtVersion { + pub version: ::core::primitive::u32, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MetadataVersions {} + } + } + pub mod block_builder { + use super::{root_mod, runtime_types}; + /// The `BlockBuilder` api trait that provides the required functionality for building a + /// block. + pub struct BlockBuilder; + impl BlockBuilder { + /// Apply the given extrinsic. + /// + /// Returns an inclusion outcome which specifies if this extrinsic is included in + /// this block or not. + pub fn apply_extrinsic( + &self, + extrinsic: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + ) -> ::subxt::runtime_api::Payload< + types::ApplyExtrinsic, + ::core::result::Result< + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + runtime_types::sp_runtime::transaction_validity::TransactionValidityError, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "BlockBuilder", + "apply_extrinsic", + types::ApplyExtrinsic { extrinsic }, + [ + 93u8, 122u8, 238u8, 143u8, 82u8, 1u8, 206u8, 107u8, 167u8, 31u8, 22u8, + 6u8, 113u8, 221u8, 141u8, 95u8, 189u8, 75u8, 186u8, 177u8, 5u8, 149u8, + 68u8, 91u8, 171u8, 82u8, 234u8, 147u8, 165u8, 141u8, 13u8, 254u8, + ], + ) + } + /// Finish the current block. + pub fn finalize_block( + &self, + ) -> ::subxt::runtime_api::Payload< + types::FinalizeBlock, + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u64>, + > { + ::subxt::runtime_api::Payload::new_static( + "BlockBuilder", + "finalize_block", + types::FinalizeBlock {}, + [ + 18u8, 71u8, 151u8, 202u8, 31u8, 14u8, 188u8, 81u8, 3u8, 98u8, 192u8, + 204u8, 115u8, 87u8, 31u8, 84u8, 252u8, 73u8, 190u8, 58u8, 146u8, 72u8, + 92u8, 230u8, 117u8, 127u8, 218u8, 10u8, 217u8, 123u8, 229u8, 71u8, + ], + ) + } + /// Generate inherent extrinsics. The inherent data will vary from chain to chain. + pub fn inherent_extrinsics( + &self, + inherent: runtime_types::sp_inherents::InherentData, + ) -> ::subxt::runtime_api::Payload< + types::InherentExtrinsics, + ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + >{ + ::subxt::runtime_api::Payload::new_static( + "BlockBuilder", + "inherent_extrinsics", + types::InherentExtrinsics { inherent }, + [ + 38u8, 7u8, 22u8, 96u8, 164u8, 159u8, 19u8, 22u8, 13u8, 1u8, 194u8, + 99u8, 146u8, 217u8, 97u8, 235u8, 104u8, 166u8, 20u8, 158u8, 193u8, + 203u8, 97u8, 247u8, 30u8, 246u8, 196u8, 113u8, 166u8, 78u8, 194u8, + 163u8, + ], + ) + } + /// Check that the inherents are valid. The inherent data will vary from chain to + /// chain. + pub fn check_inherents( + &self, + block: runtime_types::sp_runtime::generic::block::Block< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + >, + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + data: runtime_types::sp_inherents::InherentData, + ) -> ::subxt::runtime_api::Payload< + types::CheckInherents, + runtime_types::sp_inherents::CheckInherentsResult, + > { + ::subxt::runtime_api::Payload::new_static( + "BlockBuilder", + "check_inherents", + types::CheckInherents { block, data }, + [ + 109u8, 92u8, 240u8, 167u8, 131u8, 93u8, 36u8, 22u8, 254u8, 199u8, 52u8, + 108u8, 74u8, 107u8, 80u8, 149u8, 246u8, 13u8, 17u8, 239u8, 214u8, 87u8, + 229u8, 197u8, 178u8, 25u8, 45u8, 234u8, 114u8, 222u8, 200u8, 72u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ApplyExtrinsic { + pub extrinsic: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct FinalizeBlock {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct InherentExtrinsics { + pub inherent: runtime_types::sp_inherents::InherentData, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckInherents { + pub block: runtime_types::sp_runtime::generic::block::Block< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + >, + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + pub data: runtime_types::sp_inherents::InherentData, + } + } + } + pub mod jobs_api { + use super::{root_mod, runtime_types}; + pub struct JobsApi; + impl JobsApi { + /// Query jobs associated with a specific validator. + /// + /// This function takes a `validator` parameter of type `AccountId` and attempts + /// to retrieve a list of jobs associated with the provided validator. If + /// successful, it constructs a vector of `RpcResponseJobsData` containing + /// information about the jobs and returns it as a `Result`. + /// + /// # Arguments + /// + /// * `validator` - The account ID of the validator whose jobs are to be queried. + /// + /// # Returns + /// + /// An optional vec of `RpcResponseJobsData` of jobs assigned to validator + pub fn query_jobs_by_validator( + &self, + validator: ::subxt::utils::AccountId32, + ) -> ::subxt::runtime_api::Payload< + types::QueryJobsByValidator, + ::core::option::Option< + ::std::vec::Vec< + runtime_types::tangle_primitives::jobs::RpcResponseJobsData< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxSubmissionLen, + >, + >, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "JobsApi", + "query_jobs_by_validator", + types::QueryJobsByValidator { validator }, + [ + 46u8, 220u8, 134u8, 229u8, 147u8, 78u8, 125u8, 94u8, 163u8, 197u8, + 236u8, 234u8, 48u8, 18u8, 94u8, 142u8, 81u8, 185u8, 27u8, 0u8, 120u8, + 210u8, 3u8, 189u8, 114u8, 96u8, 221u8, 23u8, 244u8, 99u8, 123u8, 54u8, + ], + ) + } + /// Queries a job by its key and ID. + /// + /// # Arguments + /// + /// * `role_type` - The role of the job. + /// * `job_id` - The ID of the job. + /// + /// # Returns + /// + /// An optional `RpcResponseJobsData` containing the account ID of the job. + pub fn query_job_by_id( + &self, + role_type: runtime_types::tangle_primitives::roles::RoleType, + job_id: ::core::primitive::u64, + ) -> ::subxt::runtime_api::Payload< + types::QueryJobById, + ::core::option::Option< + runtime_types::tangle_primitives::jobs::RpcResponseJobsData< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxSubmissionLen, + >, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "JobsApi", + "query_job_by_id", + types::QueryJobById { role_type, job_id }, + [ + 224u8, 252u8, 140u8, 132u8, 5u8, 185u8, 129u8, 4u8, 176u8, 172u8, + 236u8, 227u8, 197u8, 80u8, 181u8, 214u8, 244u8, 208u8, 137u8, 134u8, + 105u8, 126u8, 124u8, 84u8, 12u8, 86u8, 19u8, 187u8, 188u8, 180u8, + 238u8, 127u8, + ], + ) + } + /// Queries the result of a job by its role_type and ID. + /// + /// # Arguments + /// + /// * `role_type` - The role of the job. + /// * `job_id` - The ID of the job. + /// + /// # Returns + /// + /// An `Option` containing the phase one result of the job, wrapped in an + /// `PhaseResult`. + pub fn query_job_result( + &self, + role_type: runtime_types::tangle_primitives::roles::RoleType, + job_id: ::core::primitive::u64, + ) -> ::subxt::runtime_api::Payload< + types::QueryJobResult, + ::core::option::Option< + runtime_types::tangle_primitives::jobs::PhaseResult< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxKeyLen, + runtime_types::tangle_primitives::jobs::MaxDataLen, + runtime_types::tangle_primitives::jobs::MaxSignatureLen, + runtime_types::tangle_primitives::jobs::MaxSubmissionLen, + runtime_types::tangle_primitives::jobs::MaxProofLen, + >, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "JobsApi", + "query_job_result", + types::QueryJobResult { role_type, job_id }, + [ + 101u8, 9u8, 11u8, 182u8, 94u8, 178u8, 93u8, 70u8, 125u8, 234u8, 251u8, + 168u8, 5u8, 69u8, 36u8, 229u8, 248u8, 79u8, 79u8, 23u8, 116u8, 121u8, + 225u8, 101u8, 129u8, 156u8, 121u8, 82u8, 98u8, 78u8, 97u8, 253u8, + ], + ) + } + /// Queries next job ID. + /// + /// # Returns + /// Next job ID. + pub fn query_next_job_id( + &self, + ) -> ::subxt::runtime_api::Payload { + ::subxt::runtime_api::Payload::new_static( + "JobsApi", + "query_next_job_id", + types::QueryNextJobId {}, + [ + 222u8, 11u8, 37u8, 99u8, 15u8, 155u8, 125u8, 195u8, 231u8, 147u8, 53u8, + 162u8, 75u8, 214u8, 44u8, 142u8, 254u8, 248u8, 126u8, 7u8, 240u8, + 109u8, 187u8, 148u8, 117u8, 56u8, 6u8, 134u8, 161u8, 165u8, 103u8, + 54u8, + ], + ) + } + /// Queries restaker's role key + /// + /// # Returns + /// Role key + pub fn query_restaker_role_key( + &self, + address: ::subxt::utils::AccountId32, + ) -> ::subxt::runtime_api::Payload< + types::QueryRestakerRoleKey, + ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, + > { + ::subxt::runtime_api::Payload::new_static( + "JobsApi", + "query_restaker_role_key", + types::QueryRestakerRoleKey { address }, + [ + 189u8, 30u8, 31u8, 46u8, 133u8, 107u8, 195u8, 96u8, 225u8, 120u8, + 190u8, 6u8, 35u8, 123u8, 132u8, 228u8, 252u8, 82u8, 81u8, 90u8, 110u8, + 69u8, 231u8, 101u8, 32u8, 174u8, 150u8, 172u8, 169u8, 54u8, 114u8, + 211u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryJobsByValidator { + pub validator: ::subxt::utils::AccountId32, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryJobById { + pub role_type: runtime_types::tangle_primitives::roles::RoleType, + pub job_id: ::core::primitive::u64, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryJobResult { + pub role_type: runtime_types::tangle_primitives::roles::RoleType, + pub job_id: ::core::primitive::u64, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryNextJobId {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryRestakerRoleKey { + pub address: ::subxt::utils::AccountId32, + } + } + } + pub mod ethereum_runtime_rpc_api { + use super::{root_mod, runtime_types}; + /// API necessary for Ethereum-compatibility layer. + pub struct EthereumRuntimeRPCApi; + impl EthereumRuntimeRPCApi { + /// Returns runtime defined pallet_evm::ChainId. + pub fn chain_id( + &self, + ) -> ::subxt::runtime_api::Payload { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "chain_id", + types::ChainId {}, + [ + 119u8, 123u8, 11u8, 231u8, 92u8, 198u8, 90u8, 85u8, 52u8, 55u8, 105u8, + 101u8, 142u8, 11u8, 27u8, 201u8, 110u8, 228u8, 114u8, 128u8, 217u8, + 236u8, 146u8, 229u8, 7u8, 81u8, 102u8, 18u8, 115u8, 141u8, 216u8, + 164u8, + ], + ) + } + /// Returns pallet_evm::Accounts by address. + pub fn account_basic( + &self, + address: ::subxt::utils::H160, + ) -> ::subxt::runtime_api::Payload< + types::AccountBasic, + runtime_types::evm::backend::Basic, + > { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "account_basic", + types::AccountBasic { address }, + [ + 253u8, 214u8, 163u8, 33u8, 163u8, 38u8, 64u8, 14u8, 118u8, 135u8, 77u8, + 215u8, 45u8, 161u8, 43u8, 40u8, 140u8, 131u8, 209u8, 187u8, 171u8, + 129u8, 42u8, 206u8, 175u8, 50u8, 208u8, 186u8, 216u8, 109u8, 166u8, + 123u8, + ], + ) + } + /// Returns FixedGasPrice::min_gas_price + pub fn gas_price( + &self, + ) -> ::subxt::runtime_api::Payload< + types::GasPrice, + runtime_types::primitive_types::U256, + > { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "gas_price", + types::GasPrice {}, + [ + 109u8, 203u8, 181u8, 107u8, 184u8, 171u8, 218u8, 171u8, 23u8, 235u8, + 214u8, 209u8, 233u8, 89u8, 99u8, 63u8, 16u8, 175u8, 44u8, 31u8, 241u8, + 122u8, 126u8, 146u8, 146u8, 131u8, 11u8, 84u8, 129u8, 203u8, 249u8, + 235u8, + ], + ) + } + /// For a given account address, returns pallet_evm::AccountCodes. + pub fn account_code_at( + &self, + address: ::subxt::utils::H160, + ) -> ::subxt::runtime_api::Payload< + types::AccountCodeAt, + ::std::vec::Vec<::core::primitive::u8>, + > { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "account_code_at", + types::AccountCodeAt { address }, + [ + 140u8, 192u8, 250u8, 89u8, 84u8, 152u8, 124u8, 241u8, 255u8, 64u8, + 238u8, 86u8, 13u8, 46u8, 252u8, 66u8, 62u8, 109u8, 46u8, 229u8, 126u8, + 188u8, 64u8, 24u8, 75u8, 157u8, 217u8, 154u8, 102u8, 207u8, 181u8, + 254u8, + ], + ) + } + /// Returns the converted FindAuthor::find_author authority id. + pub fn author( + &self, + ) -> ::subxt::runtime_api::Payload { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "author", + types::Author {}, + [ + 101u8, 105u8, 12u8, 234u8, 72u8, 53u8, 32u8, 56u8, 226u8, 189u8, 216u8, + 228u8, 196u8, 14u8, 147u8, 191u8, 144u8, 203u8, 195u8, 85u8, 162u8, + 67u8, 86u8, 196u8, 116u8, 129u8, 57u8, 102u8, 223u8, 129u8, 222u8, + 71u8, + ], + ) + } + /// For a given account address and index, returns pallet_evm::AccountStorages. + pub fn storage_at( + &self, + address: ::subxt::utils::H160, + index: runtime_types::primitive_types::U256, + ) -> ::subxt::runtime_api::Payload { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "storage_at", + types::StorageAt { address, index }, + [ + 19u8, 29u8, 54u8, 70u8, 199u8, 223u8, 39u8, 4u8, 126u8, 126u8, 81u8, + 102u8, 223u8, 60u8, 2u8, 155u8, 60u8, 167u8, 0u8, 219u8, 98u8, 236u8, + 145u8, 115u8, 202u8, 87u8, 183u8, 131u8, 230u8, 189u8, 228u8, 91u8, + ], + ) + } + pub fn call( + &self, + from: ::subxt::utils::H160, + to: ::subxt::utils::H160, + data: ::std::vec::Vec<::core::primitive::u8>, + value: runtime_types::primitive_types::U256, + gas_limit: runtime_types::primitive_types::U256, + max_fee_per_gas: ::core::option::Option, + max_priority_fee_per_gas: ::core::option::Option< + runtime_types::primitive_types::U256, + >, + nonce: ::core::option::Option, + estimate: ::core::primitive::bool, + access_list: ::core::option::Option< + ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + >, + ) -> ::subxt::runtime_api::Payload< + types::Call, + ::core::result::Result< + runtime_types::fp_evm::ExecutionInfoV2< + ::std::vec::Vec<::core::primitive::u8>, + >, + runtime_types::sp_runtime::DispatchError, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "call", + types::Call { + from, + to, + data, + value, + gas_limit, + max_fee_per_gas, + max_priority_fee_per_gas, + nonce, + estimate, + access_list, + }, + [ + 42u8, 174u8, 110u8, 248u8, 167u8, 56u8, 238u8, 141u8, 64u8, 147u8, + 191u8, 107u8, 1u8, 132u8, 120u8, 22u8, 189u8, 52u8, 90u8, 121u8, 5u8, + 88u8, 147u8, 123u8, 53u8, 198u8, 212u8, 4u8, 141u8, 168u8, 56u8, 111u8, + ], + ) + } + pub fn create( + &self, + from: ::subxt::utils::H160, + data: ::std::vec::Vec<::core::primitive::u8>, + value: runtime_types::primitive_types::U256, + gas_limit: runtime_types::primitive_types::U256, + max_fee_per_gas: ::core::option::Option, + max_priority_fee_per_gas: ::core::option::Option< + runtime_types::primitive_types::U256, + >, + nonce: ::core::option::Option, + estimate: ::core::primitive::bool, + access_list: ::core::option::Option< + ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + >, + ) -> ::subxt::runtime_api::Payload< + types::Create, + ::core::result::Result< + runtime_types::fp_evm::ExecutionInfoV2<::subxt::utils::H160>, + runtime_types::sp_runtime::DispatchError, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "create", + types::Create { + from, + data, + value, + gas_limit, + max_fee_per_gas, + max_priority_fee_per_gas, + nonce, + estimate, + access_list, + }, + [ + 251u8, 141u8, 86u8, 140u8, 222u8, 79u8, 227u8, 54u8, 84u8, 205u8, 69u8, + 204u8, 211u8, 29u8, 110u8, 132u8, 59u8, 139u8, 181u8, 48u8, 7u8, 158u8, + 39u8, 175u8, 40u8, 230u8, 79u8, 254u8, 115u8, 179u8, 136u8, 120u8, + ], + ) + } + /// Return the current block. + pub fn current_block( + &self, + ) -> ::subxt::runtime_api::Payload< + types::CurrentBlock, + ::core::option::Option< + runtime_types::ethereum::block::Block< + runtime_types::ethereum::transaction::TransactionV2, + >, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "current_block", + types::CurrentBlock {}, + [ + 223u8, 174u8, 72u8, 237u8, 254u8, 149u8, 89u8, 18u8, 134u8, 21u8, + 192u8, 75u8, 29u8, 248u8, 230u8, 130u8, 137u8, 203u8, 81u8, 96u8, + 179u8, 133u8, 232u8, 183u8, 62u8, 196u8, 175u8, 136u8, 181u8, 66u8, + 230u8, 115u8, + ], + ) + } + /// Return the current receipt. + pub fn current_receipts( + &self, + ) -> ::subxt::runtime_api::Payload< + types::CurrentReceipts, + ::core::option::Option< + ::std::vec::Vec, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "current_receipts", + types::CurrentReceipts {}, + [ + 174u8, 101u8, 240u8, 50u8, 204u8, 64u8, 207u8, 220u8, 200u8, 196u8, + 248u8, 93u8, 30u8, 53u8, 208u8, 184u8, 110u8, 47u8, 19u8, 200u8, 35u8, + 70u8, 26u8, 66u8, 181u8, 129u8, 237u8, 115u8, 81u8, 169u8, 213u8, + 137u8, + ], + ) + } + /// Return the current transaction status. + pub fn current_transaction_statuses( + &self, + ) -> ::subxt::runtime_api::Payload< + types::CurrentTransactionStatuses, + ::core::option::Option< + ::std::vec::Vec, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "current_transaction_statuses", + types::CurrentTransactionStatuses {}, + [ + 104u8, 186u8, 112u8, 255u8, 185u8, 24u8, 178u8, 204u8, 141u8, 184u8, + 235u8, 60u8, 152u8, 200u8, 223u8, 154u8, 105u8, 193u8, 211u8, 82u8, + 77u8, 157u8, 122u8, 36u8, 86u8, 224u8, 150u8, 32u8, 48u8, 176u8, 129u8, + 33u8, + ], + ) + } + pub fn current_all( + &self, + ) -> ::subxt::runtime_api::Payload< + types::CurrentAll, + ( + ::core::option::Option< + runtime_types::ethereum::block::Block< + runtime_types::ethereum::transaction::TransactionV2, + >, + >, + ::core::option::Option< + ::std::vec::Vec, + >, + ::core::option::Option< + ::std::vec::Vec, + >, + ), + > { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "current_all", + types::CurrentAll {}, + [ + 140u8, 52u8, 171u8, 209u8, 255u8, 183u8, 119u8, 234u8, 65u8, 156u8, + 128u8, 33u8, 217u8, 78u8, 181u8, 48u8, 162u8, 34u8, 92u8, 253u8, 132u8, + 67u8, 54u8, 1u8, 254u8, 44u8, 219u8, 112u8, 205u8, 2u8, 219u8, 225u8, + ], + ) + } + /// Receives a `Vec` and filters all the ethereum transactions. + pub fn extrinsic_filter( + &self, + xts: ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + ) -> ::subxt::runtime_api::Payload< + types::ExtrinsicFilter, + ::std::vec::Vec, + > { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "extrinsic_filter", + types::ExtrinsicFilter { xts }, + [ + 34u8, 199u8, 221u8, 81u8, 136u8, 126u8, 202u8, 122u8, 232u8, 184u8, + 41u8, 211u8, 199u8, 24u8, 250u8, 176u8, 199u8, 94u8, 233u8, 221u8, + 104u8, 94u8, 198u8, 52u8, 218u8, 125u8, 104u8, 91u8, 178u8, 133u8, + 195u8, 113u8, + ], + ) + } + /// Return the elasticity multiplier. + pub fn elasticity( + &self, + ) -> ::subxt::runtime_api::Payload< + types::Elasticity, + ::core::option::Option, + > { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "elasticity", + types::Elasticity {}, + [ + 231u8, 129u8, 189u8, 25u8, 156u8, 180u8, 55u8, 76u8, 115u8, 115u8, + 97u8, 87u8, 113u8, 235u8, 49u8, 153u8, 82u8, 254u8, 238u8, 66u8, 99u8, + 243u8, 179u8, 91u8, 186u8, 122u8, 112u8, 79u8, 0u8, 240u8, 239u8, 97u8, + ], + ) + } + /// Used to determine if gas limit multiplier for non-transactional calls + /// (eth_call/estimateGas) is supported. + pub fn gas_limit_multiplier_support( + &self, + ) -> ::subxt::runtime_api::Payload { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "gas_limit_multiplier_support", + types::GasLimitMultiplierSupport {}, + [ + 156u8, 34u8, 145u8, 114u8, 36u8, 174u8, 36u8, 65u8, 158u8, 45u8, 203u8, + 4u8, 160u8, 170u8, 43u8, 227u8, 204u8, 213u8, 197u8, 230u8, 190u8, + 119u8, 166u8, 243u8, 225u8, 138u8, 134u8, 169u8, 187u8, 95u8, 245u8, + 102u8, + ], + ) + } + /// Return the pending block. + pub fn pending_block( + &self, + xts: ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + ) -> ::subxt::runtime_api::Payload< + types::PendingBlock, + ( + ::core::option::Option< + runtime_types::ethereum::block::Block< + runtime_types::ethereum::transaction::TransactionV2, + >, + >, + ::core::option::Option< + ::std::vec::Vec, + >, + ), + > { + ::subxt::runtime_api::Payload::new_static( + "EthereumRuntimeRPCApi", + "pending_block", + types::PendingBlock { xts }, + [ + 173u8, 229u8, 156u8, 7u8, 102u8, 234u8, 114u8, 87u8, 242u8, 104u8, + 174u8, 57u8, 202u8, 118u8, 125u8, 215u8, 117u8, 85u8, 137u8, 215u8, + 13u8, 146u8, 45u8, 197u8, 223u8, 59u8, 146u8, 30u8, 14u8, 209u8, 45u8, + 198u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChainId {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountBasic { + pub address: ::subxt::utils::H160, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct GasPrice {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountCodeAt { + pub address: ::subxt::utils::H160, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Author {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct StorageAt { + pub address: ::subxt::utils::H160, + pub index: runtime_types::primitive_types::U256, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Call { + pub from: ::subxt::utils::H160, + pub to: ::subxt::utils::H160, + pub data: ::std::vec::Vec<::core::primitive::u8>, + pub value: runtime_types::primitive_types::U256, + pub gas_limit: runtime_types::primitive_types::U256, + pub max_fee_per_gas: + ::core::option::Option, + pub max_priority_fee_per_gas: + ::core::option::Option, + pub nonce: ::core::option::Option, + pub estimate: ::core::primitive::bool, + pub access_list: ::core::option::Option< + ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Create { + pub from: ::subxt::utils::H160, + pub data: ::std::vec::Vec<::core::primitive::u8>, + pub value: runtime_types::primitive_types::U256, + pub gas_limit: runtime_types::primitive_types::U256, + pub max_fee_per_gas: + ::core::option::Option, + pub max_priority_fee_per_gas: + ::core::option::Option, + pub nonce: ::core::option::Option, + pub estimate: ::core::primitive::bool, + pub access_list: ::core::option::Option< + ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CurrentBlock {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CurrentReceipts {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CurrentTransactionStatuses {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CurrentAll {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExtrinsicFilter { + pub xts: ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Elasticity {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct GasLimitMultiplierSupport {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PendingBlock { + pub xts: ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + } + } + } + pub mod convert_transaction_runtime_api { + use super::{root_mod, runtime_types}; + pub struct ConvertTransactionRuntimeApi; + impl ConvertTransactionRuntimeApi { + pub fn convert_transaction( + &self, + transaction: runtime_types::ethereum::transaction::TransactionV2, + ) -> ::subxt::runtime_api::Payload< + types::ConvertTransaction, + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >{ + ::subxt::runtime_api::Payload::new_static( + "ConvertTransactionRuntimeApi", + "convert_transaction", + types::ConvertTransaction { transaction }, + [ + 38u8, 3u8, 65u8, 131u8, 104u8, 95u8, 86u8, 42u8, 177u8, 179u8, 245u8, + 253u8, 51u8, 174u8, 207u8, 232u8, 181u8, 68u8, 71u8, 91u8, 213u8, 63u8, + 48u8, 83u8, 142u8, 178u8, 236u8, 64u8, 185u8, 64u8, 188u8, 123u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ConvertTransaction { + pub transaction: runtime_types::ethereum::transaction::TransactionV2, + } + } + } + pub mod tagged_transaction_queue { + use super::{root_mod, runtime_types}; + /// The `TaggedTransactionQueue` api trait for interfering with the transaction queue. + pub struct TaggedTransactionQueue; + impl TaggedTransactionQueue { + /// Validate the transaction. + /// + /// This method is invoked by the transaction pool to learn details about given + /// transaction. The implementation should make sure to verify the correctness of + /// the transaction against current state. The given `block_hash` corresponds to the + /// hash of the block that is used as current state. + /// + /// Note that this call may be performed by the pool multiple times and transactions + /// might be verified in any possible order. + pub fn validate_transaction( + &self, + source: runtime_types::sp_runtime::transaction_validity::TransactionSource, + tx: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + block_hash: ::subxt::utils::H256, + ) -> ::subxt::runtime_api::Payload< + types::ValidateTransaction, + ::core::result::Result< + runtime_types::sp_runtime::transaction_validity::ValidTransaction, + runtime_types::sp_runtime::transaction_validity::TransactionValidityError, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "TaggedTransactionQueue", + "validate_transaction", + types::ValidateTransaction { source, tx, block_hash }, + [ + 57u8, 96u8, 17u8, 117u8, 142u8, 93u8, 131u8, 36u8, 26u8, 196u8, 204u8, + 140u8, 147u8, 186u8, 55u8, 141u8, 61u8, 41u8, 59u8, 202u8, 64u8, 185u8, + 138u8, 194u8, 64u8, 61u8, 128u8, 199u8, 19u8, 92u8, 119u8, 187u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ValidateTransaction { + pub source: runtime_types::sp_runtime::transaction_validity::TransactionSource, + pub tx: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + pub block_hash: ::subxt::utils::H256, + } + } + } + pub mod offchain_worker_api { + use super::{root_mod, runtime_types}; + /// The offchain worker api. + pub struct OffchainWorkerApi; + impl OffchainWorkerApi { + /// Starts the off-chain task for given block header. + pub fn offchain_worker( + &self, + header: runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + >, + ) -> ::subxt::runtime_api::Payload { + ::subxt::runtime_api::Payload::new_static( + "OffchainWorkerApi", + "offchain_worker", + types::OffchainWorker { header }, + [ + 223u8, 18u8, 78u8, 135u8, 230u8, 162u8, 39u8, 207u8, 100u8, 84u8, + 208u8, 18u8, 251u8, 169u8, 80u8, 26u8, 84u8, 234u8, 10u8, 126u8, 74u8, + 213u8, 12u8, 184u8, 157u8, 15u8, 209u8, 44u8, 49u8, 99u8, 233u8, 111u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OffchainWorker { + pub header: + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u64>, + } + } + } + pub mod session_keys { + use super::{root_mod, runtime_types}; + /// Session keys runtime api. + pub struct SessionKeys; + impl SessionKeys { + /// Generate a set of session keys with optionally using the given seed. + /// The keys should be stored within the keystore exposed via runtime + /// externalities. + /// + /// The seed needs to be a valid `utf8` string. + /// + /// Returns the concatenated SCALE encoded public keys. + pub fn generate_session_keys( + &self, + seed: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, + ) -> ::subxt::runtime_api::Payload< + types::GenerateSessionKeys, + ::std::vec::Vec<::core::primitive::u8>, + > { + ::subxt::runtime_api::Payload::new_static( + "SessionKeys", + "generate_session_keys", + types::GenerateSessionKeys { seed }, + [ + 96u8, 171u8, 164u8, 166u8, 175u8, 102u8, 101u8, 47u8, 133u8, 95u8, + 102u8, 202u8, 83u8, 26u8, 238u8, 47u8, 126u8, 132u8, 22u8, 11u8, 33u8, + 190u8, 175u8, 94u8, 58u8, 245u8, 46u8, 80u8, 195u8, 184u8, 107u8, 65u8, + ], + ) + } + /// Decode the given public session keys. + /// + /// Returns the list of public raw public keys + key type. + pub fn decode_session_keys( + &self, + encoded: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::runtime_api::Payload< + types::DecodeSessionKeys, + ::core::option::Option< + ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + runtime_types::sp_core::crypto::KeyTypeId, + )>, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "SessionKeys", + "decode_session_keys", + types::DecodeSessionKeys { encoded }, + [ + 57u8, 242u8, 18u8, 51u8, 132u8, 110u8, 238u8, 255u8, 39u8, 194u8, 8u8, + 54u8, 198u8, 178u8, 75u8, 151u8, 148u8, 176u8, 144u8, 197u8, 87u8, + 29u8, 179u8, 235u8, 176u8, 78u8, 252u8, 103u8, 72u8, 203u8, 151u8, + 248u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct GenerateSessionKeys { + pub seed: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DecodeSessionKeys { + pub encoded: ::std::vec::Vec<::core::primitive::u8>, + } + } + } + pub mod babe_api { + use super::{root_mod, runtime_types}; + /// API necessary for block authorship with BABE. + pub struct BabeApi; + impl BabeApi { + /// Return the configuration for BABE. + pub fn configuration( + &self, + ) -> ::subxt::runtime_api::Payload< + types::Configuration, + runtime_types::sp_consensus_babe::BabeConfiguration, + > { + ::subxt::runtime_api::Payload::new_static( + "BabeApi", + "configuration", + types::Configuration {}, + [ + 8u8, 81u8, 234u8, 29u8, 30u8, 198u8, 76u8, 19u8, 188u8, 198u8, 127u8, + 33u8, 141u8, 95u8, 132u8, 106u8, 31u8, 41u8, 215u8, 54u8, 240u8, 65u8, + 59u8, 160u8, 188u8, 237u8, 10u8, 143u8, 250u8, 79u8, 45u8, 161u8, + ], + ) + } + /// Returns the slot that started the current epoch. + pub fn current_epoch_start( + &self, + ) -> ::subxt::runtime_api::Payload< + types::CurrentEpochStart, + runtime_types::sp_consensus_slots::Slot, + > { + ::subxt::runtime_api::Payload::new_static( + "BabeApi", + "current_epoch_start", + types::CurrentEpochStart {}, + [ + 122u8, 125u8, 246u8, 170u8, 27u8, 50u8, 128u8, 137u8, 228u8, 62u8, + 145u8, 64u8, 65u8, 119u8, 166u8, 237u8, 115u8, 92u8, 125u8, 124u8, + 11u8, 33u8, 96u8, 88u8, 88u8, 122u8, 141u8, 137u8, 58u8, 182u8, 148u8, + 170u8, + ], + ) + } + /// Returns information regarding the current epoch. + pub fn current_epoch( + &self, + ) -> ::subxt::runtime_api::Payload< + types::CurrentEpoch, + runtime_types::sp_consensus_babe::Epoch, + > { + ::subxt::runtime_api::Payload::new_static( + "BabeApi", + "current_epoch", + types::CurrentEpoch {}, + [ + 73u8, 171u8, 149u8, 138u8, 230u8, 95u8, 241u8, 189u8, 207u8, 145u8, + 103u8, 76u8, 79u8, 44u8, 250u8, 68u8, 238u8, 4u8, 149u8, 234u8, 165u8, + 91u8, 89u8, 228u8, 132u8, 201u8, 203u8, 98u8, 209u8, 137u8, 8u8, 63u8, + ], + ) + } + /// Returns information regarding the next epoch (which was already + /// previously announced). + pub fn next_epoch( + &self, + ) -> ::subxt::runtime_api::Payload< + types::NextEpoch, + runtime_types::sp_consensus_babe::Epoch, + > { + ::subxt::runtime_api::Payload::new_static( + "BabeApi", + "next_epoch", + types::NextEpoch {}, + [ + 191u8, 124u8, 183u8, 209u8, 73u8, 171u8, 164u8, 244u8, 68u8, 239u8, + 196u8, 54u8, 188u8, 85u8, 229u8, 175u8, 29u8, 89u8, 148u8, 108u8, + 208u8, 156u8, 62u8, 193u8, 167u8, 184u8, 251u8, 245u8, 123u8, 87u8, + 19u8, 225u8, + ], + ) + } + /// Generates a proof of key ownership for the given authority in the + /// current epoch. An example usage of this module is coupled with the + /// session historical module to prove that a given authority key is + /// tied to a given staking identity during a specific session. Proofs + /// of key ownership are necessary for submitting equivocation reports. + /// NOTE: even though the API takes a `slot` as parameter the current + /// implementations ignores this parameter and instead relies on this + /// method being called at the correct block height, i.e. any point at + /// which the epoch for the given slot is live on-chain. Future + /// implementations will instead use indexed data through an offchain + /// worker, not requiring older states to be available. + pub fn generate_key_ownership_proof( + &self, + slot: runtime_types::sp_consensus_slots::Slot, + authority_id: runtime_types::sp_consensus_babe::app::Public, + ) -> ::subxt::runtime_api::Payload< + types::GenerateKeyOwnershipProof, + ::core::option::Option< + runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "BabeApi", + "generate_key_ownership_proof", + types::GenerateKeyOwnershipProof { slot, authority_id }, + [ + 235u8, 220u8, 75u8, 20u8, 175u8, 246u8, 127u8, 176u8, 225u8, 25u8, + 240u8, 252u8, 58u8, 254u8, 153u8, 133u8, 197u8, 168u8, 19u8, 231u8, + 234u8, 173u8, 58u8, 152u8, 212u8, 123u8, 13u8, 131u8, 84u8, 221u8, + 98u8, 46u8, + ], + ) + } + /// Submits an unsigned extrinsic to report an equivocation. The caller + /// must provide the equivocation proof and a key ownership proof + /// (should be obtained using `generate_key_ownership_proof`). The + /// extrinsic will be unsigned and should only be accepted for local + /// authorship (not to be broadcast to the network). This method returns + /// `None` when creation of the extrinsic fails, e.g. if equivocation + /// reporting is disabled for the given runtime (i.e. this method is + /// hardcoded to return `None`). Only useful in an offchain context. + pub fn submit_report_equivocation_unsigned_extrinsic( + &self, + equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u64>, + runtime_types::sp_consensus_babe::app::Public, + >, + key_owner_proof: runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, + ) -> ::subxt::runtime_api::Payload< + types::SubmitReportEquivocationUnsignedExtrinsic, + ::core::option::Option<()>, + > { + ::subxt::runtime_api::Payload::new_static( + "BabeApi", + "submit_report_equivocation_unsigned_extrinsic", + types::SubmitReportEquivocationUnsignedExtrinsic { + equivocation_proof, + key_owner_proof, + }, + [ + 232u8, 90u8, 206u8, 125u8, 93u8, 204u8, 162u8, 148u8, 236u8, 146u8, + 170u8, 171u8, 179u8, 254u8, 165u8, 188u8, 207u8, 177u8, 201u8, 152u8, + 27u8, 145u8, 214u8, 234u8, 79u8, 86u8, 7u8, 118u8, 205u8, 136u8, 33u8, + 122u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Configuration {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CurrentEpochStart {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CurrentEpoch {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NextEpoch {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct GenerateKeyOwnershipProof { + pub slot: runtime_types::sp_consensus_slots::Slot, + pub authority_id: runtime_types::sp_consensus_babe::app::Public, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitReportEquivocationUnsignedExtrinsic { + pub equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u64>, + runtime_types::sp_consensus_babe::app::Public, + >, + pub key_owner_proof: runtime_types::sp_consensus_babe::OpaqueKeyOwnershipProof, + } + } + } + pub mod account_nonce_api { + use super::{root_mod, runtime_types}; + /// The API to query account nonce. + pub struct AccountNonceApi; + impl AccountNonceApi { + /// Get current account nonce of given `AccountId`. + pub fn account_nonce( + &self, + account: ::subxt::utils::AccountId32, + ) -> ::subxt::runtime_api::Payload { + ::subxt::runtime_api::Payload::new_static( + "AccountNonceApi", + "account_nonce", + types::AccountNonce { account }, + [ + 231u8, 82u8, 7u8, 227u8, 131u8, 2u8, 215u8, 252u8, 173u8, 82u8, 11u8, + 103u8, 200u8, 25u8, 114u8, 116u8, 79u8, 229u8, 152u8, 150u8, 236u8, + 37u8, 101u8, 26u8, 220u8, 146u8, 182u8, 101u8, 73u8, 55u8, 191u8, + 171u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountNonce { + pub account: ::subxt::utils::AccountId32, + } + } + } + pub mod transaction_payment_api { + use super::{root_mod, runtime_types}; + pub struct TransactionPaymentApi; + impl TransactionPaymentApi { + pub fn query_info( + &self, + uxt: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + len: ::core::primitive::u32, + ) -> ::subxt::runtime_api::Payload< + types::QueryInfo, + runtime_types::pallet_transaction_payment::types::RuntimeDispatchInfo< + ::core::primitive::u128, + runtime_types::sp_weights::weight_v2::Weight, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "TransactionPaymentApi", + "query_info", + types::QueryInfo { uxt, len }, + [ + 18u8, 21u8, 49u8, 170u8, 31u8, 239u8, 200u8, 100u8, 31u8, 197u8, 68u8, + 91u8, 138u8, 180u8, 24u8, 255u8, 153u8, 200u8, 167u8, 148u8, 66u8, + 89u8, 215u8, 13u8, 119u8, 183u8, 48u8, 15u8, 187u8, 50u8, 226u8, 111u8, + ], + ) + } + pub fn query_fee_details( + &self, + uxt: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + len: ::core::primitive::u32, + ) -> ::subxt::runtime_api::Payload< + types::QueryFeeDetails, + runtime_types::pallet_transaction_payment::types::FeeDetails< + ::core::primitive::u128, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "TransactionPaymentApi", + "query_fee_details", + types::QueryFeeDetails { uxt, len }, + [ + 244u8, 136u8, 121u8, 182u8, 139u8, 54u8, 166u8, 70u8, 32u8, 165u8, + 61u8, 193u8, 186u8, 109u8, 2u8, 165u8, 42u8, 11u8, 113u8, 159u8, 21u8, + 62u8, 14u8, 60u8, 212u8, 124u8, 63u8, 118u8, 183u8, 92u8, 186u8, 52u8, + ], + ) + } + pub fn query_weight_to_fee( + &self, + weight: runtime_types::sp_weights::weight_v2::Weight, + ) -> ::subxt::runtime_api::Payload + { + ::subxt::runtime_api::Payload::new_static( + "TransactionPaymentApi", + "query_weight_to_fee", + types::QueryWeightToFee { weight }, + [ + 206u8, 243u8, 189u8, 83u8, 231u8, 244u8, 247u8, 52u8, 126u8, 208u8, + 224u8, 5u8, 163u8, 108u8, 254u8, 114u8, 214u8, 156u8, 227u8, 217u8, + 211u8, 198u8, 121u8, 164u8, 110u8, 54u8, 181u8, 146u8, 50u8, 146u8, + 146u8, 23u8, + ], + ) + } + pub fn query_length_to_fee( + &self, + length: ::core::primitive::u32, + ) -> ::subxt::runtime_api::Payload + { + ::subxt::runtime_api::Payload::new_static( + "TransactionPaymentApi", + "query_length_to_fee", + types::QueryLengthToFee { length }, + [ + 92u8, 132u8, 29u8, 119u8, 66u8, 11u8, 196u8, 224u8, 129u8, 23u8, 249u8, + 12u8, 32u8, 28u8, 92u8, 50u8, 188u8, 101u8, 203u8, 229u8, 248u8, 216u8, + 130u8, 150u8, 212u8, 161u8, 81u8, 254u8, 116u8, 89u8, 162u8, 48u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryInfo { + pub uxt: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + pub len: ::core::primitive::u32, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryFeeDetails { + pub uxt: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + pub len: ::core::primitive::u32, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryWeightToFee { + pub weight: runtime_types::sp_weights::weight_v2::Weight, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryLengthToFee { + pub length: ::core::primitive::u32, + } + } + } + pub mod grandpa_api { + use super::{root_mod, runtime_types}; + /// APIs for integrating the GRANDPA finality gadget into runtimes. + /// This should be implemented on the runtime side. + /// + /// This is primarily used for negotiating authority-set changes for the + /// gadget. GRANDPA uses a signaling model of changing authority sets: + /// changes should be signaled with a delay of N blocks, and then automatically + /// applied in the runtime after those N blocks have passed. + /// + /// The consensus protocol will coordinate the handoff externally. + pub struct GrandpaApi; + impl GrandpaApi { + /// Get the current GRANDPA authorities and weights. This should not change except + /// for when changes are scheduled and the corresponding delay has passed. + /// + /// When called at block B, it will return the set of authorities that should be + /// used to finalize descendants of this block (B+1, B+2, ...). The block B itself + /// is finalized by the authorities from block B-1. + pub fn grandpa_authorities( + &self, + ) -> ::subxt::runtime_api::Payload< + types::GrandpaAuthorities, + ::std::vec::Vec<( + runtime_types::sp_consensus_grandpa::app::Public, + ::core::primitive::u64, + )>, + > { + ::subxt::runtime_api::Payload::new_static( + "GrandpaApi", + "grandpa_authorities", + types::GrandpaAuthorities {}, + [ + 166u8, 76u8, 160u8, 101u8, 242u8, 145u8, 213u8, 10u8, 16u8, 130u8, + 230u8, 196u8, 125u8, 152u8, 92u8, 143u8, 119u8, 223u8, 140u8, 189u8, + 203u8, 95u8, 52u8, 105u8, 147u8, 107u8, 135u8, 228u8, 62u8, 178u8, + 128u8, 33u8, + ], + ) + } + /// Submits an unsigned extrinsic to report an equivocation. The caller + /// must provide the equivocation proof and a key ownership proof + /// (should be obtained using `generate_key_ownership_proof`). The + /// extrinsic will be unsigned and should only be accepted for local + /// authorship (not to be broadcast to the network). This method returns + /// `None` when creation of the extrinsic fails, e.g. if equivocation + /// reporting is disabled for the given runtime (i.e. this method is + /// hardcoded to return `None`). Only useful in an offchain context. + pub fn submit_report_equivocation_unsigned_extrinsic( + &self, + equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u64, + >, + key_owner_proof: runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, + ) -> ::subxt::runtime_api::Payload< + types::SubmitReportEquivocationUnsignedExtrinsic, + ::core::option::Option<()>, + > { + ::subxt::runtime_api::Payload::new_static( + "GrandpaApi", + "submit_report_equivocation_unsigned_extrinsic", + types::SubmitReportEquivocationUnsignedExtrinsic { + equivocation_proof, + key_owner_proof, + }, + [ + 223u8, 246u8, 39u8, 96u8, 206u8, 20u8, 228u8, 5u8, 162u8, 57u8, 73u8, + 70u8, 89u8, 130u8, 221u8, 87u8, 219u8, 55u8, 173u8, 128u8, 247u8, + 246u8, 131u8, 157u8, 194u8, 150u8, 237u8, 6u8, 112u8, 50u8, 130u8, + 30u8, + ], + ) + } + /// Generates a proof of key ownership for the given authority in the + /// given set. An example usage of this module is coupled with the + /// session historical module to prove that a given authority key is + /// tied to a given staking identity during a specific session. Proofs + /// of key ownership are necessary for submitting equivocation reports. + /// NOTE: even though the API takes a `set_id` as parameter the current + /// implementations ignore this parameter and instead rely on this + /// method being called at the correct block height, i.e. any point at + /// which the given set id is live on-chain. Future implementations will + /// instead use indexed data through an offchain worker, not requiring + /// older states to be available. + pub fn generate_key_ownership_proof( + &self, + set_id: ::core::primitive::u64, + authority_id: runtime_types::sp_consensus_grandpa::app::Public, + ) -> ::subxt::runtime_api::Payload< + types::GenerateKeyOwnershipProof, + ::core::option::Option< + runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, + >, + > { + ::subxt::runtime_api::Payload::new_static( + "GrandpaApi", + "generate_key_ownership_proof", + types::GenerateKeyOwnershipProof { set_id, authority_id }, + [ + 40u8, 126u8, 113u8, 27u8, 245u8, 45u8, 123u8, 138u8, 12u8, 3u8, 125u8, + 186u8, 151u8, 53u8, 186u8, 93u8, 13u8, 150u8, 163u8, 176u8, 206u8, + 89u8, 244u8, 127u8, 182u8, 85u8, 203u8, 41u8, 101u8, 183u8, 209u8, + 179u8, + ], + ) + } + /// Get current GRANDPA authority set id. + pub fn current_set_id( + &self, + ) -> ::subxt::runtime_api::Payload { + ::subxt::runtime_api::Payload::new_static( + "GrandpaApi", + "current_set_id", + types::CurrentSetId {}, + [ + 42u8, 230u8, 120u8, 211u8, 156u8, 245u8, 109u8, 86u8, 100u8, 146u8, + 234u8, 205u8, 41u8, 183u8, 109u8, 42u8, 17u8, 33u8, 156u8, 25u8, 139u8, + 84u8, 101u8, 75u8, 232u8, 198u8, 87u8, 136u8, 218u8, 233u8, 103u8, + 156u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct GrandpaAuthorities {} + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitReportEquivocationUnsignedExtrinsic { + pub equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u64, + >, + pub key_owner_proof: + runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct GenerateKeyOwnershipProof { + pub set_id: ::core::primitive::u64, + pub authority_id: runtime_types::sp_consensus_grandpa::app::Public, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CurrentSetId {} + } + } + pub mod debug_runtime_api { + use super::{root_mod, runtime_types}; + pub struct DebugRuntimeApi; + impl DebugRuntimeApi { + pub fn trace_transaction( + &self, + extrinsics: ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + transaction: runtime_types::ethereum::transaction::TransactionV2, + ) -> ::subxt::runtime_api::Payload< + types::TraceTransaction, + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + > { + ::subxt::runtime_api::Payload::new_static( + "DebugRuntimeApi", + "trace_transaction", + types::TraceTransaction { extrinsics, transaction }, + [ + 117u8, 202u8, 95u8, 62u8, 182u8, 199u8, 149u8, 3u8, 230u8, 44u8, 118u8, + 28u8, 84u8, 193u8, 141u8, 184u8, 43u8, 141u8, 4u8, 22u8, 8u8, 47u8, + 138u8, 161u8, 8u8, 30u8, 113u8, 73u8, 40u8, 205u8, 55u8, 115u8, + ], + ) + } + pub fn trace_block( + &self, + extrinsics: ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + known_transactions: ::std::vec::Vec<::subxt::utils::H256>, + ) -> ::subxt::runtime_api::Payload< + types::TraceBlock, + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + > { + ::subxt::runtime_api::Payload::new_static( + "DebugRuntimeApi", + "trace_block", + types::TraceBlock { extrinsics, known_transactions }, + [ + 172u8, 144u8, 67u8, 233u8, 35u8, 215u8, 74u8, 231u8, 41u8, 238u8, 66u8, + 229u8, 45u8, 96u8, 180u8, 252u8, 183u8, 204u8, 106u8, 195u8, 93u8, + 213u8, 225u8, 91u8, 122u8, 162u8, 179u8, 58u8, 73u8, 21u8, 35u8, 91u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TraceTransaction { + pub extrinsics: ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + pub transaction: runtime_types::ethereum::transaction::TransactionV2, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TraceBlock { + pub extrinsics: ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + pub known_transactions: ::std::vec::Vec<::subxt::utils::H256>, + } + } + } + pub mod tx_pool_runtime_api { + use super::{root_mod, runtime_types}; + pub struct TxPoolRuntimeApi; + impl TxPoolRuntimeApi { + pub fn extrinsic_filter( + &self, + xt_ready: ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + xt_future: ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + ) -> ::subxt::runtime_api::Payload< + types::ExtrinsicFilter, + runtime_types::rpc_primitives_txpool::TxPoolResponse, + > { + ::subxt::runtime_api::Payload::new_static( + "TxPoolRuntimeApi", + "extrinsic_filter", + types::ExtrinsicFilter { xt_ready, xt_future }, + [ + 134u8, 154u8, 125u8, 22u8, 74u8, 169u8, 248u8, 124u8, 232u8, 73u8, + 189u8, 109u8, 48u8, 207u8, 50u8, 60u8, 91u8, 154u8, 214u8, 247u8, 26u8, + 71u8, 174u8, 96u8, 248u8, 6u8, 145u8, 202u8, 130u8, 220u8, 66u8, 127u8, + ], + ) + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExtrinsicFilter { + pub xt_ready: ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + pub xt_future: ::std::vec::Vec< + runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + runtime_types::tangle_testnet_runtime::RuntimeCall, + runtime_types::sp_runtime::MultiSignature, + ( + runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, + runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, + runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, + runtime_types::frame_system::extensions::check_genesis::CheckGenesis, + runtime_types::frame_system::extensions::check_mortality::CheckMortality, + runtime_types::frame_system::extensions::check_nonce::CheckNonce, + runtime_types::frame_system::extensions::check_weight::CheckWeight, + runtime_types::pallet_transaction_payment::ChargeTransactionPayment, + ), + >, + >, + } + } + } + } + pub struct ConstantsApi; + impl ConstantsApi { + pub fn system(&self) -> system::constants::ConstantsApi { + system::constants::ConstantsApi + } + pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { + timestamp::constants::ConstantsApi + } + pub fn balances(&self) -> balances::constants::ConstantsApi { + balances::constants::ConstantsApi + } + pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi { + transaction_payment::constants::ConstantsApi + } + pub fn babe(&self) -> babe::constants::ConstantsApi { + babe::constants::ConstantsApi + } + pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { + grandpa::constants::ConstantsApi + } + pub fn indices(&self) -> indices::constants::ConstantsApi { + indices::constants::ConstantsApi + } + pub fn democracy(&self) -> democracy::constants::ConstantsApi { + democracy::constants::ConstantsApi + } + pub fn council(&self) -> council::constants::ConstantsApi { + council::constants::ConstantsApi + } + pub fn vesting(&self) -> vesting::constants::ConstantsApi { + vesting::constants::ConstantsApi + } + pub fn elections(&self) -> elections::constants::ConstantsApi { + elections::constants::ConstantsApi + } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::constants::ConstantsApi { + election_provider_multi_phase::constants::ConstantsApi + } + pub fn staking(&self) -> staking::constants::ConstantsApi { + staking::constants::ConstantsApi + } + pub fn treasury(&self) -> treasury::constants::ConstantsApi { + treasury::constants::ConstantsApi + } + pub fn bounties(&self) -> bounties::constants::ConstantsApi { + bounties::constants::ConstantsApi + } + pub fn child_bounties(&self) -> child_bounties::constants::ConstantsApi { + child_bounties::constants::ConstantsApi + } + pub fn bags_list(&self) -> bags_list::constants::ConstantsApi { + bags_list::constants::ConstantsApi + } + pub fn nomination_pools(&self) -> nomination_pools::constants::ConstantsApi { + nomination_pools::constants::ConstantsApi + } + pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { + scheduler::constants::ConstantsApi + } + pub fn im_online(&self) -> im_online::constants::ConstantsApi { + im_online::constants::ConstantsApi + } + pub fn identity(&self) -> identity::constants::ConstantsApi { + identity::constants::ConstantsApi + } + pub fn utility(&self) -> utility::constants::ConstantsApi { + utility::constants::ConstantsApi + } + pub fn multisig(&self) -> multisig::constants::ConstantsApi { + multisig::constants::ConstantsApi + } + pub fn claims(&self) -> claims::constants::ConstantsApi { + claims::constants::ConstantsApi + } + pub fn eth2_client(&self) -> eth2_client::constants::ConstantsApi { + eth2_client::constants::ConstantsApi + } + pub fn roles(&self) -> roles::constants::ConstantsApi { + roles::constants::ConstantsApi + } + pub fn jobs(&self) -> jobs::constants::ConstantsApi { + jobs::constants::ConstantsApi + } + } + pub struct StorageApi; + impl StorageApi { + pub fn system(&self) -> system::storage::StorageApi { + system::storage::StorageApi + } + pub fn timestamp(&self) -> timestamp::storage::StorageApi { + timestamp::storage::StorageApi + } + pub fn sudo(&self) -> sudo::storage::StorageApi { + sudo::storage::StorageApi + } + pub fn randomness_collective_flip( + &self, + ) -> randomness_collective_flip::storage::StorageApi { + randomness_collective_flip::storage::StorageApi + } + pub fn balances(&self) -> balances::storage::StorageApi { + balances::storage::StorageApi + } + pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi { + transaction_payment::storage::StorageApi + } + pub fn authorship(&self) -> authorship::storage::StorageApi { + authorship::storage::StorageApi + } + pub fn babe(&self) -> babe::storage::StorageApi { + babe::storage::StorageApi + } + pub fn grandpa(&self) -> grandpa::storage::StorageApi { + grandpa::storage::StorageApi + } + pub fn indices(&self) -> indices::storage::StorageApi { + indices::storage::StorageApi + } + pub fn democracy(&self) -> democracy::storage::StorageApi { + democracy::storage::StorageApi + } + pub fn council(&self) -> council::storage::StorageApi { + council::storage::StorageApi + } + pub fn vesting(&self) -> vesting::storage::StorageApi { + vesting::storage::StorageApi + } + pub fn elections(&self) -> elections::storage::StorageApi { + elections::storage::StorageApi + } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::storage::StorageApi { + election_provider_multi_phase::storage::StorageApi + } + pub fn staking(&self) -> staking::storage::StorageApi { + staking::storage::StorageApi + } + pub fn session(&self) -> session::storage::StorageApi { + session::storage::StorageApi + } + pub fn historical(&self) -> historical::storage::StorageApi { + historical::storage::StorageApi + } + pub fn treasury(&self) -> treasury::storage::StorageApi { + treasury::storage::StorageApi + } + pub fn bounties(&self) -> bounties::storage::StorageApi { + bounties::storage::StorageApi + } + pub fn child_bounties(&self) -> child_bounties::storage::StorageApi { + child_bounties::storage::StorageApi + } + pub fn bags_list(&self) -> bags_list::storage::StorageApi { + bags_list::storage::StorageApi + } + pub fn nomination_pools(&self) -> nomination_pools::storage::StorageApi { + nomination_pools::storage::StorageApi + } + pub fn scheduler(&self) -> scheduler::storage::StorageApi { + scheduler::storage::StorageApi + } + pub fn preimage(&self) -> preimage::storage::StorageApi { + preimage::storage::StorageApi + } + pub fn offences(&self) -> offences::storage::StorageApi { + offences::storage::StorageApi + } + pub fn transaction_pause(&self) -> transaction_pause::storage::StorageApi { + transaction_pause::storage::StorageApi + } + pub fn im_online(&self) -> im_online::storage::StorageApi { + im_online::storage::StorageApi + } + pub fn identity(&self) -> identity::storage::StorageApi { + identity::storage::StorageApi + } + pub fn multisig(&self) -> multisig::storage::StorageApi { + multisig::storage::StorageApi + } + pub fn ethereum(&self) -> ethereum::storage::StorageApi { + ethereum::storage::StorageApi + } + pub fn evm(&self) -> evm::storage::StorageApi { + evm::storage::StorageApi + } + pub fn evm_chain_id(&self) -> evm_chain_id::storage::StorageApi { + evm_chain_id::storage::StorageApi + } + pub fn dynamic_fee(&self) -> dynamic_fee::storage::StorageApi { + dynamic_fee::storage::StorageApi + } + pub fn base_fee(&self) -> base_fee::storage::StorageApi { + base_fee::storage::StorageApi + } + pub fn claims(&self) -> claims::storage::StorageApi { + claims::storage::StorageApi + } + pub fn eth2_client(&self) -> eth2_client::storage::StorageApi { + eth2_client::storage::StorageApi + } + pub fn roles(&self) -> roles::storage::StorageApi { + roles::storage::StorageApi + } + pub fn jobs(&self) -> jobs::storage::StorageApi { + jobs::storage::StorageApi + } + pub fn dkg(&self) -> dkg::storage::StorageApi { + dkg::storage::StorageApi + } + pub fn zk_saa_s(&self) -> zk_saa_s::storage::StorageApi { + zk_saa_s::storage::StorageApi + } + } + pub struct TransactionApi; + impl TransactionApi { + pub fn system(&self) -> system::calls::TransactionApi { + system::calls::TransactionApi + } + pub fn timestamp(&self) -> timestamp::calls::TransactionApi { + timestamp::calls::TransactionApi + } + pub fn sudo(&self) -> sudo::calls::TransactionApi { + sudo::calls::TransactionApi + } + pub fn balances(&self) -> balances::calls::TransactionApi { + balances::calls::TransactionApi + } + pub fn babe(&self) -> babe::calls::TransactionApi { + babe::calls::TransactionApi + } + pub fn grandpa(&self) -> grandpa::calls::TransactionApi { + grandpa::calls::TransactionApi + } + pub fn indices(&self) -> indices::calls::TransactionApi { + indices::calls::TransactionApi + } + pub fn democracy(&self) -> democracy::calls::TransactionApi { + democracy::calls::TransactionApi + } + pub fn council(&self) -> council::calls::TransactionApi { + council::calls::TransactionApi + } + pub fn vesting(&self) -> vesting::calls::TransactionApi { + vesting::calls::TransactionApi + } + pub fn elections(&self) -> elections::calls::TransactionApi { + elections::calls::TransactionApi + } + pub fn election_provider_multi_phase( + &self, + ) -> election_provider_multi_phase::calls::TransactionApi { + election_provider_multi_phase::calls::TransactionApi + } + pub fn staking(&self) -> staking::calls::TransactionApi { + staking::calls::TransactionApi + } + pub fn session(&self) -> session::calls::TransactionApi { + session::calls::TransactionApi + } + pub fn treasury(&self) -> treasury::calls::TransactionApi { + treasury::calls::TransactionApi + } + pub fn bounties(&self) -> bounties::calls::TransactionApi { + bounties::calls::TransactionApi + } + pub fn child_bounties(&self) -> child_bounties::calls::TransactionApi { + child_bounties::calls::TransactionApi + } + pub fn bags_list(&self) -> bags_list::calls::TransactionApi { + bags_list::calls::TransactionApi + } + pub fn nomination_pools(&self) -> nomination_pools::calls::TransactionApi { + nomination_pools::calls::TransactionApi + } + pub fn scheduler(&self) -> scheduler::calls::TransactionApi { + scheduler::calls::TransactionApi + } + pub fn preimage(&self) -> preimage::calls::TransactionApi { + preimage::calls::TransactionApi + } + pub fn transaction_pause(&self) -> transaction_pause::calls::TransactionApi { + transaction_pause::calls::TransactionApi + } + pub fn im_online(&self) -> im_online::calls::TransactionApi { + im_online::calls::TransactionApi + } + pub fn identity(&self) -> identity::calls::TransactionApi { + identity::calls::TransactionApi + } + pub fn utility(&self) -> utility::calls::TransactionApi { + utility::calls::TransactionApi + } + pub fn multisig(&self) -> multisig::calls::TransactionApi { + multisig::calls::TransactionApi + } + pub fn ethereum(&self) -> ethereum::calls::TransactionApi { + ethereum::calls::TransactionApi + } + pub fn evm(&self) -> evm::calls::TransactionApi { + evm::calls::TransactionApi + } + pub fn dynamic_fee(&self) -> dynamic_fee::calls::TransactionApi { + dynamic_fee::calls::TransactionApi + } + pub fn base_fee(&self) -> base_fee::calls::TransactionApi { + base_fee::calls::TransactionApi + } + pub fn hotfix_sufficients(&self) -> hotfix_sufficients::calls::TransactionApi { + hotfix_sufficients::calls::TransactionApi + } + pub fn claims(&self) -> claims::calls::TransactionApi { + claims::calls::TransactionApi + } + pub fn eth2_client(&self) -> eth2_client::calls::TransactionApi { + eth2_client::calls::TransactionApi + } + pub fn roles(&self) -> roles::calls::TransactionApi { + roles::calls::TransactionApi + } + pub fn jobs(&self) -> jobs::calls::TransactionApi { + jobs::calls::TransactionApi + } + pub fn dkg(&self) -> dkg::calls::TransactionApi { + dkg::calls::TransactionApi + } + pub fn zk_saa_s(&self) -> zk_saa_s::calls::TransactionApi { + zk_saa_s::calls::TransactionApi + } + } + /// check whether the metadata provided is aligned with this statically generated code. + pub fn is_codegen_valid_for(metadata: &::subxt::Metadata) -> bool { + let runtime_metadata_hash = metadata + .hasher() + .only_these_pallets(&PALLETS) + .only_these_runtime_apis(&RUNTIME_APIS) + .hash(); + runtime_metadata_hash == + [ + 44u8, 39u8, 246u8, 113u8, 240u8, 75u8, 24u8, 186u8, 66u8, 86u8, 45u8, 88u8, 83u8, + 148u8, 170u8, 230u8, 186u8, 161u8, 193u8, 102u8, 218u8, 65u8, 75u8, 54u8, 93u8, + 232u8, 6u8, 188u8, 26u8, 6u8, 97u8, 196u8, + ] + } + pub mod system { + use super::{root_mod, runtime_types}; + ///Error for the System pallet + pub type Error = runtime_types::frame_system::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::frame_system::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Remark { + pub remark: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for Remark { + const PALLET: &'static str = "System"; + const CALL: &'static str = "remark"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetHeapPages { + pub pages: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for SetHeapPages { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_heap_pages"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetCode { + pub code: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetCode { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_code"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetCodeWithoutChecks { + pub code: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetCodeWithoutChecks { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_code_without_checks"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetStorage { + pub items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetStorage { + const PALLET: &'static str = "System"; + const CALL: &'static str = "set_storage"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct KillStorage { + pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + } + impl ::subxt::blocks::StaticExtrinsic for KillStorage { + const PALLET: &'static str = "System"; + const CALL: &'static str = "kill_storage"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct KillPrefix { + pub prefix: ::std::vec::Vec<::core::primitive::u8>, + pub subkeys: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for KillPrefix { + const PALLET: &'static str = "System"; + const CALL: &'static str = "kill_prefix"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemarkWithEvent { + pub remark: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for RemarkWithEvent { + const PALLET: &'static str = "System"; + const CALL: &'static str = "remark_with_event"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::remark`]. + pub fn remark( + &self, + remark: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "remark", + types::Remark { remark }, + [ + 43u8, 126u8, 180u8, 174u8, 141u8, 48u8, 52u8, 125u8, 166u8, 212u8, + 216u8, 98u8, 100u8, 24u8, 132u8, 71u8, 101u8, 64u8, 246u8, 169u8, 33u8, + 250u8, 147u8, 208u8, 2u8, 40u8, 129u8, 209u8, 232u8, 207u8, 207u8, + 13u8, + ], + ) + } + ///See [`Pallet::set_heap_pages`]. + pub fn set_heap_pages( + &self, + pages: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_heap_pages", + types::SetHeapPages { pages }, + [ + 188u8, 191u8, 99u8, 216u8, 219u8, 109u8, 141u8, 50u8, 78u8, 235u8, + 215u8, 242u8, 195u8, 24u8, 111u8, 76u8, 229u8, 64u8, 99u8, 225u8, + 134u8, 121u8, 81u8, 209u8, 127u8, 223u8, 98u8, 215u8, 150u8, 70u8, + 57u8, 147u8, + ], + ) + } + ///See [`Pallet::set_code`]. + pub fn set_code( + &self, + code: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_code", + types::SetCode { code }, + [ + 233u8, 248u8, 88u8, 245u8, 28u8, 65u8, 25u8, 169u8, 35u8, 237u8, 19u8, + 203u8, 136u8, 160u8, 18u8, 3u8, 20u8, 197u8, 81u8, 169u8, 244u8, 188u8, + 27u8, 147u8, 147u8, 236u8, 65u8, 25u8, 3u8, 143u8, 182u8, 22u8, + ], + ) + } + ///See [`Pallet::set_code_without_checks`]. + pub fn set_code_without_checks( + &self, + code: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_code_without_checks", + types::SetCodeWithoutChecks { code }, + [ + 82u8, 212u8, 157u8, 44u8, 70u8, 0u8, 143u8, 15u8, 109u8, 109u8, 107u8, + 157u8, 141u8, 42u8, 169u8, 11u8, 15u8, 186u8, 252u8, 138u8, 10u8, + 147u8, 15u8, 178u8, 247u8, 229u8, 213u8, 98u8, 207u8, 231u8, 119u8, + 115u8, + ], + ) + } + ///See [`Pallet::set_storage`]. + pub fn set_storage( + &self, + items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "set_storage", + types::SetStorage { items }, + [ + 141u8, 216u8, 52u8, 222u8, 223u8, 136u8, 123u8, 181u8, 19u8, 75u8, + 163u8, 102u8, 229u8, 189u8, 158u8, 142u8, 95u8, 235u8, 240u8, 49u8, + 150u8, 76u8, 78u8, 137u8, 126u8, 88u8, 183u8, 88u8, 231u8, 146u8, + 234u8, 43u8, + ], + ) + } + ///See [`Pallet::kill_storage`]. + pub fn kill_storage( + &self, + keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "kill_storage", + types::KillStorage { keys }, + [ + 73u8, 63u8, 196u8, 36u8, 144u8, 114u8, 34u8, 213u8, 108u8, 93u8, 209u8, + 234u8, 153u8, 185u8, 33u8, 91u8, 187u8, 195u8, 223u8, 130u8, 58u8, + 156u8, 63u8, 47u8, 228u8, 249u8, 216u8, 139u8, 143u8, 177u8, 41u8, + 35u8, + ], + ) + } + ///See [`Pallet::kill_prefix`]. + pub fn kill_prefix( + &self, + prefix: ::std::vec::Vec<::core::primitive::u8>, + subkeys: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "kill_prefix", + types::KillPrefix { prefix, subkeys }, + [ + 184u8, 57u8, 139u8, 24u8, 208u8, 87u8, 108u8, 215u8, 198u8, 189u8, + 175u8, 242u8, 167u8, 215u8, 97u8, 63u8, 110u8, 166u8, 238u8, 98u8, + 67u8, 236u8, 111u8, 110u8, 234u8, 81u8, 102u8, 5u8, 182u8, 5u8, 214u8, + 85u8, + ], + ) + } + ///See [`Pallet::remark_with_event`]. + pub fn remark_with_event( + &self, + remark: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "System", + "remark_with_event", + types::RemarkWithEvent { remark }, + [ + 120u8, 120u8, 153u8, 92u8, 184u8, 85u8, 34u8, 2u8, 174u8, 206u8, 105u8, + 228u8, 233u8, 130u8, 80u8, 246u8, 228u8, 59u8, 234u8, 240u8, 4u8, 49u8, + 147u8, 170u8, 115u8, 91u8, 149u8, 200u8, 228u8, 181u8, 8u8, 154u8, + ], + ) + } + } + } + ///Event for the System pallet. + pub type Event = runtime_types::frame_system::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An extrinsic completed successfully. + pub struct ExtrinsicSuccess { + pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, + } + impl ::subxt::events::StaticEvent for ExtrinsicSuccess { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "ExtrinsicSuccess"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An extrinsic failed. + pub struct ExtrinsicFailed { + pub dispatch_error: runtime_types::sp_runtime::DispatchError, + pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, + } + impl ::subxt::events::StaticEvent for ExtrinsicFailed { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "ExtrinsicFailed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///`:code` was updated. + pub struct CodeUpdated; + impl ::subxt::events::StaticEvent for CodeUpdated { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "CodeUpdated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A new account was created. + pub struct NewAccount { + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for NewAccount { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "NewAccount"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account was reaped. + pub struct KilledAccount { + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for KilledAccount { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "KilledAccount"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///On on-chain remark happened. + pub struct Remarked { + pub sender: ::subxt::utils::AccountId32, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Remarked { + const PALLET: &'static str = "System"; + const EVENT: &'static str = "Remarked"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The full account information for a particular account ID. + pub fn account( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "Account", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 14u8, 233u8, 115u8, 214u8, 0u8, 109u8, 222u8, 121u8, 162u8, 65u8, 60u8, + 175u8, 209u8, 79u8, 222u8, 124u8, 22u8, 235u8, 138u8, 176u8, 133u8, + 124u8, 90u8, 158u8, 85u8, 45u8, 37u8, 174u8, 47u8, 79u8, 47u8, 166u8, + ], + ) + } + /// The full account information for a particular account ID. + pub fn account_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::AccountInfo< + ::core::primitive::u32, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "Account", + Vec::new(), + [ + 14u8, 233u8, 115u8, 214u8, 0u8, 109u8, 222u8, 121u8, 162u8, 65u8, 60u8, + 175u8, 209u8, 79u8, 222u8, 124u8, 22u8, 235u8, 138u8, 176u8, 133u8, + 124u8, 90u8, 158u8, 85u8, 45u8, 37u8, 174u8, 47u8, 79u8, 47u8, 166u8, + ], + ) + } + /// Total extrinsics count for the current block. + pub fn extrinsic_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "ExtrinsicCount", + vec![], + [ + 102u8, 76u8, 236u8, 42u8, 40u8, 231u8, 33u8, 222u8, 123u8, 147u8, + 153u8, 148u8, 234u8, 203u8, 181u8, 119u8, 6u8, 187u8, 177u8, 199u8, + 120u8, 47u8, 137u8, 254u8, 96u8, 100u8, 165u8, 182u8, 249u8, 230u8, + 159u8, 79u8, + ], + ) + } + /// The current weight for the block. + pub fn block_weight( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_support::dispatch::PerDispatchClass< + runtime_types::sp_weights::weight_v2::Weight, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "BlockWeight", + vec![], + [ + 158u8, 46u8, 228u8, 89u8, 210u8, 214u8, 84u8, 154u8, 50u8, 68u8, 63u8, + 62u8, 43u8, 42u8, 99u8, 27u8, 54u8, 42u8, 146u8, 44u8, 241u8, 216u8, + 229u8, 30u8, 216u8, 255u8, 165u8, 238u8, 181u8, 130u8, 36u8, 102u8, + ], + ) + } + /// Total length (in bytes) for all extrinsics put together, for the current block. + pub fn all_extrinsics_len( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "AllExtrinsicsLen", + vec![], + [ + 117u8, 86u8, 61u8, 243u8, 41u8, 51u8, 102u8, 214u8, 137u8, 100u8, + 243u8, 185u8, 122u8, 174u8, 187u8, 117u8, 86u8, 189u8, 63u8, 135u8, + 101u8, 218u8, 203u8, 201u8, 237u8, 254u8, 128u8, 183u8, 169u8, 221u8, + 242u8, 65u8, + ], + ) + } + /// Map of block numbers to block hashes. + pub fn block_hash( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "BlockHash", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 231u8, 203u8, 53u8, 62u8, 34u8, 38u8, 27u8, 62u8, 10u8, 209u8, 96u8, + 2u8, 207u8, 136u8, 240u8, 67u8, 183u8, 74u8, 239u8, 218u8, 18u8, 200u8, + 211u8, 134u8, 3u8, 164u8, 96u8, 74u8, 67u8, 204u8, 133u8, 127u8, + ], + ) + } + /// Map of block numbers to block hashes. + pub fn block_hash_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "BlockHash", + Vec::new(), + [ + 231u8, 203u8, 53u8, 62u8, 34u8, 38u8, 27u8, 62u8, 10u8, 209u8, 96u8, + 2u8, 207u8, 136u8, 240u8, 67u8, 183u8, 74u8, 239u8, 218u8, 18u8, 200u8, + 211u8, 134u8, 3u8, 164u8, 96u8, 74u8, 67u8, 204u8, 133u8, 127u8, + ], + ) + } + /// Extrinsics data for the current block (maps an extrinsic's index to its data). + pub fn extrinsic_data( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "ExtrinsicData", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 160u8, 180u8, 122u8, 18u8, 196u8, 26u8, 2u8, 37u8, 115u8, 232u8, 133u8, + 220u8, 106u8, 245u8, 4u8, 129u8, 42u8, 84u8, 241u8, 45u8, 199u8, 179u8, + 128u8, 61u8, 170u8, 137u8, 231u8, 156u8, 247u8, 57u8, 47u8, 38u8, + ], + ) + } + /// Extrinsics data for the current block (maps an extrinsic's index to its data). + pub fn extrinsic_data_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "ExtrinsicData", + Vec::new(), + [ + 160u8, 180u8, 122u8, 18u8, 196u8, 26u8, 2u8, 37u8, 115u8, 232u8, 133u8, + 220u8, 106u8, 245u8, 4u8, 129u8, 42u8, 84u8, 241u8, 45u8, 199u8, 179u8, + 128u8, 61u8, 170u8, 137u8, 231u8, 156u8, 247u8, 57u8, 47u8, 38u8, + ], + ) + } + /// The current block number being processed. Set by `execute_block`. + pub fn number( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "Number", + vec![], + [ + 2u8, 189u8, 173u8, 80u8, 15u8, 128u8, 71u8, 71u8, 14u8, 91u8, 177u8, + 204u8, 54u8, 135u8, 13u8, 212u8, 9u8, 23u8, 219u8, 228u8, 150u8, 137u8, + 199u8, 181u8, 58u8, 241u8, 247u8, 70u8, 19u8, 237u8, 23u8, 77u8, + ], + ) + } + /// Hash of the previous block. + pub fn parent_hash( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "ParentHash", + vec![], + [ + 26u8, 130u8, 11u8, 216u8, 155u8, 71u8, 128u8, 170u8, 30u8, 153u8, 21u8, + 192u8, 62u8, 93u8, 137u8, 80u8, 120u8, 81u8, 202u8, 94u8, 248u8, 125u8, + 71u8, 82u8, 141u8, 229u8, 32u8, 56u8, 73u8, 50u8, 101u8, 78u8, + ], + ) + } + /// Digest of the current block, also part of the block header. + pub fn digest( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_runtime::generic::digest::Digest, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "Digest", + vec![], + [ + 61u8, 64u8, 237u8, 91u8, 145u8, 232u8, 17u8, 254u8, 181u8, 16u8, 234u8, + 91u8, 51u8, 140u8, 254u8, 131u8, 98u8, 135u8, 21u8, 37u8, 251u8, 20u8, + 58u8, 92u8, 123u8, 141u8, 14u8, 227u8, 146u8, 46u8, 222u8, 117u8, + ], + ) + } + /// Events deposited for the current block. + /// + /// NOTE: The item is unbound and should therefore never be read on chain. + /// It could otherwise inflate the PoV size of a block. + /// + /// Events have a large in-memory size. Box the events to not go out-of-memory + /// just in case someone still reads them from within the runtime. + pub fn events( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::frame_system::EventRecord< + runtime_types::tangle_testnet_runtime::RuntimeEvent, + ::subxt::utils::H256, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "Events", + vec![], + [ + 155u8, 241u8, 123u8, 63u8, 208u8, 253u8, 220u8, 181u8, 135u8, 55u8, + 233u8, 47u8, 122u8, 16u8, 46u8, 156u8, 32u8, 255u8, 181u8, 118u8, + 151u8, 183u8, 56u8, 174u8, 150u8, 54u8, 10u8, 229u8, 76u8, 79u8, 101u8, + 53u8, + ], + ) + } + /// The number of events in the `Events` list. + pub fn event_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "EventCount", + vec![], + [ + 175u8, 24u8, 252u8, 184u8, 210u8, 167u8, 146u8, 143u8, 164u8, 80u8, + 151u8, 205u8, 189u8, 189u8, 55u8, 220u8, 47u8, 101u8, 181u8, 33u8, + 254u8, 131u8, 13u8, 143u8, 3u8, 244u8, 245u8, 45u8, 2u8, 210u8, 79u8, + 133u8, + ], + ) + } + /// Mapping between a topic (represented by T::Hash) and a vector of indexes + /// of events in the `>` list. + /// + /// All topic vectors have deterministic storage locations depending on the topic. + /// This allows light-clients to leverage the changes trie storage tracking + /// mechanism and in case of changes fetch the list of events of interest. + /// + /// The value has the type `(BlockNumberFor, EventIndex)` because if we used only + /// just the `EventIndex` then in case if the topic has the same contents on the + /// next block no notification will be triggered thus the event might be lost. + pub fn event_topics( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::core::primitive::u64, ::core::primitive::u32)>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "EventTopics", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 190u8, 220u8, 184u8, 246u8, 192u8, 219u8, 183u8, 210u8, 216u8, 1u8, + 239u8, 142u8, 255u8, 35u8, 134u8, 39u8, 114u8, 27u8, 34u8, 194u8, 90u8, + 54u8, 113u8, 119u8, 85u8, 117u8, 23u8, 81u8, 186u8, 94u8, 34u8, 89u8, + ], + ) + } + /// Mapping between a topic (represented by T::Hash) and a vector of indexes + /// of events in the `>` list. + /// + /// All topic vectors have deterministic storage locations depending on the topic. + /// This allows light-clients to leverage the changes trie storage tracking + /// mechanism and in case of changes fetch the list of events of interest. + /// + /// The value has the type `(BlockNumberFor, EventIndex)` because if we used only + /// just the `EventIndex` then in case if the topic has the same contents on the + /// next block no notification will be triggered thus the event might be lost. + pub fn event_topics_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::core::primitive::u64, ::core::primitive::u32)>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "System", + "EventTopics", + Vec::new(), + [ + 190u8, 220u8, 184u8, 246u8, 192u8, 219u8, 183u8, 210u8, 216u8, 1u8, + 239u8, 142u8, 255u8, 35u8, 134u8, 39u8, 114u8, 27u8, 34u8, 194u8, 90u8, + 54u8, 113u8, 119u8, 85u8, 117u8, 23u8, 81u8, 186u8, 94u8, 34u8, 89u8, + ], + ) + } + /// Stores the `spec_version` and `spec_name` of when the last runtime upgrade + /// happened. + pub fn last_runtime_upgrade( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::LastRuntimeUpgradeInfo, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "LastRuntimeUpgrade", + vec![], + [ + 137u8, 29u8, 175u8, 75u8, 197u8, 208u8, 91u8, 207u8, 156u8, 87u8, + 148u8, 68u8, 91u8, 140u8, 22u8, 233u8, 1u8, 229u8, 56u8, 34u8, 40u8, + 194u8, 253u8, 30u8, 163u8, 39u8, 54u8, 209u8, 13u8, 27u8, 139u8, 184u8, + ], + ) + } + /// True if we have upgraded so that `type RefCount` is `u32`. False (default) if + /// not. + pub fn upgraded_to_u32_ref_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "UpgradedToU32RefCount", + vec![], + [ + 229u8, 73u8, 9u8, 132u8, 186u8, 116u8, 151u8, 171u8, 145u8, 29u8, 34u8, + 130u8, 52u8, 146u8, 124u8, 175u8, 79u8, 189u8, 147u8, 230u8, 234u8, + 107u8, 124u8, 31u8, 2u8, 22u8, 86u8, 190u8, 4u8, 147u8, 50u8, 245u8, + ], + ) + } + /// True if we have upgraded so that AccountInfo contains three types of `RefCount`. + /// False (default) if not. + pub fn upgraded_to_triple_ref_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "UpgradedToTripleRefCount", + vec![], + [ + 97u8, 66u8, 124u8, 243u8, 27u8, 167u8, 147u8, 81u8, 254u8, 201u8, + 101u8, 24u8, 40u8, 231u8, 14u8, 179u8, 154u8, 163u8, 71u8, 81u8, 185u8, + 167u8, 82u8, 254u8, 189u8, 3u8, 101u8, 207u8, 206u8, 194u8, 155u8, + 151u8, + ], + ) + } + /// The execution phase of the block. + pub fn execution_phase( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::frame_system::Phase, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "System", + "ExecutionPhase", + vec![], + [ + 191u8, 129u8, 100u8, 134u8, 126u8, 116u8, 154u8, 203u8, 220u8, 200u8, + 0u8, 26u8, 161u8, 250u8, 133u8, 205u8, 146u8, 24u8, 5u8, 156u8, 158u8, + 35u8, 36u8, 253u8, 52u8, 235u8, 86u8, 167u8, 35u8, 100u8, 119u8, 27u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// Block & extrinsics weights: base values and limits. + pub fn block_weights( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "System", + "BlockWeights", + [ + 176u8, 124u8, 225u8, 136u8, 25u8, 73u8, 247u8, 33u8, 82u8, 206u8, 85u8, + 190u8, 127u8, 102u8, 71u8, 11u8, 185u8, 8u8, 58u8, 0u8, 94u8, 55u8, + 163u8, 177u8, 104u8, 59u8, 60u8, 136u8, 246u8, 116u8, 0u8, 239u8, + ], + ) + } + /// The maximum length of a block (in bytes). + pub fn block_length( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static( + "System", + "BlockLength", + [ + 23u8, 242u8, 225u8, 39u8, 225u8, 67u8, 152u8, 41u8, 155u8, 104u8, 68u8, + 229u8, 185u8, 133u8, 10u8, 143u8, 184u8, 152u8, 234u8, 44u8, 140u8, + 96u8, 166u8, 235u8, 162u8, 160u8, 72u8, 7u8, 35u8, 194u8, 3u8, 37u8, + ], + ) + } + /// Maximum number of block number to block hash mappings to keep (oldest pruned + /// first). + pub fn block_hash_count( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "System", + "BlockHashCount", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// The weight of runtime database operations the runtime can invoke. + pub fn db_weight( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static( + "System", + "DbWeight", + [ + 42u8, 43u8, 178u8, 142u8, 243u8, 203u8, 60u8, 173u8, 118u8, 111u8, + 200u8, 170u8, 102u8, 70u8, 237u8, 187u8, 198u8, 120u8, 153u8, 232u8, + 183u8, 76u8, 74u8, 10u8, 70u8, 243u8, 14u8, 218u8, 213u8, 126u8, 29u8, + 177u8, + ], + ) + } + /// Get the chain's current version. + pub fn version( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static( + "System", + "Version", + [ + 219u8, 45u8, 162u8, 245u8, 177u8, 246u8, 48u8, 126u8, 191u8, 157u8, + 228u8, 83u8, 111u8, 133u8, 183u8, 13u8, 148u8, 108u8, 92u8, 102u8, + 72u8, 205u8, 74u8, 242u8, 233u8, 79u8, 20u8, 170u8, 72u8, 202u8, 158u8, + 165u8, + ], + ) + } + /// The designated SS58 prefix of this chain. + /// + /// This replaces the "ss58Format" property declared in the chain spec. Reason is + /// that the runtime should know about the prefix in order to make use of it as + /// an identifier of the chain. + pub fn ss58_prefix(&self) -> ::subxt::constants::Address<::core::primitive::u16> { + ::subxt::constants::Address::new_static( + "System", + "SS58Prefix", + [ + 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8, + 41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, + 90u8, 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8, + ], + ) + } + } + } + } + pub mod timestamp { + use super::{root_mod, runtime_types}; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_timestamp::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Set { + #[codec(compact)] + pub now: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for Set { + const PALLET: &'static str = "Timestamp"; + const CALL: &'static str = "set"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::set`]. + pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Timestamp", + "set", + types::Set { now }, + [ + 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, + 199u8, 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8, + 200u8, 4u8, 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, + ], + ) + } + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Current time for the current block. + pub fn now( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Timestamp", + "Now", + vec![], + [ + 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8, + 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, + 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, + ], + ) + } + /// Did the timestamp get updated in this block? + pub fn did_update( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Timestamp", + "DidUpdate", + vec![], + [ + 229u8, 175u8, 246u8, 102u8, 237u8, 158u8, 212u8, 229u8, 238u8, 214u8, + 205u8, 160u8, 164u8, 252u8, 195u8, 75u8, 139u8, 110u8, 22u8, 34u8, + 248u8, 204u8, 107u8, 46u8, 20u8, 200u8, 238u8, 167u8, 71u8, 41u8, + 214u8, 140u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The minimum period between blocks. Beware that this is different to the + /// *expected* period that the block production apparatus provides. Your chosen + /// consensus system will generally work with this to determine a sensible block + /// time. e.g. For Aura, it will be double this period on default settings. + pub fn minimum_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Timestamp", + "MinimumPeriod", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + } + } + } + pub mod sudo { + use super::{root_mod, runtime_types}; + ///Error for the Sudo pallet + pub type Error = runtime_types::pallet_sudo::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_sudo::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Sudo { + pub call: ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for Sudo { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SudoUncheckedWeight { + pub call: ::std::boxed::Box, + pub weight: runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_unchecked_weight"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetKey { + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetKey { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "set_key"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SudoAs { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub call: ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for SudoAs { + const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_as"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::sudo`]. + pub fn sudo( + &self, + call: runtime_types::tangle_testnet_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo", + types::Sudo { call: ::std::boxed::Box::new(call) }, + [ + 154u8, 146u8, 207u8, 31u8, 80u8, 61u8, 119u8, 187u8, 229u8, 50u8, + 168u8, 226u8, 230u8, 207u8, 23u8, 209u8, 49u8, 144u8, 135u8, 160u8, + 171u8, 170u8, 35u8, 94u8, 162u8, 75u8, 9u8, 7u8, 220u8, 201u8, 17u8, + 41u8, + ], + ) + } + ///See [`Pallet::sudo_unchecked_weight`]. + pub fn sudo_unchecked_weight( + &self, + call: runtime_types::tangle_testnet_runtime::RuntimeCall, + weight: runtime_types::sp_weights::weight_v2::Weight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo_unchecked_weight", + types::SudoUncheckedWeight { call: ::std::boxed::Box::new(call), weight }, + [ + 56u8, 89u8, 107u8, 80u8, 98u8, 142u8, 111u8, 18u8, 68u8, 212u8, 30u8, + 40u8, 56u8, 103u8, 16u8, 33u8, 190u8, 186u8, 248u8, 14u8, 215u8, 232u8, + 5u8, 199u8, 54u8, 202u8, 105u8, 100u8, 103u8, 237u8, 28u8, 9u8, + ], + ) + } + ///See [`Pallet::set_key`]. + pub fn set_key( + &self, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "set_key", + types::SetKey { new }, + [ + 247u8, 148u8, 125u8, 134u8, 90u8, 138u8, 216u8, 117u8, 246u8, 75u8, + 85u8, 242u8, 229u8, 203u8, 227u8, 242u8, 166u8, 28u8, 247u8, 215u8, + 35u8, 13u8, 243u8, 13u8, 4u8, 48u8, 175u8, 192u8, 63u8, 142u8, 13u8, + 94u8, + ], + ) + } + ///See [`Pallet::sudo_as`]. + pub fn sudo_as( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call: runtime_types::tangle_testnet_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Sudo", + "sudo_as", + types::SudoAs { who, call: ::std::boxed::Box::new(call) }, + [ + 179u8, 217u8, 137u8, 9u8, 180u8, 158u8, 245u8, 252u8, 38u8, 176u8, + 240u8, 172u8, 59u8, 215u8, 74u8, 215u8, 85u8, 232u8, 177u8, 158u8, + 25u8, 67u8, 160u8, 47u8, 220u8, 97u8, 93u8, 254u8, 24u8, 135u8, 100u8, + 111u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_sudo::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A sudo just took place. \[result\] + pub struct Sudid { + pub sudo_result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::events::StaticEvent for Sudid { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "Sudid"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The \[sudoer\] just switched identity; the old key is supplied if one existed. + pub struct KeyChanged { + pub old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, + } + impl ::subxt::events::StaticEvent for KeyChanged { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "KeyChanged"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A sudo just took place. \[result\] + pub struct SudoAsDone { + pub sudo_result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::events::StaticEvent for SudoAsDone { + const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "SudoAsDone"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The `AccountId` of the sudo key. + pub fn key( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Sudo", + "Key", + vec![], + [ + 72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, 105u8, 116u8, 57u8, 4u8, + 31u8, 84u8, 137u8, 227u8, 228u8, 133u8, 245u8, 206u8, 227u8, 117u8, + 36u8, 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, 195u8, 144u8, + ], + ) + } + } + } + } + pub mod randomness_collective_flip { + use super::{root_mod, runtime_types}; + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Series of block headers from the last 81 blocks that acts as random seed + /// material. This is arranged as a ring buffer with `block_number % 81` being the + /// index into the `Vec` of the oldest hash. + pub fn random_material( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "RandomnessCollectiveFlip", + "RandomMaterial", + vec![], + [ + 195u8, 232u8, 244u8, 162u8, 110u8, 137u8, 66u8, 57u8, 51u8, 221u8, + 143u8, 38u8, 51u8, 183u8, 105u8, 245u8, 175u8, 13u8, 33u8, 192u8, 53u8, + 16u8, 161u8, 76u8, 219u8, 177u8, 144u8, 192u8, 96u8, 166u8, 117u8, + 247u8, + ], + ) + } + } + } + } + pub mod balances { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_balances::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_balances::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TransferAllowDeath { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_allow_death"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetBalanceDeprecated { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub new_free: ::core::primitive::u128, + #[codec(compact)] + pub old_reserved: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for SetBalanceDeprecated { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "set_balance_deprecated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceTransfer { + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TransferKeepAlive { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_keep_alive"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TransferAll { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub keep_alive: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for TransferAll { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_all"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceUnreserve { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_unreserve"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpgradeAccounts { + pub who: ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "upgrade_accounts"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Transfer { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceSetBalance { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub new_free: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance { + const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_set_balance"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::transfer_allow_death`]. + pub fn transfer_allow_death( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "transfer_allow_death", + types::TransferAllowDeath { dest, value }, + [ + 24u8, 176u8, 111u8, 60u8, 103u8, 161u8, 139u8, 10u8, 197u8, 207u8, + 140u8, 212u8, 166u8, 50u8, 47u8, 150u8, 83u8, 180u8, 86u8, 4u8, 159u8, + 84u8, 195u8, 71u8, 204u8, 109u8, 233u8, 23u8, 10u8, 156u8, 209u8, + 153u8, + ], + ) + } + ///See [`Pallet::set_balance_deprecated`]. + pub fn set_balance_deprecated( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + new_free: ::core::primitive::u128, + old_reserved: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "set_balance_deprecated", + types::SetBalanceDeprecated { who, new_free, old_reserved }, + [ + 37u8, 252u8, 153u8, 117u8, 175u8, 86u8, 206u8, 115u8, 114u8, 75u8, + 226u8, 183u8, 222u8, 208u8, 208u8, 16u8, 90u8, 82u8, 101u8, 241u8, + 82u8, 161u8, 116u8, 175u8, 200u8, 113u8, 154u8, 220u8, 224u8, 245u8, + 112u8, 215u8, + ], + ) + } + ///See [`Pallet::force_transfer`]. + pub fn force_transfer( + &self, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "force_transfer", + types::ForceTransfer { source, dest, value }, + [ + 23u8, 7u8, 44u8, 138u8, 180u8, 140u8, 216u8, 52u8, 198u8, 3u8, 225u8, + 116u8, 47u8, 26u8, 61u8, 163u8, 55u8, 64u8, 113u8, 250u8, 192u8, 16u8, + 228u8, 228u8, 85u8, 255u8, 100u8, 128u8, 245u8, 132u8, 84u8, 186u8, + ], + ) + } + ///See [`Pallet::transfer_keep_alive`]. + pub fn transfer_keep_alive( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "transfer_keep_alive", + types::TransferKeepAlive { dest, value }, + [ + 196u8, 51u8, 121u8, 239u8, 68u8, 97u8, 174u8, 26u8, 21u8, 9u8, 111u8, + 224u8, 189u8, 35u8, 106u8, 30u8, 83u8, 184u8, 234u8, 174u8, 27u8, + 197u8, 40u8, 126u8, 197u8, 92u8, 201u8, 253u8, 144u8, 175u8, 8u8, + 215u8, + ], + ) + } + ///See [`Pallet::transfer_all`]. + pub fn transfer_all( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + keep_alive: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "transfer_all", + types::TransferAll { dest, keep_alive }, + [ + 13u8, 46u8, 127u8, 231u8, 179u8, 61u8, 45u8, 188u8, 195u8, 251u8, + 146u8, 25u8, 138u8, 19u8, 52u8, 112u8, 148u8, 241u8, 134u8, 145u8, + 97u8, 9u8, 199u8, 172u8, 229u8, 239u8, 67u8, 185u8, 128u8, 36u8, 134u8, + 122u8, + ], + ) + } + ///See [`Pallet::force_unreserve`]. + pub fn force_unreserve( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "force_unreserve", + types::ForceUnreserve { who, amount }, + [ + 176u8, 105u8, 20u8, 111u8, 49u8, 253u8, 22u8, 225u8, 0u8, 81u8, 221u8, + 39u8, 62u8, 22u8, 95u8, 12u8, 21u8, 251u8, 179u8, 31u8, 104u8, 23u8, + 34u8, 216u8, 119u8, 205u8, 133u8, 196u8, 182u8, 113u8, 36u8, 93u8, + ], + ) + } + ///See [`Pallet::upgrade_accounts`]. + pub fn upgrade_accounts( + &self, + who: ::std::vec::Vec<::subxt::utils::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "upgrade_accounts", + types::UpgradeAccounts { who }, + [ + 66u8, 200u8, 179u8, 104u8, 65u8, 2u8, 101u8, 56u8, 130u8, 161u8, 224u8, + 233u8, 255u8, 124u8, 70u8, 122u8, 8u8, 49u8, 103u8, 178u8, 68u8, 47u8, + 214u8, 166u8, 217u8, 116u8, 178u8, 50u8, 212u8, 164u8, 98u8, 226u8, + ], + ) + } + ///See [`Pallet::transfer`]. + pub fn transfer( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "transfer", + types::Transfer { dest, value }, + [ + 228u8, 253u8, 44u8, 208u8, 33u8, 44u8, 33u8, 42u8, 114u8, 57u8, 107u8, + 6u8, 127u8, 116u8, 15u8, 205u8, 122u8, 172u8, 64u8, 108u8, 169u8, + 241u8, 190u8, 221u8, 248u8, 171u8, 236u8, 129u8, 120u8, 147u8, 49u8, + 95u8, + ], + ) + } + ///See [`Pallet::force_set_balance`]. + pub fn force_set_balance( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + new_free: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "force_set_balance", + types::ForceSetBalance { who, new_free }, + [ + 101u8, 181u8, 86u8, 32u8, 61u8, 75u8, 34u8, 164u8, 142u8, 250u8, 7u8, + 218u8, 125u8, 57u8, 98u8, 222u8, 147u8, 26u8, 115u8, 185u8, 190u8, + 172u8, 12u8, 212u8, 132u8, 80u8, 253u8, 69u8, 26u8, 116u8, 197u8, + 203u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_balances::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account was created with some free balance. + pub struct Endowed { + pub account: ::subxt::utils::AccountId32, + pub free_balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Endowed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Endowed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account was removed whose balance was non-zero but below ExistentialDeposit, + ///resulting in an outright loss. + pub struct DustLost { + pub account: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for DustLost { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "DustLost"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Transfer succeeded. + pub struct Transfer { + pub from: ::subxt::utils::AccountId32, + pub to: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Transfer { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Transfer"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A balance was set by root. + pub struct BalanceSet { + pub who: ::subxt::utils::AccountId32, + pub free: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for BalanceSet { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "BalanceSet"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some balance was reserved (moved from free to reserved). + pub struct Reserved { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Reserved { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Reserved"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some balance was unreserved (moved from reserved to free). + pub struct Unreserved { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Unreserved { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Unreserved"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some balance was moved from the reserve of the first account to the second account. + ///Final argument indicates the destination balance type. + pub struct ReserveRepatriated { + 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, + } + impl ::subxt::events::StaticEvent for ReserveRepatriated { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "ReserveRepatriated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some amount was deposited (e.g. for transaction fees). + pub struct Deposit { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Deposit"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some amount was withdrawn from the account (e.g. for transaction fees). + pub struct Withdraw { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Withdraw { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Withdraw"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some amount was removed from the account (e.g. for misbehavior). + pub struct Slashed { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some amount was minted into an account. + pub struct Minted { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Minted { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Minted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some amount was burned from an account. + pub struct Burned { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Burned { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Burned"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some amount was suspended from an account (it can be restored later). + pub struct Suspended { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Suspended { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Suspended"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some amount was restored into an account. + pub struct Restored { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Restored { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Restored"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account was upgraded. + pub struct Upgraded { + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Upgraded { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Upgraded"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Total issuance was increased by `amount`, creating a credit to be balanced. + pub struct Issued { + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Issued { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Issued"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Total issuance was decreased by `amount`, creating a debt to be balanced. + pub struct Rescinded { + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rescinded { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Rescinded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some balance was locked. + pub struct Locked { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Locked { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Locked"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some balance was unlocked. + pub struct Unlocked { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Unlocked { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Unlocked"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some balance was frozen. + pub struct Frozen { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Frozen { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Frozen"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some balance was thawed. + pub struct Thawed { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Thawed { + const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Thawed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The total units issued in the system. + pub fn total_issuance( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "TotalIssuance", + vec![], + [ + 116u8, 70u8, 119u8, 194u8, 69u8, 37u8, 116u8, 206u8, 171u8, 70u8, + 171u8, 210u8, 226u8, 111u8, 184u8, 204u8, 206u8, 11u8, 68u8, 72u8, + 255u8, 19u8, 194u8, 11u8, 27u8, 194u8, 81u8, 204u8, 59u8, 224u8, 202u8, + 185u8, + ], + ) + } + /// The total units of outstanding deactivated balance in the system. + pub fn inactive_issuance( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "InactiveIssuance", + vec![], + [ + 212u8, 185u8, 19u8, 50u8, 250u8, 72u8, 173u8, 50u8, 4u8, 104u8, 161u8, + 249u8, 77u8, 247u8, 204u8, 248u8, 11u8, 18u8, 57u8, 4u8, 82u8, 110u8, + 30u8, 216u8, 16u8, 37u8, 87u8, 67u8, 189u8, 235u8, 214u8, 155u8, + ], + ) + } + /// The Balances pallet example of storing the balance of an account. + /// + /// # Example + /// + /// ```nocompile + /// impl pallet_balances::Config for Runtime { + /// type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData> + /// } + /// ``` + /// + /// You can also store the balance of an account in the `System` pallet. + /// + /// # Example + /// + /// ```nocompile + /// impl pallet_balances::Config for Runtime { + /// type AccountStore = System + /// } + /// ``` + /// + /// But this comes with tradeoffs, storing account balances in the system pallet + /// stores `frame_system` data alongside the account data contrary to storing + /// account balances in the `Balances` pallet, which uses a `StorageMap` to store + /// balances data only. 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::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Account", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 213u8, 38u8, 200u8, 69u8, 218u8, 0u8, 112u8, 181u8, 160u8, 23u8, 96u8, + 90u8, 3u8, 88u8, 126u8, 22u8, 103u8, 74u8, 64u8, 69u8, 29u8, 247u8, + 18u8, 17u8, 234u8, 143u8, 189u8, 22u8, 247u8, 194u8, 154u8, 249u8, + ], + ) + } + /// The Balances pallet example of storing the balance of an account. + /// + /// # Example + /// + /// ```nocompile + /// impl pallet_balances::Config for Runtime { + /// type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData> + /// } + /// ``` + /// + /// You can also store the balance of an account in the `System` pallet. + /// + /// # Example + /// + /// ```nocompile + /// impl pallet_balances::Config for Runtime { + /// type AccountStore = System + /// } + /// ``` + /// + /// But this comes with tradeoffs, storing account balances in the system pallet + /// stores `frame_system` data alongside the account data contrary to storing + /// account balances in the `Balances` pallet, which uses a `StorageMap` to store + /// balances data only. NOTE: This is only used in the case that this pallet is used + /// to store balances. + pub fn account_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Account", + Vec::new(), + [ + 213u8, 38u8, 200u8, 69u8, 218u8, 0u8, 112u8, 181u8, 160u8, 23u8, 96u8, + 90u8, 3u8, 88u8, 126u8, 22u8, 103u8, 74u8, 64u8, 69u8, 29u8, 247u8, + 18u8, 17u8, 234u8, 143u8, 189u8, 22u8, 247u8, 194u8, 154u8, 249u8, + ], + ) + } + /// Any liquidity locks on some account balances. + /// NOTE: Should only be accessed when setting, changing and freeing a lock. + pub fn locks( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Locks", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 10u8, 223u8, 55u8, 0u8, 249u8, 69u8, 168u8, 41u8, 75u8, 35u8, 120u8, + 167u8, 18u8, 132u8, 9u8, 20u8, 91u8, 51u8, 27u8, 69u8, 136u8, 187u8, + 13u8, 220u8, 163u8, 122u8, 26u8, 141u8, 174u8, 249u8, 85u8, 37u8, + ], + ) + } + /// Any liquidity locks on some account balances. + /// NOTE: Should only be accessed when setting, changing and freeing a lock. + pub fn locks_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Locks", + Vec::new(), + [ + 10u8, 223u8, 55u8, 0u8, 249u8, 69u8, 168u8, 41u8, 75u8, 35u8, 120u8, + 167u8, 18u8, 132u8, 9u8, 20u8, 91u8, 51u8, 27u8, 69u8, 136u8, 187u8, + 13u8, 220u8, 163u8, 122u8, 26u8, 141u8, 174u8, 249u8, 85u8, 37u8, + ], + ) + } + /// Named reserves on some account balances. + pub fn reserves( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Reserves", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 112u8, 10u8, 241u8, 77u8, 64u8, 187u8, 106u8, 159u8, 13u8, 153u8, + 140u8, 178u8, 182u8, 50u8, 1u8, 55u8, 149u8, 92u8, 196u8, 229u8, 170u8, + 106u8, 193u8, 88u8, 255u8, 244u8, 2u8, 193u8, 62u8, 235u8, 204u8, 91u8, + ], + ) + } + /// Named reserves on some account balances. + pub fn reserves_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::ReserveData< + [::core::primitive::u8; 8usize], + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Reserves", + Vec::new(), + [ + 112u8, 10u8, 241u8, 77u8, 64u8, 187u8, 106u8, 159u8, 13u8, 153u8, + 140u8, 178u8, 182u8, 50u8, 1u8, 55u8, 149u8, 92u8, 196u8, 229u8, 170u8, + 106u8, 193u8, 88u8, 255u8, 244u8, 2u8, 193u8, 62u8, 235u8, 204u8, 91u8, + ], + ) + } + /// Holds on account balances. + pub fn holds( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + runtime_types::tangle_testnet_runtime::RuntimeHoldReason, + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Holds", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 37u8, 176u8, 2u8, 18u8, 109u8, 26u8, 66u8, 81u8, 28u8, 104u8, 149u8, + 117u8, 119u8, 114u8, 196u8, 35u8, 172u8, 155u8, 66u8, 195u8, 98u8, + 37u8, 134u8, 22u8, 106u8, 221u8, 215u8, 97u8, 25u8, 28u8, 21u8, 206u8, + ], + ) + } + /// Holds on account balances. + pub fn holds_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + runtime_types::tangle_testnet_runtime::RuntimeHoldReason, + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Holds", + Vec::new(), + [ + 37u8, 176u8, 2u8, 18u8, 109u8, 26u8, 66u8, 81u8, 28u8, 104u8, 149u8, + 117u8, 119u8, 114u8, 196u8, 35u8, 172u8, 155u8, 66u8, 195u8, 98u8, + 37u8, 134u8, 22u8, 106u8, 221u8, 215u8, 97u8, 25u8, 28u8, 21u8, 206u8, + ], + ) + } + /// Freeze locks on account balances. + pub fn freezes( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Freezes", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8, + 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, + 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8, + ], + ) + } + /// Freeze locks on account balances. + pub fn freezes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Freezes", + Vec::new(), + [ + 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8, + 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, + 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! + /// + /// If you *really* need it to be zero, you can enable the feature + /// `insecure_zero_ed` for this pallet. However, you do so at your own risk: this + /// will open up a major DoS vector. In case you have multiple sources of provider + /// references, you may also get unexpected behaviour if you set this to zero. + /// + /// Bottom line: Do yourself a favour and make it at least one! + pub fn existential_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Balances", + "ExistentialDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// The maximum number of locks that should exist on an account. + /// Not strictly enforced, but used for weight estimation. + pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Balances", + "MaxLocks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// The maximum number of named reserves that can exist on an account. + pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Balances", + "MaxReserves", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// The maximum number of holds that can exist on an account at any time. + pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Balances", + "MaxHolds", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// The maximum number of individual freeze locks that can exist on an account at + /// any time. + pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Balances", + "MaxFreezes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod transaction_payment { + use super::{root_mod, runtime_types}; + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_transaction_payment::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion + /// fee, has been paid by `who`. + pub struct TransactionFeePaid { + pub who: ::subxt::utils::AccountId32, + pub actual_fee: ::core::primitive::u128, + pub tip: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for TransactionFeePaid { + const PALLET: &'static str = "TransactionPayment"; + const EVENT: &'static str = "TransactionFeePaid"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn next_fee_multiplier( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::fixed_point::FixedU128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionPayment", + "NextFeeMultiplier", + vec![], + [ + 247u8, 39u8, 81u8, 170u8, 225u8, 226u8, 82u8, 147u8, 34u8, 113u8, + 147u8, 213u8, 59u8, 80u8, 139u8, 35u8, 36u8, 196u8, 152u8, 19u8, 9u8, + 159u8, 176u8, 79u8, 249u8, 201u8, 170u8, 1u8, 129u8, 79u8, 146u8, + 197u8, + ], + ) + } + pub fn storage_version( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_transaction_payment::Releases, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "TransactionPayment", + "StorageVersion", + vec![], + [ + 105u8, 243u8, 158u8, 241u8, 159u8, 231u8, 253u8, 6u8, 4u8, 32u8, 85u8, + 178u8, 126u8, 31u8, 203u8, 134u8, 154u8, 38u8, 122u8, 155u8, 150u8, + 251u8, 174u8, 15u8, 74u8, 134u8, 216u8, 244u8, 168u8, 175u8, 158u8, + 144u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost + /// their `priority` + /// + /// This value is multipled by the `final_fee` to obtain a "virtual tip" that is + /// later added to a tip component in regular `priority` calculations. + /// It means that a `Normal` transaction can front-run a similarly-sized + /// `Operational` extrinsic (with no tip), by including a tip value greater than the + /// virtual tip. + /// + /// ```rust,ignore + /// // For `Normal` + /// let priority = priority_calc(tip); + /// + /// // For `Operational` + /// let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier; + /// let priority = priority_calc(tip + virtual_tip); + /// ``` + /// + /// Note that since we use `final_fee` the multiplier applies also to the regular + /// `tip` sent with the transaction. So, not only does the transaction get a + /// priority bump based on the `inclusion_fee`, but we also amplify the impact of + /// tips applied to `Operational` transactions. + pub fn operational_fee_multiplier( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u8> { + ::subxt::constants::Address::new_static( + "TransactionPayment", + "OperationalFeeMultiplier", + [ + 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, 179u8, 168u8, 110u8, + 28u8, 91u8, 221u8, 64u8, 4u8, 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, + 114u8, 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, 228u8, 183u8, + 165u8, + ], + ) + } + } + } + } + pub mod authorship { + use super::{root_mod, runtime_types}; + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Author of current block. + pub fn author( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Authorship", + "Author", + vec![], + [ + 247u8, 192u8, 118u8, 227u8, 47u8, 20u8, 203u8, 199u8, 216u8, 87u8, + 220u8, 50u8, 166u8, 61u8, 168u8, 213u8, 253u8, 62u8, 202u8, 199u8, + 61u8, 192u8, 237u8, 53u8, 22u8, 148u8, 164u8, 245u8, 99u8, 24u8, 146u8, + 18u8, + ], + ) + } + } + } + } + pub mod babe { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_babe::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_babe::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReportEquivocation { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + >, + runtime_types::sp_consensus_babe::app::Public, + >, + >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, + } + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { + const PALLET: &'static str = "Babe"; + const CALL: &'static str = "report_equivocation"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + >, + runtime_types::sp_consensus_babe::app::Public, + >, + >, + pub key_owner_proof: runtime_types::sp_session::MembershipProof, + } + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + const PALLET: &'static str = "Babe"; + const CALL: &'static str = "report_equivocation_unsigned"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PlanConfigChange { + pub config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, + } + impl ::subxt::blocks::StaticExtrinsic for PlanConfigChange { + const PALLET: &'static str = "Babe"; + const CALL: &'static str = "plan_config_change"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::report_equivocation`]. + pub fn report_equivocation( + &self, + equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u64>, + runtime_types::sp_consensus_babe::app::Public, + >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Babe", + "report_equivocation", + types::ReportEquivocation { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, + }, + [ + 53u8, 75u8, 169u8, 115u8, 149u8, 168u8, 106u8, 7u8, 82u8, 253u8, 9u8, + 210u8, 131u8, 28u8, 177u8, 205u8, 143u8, 190u8, 175u8, 234u8, 49u8, + 247u8, 173u8, 37u8, 78u8, 145u8, 184u8, 23u8, 75u8, 72u8, 16u8, 136u8, + ], + ) + } + ///See [`Pallet::report_equivocation_unsigned`]. + pub fn report_equivocation_unsigned( + &self, + equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header<::core::primitive::u64>, + runtime_types::sp_consensus_babe::app::Public, + >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Babe", + "report_equivocation_unsigned", + types::ReportEquivocationUnsigned { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, + }, + [ + 97u8, 26u8, 6u8, 27u8, 230u8, 52u8, 212u8, 175u8, 125u8, 141u8, 159u8, + 243u8, 96u8, 116u8, 56u8, 145u8, 91u8, 55u8, 122u8, 209u8, 151u8, + 202u8, 234u8, 151u8, 129u8, 18u8, 235u8, 245u8, 216u8, 75u8, 76u8, + 161u8, + ], + ) + } + ///See [`Pallet::plan_config_change`]. + pub fn plan_config_change( + &self, + config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Babe", + "plan_config_change", + types::PlanConfigChange { config }, + [ + 227u8, 155u8, 182u8, 231u8, 240u8, 107u8, 30u8, 22u8, 15u8, 52u8, + 172u8, 203u8, 115u8, 47u8, 6u8, 66u8, 170u8, 231u8, 186u8, 77u8, 19u8, + 235u8, 91u8, 136u8, 95u8, 149u8, 188u8, 163u8, 161u8, 109u8, 164u8, + 179u8, + ], + ) + } + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Current epoch index. + pub fn epoch_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochIndex", + vec![], + [ + 32u8, 82u8, 130u8, 31u8, 190u8, 162u8, 237u8, 189u8, 104u8, 244u8, + 30u8, 199u8, 179u8, 0u8, 161u8, 107u8, 72u8, 240u8, 201u8, 222u8, + 177u8, 222u8, 35u8, 156u8, 81u8, 132u8, 162u8, 118u8, 238u8, 84u8, + 112u8, 89u8, + ], + ) + } + /// Current epoch authorities. + pub fn authorities( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( + runtime_types::sp_consensus_babe::app::Public, + ::core::primitive::u64, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "Authorities", + vec![], + [ + 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, + 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, + 153u8, 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, + 85u8, + ], + ) + } + /// The slot at which the first epoch actually started. This is 0 + /// until the first block of the chain. + pub fn genesis_slot( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_slots::Slot, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "GenesisSlot", + vec![], + [ + 218u8, 174u8, 152u8, 76u8, 188u8, 214u8, 7u8, 88u8, 253u8, 187u8, + 139u8, 234u8, 51u8, 28u8, 220u8, 57u8, 73u8, 1u8, 18u8, 205u8, 80u8, + 160u8, 120u8, 216u8, 139u8, 191u8, 100u8, 108u8, 162u8, 106u8, 175u8, + 107u8, + ], + ) + } + /// Current slot number. + pub fn current_slot( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_slots::Slot, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "CurrentSlot", + vec![], + [ + 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8, + 236u8, 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, + 201u8, 169u8, 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8, + 43u8, 57u8, + ], + ) + } + /// The epoch randomness for the *current* epoch. + /// + /// # Security + /// + /// This MUST NOT be used for gambling, as it can be influenced by a + /// malicious validator in the short term. It MAY be used in many + /// cryptographic protocols, however, so long as one remembers that this + /// (like everything else on-chain) it is public. For example, it can be + /// used where a number is needed that cannot have been chosen by an + /// adversary, for purposes such as public-coin zero-knowledge proofs. + pub fn randomness( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + [::core::primitive::u8; 32usize], + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "Randomness", + vec![], + [ + 36u8, 15u8, 52u8, 73u8, 195u8, 177u8, 186u8, 125u8, 134u8, 11u8, 103u8, + 248u8, 170u8, 237u8, 105u8, 239u8, 168u8, 204u8, 147u8, 52u8, 15u8, + 226u8, 126u8, 176u8, 133u8, 186u8, 169u8, 241u8, 156u8, 118u8, 67u8, + 58u8, + ], + ) + } + /// Pending epoch configuration change that will be applied when the next epoch is + /// enacted. + pub fn pending_epoch_config_change( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "PendingEpochConfigChange", + vec![], + [ + 79u8, 216u8, 84u8, 210u8, 83u8, 149u8, 122u8, 160u8, 159u8, 164u8, + 16u8, 134u8, 154u8, 104u8, 77u8, 254u8, 139u8, 18u8, 163u8, 59u8, 92u8, + 9u8, 135u8, 141u8, 147u8, 86u8, 44u8, 95u8, 183u8, 101u8, 11u8, 58u8, + ], + ) + } + /// Next epoch randomness. + pub fn next_randomness( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + [::core::primitive::u8; 32usize], + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "NextRandomness", + vec![], + [ + 96u8, 191u8, 139u8, 171u8, 144u8, 92u8, 33u8, 58u8, 23u8, 219u8, 164u8, + 121u8, 59u8, 209u8, 112u8, 244u8, 50u8, 8u8, 14u8, 244u8, 103u8, 125u8, + 120u8, 210u8, 16u8, 250u8, 54u8, 192u8, 72u8, 8u8, 219u8, 152u8, + ], + ) + } + /// Next epoch authorities. + pub fn next_authorities( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( + runtime_types::sp_consensus_babe::app::Public, + ::core::primitive::u64, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "NextAuthorities", + vec![], + [ + 116u8, 95u8, 126u8, 199u8, 237u8, 90u8, 202u8, 227u8, 247u8, 56u8, + 201u8, 113u8, 239u8, 191u8, 151u8, 56u8, 156u8, 133u8, 61u8, 64u8, + 141u8, 26u8, 8u8, 95u8, 177u8, 255u8, 54u8, 223u8, 132u8, 74u8, 210u8, + 128u8, + ], + ) + } + /// Randomness under construction. + /// + /// We make a trade-off between storage accesses and list length. + /// We store the under-construction randomness in segments of up to + /// `UNDER_CONSTRUCTION_SEGMENT_LENGTH`. + /// + /// Once a segment reaches this length, we begin the next one. + /// We reset all segments and return to `0` at the beginning of every + /// epoch. + pub fn segment_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "SegmentIndex", + vec![], + [ + 145u8, 91u8, 142u8, 240u8, 184u8, 94u8, 68u8, 52u8, 130u8, 3u8, 75u8, + 175u8, 155u8, 130u8, 66u8, 9u8, 150u8, 242u8, 123u8, 111u8, 124u8, + 241u8, 100u8, 128u8, 220u8, 133u8, 96u8, 227u8, 164u8, 241u8, 170u8, + 34u8, + ], + ) + } + /// TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay. + pub fn under_construction( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + [::core::primitive::u8; 32usize], + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "UnderConstruction", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 120u8, 120u8, 59u8, 247u8, 50u8, 6u8, 220u8, 14u8, 2u8, 76u8, 203u8, + 244u8, 232u8, 144u8, 253u8, 191u8, 101u8, 35u8, 99u8, 85u8, 111u8, + 168u8, 31u8, 110u8, 187u8, 124u8, 72u8, 32u8, 43u8, 66u8, 8u8, 215u8, + ], + ) + } + /// TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay. + pub fn under_construction_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + [::core::primitive::u8; 32usize], + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "UnderConstruction", + Vec::new(), + [ + 120u8, 120u8, 59u8, 247u8, 50u8, 6u8, 220u8, 14u8, 2u8, 76u8, 203u8, + 244u8, 232u8, 144u8, 253u8, 191u8, 101u8, 35u8, 99u8, 85u8, 111u8, + 168u8, 31u8, 110u8, 187u8, 124u8, 72u8, 32u8, 43u8, 66u8, 8u8, 215u8, + ], + ) + } + /// Temporary value (cleared at block finalization) which is `Some` + /// if per-block initialization has already been called for current block. + pub fn initialized( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::option::Option, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "Initialized", + vec![], + [ + 137u8, 31u8, 4u8, 130u8, 35u8, 232u8, 67u8, 108u8, 17u8, 123u8, 26u8, + 96u8, 238u8, 95u8, 138u8, 208u8, 163u8, 83u8, 218u8, 143u8, 8u8, 119u8, + 138u8, 130u8, 9u8, 194u8, 92u8, 40u8, 7u8, 89u8, 53u8, 237u8, + ], + ) + } + /// This field should always be populated during block processing unless + /// secondary plain slots are enabled (which don't contain a VRF output). + /// + /// It is set in `on_finalize`, before it will contain the value from the last + /// block. + pub fn author_vrf_randomness( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::option::Option<[::core::primitive::u8; 32usize]>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "AuthorVrfRandomness", + vec![], + [ + 160u8, 157u8, 62u8, 48u8, 196u8, 136u8, 63u8, 132u8, 155u8, 183u8, + 91u8, 201u8, 146u8, 29u8, 192u8, 142u8, 168u8, 152u8, 197u8, 233u8, + 5u8, 25u8, 0u8, 154u8, 234u8, 180u8, 146u8, 132u8, 106u8, 164u8, 149u8, + 63u8, + ], + ) + } + /// The block numbers when the last and current epoch have started, respectively + /// `N-1` and `N`. + /// NOTE: We track this is in order to annotate the block number when a given pool + /// of entropy was fixed (i.e. it was known to chain observers). Since epochs are + /// defined in slots, which may be skipped, the block numbers may not line up with + /// the slot numbers. + pub fn epoch_start( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u64, ::core::primitive::u64), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochStart", + vec![], + [ + 108u8, 147u8, 59u8, 243u8, 90u8, 233u8, 209u8, 100u8, 135u8, 174u8, + 43u8, 233u8, 23u8, 28u8, 254u8, 229u8, 32u8, 45u8, 60u8, 159u8, 241u8, + 93u8, 11u8, 238u8, 6u8, 170u8, 120u8, 211u8, 95u8, 145u8, 140u8, 105u8, + ], + ) + } + /// How late the current block is compared to its parent. + /// + /// This entry is populated as part of block execution and is cleaned up + /// on block finalization. Querying this storage entry outside of block + /// execution context should always yield zero. + pub fn lateness( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "Lateness", + vec![], + [ + 25u8, 226u8, 51u8, 102u8, 7u8, 24u8, 111u8, 127u8, 155u8, 156u8, 143u8, + 100u8, 211u8, 142u8, 46u8, 185u8, 155u8, 121u8, 86u8, 197u8, 204u8, + 64u8, 2u8, 47u8, 178u8, 76u8, 21u8, 237u8, 85u8, 230u8, 139u8, 64u8, + ], + ) + } + /// The configuration for the current epoch. Should never be `None` as it is + /// initialized in genesis. + pub fn epoch_config( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_babe::BabeEpochConfiguration, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochConfig", + vec![], + [ + 151u8, 58u8, 93u8, 2u8, 19u8, 98u8, 41u8, 144u8, 241u8, 70u8, 195u8, + 37u8, 126u8, 241u8, 111u8, 65u8, 16u8, 228u8, 111u8, 220u8, 241u8, + 215u8, 179u8, 235u8, 122u8, 88u8, 92u8, 95u8, 131u8, 252u8, 236u8, + 46u8, + ], + ) + } + /// The configuration for the next epoch, `None` if the config will not change + /// (you can fallback to `EpochConfig` instead in that case). + pub fn next_epoch_config( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_consensus_babe::BabeEpochConfiguration, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "NextEpochConfig", + vec![], + [ + 65u8, 54u8, 74u8, 141u8, 193u8, 124u8, 130u8, 238u8, 106u8, 27u8, + 221u8, 189u8, 103u8, 53u8, 39u8, 243u8, 212u8, 216u8, 75u8, 185u8, + 104u8, 220u8, 70u8, 108u8, 87u8, 172u8, 201u8, 185u8, 39u8, 55u8, + 145u8, 6u8, + ], + ) + } + /// A list of the last 100 skipped epochs and the corresponding session index + /// when the epoch was skipped. + /// + /// This is only used for validating equivocation proofs. An equivocation proof + /// must contains a key-ownership proof for a given session, therefore we need a + /// way to tie together sessions and epoch indices, i.e. we need to validate that + /// a validator was the owner of a given key on a given session, and what the + /// active epoch index was during that session. + pub fn skipped_epochs( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "SkippedEpochs", + vec![], + [ + 120u8, 167u8, 144u8, 97u8, 41u8, 216u8, 103u8, 90u8, 3u8, 86u8, 196u8, + 35u8, 160u8, 150u8, 144u8, 233u8, 128u8, 35u8, 119u8, 66u8, 6u8, 63u8, + 114u8, 140u8, 182u8, 228u8, 192u8, 30u8, 50u8, 145u8, 217u8, 108u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The amount of time, in slots, that each epoch should last. + /// 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 fn epoch_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Babe", + "EpochDuration", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// The expected average block time at which BABE should be creating + /// blocks. Since BABE is probabilistic it is not trivial to figure out + /// what the expected average block time should be based on the slot + /// duration and the security parameter `c` (where `1 - c` represents + /// the probability of a slot being empty). + pub fn expected_block_time( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Babe", + "ExpectedBlockTime", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// Max number of authorities allowed + pub fn max_authorities( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Babe", + "MaxAuthorities", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// The maximum number of nominators for each validator. + pub fn max_nominators( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Babe", + "MaxNominators", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod grandpa { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_grandpa::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_grandpa::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReportEquivocation { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u64, + >, + >, + pub key_owner_proof: runtime_types::sp_core::Void, + } + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReportEquivocationUnsigned { + pub equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u64, + >, + >, + pub key_owner_proof: runtime_types::sp_core::Void, + } + impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation_unsigned"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NoteStalled { + pub delay: ::core::primitive::u64, + pub best_finalized_block_number: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for NoteStalled { + const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "note_stalled"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::report_equivocation`]. + pub fn report_equivocation( + &self, + equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u64, + >, + key_owner_proof: runtime_types::sp_core::Void, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Grandpa", + "report_equivocation", + types::ReportEquivocation { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, + }, + [ + 210u8, 146u8, 3u8, 25u8, 228u8, 26u8, 174u8, 152u8, 120u8, 139u8, 49u8, + 11u8, 0u8, 11u8, 97u8, 243u8, 242u8, 40u8, 15u8, 217u8, 92u8, 194u8, + 174u8, 100u8, 88u8, 228u8, 13u8, 240u8, 246u8, 19u8, 139u8, 44u8, + ], + ) + } + ///See [`Pallet::report_equivocation_unsigned`]. + pub fn report_equivocation_unsigned( + &self, + equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u64, + >, + key_owner_proof: runtime_types::sp_core::Void, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Grandpa", + "report_equivocation_unsigned", + types::ReportEquivocationUnsigned { + equivocation_proof: ::std::boxed::Box::new(equivocation_proof), + key_owner_proof, + }, + [ + 59u8, 39u8, 153u8, 10u8, 1u8, 177u8, 4u8, 18u8, 166u8, 217u8, 24u8, + 123u8, 80u8, 235u8, 100u8, 27u8, 62u8, 152u8, 108u8, 209u8, 250u8, + 228u8, 178u8, 225u8, 134u8, 198u8, 126u8, 32u8, 130u8, 204u8, 179u8, + 201u8, + ], + ) + } + ///See [`Pallet::note_stalled`]. + pub fn note_stalled( + &self, + delay: ::core::primitive::u64, + best_finalized_block_number: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Grandpa", + "note_stalled", + types::NoteStalled { delay, best_finalized_block_number }, + [ + 172u8, 89u8, 201u8, 164u8, 105u8, 69u8, 86u8, 125u8, 143u8, 174u8, + 42u8, 253u8, 45u8, 160u8, 140u8, 155u8, 198u8, 91u8, 125u8, 108u8, + 158u8, 47u8, 233u8, 185u8, 109u8, 227u8, 106u8, 207u8, 95u8, 189u8, + 190u8, 53u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_grandpa::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///New authority set has been applied. + pub struct NewAuthorities { + pub authority_set: ::std::vec::Vec<( + runtime_types::sp_consensus_grandpa::app::Public, + ::core::primitive::u64, + )>, + } + impl ::subxt::events::StaticEvent for NewAuthorities { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "NewAuthorities"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Current authority set has been paused. + pub struct Paused; + impl ::subxt::events::StaticEvent for Paused { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Paused"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Current authority set has been resumed. + pub struct Resumed; + impl ::subxt::events::StaticEvent for Resumed { + const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Resumed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// State of the current authority set. + pub fn state( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_grandpa::StoredState<::core::primitive::u64>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "State", + vec![], + [ + 52u8, 94u8, 52u8, 200u8, 52u8, 34u8, 254u8, 53u8, 83u8, 6u8, 129u8, + 34u8, 8u8, 49u8, 75u8, 153u8, 118u8, 3u8, 28u8, 182u8, 64u8, 234u8, + 152u8, 44u8, 147u8, 222u8, 17u8, 17u8, 61u8, 0u8, 186u8, 122u8, + ], + ) + } + /// Pending change: (signaled at, scheduled change). + pub fn pending_change( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_grandpa::StoredPendingChange<::core::primitive::u64>, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "PendingChange", + vec![], + [ + 115u8, 197u8, 58u8, 109u8, 138u8, 143u8, 3u8, 71u8, 128u8, 226u8, + 164u8, 246u8, 195u8, 182u8, 168u8, 95u8, 130u8, 81u8, 120u8, 27u8, + 202u8, 18u8, 70u8, 26u8, 55u8, 144u8, 142u8, 4u8, 47u8, 49u8, 195u8, + 174u8, + ], + ) + } + /// next block number where we can force a change. + pub fn next_forced( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "NextForced", + vec![], + [ + 66u8, 193u8, 103u8, 170u8, 125u8, 104u8, 224u8, 91u8, 124u8, 113u8, + 65u8, 233u8, 30u8, 79u8, 109u8, 123u8, 40u8, 7u8, 115u8, 162u8, 181u8, + 225u8, 47u8, 48u8, 240u8, 29u8, 131u8, 206u8, 142u8, 22u8, 136u8, + 231u8, + ], + ) + } + /// `true` if we are currently stalled. + pub fn stalled( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u64, ::core::primitive::u64), + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "Stalled", + vec![], + [ + 194u8, 42u8, 49u8, 169u8, 34u8, 43u8, 158u8, 240u8, 232u8, 208u8, 15u8, + 10u8, 135u8, 180u8, 99u8, 216u8, 83u8, 250u8, 0u8, 148u8, 173u8, 169u8, + 105u8, 136u8, 3u8, 136u8, 125u8, 87u8, 49u8, 173u8, 223u8, 56u8, + ], + ) + } + /// The number of changes (both in terms of keys and underlying economic + /// responsibilities) in the "set" of Grandpa validators from genesis. + pub fn current_set_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "CurrentSetId", + vec![], + [ + 234u8, 215u8, 218u8, 42u8, 30u8, 76u8, 129u8, 40u8, 125u8, 137u8, + 207u8, 47u8, 46u8, 213u8, 159u8, 50u8, 175u8, 81u8, 155u8, 123u8, + 246u8, 175u8, 156u8, 68u8, 22u8, 113u8, 135u8, 137u8, 163u8, 18u8, + 115u8, 73u8, + ], + ) + } + /// A mapping from grandpa set ID to the index of the *most recent* session for + /// which its members were responsible. + /// + /// This is only used for validating equivocation proofs. An equivocation proof must + /// contains a key-ownership proof for a given session, therefore we need a way to + /// tie together sessions and GRANDPA set ids, i.e. we need to validate that a + /// validator was the owner of a given key on a given session, and what the active + /// set ID was during that session. + /// + /// TWOX-NOTE: `SetId` is not under user control. + pub fn set_id_session( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "SetIdSession", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8, + 65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8, + 238u8, 18u8, 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8, + ], + ) + } + /// A mapping from grandpa set ID to the index of the *most recent* session for + /// which its members were responsible. + /// + /// This is only used for validating equivocation proofs. An equivocation proof must + /// contains a key-ownership proof for a given session, therefore we need a way to + /// tie together sessions and GRANDPA set ids, i.e. we need to validate that a + /// validator was the owner of a given key on a given session, and what the active + /// set ID was during that session. + /// + /// TWOX-NOTE: `SetId` is not under user control. + pub fn set_id_session_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Grandpa", + "SetIdSession", + Vec::new(), + [ + 47u8, 0u8, 239u8, 121u8, 187u8, 213u8, 254u8, 50u8, 238u8, 10u8, 162u8, + 65u8, 189u8, 166u8, 37u8, 74u8, 82u8, 81u8, 160u8, 20u8, 180u8, 253u8, + 238u8, 18u8, 209u8, 203u8, 38u8, 148u8, 16u8, 105u8, 72u8, 169u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// Max Authorities in use + pub fn max_authorities( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxAuthorities", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// The maximum number of nominators for each validator. + pub fn max_nominators( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxNominators", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// The maximum number of entries to keep in the set id to session index mapping. + /// + /// Since the `SetIdSession` map is only used for validating equivocations this + /// value should relate to the bonding duration of whatever staking system is + /// being used (if any). If equivocation handling is not enabled then this value + /// can be zero. + pub fn max_set_id_session_entries( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxSetIdSessionEntries", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + } + } + } + pub mod indices { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_indices::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_indices::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Claim { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Claim { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "claim"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Transfer { + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "transfer"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Free { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Free { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "free"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceTransfer { + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub index: ::core::primitive::u32, + pub freeze: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "force_transfer"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Freeze { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Freeze { + const PALLET: &'static str = "Indices"; + const CALL: &'static str = "freeze"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::claim`]. + pub fn claim( + &self, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "claim", + types::Claim { index }, + [ + 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, 140u8, 169u8, 232u8, + 195u8, 11u8, 107u8, 36u8, 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, + 205u8, 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, 91u8, 235u8, + ], + ) + } + ///See [`Pallet::transfer`]. + pub fn transfer( + &self, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "transfer", + types::Transfer { new, index }, + [ + 253u8, 209u8, 123u8, 236u8, 91u8, 71u8, 183u8, 49u8, 84u8, 13u8, 130u8, + 208u8, 181u8, 218u8, 219u8, 178u8, 71u8, 76u8, 228u8, 249u8, 197u8, + 243u8, 136u8, 122u8, 150u8, 179u8, 249u8, 187u8, 150u8, 158u8, 201u8, + 134u8, + ], + ) + } + ///See [`Pallet::free`]. + pub fn free( + &self, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "free", + types::Free { index }, + [ + 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, 27u8, 8u8, 229u8, 80u8, + 227u8, 138u8, 252u8, 222u8, 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, + 247u8, 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, 215u8, + 244u8, + ], + ) + } + ///See [`Pallet::force_transfer`]. + pub fn force_transfer( + &self, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + freeze: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "force_transfer", + types::ForceTransfer { new, index, freeze }, + [ + 61u8, 7u8, 111u8, 227u8, 228u8, 62u8, 178u8, 225u8, 195u8, 185u8, + 243u8, 161u8, 156u8, 53u8, 165u8, 178u8, 238u8, 146u8, 66u8, 165u8, + 7u8, 137u8, 36u8, 7u8, 118u8, 84u8, 203u8, 3u8, 143u8, 95u8, 99u8, + 192u8, + ], + ) + } + ///See [`Pallet::freeze`]. + pub fn freeze( + &self, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Indices", + "freeze", + types::Freeze { index }, + [ + 238u8, 215u8, 108u8, 156u8, 84u8, 240u8, 130u8, 229u8, 27u8, 132u8, + 93u8, 78u8, 2u8, 251u8, 43u8, 203u8, 2u8, 142u8, 147u8, 48u8, 92u8, + 101u8, 207u8, 24u8, 51u8, 16u8, 36u8, 229u8, 188u8, 129u8, 160u8, + 117u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_indices::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A account index was assigned. + pub struct IndexAssigned { + pub who: ::subxt::utils::AccountId32, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for IndexAssigned { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexAssigned"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A account index has been freed up (unassigned). + pub struct IndexFreed { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for IndexFreed { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFreed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A account index has been frozen to its current account ID. + pub struct IndexFrozen { + pub index: ::core::primitive::u32, + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for IndexFrozen { + const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFrozen"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The lookup from index to account. + pub fn accounts( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::bool), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Indices", + "Accounts", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 48u8, 189u8, 43u8, 119u8, 32u8, 168u8, 28u8, 12u8, 245u8, 81u8, 119u8, + 182u8, 23u8, 201u8, 33u8, 147u8, 128u8, 171u8, 155u8, 134u8, 71u8, + 87u8, 100u8, 248u8, 107u8, 129u8, 36u8, 197u8, 220u8, 90u8, 11u8, + 238u8, + ], + ) + } + /// The lookup from index to account. + pub fn accounts_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::subxt::utils::AccountId32, ::core::primitive::u128, ::core::primitive::bool), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Indices", + "Accounts", + Vec::new(), + [ + 48u8, 189u8, 43u8, 119u8, 32u8, 168u8, 28u8, 12u8, 245u8, 81u8, 119u8, + 182u8, 23u8, 201u8, 33u8, 147u8, 128u8, 171u8, 155u8, 134u8, 71u8, + 87u8, 100u8, 248u8, 107u8, 129u8, 36u8, 197u8, 220u8, 90u8, 11u8, + 238u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The deposit needed for reserving an index. + pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Indices", + "Deposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + } + } + } + pub mod democracy { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_democracy::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_democracy::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Propose { + pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Propose { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "propose"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Second { + #[codec(compact)] + pub proposal: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Second { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "second"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Vote { + #[codec(compact)] + pub ref_index: ::core::primitive::u32, + pub vote: + runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>, + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "vote"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EmergencyCancel { + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for EmergencyCancel { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "emergency_cancel"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExternalPropose { + pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ExternalPropose { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExternalProposeMajority { + pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ExternalProposeMajority { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose_majority"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExternalProposeDefault { + pub proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ExternalProposeDefault { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose_default"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct FastTrack { + pub proposal_hash: ::subxt::utils::H256, + pub voting_period: ::core::primitive::u64, + pub delay: ::core::primitive::u64, + } + impl ::subxt::blocks::StaticExtrinsic for FastTrack { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "fast_track"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct VetoExternal { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for VetoExternal { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "veto_external"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CancelReferendum { + #[codec(compact)] + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CancelReferendum { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "cancel_referendum"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Delegate { + pub to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub conviction: runtime_types::pallet_democracy::conviction::Conviction, + pub balance: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Delegate { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "delegate"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Undelegate; + impl ::subxt::blocks::StaticExtrinsic for Undelegate { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "undelegate"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClearPublicProposals; + impl ::subxt::blocks::StaticExtrinsic for ClearPublicProposals { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "clear_public_proposals"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Unlock { + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Unlock { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "unlock"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemoveVote { + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveVote { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "remove_vote"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemoveOtherVote { + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "remove_other_vote"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Blacklist { + pub proposal_hash: ::subxt::utils::H256, + pub maybe_ref_index: ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for Blacklist { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "blacklist"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CancelProposal { + #[codec(compact)] + pub prop_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CancelProposal { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "cancel_proposal"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetMetadata { + pub owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "set_metadata"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::propose`]. + pub fn propose( + &self, + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "propose", + types::Propose { proposal, value }, + [ + 164u8, 45u8, 183u8, 137u8, 222u8, 27u8, 138u8, 45u8, 20u8, 18u8, 234u8, + 211u8, 52u8, 184u8, 234u8, 222u8, 193u8, 9u8, 160u8, 58u8, 198u8, + 106u8, 236u8, 210u8, 172u8, 34u8, 194u8, 107u8, 135u8, 83u8, 22u8, + 238u8, + ], + ) + } + ///See [`Pallet::second`]. + pub fn second( + &self, + proposal: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "second", + types::Second { proposal }, + [ + 195u8, 55u8, 178u8, 55u8, 129u8, 64u8, 10u8, 131u8, 217u8, 79u8, 1u8, + 187u8, 73u8, 126u8, 191u8, 221u8, 110u8, 10u8, 13u8, 65u8, 190u8, + 107u8, 21u8, 236u8, 175u8, 130u8, 227u8, 179u8, 173u8, 39u8, 32u8, + 147u8, + ], + ) + } + ///See [`Pallet::vote`]. + pub fn vote( + &self, + ref_index: ::core::primitive::u32, + vote: runtime_types::pallet_democracy::vote::AccountVote< + ::core::primitive::u128, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "vote", + types::Vote { ref_index, vote }, + [ + 106u8, 195u8, 229u8, 44u8, 217u8, 214u8, 8u8, 234u8, 175u8, 62u8, 97u8, + 83u8, 193u8, 180u8, 103u8, 26u8, 174u8, 8u8, 2u8, 158u8, 25u8, 122u8, + 203u8, 122u8, 32u8, 14u8, 107u8, 169u8, 43u8, 240u8, 143u8, 103u8, + ], + ) + } + ///See [`Pallet::emergency_cancel`]. + pub fn emergency_cancel( + &self, + ref_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "emergency_cancel", + types::EmergencyCancel { ref_index }, + [ + 82u8, 232u8, 19u8, 158u8, 88u8, 69u8, 96u8, 225u8, 106u8, 253u8, 6u8, + 136u8, 87u8, 0u8, 68u8, 128u8, 122u8, 16u8, 107u8, 76u8, 209u8, 14u8, + 230u8, 49u8, 228u8, 100u8, 187u8, 10u8, 76u8, 71u8, 197u8, 72u8, + ], + ) + } + ///See [`Pallet::external_propose`]. + pub fn external_propose( + &self, + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "external_propose", + types::ExternalPropose { proposal }, + [ + 99u8, 120u8, 61u8, 124u8, 244u8, 68u8, 12u8, 240u8, 11u8, 168u8, 4u8, + 50u8, 19u8, 152u8, 255u8, 97u8, 20u8, 195u8, 141u8, 199u8, 31u8, 250u8, + 222u8, 136u8, 47u8, 162u8, 0u8, 32u8, 215u8, 110u8, 94u8, 109u8, + ], + ) + } + ///See [`Pallet::external_propose_majority`]. + pub fn external_propose_majority( + &self, + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "external_propose_majority", + types::ExternalProposeMajority { proposal }, + [ + 35u8, 61u8, 130u8, 81u8, 81u8, 180u8, 127u8, 202u8, 67u8, 84u8, 105u8, + 113u8, 112u8, 210u8, 1u8, 191u8, 10u8, 39u8, 157u8, 164u8, 9u8, 231u8, + 75u8, 25u8, 17u8, 175u8, 128u8, 180u8, 238u8, 58u8, 236u8, 214u8, + ], + ) + } + ///See [`Pallet::external_propose_default`]. + pub fn external_propose_default( + &self, + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "external_propose_default", + types::ExternalProposeDefault { proposal }, + [ + 136u8, 199u8, 244u8, 69u8, 5u8, 174u8, 166u8, 251u8, 102u8, 196u8, + 25u8, 6u8, 33u8, 216u8, 141u8, 78u8, 118u8, 125u8, 128u8, 218u8, 120u8, + 170u8, 166u8, 15u8, 124u8, 216u8, 128u8, 178u8, 5u8, 74u8, 170u8, 25u8, + ], + ) + } + ///See [`Pallet::fast_track`]. + pub fn fast_track( + &self, + proposal_hash: ::subxt::utils::H256, + voting_period: ::core::primitive::u64, + delay: ::core::primitive::u64, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "fast_track", + types::FastTrack { proposal_hash, voting_period, delay }, + [ + 171u8, 67u8, 60u8, 58u8, 29u8, 115u8, 227u8, 25u8, 145u8, 104u8, 30u8, + 198u8, 52u8, 81u8, 213u8, 42u8, 103u8, 213u8, 168u8, 32u8, 62u8, 121u8, + 215u8, 102u8, 168u8, 95u8, 217u8, 137u8, 143u8, 214u8, 123u8, 171u8, + ], + ) + } + ///See [`Pallet::veto_external`]. + pub fn veto_external( + &self, + proposal_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "veto_external", + types::VetoExternal { proposal_hash }, + [ + 121u8, 217u8, 249u8, 134u8, 45u8, 19u8, 126u8, 166u8, 218u8, 223u8, + 165u8, 124u8, 162u8, 59u8, 56u8, 200u8, 227u8, 125u8, 23u8, 133u8, + 196u8, 93u8, 210u8, 15u8, 39u8, 26u8, 58u8, 236u8, 9u8, 101u8, 202u8, + 168u8, + ], + ) + } + ///See [`Pallet::cancel_referendum`]. + pub fn cancel_referendum( + &self, + ref_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "cancel_referendum", + types::CancelReferendum { ref_index }, + [ + 149u8, 120u8, 70u8, 20u8, 126u8, 21u8, 30u8, 33u8, 82u8, 124u8, 229u8, + 179u8, 169u8, 243u8, 173u8, 146u8, 140u8, 22u8, 124u8, 154u8, 228u8, + 117u8, 109u8, 88u8, 11u8, 100u8, 235u8, 243u8, 118u8, 99u8, 250u8, + 140u8, + ], + ) + } + ///See [`Pallet::delegate`]. + pub fn delegate( + &self, + to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + conviction: runtime_types::pallet_democracy::conviction::Conviction, + balance: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "delegate", + types::Delegate { to, conviction, balance }, + [ + 98u8, 204u8, 103u8, 220u8, 240u8, 72u8, 17u8, 89u8, 31u8, 234u8, 53u8, + 234u8, 85u8, 150u8, 42u8, 130u8, 14u8, 164u8, 148u8, 103u8, 199u8, + 230u8, 119u8, 192u8, 95u8, 200u8, 10u8, 214u8, 48u8, 252u8, 64u8, 45u8, + ], + ) + } + ///See [`Pallet::undelegate`]. + pub fn undelegate(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "undelegate", + types::Undelegate {}, + [ + 225u8, 156u8, 102u8, 1u8, 172u8, 145u8, 88u8, 12u8, 89u8, 32u8, 51u8, + 83u8, 25u8, 149u8, 132u8, 203u8, 246u8, 98u8, 155u8, 36u8, 165u8, + 206u8, 233u8, 169u8, 91u8, 85u8, 105u8, 67u8, 46u8, 134u8, 244u8, + 250u8, + ], + ) + } + ///See [`Pallet::clear_public_proposals`]. + pub fn clear_public_proposals( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "clear_public_proposals", + types::ClearPublicProposals {}, + [ + 116u8, 160u8, 246u8, 216u8, 23u8, 188u8, 144u8, 63u8, 97u8, 198u8, + 11u8, 243u8, 165u8, 84u8, 159u8, 153u8, 235u8, 169u8, 166u8, 15u8, + 23u8, 116u8, 30u8, 56u8, 133u8, 31u8, 158u8, 114u8, 158u8, 86u8, 106u8, + 93u8, + ], + ) + } + ///See [`Pallet::unlock`]. + pub fn unlock( + &self, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "unlock", + types::Unlock { target }, + [ + 116u8, 108u8, 113u8, 20u8, 39u8, 227u8, 153u8, 96u8, 178u8, 223u8, + 155u8, 95u8, 111u8, 168u8, 169u8, 32u8, 230u8, 125u8, 119u8, 162u8, + 8u8, 40u8, 57u8, 237u8, 22u8, 160u8, 100u8, 203u8, 247u8, 20u8, 251u8, + 99u8, + ], + ) + } + ///See [`Pallet::remove_vote`]. + pub fn remove_vote( + &self, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "remove_vote", + types::RemoveVote { index }, + [ + 98u8, 146u8, 215u8, 63u8, 222u8, 70u8, 61u8, 186u8, 90u8, 34u8, 63u8, + 25u8, 195u8, 119u8, 228u8, 189u8, 38u8, 163u8, 58u8, 210u8, 216u8, + 156u8, 20u8, 204u8, 136u8, 192u8, 33u8, 210u8, 124u8, 65u8, 153u8, + 105u8, + ], + ) + } + ///See [`Pallet::remove_other_vote`]. + pub fn remove_other_vote( + &self, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "remove_other_vote", + types::RemoveOtherVote { target, index }, + [ + 71u8, 148u8, 41u8, 68u8, 78u8, 40u8, 128u8, 217u8, 49u8, 83u8, 128u8, + 13u8, 225u8, 24u8, 41u8, 69u8, 119u8, 229u8, 241u8, 178u8, 20u8, 91u8, + 1u8, 180u8, 113u8, 127u8, 8u8, 2u8, 233u8, 174u8, 192u8, 140u8, + ], + ) + } + ///See [`Pallet::blacklist`]. + pub fn blacklist( + &self, + proposal_hash: ::subxt::utils::H256, + maybe_ref_index: ::core::option::Option<::core::primitive::u32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "blacklist", + types::Blacklist { proposal_hash, maybe_ref_index }, + [ + 227u8, 200u8, 88u8, 154u8, 134u8, 121u8, 131u8, 177u8, 94u8, 119u8, + 12u8, 129u8, 150u8, 59u8, 108u8, 103u8, 109u8, 55u8, 220u8, 211u8, + 250u8, 103u8, 160u8, 170u8, 63u8, 142u8, 112u8, 244u8, 29u8, 238u8, + 101u8, 24u8, + ], + ) + } + ///See [`Pallet::cancel_proposal`]. + pub fn cancel_proposal( + &self, + prop_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "cancel_proposal", + types::CancelProposal { prop_index }, + [ + 213u8, 5u8, 215u8, 209u8, 71u8, 229u8, 66u8, 38u8, 171u8, 38u8, 14u8, + 103u8, 248u8, 176u8, 217u8, 143u8, 234u8, 89u8, 110u8, 250u8, 3u8, + 190u8, 151u8, 74u8, 55u8, 58u8, 249u8, 138u8, 25u8, 191u8, 55u8, 142u8, + ], + ) + } + ///See [`Pallet::set_metadata`]. + pub fn set_metadata( + &self, + owner: runtime_types::pallet_democracy::types::MetadataOwner, + maybe_hash: ::core::option::Option<::subxt::utils::H256>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "set_metadata", + types::SetMetadata { owner, maybe_hash }, + [ + 191u8, 200u8, 139u8, 27u8, 167u8, 250u8, 72u8, 78u8, 18u8, 98u8, 108u8, + 1u8, 122u8, 120u8, 47u8, 77u8, 174u8, 60u8, 247u8, 69u8, 228u8, 196u8, + 149u8, 107u8, 239u8, 45u8, 47u8, 118u8, 87u8, 233u8, 79u8, 29u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_democracy::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A motion has been proposed by a public account. + pub struct Proposed { + pub proposal_index: ::core::primitive::u32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A public proposal has been tabled for referendum vote. + pub struct Tabled { + pub proposal_index: ::core::primitive::u32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Tabled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Tabled"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An external proposal has been tabled. + pub struct ExternalTabled; + impl ::subxt::events::StaticEvent for ExternalTabled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "ExternalTabled"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A referendum has begun. + pub struct Started { + pub ref_index: ::core::primitive::u32, + pub threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, + } + impl ::subxt::events::StaticEvent for Started { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Started"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A proposal has been approved by referendum. + pub struct Passed { + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Passed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Passed"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A proposal has been rejected by referendum. + pub struct NotPassed { + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for NotPassed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "NotPassed"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A referendum has been cancelled. + pub struct Cancelled { + pub ref_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Cancelled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Cancelled"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account has delegated their vote to another account. + pub struct Delegated { + pub who: ::subxt::utils::AccountId32, + pub target: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Delegated { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Delegated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account has cancelled a previous delegation operation. + pub struct Undelegated { + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Undelegated { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Undelegated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An external proposal has been vetoed. + pub struct Vetoed { + pub who: ::subxt::utils::AccountId32, + pub proposal_hash: ::subxt::utils::H256, + pub until: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for Vetoed { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Vetoed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A proposal_hash has been blacklisted permanently. + pub struct Blacklisted { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Blacklisted { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Blacklisted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account has voted in a referendum + pub struct Voted { + pub voter: ::subxt::utils::AccountId32, + pub ref_index: ::core::primitive::u32, + pub vote: + runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>, + } + impl ::subxt::events::StaticEvent for Voted { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Voted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account has secconded a proposal + pub struct Seconded { + pub seconder: ::subxt::utils::AccountId32, + pub prop_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Seconded { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Seconded"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A proposal got canceled. + pub struct ProposalCanceled { + pub prop_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for ProposalCanceled { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "ProposalCanceled"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Metadata for a proposal or a referendum has been set. + pub struct MetadataSet { + pub owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for MetadataSet { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "MetadataSet"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Metadata for a proposal or a referendum has been cleared. + pub struct MetadataCleared { + pub owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for MetadataCleared { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "MetadataCleared"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Metadata has been transferred to new owner. + pub struct MetadataTransferred { + pub prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for MetadataTransferred { + const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "MetadataTransferred"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The number of (public) proposals that have been made so far. + pub fn public_prop_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "PublicPropCount", + vec![], + [ + 51u8, 175u8, 184u8, 94u8, 91u8, 212u8, 100u8, 108u8, 127u8, 162u8, + 233u8, 137u8, 12u8, 209u8, 29u8, 130u8, 125u8, 179u8, 208u8, 160u8, + 173u8, 149u8, 12u8, 111u8, 1u8, 82u8, 196u8, 137u8, 51u8, 204u8, 153u8, + 198u8, + ], + ) + } + /// The public proposals. Unsorted. The second item is the proposal. + pub fn public_props( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + ::subxt::utils::AccountId32, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "PublicProps", + vec![], + [ + 174u8, 85u8, 209u8, 117u8, 29u8, 193u8, 230u8, 16u8, 94u8, 219u8, 69u8, + 29u8, 116u8, 35u8, 252u8, 43u8, 127u8, 0u8, 43u8, 218u8, 240u8, 176u8, + 73u8, 81u8, 207u8, 131u8, 227u8, 132u8, 242u8, 45u8, 172u8, 50u8, + ], + ) + } + /// Those who have locked a deposit. + /// + /// TWOX-NOTE: Safe, as increasing integer keys are safe. + pub fn deposit_of( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ::core::primitive::u128, + ), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "DepositOf", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 115u8, 12u8, 250u8, 191u8, 201u8, 165u8, 90u8, 140u8, 101u8, 47u8, + 46u8, 3u8, 78u8, 30u8, 180u8, 22u8, 28u8, 154u8, 36u8, 99u8, 255u8, + 84u8, 33u8, 21u8, 65u8, 110u8, 52u8, 245u8, 19u8, 6u8, 104u8, 167u8, + ], + ) + } + /// Those who have locked a deposit. + /// + /// TWOX-NOTE: Safe, as increasing integer keys are safe. + pub fn deposit_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ::core::primitive::u128, + ), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "DepositOf", + Vec::new(), + [ + 115u8, 12u8, 250u8, 191u8, 201u8, 165u8, 90u8, 140u8, 101u8, 47u8, + 46u8, 3u8, 78u8, 30u8, 180u8, 22u8, 28u8, 154u8, 36u8, 99u8, 255u8, + 84u8, 33u8, 21u8, 65u8, 110u8, 52u8, 245u8, 19u8, 6u8, 104u8, 167u8, + ], + ) + } + /// The next free referendum index, aka the number of referenda started so far. + pub fn referendum_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "ReferendumCount", + vec![], + [ + 64u8, 145u8, 232u8, 153u8, 121u8, 87u8, 128u8, 253u8, 170u8, 192u8, + 139u8, 18u8, 0u8, 33u8, 243u8, 11u8, 238u8, 222u8, 244u8, 5u8, 247u8, + 198u8, 149u8, 31u8, 122u8, 208u8, 86u8, 179u8, 166u8, 167u8, 93u8, + 67u8, + ], + ) + } + /// The lowest referendum index representing an unbaked referendum. Equal to + /// `ReferendumCount` if there isn't a unbaked referendum. + pub fn lowest_unbaked( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "LowestUnbaked", + vec![], + [ + 237u8, 222u8, 144u8, 214u8, 0u8, 186u8, 81u8, 176u8, 51u8, 14u8, 204u8, + 184u8, 147u8, 97u8, 187u8, 84u8, 40u8, 8u8, 86u8, 241u8, 16u8, 157u8, + 202u8, 44u8, 185u8, 111u8, 70u8, 114u8, 40u8, 135u8, 1u8, 155u8, + ], + ) + } + /// Information concerning any given referendum. + /// + /// TWOX-NOTE: SAFE as indexes are not under an attacker’s control. + pub fn referendum_info_of( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_democracy::types::ReferendumInfo< + ::core::primitive::u64, + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "ReferendumInfoOf", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 217u8, 175u8, 87u8, 114u8, 161u8, 182u8, 123u8, 182u8, 138u8, 13u8, + 118u8, 20u8, 166u8, 149u8, 55u8, 214u8, 114u8, 159u8, 92u8, 25u8, 27u8, + 144u8, 200u8, 103u8, 157u8, 91u8, 210u8, 79u8, 168u8, 81u8, 225u8, + 108u8, + ], + ) + } + /// Information concerning any given referendum. + /// + /// TWOX-NOTE: SAFE as indexes are not under an attacker’s control. + pub fn referendum_info_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_democracy::types::ReferendumInfo< + ::core::primitive::u64, + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + ::core::primitive::u128, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "ReferendumInfoOf", + Vec::new(), + [ + 217u8, 175u8, 87u8, 114u8, 161u8, 182u8, 123u8, 182u8, 138u8, 13u8, + 118u8, 20u8, 166u8, 149u8, 55u8, 214u8, 114u8, 159u8, 92u8, 25u8, 27u8, + 144u8, 200u8, 103u8, 157u8, 91u8, 210u8, 79u8, 168u8, 81u8, 225u8, + 108u8, + ], + ) + } + /// All votes for a particular voter. We store the balance for the number of votes + /// that we have recorded. The second item is the total amount of delegations, that + /// will be added. + /// + /// TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway. + pub fn voting_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_democracy::vote::Voting< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u64, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "VotingOf", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 186u8, 236u8, 158u8, 48u8, 144u8, 152u8, 83u8, 86u8, 60u8, 19u8, 171u8, + 90u8, 26u8, 143u8, 170u8, 108u8, 82u8, 2u8, 38u8, 163u8, 80u8, 8u8, + 98u8, 26u8, 244u8, 200u8, 225u8, 61u8, 139u8, 255u8, 210u8, 47u8, + ], + ) + } + /// All votes for a particular voter. We store the balance for the number of votes + /// that we have recorded. The second item is the total amount of delegations, that + /// will be added. + /// + /// TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway. + pub fn voting_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_democracy::vote::Voting< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + ::core::primitive::u64, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "VotingOf", + Vec::new(), + [ + 186u8, 236u8, 158u8, 48u8, 144u8, 152u8, 83u8, 86u8, 60u8, 19u8, 171u8, + 90u8, 26u8, 143u8, 170u8, 108u8, 82u8, 2u8, 38u8, 163u8, 80u8, 8u8, + 98u8, 26u8, 244u8, 200u8, 225u8, 61u8, 139u8, 255u8, 210u8, 47u8, + ], + ) + } + /// True if the last referendum tabled was submitted externally. False if it was a + /// public proposal. + pub fn last_tabled_was_external( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "LastTabledWasExternal", + vec![], + [ + 162u8, 201u8, 72u8, 9u8, 78u8, 49u8, 72u8, 62u8, 240u8, 69u8, 20u8, + 135u8, 26u8, 59u8, 71u8, 46u8, 19u8, 25u8, 195u8, 11u8, 99u8, 31u8, + 104u8, 4u8, 24u8, 129u8, 47u8, 69u8, 219u8, 178u8, 104u8, 190u8, + ], + ) + } + /// The referendum to be tabled whenever it would be valid to table an external + /// proposal. This happens when a referendum needs to be tabled and one of two + /// conditions are met: + /// - `LastTabledWasExternal` is `false`; or + /// - `PublicProps` is empty. + pub fn next_external( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + runtime_types::pallet_democracy::vote_threshold::VoteThreshold, + ), + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "NextExternal", + vec![], + [ + 240u8, 58u8, 238u8, 86u8, 35u8, 48u8, 192u8, 51u8, 91u8, 4u8, 47u8, + 202u8, 21u8, 74u8, 158u8, 64u8, 107u8, 247u8, 248u8, 240u8, 122u8, + 109u8, 204u8, 180u8, 103u8, 239u8, 156u8, 68u8, 141u8, 253u8, 131u8, + 239u8, + ], + ) + } + /// A record of who vetoed what. Maps proposal hash to a possible existent block + /// number (until when it may not be resubmitted) and who vetoed it. + pub fn blacklist( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::core::primitive::u64, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "Blacklist", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 154u8, 19u8, 120u8, 140u8, 124u8, 231u8, 105u8, 73u8, 99u8, 132u8, + 186u8, 213u8, 121u8, 255u8, 5u8, 160u8, 95u8, 68u8, 229u8, 185u8, + 145u8, 110u8, 214u8, 226u8, 152u8, 127u8, 254u8, 186u8, 63u8, 205u8, + 235u8, 222u8, + ], + ) + } + /// A record of who vetoed what. Maps proposal hash to a possible existent block + /// number (until when it may not be resubmitted) and who vetoed it. + pub fn blacklist_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::core::primitive::u64, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "Blacklist", + Vec::new(), + [ + 154u8, 19u8, 120u8, 140u8, 124u8, 231u8, 105u8, 73u8, 99u8, 132u8, + 186u8, 213u8, 121u8, 255u8, 5u8, 160u8, 95u8, 68u8, 229u8, 185u8, + 145u8, 110u8, 214u8, 226u8, 152u8, 127u8, 254u8, 186u8, 63u8, 205u8, + 235u8, 222u8, + ], + ) + } + /// Record of all proposals that have been subject to emergency cancellation. + pub fn cancellations( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "Cancellations", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 80u8, 190u8, 98u8, 105u8, 129u8, 25u8, 167u8, 180u8, 74u8, 128u8, + 232u8, 29u8, 193u8, 209u8, 185u8, 60u8, 18u8, 180u8, 59u8, 192u8, + 149u8, 13u8, 123u8, 232u8, 34u8, 208u8, 48u8, 104u8, 35u8, 181u8, + 186u8, 244u8, + ], + ) + } + /// Record of all proposals that have been subject to emergency cancellation. + pub fn cancellations_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "Cancellations", + Vec::new(), + [ + 80u8, 190u8, 98u8, 105u8, 129u8, 25u8, 167u8, 180u8, 74u8, 128u8, + 232u8, 29u8, 193u8, 209u8, 185u8, 60u8, 18u8, 180u8, 59u8, 192u8, + 149u8, 13u8, 123u8, 232u8, 34u8, 208u8, 48u8, 104u8, 35u8, 181u8, + 186u8, 244u8, + ], + ) + } + /// General information concerning any proposal or referendum. + /// The `PreimageHash` refers to the preimage of the `Preimages` provider which can + /// be a JSON dump or IPFS hash of a JSON file. + /// + /// Consider a garbage collection for a metadata of finished referendums to + /// `unrequest` (remove) large preimages. + pub fn metadata_of( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::pallet_democracy::types::MetadataOwner, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "MetadataOf", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 52u8, 151u8, 124u8, 110u8, 85u8, 173u8, 181u8, 86u8, 174u8, 183u8, + 102u8, 22u8, 8u8, 36u8, 224u8, 114u8, 98u8, 0u8, 220u8, 215u8, 19u8, + 147u8, 32u8, 238u8, 242u8, 187u8, 235u8, 163u8, 183u8, 235u8, 9u8, + 180u8, + ], + ) + } + /// General information concerning any proposal or referendum. + /// The `PreimageHash` refers to the preimage of the `Preimages` provider which can + /// be a JSON dump or IPFS hash of a JSON file. + /// + /// Consider a garbage collection for a metadata of finished referendums to + /// `unrequest` (remove) large preimages. + pub fn metadata_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "MetadataOf", + Vec::new(), + [ + 52u8, 151u8, 124u8, 110u8, 85u8, 173u8, 181u8, 86u8, 174u8, 183u8, + 102u8, 22u8, 8u8, 36u8, 224u8, 114u8, 98u8, 0u8, 220u8, 215u8, 19u8, + 147u8, 32u8, 238u8, 242u8, 187u8, 235u8, 163u8, 183u8, 235u8, 9u8, + 180u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The period between a proposal being approved and enacted. + /// + /// It should generally be a little more than the unstake period to ensure that + /// voting stakers have an opportunity to remove themselves from the system in the + /// case where they are on the losing side of a vote. + pub fn enactment_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Democracy", + "EnactmentPeriod", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// How often (in blocks) new public referenda are launched. + pub fn launch_period(&self) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Democracy", + "LaunchPeriod", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// How often (in blocks) to check for new votes. + pub fn voting_period(&self) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Democracy", + "VotingPeriod", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// The minimum period of vote locking. + /// + /// It should be no shorter than enactment period to ensure that in the case of an + /// approval, those successful voters are locked into the consequences that their + /// votes entail. + pub fn vote_locking_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Democracy", + "VoteLockingPeriod", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// The minimum amount to be used as a deposit for a public referendum proposal. + pub fn minimum_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Democracy", + "MinimumDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// Indicator for whether an emergency origin is even allowed to happen. Some chains + /// may want to set this permanently to `false`, others may want to condition it on + /// things such as an upgrade having happened recently. + pub fn instant_allowed( + &self, + ) -> ::subxt::constants::Address<::core::primitive::bool> { + ::subxt::constants::Address::new_static( + "Democracy", + "InstantAllowed", + [ + 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, + 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, + 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, + ], + ) + } + /// Minimum voting period allowed for a fast-track referendum. + pub fn fast_track_voting_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Democracy", + "FastTrackVotingPeriod", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// Period in blocks where an external proposal may not be re-submitted after being + /// vetoed. + pub fn cooloff_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Democracy", + "CooloffPeriod", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// The maximum number of votes for an account. + /// + /// Also used to compute weight, an overly big value can + /// lead to extrinsic with very big weight: see `delegate` for instance. + pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxVotes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// The maximum number of public proposals that can exist at any time. + pub fn max_proposals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxProposals", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// The maximum number of deposits a public proposal may have at any time. + pub fn max_deposits(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxDeposits", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// The maximum number of items which can be blacklisted. + pub fn max_blacklisted( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Democracy", + "MaxBlacklisted", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod council { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_collective::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_collective::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetMembers { + pub new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub prime: ::core::option::Option<::subxt::utils::AccountId32>, + pub old_count: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetMembers { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "set_members"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Execute { + pub proposal: + ::std::boxed::Box, + #[codec(compact)] + pub length_bound: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Execute { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "execute"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Propose { + #[codec(compact)] + pub threshold: ::core::primitive::u32, + pub proposal: + ::std::boxed::Box, + #[codec(compact)] + pub length_bound: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Propose { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "propose"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Vote { + pub proposal: ::subxt::utils::H256, + #[codec(compact)] + pub index: ::core::primitive::u32, + pub approve: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "vote"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DisapproveProposal { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "disapprove_proposal"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Close { + pub proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + pub index: ::core::primitive::u32, + pub proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, + #[codec(compact)] + pub length_bound: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Close { + const PALLET: &'static str = "Council"; + const CALL: &'static str = "close"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::set_members`]. + pub fn set_members( + &self, + new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + prime: ::core::option::Option<::subxt::utils::AccountId32>, + old_count: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "set_members", + types::SetMembers { new_members, prime, old_count }, + [ + 66u8, 224u8, 186u8, 178u8, 41u8, 208u8, 67u8, 192u8, 57u8, 242u8, + 141u8, 31u8, 216u8, 118u8, 192u8, 43u8, 125u8, 213u8, 226u8, 85u8, + 142u8, 225u8, 131u8, 45u8, 172u8, 142u8, 12u8, 9u8, 73u8, 7u8, 218u8, + 61u8, + ], + ) + } + ///See [`Pallet::execute`]. + pub fn execute( + &self, + proposal: runtime_types::tangle_testnet_runtime::RuntimeCall, + length_bound: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "execute", + types::Execute { proposal: ::std::boxed::Box::new(proposal), length_bound }, + [ + 139u8, 110u8, 19u8, 77u8, 73u8, 140u8, 162u8, 202u8, 221u8, 80u8, + 252u8, 146u8, 134u8, 140u8, 84u8, 100u8, 26u8, 97u8, 212u8, 119u8, + 190u8, 7u8, 84u8, 214u8, 5u8, 177u8, 168u8, 116u8, 106u8, 236u8, 199u8, + 90u8, + ], + ) + } + ///See [`Pallet::propose`]. + pub fn propose( + &self, + threshold: ::core::primitive::u32, + proposal: runtime_types::tangle_testnet_runtime::RuntimeCall, + length_bound: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "propose", + types::Propose { + threshold, + proposal: ::std::boxed::Box::new(proposal), + length_bound, + }, + [ + 22u8, 120u8, 96u8, 218u8, 175u8, 89u8, 66u8, 175u8, 152u8, 220u8, 93u8, + 70u8, 153u8, 69u8, 116u8, 250u8, 95u8, 170u8, 188u8, 125u8, 29u8, + 194u8, 243u8, 102u8, 34u8, 103u8, 106u8, 157u8, 228u8, 155u8, 147u8, + 187u8, + ], + ) + } + ///See [`Pallet::vote`]. + pub fn vote( + &self, + proposal: ::subxt::utils::H256, + index: ::core::primitive::u32, + approve: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "vote", + types::Vote { proposal, index, approve }, + [ + 110u8, 141u8, 24u8, 33u8, 91u8, 7u8, 89u8, 198u8, 54u8, 10u8, 76u8, + 129u8, 45u8, 20u8, 216u8, 104u8, 231u8, 246u8, 174u8, 205u8, 190u8, + 176u8, 171u8, 113u8, 33u8, 37u8, 155u8, 203u8, 251u8, 34u8, 25u8, + 120u8, + ], + ) + } + ///See [`Pallet::disapprove_proposal`]. + pub fn disapprove_proposal( + &self, + proposal_hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "disapprove_proposal", + types::DisapproveProposal { proposal_hash }, + [ + 26u8, 140u8, 111u8, 193u8, 229u8, 59u8, 53u8, 196u8, 230u8, 60u8, 7u8, + 155u8, 168u8, 7u8, 201u8, 177u8, 70u8, 103u8, 190u8, 57u8, 244u8, + 156u8, 67u8, 101u8, 228u8, 6u8, 213u8, 83u8, 225u8, 95u8, 148u8, 96u8, + ], + ) + } + ///See [`Pallet::close`]. + pub fn close( + &self, + proposal_hash: ::subxt::utils::H256, + index: ::core::primitive::u32, + proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, + length_bound: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Council", + "close", + types::Close { proposal_hash, index, proposal_weight_bound, length_bound }, + [ + 136u8, 48u8, 243u8, 34u8, 60u8, 109u8, 186u8, 158u8, 72u8, 48u8, 62u8, + 34u8, 167u8, 46u8, 33u8, 142u8, 239u8, 43u8, 238u8, 125u8, 94u8, 80u8, + 157u8, 245u8, 220u8, 126u8, 58u8, 244u8, 186u8, 195u8, 30u8, 127u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_collective::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A motion (given hash) has been proposed (by given account) with a threshold (given + ///`MemberCount`). + pub struct Proposed { + pub account: ::subxt::utils::AccountId32, + pub proposal_index: ::core::primitive::u32, + pub proposal_hash: ::subxt::utils::H256, + pub threshold: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A motion (given hash) has been voted on by given account, leaving + ///a tally (yes votes and no votes given respectively as `MemberCount`). + pub struct Voted { + 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, + } + impl ::subxt::events::StaticEvent for Voted { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Voted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A motion was approved by the required threshold. + pub struct Approved { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Approved { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Approved"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A motion was not approved by the required threshold. + pub struct Disapproved { + pub proposal_hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Disapproved { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Disapproved"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A motion was executed; result will be `Ok` if it returned without error. + pub struct Executed { + pub proposal_hash: ::subxt::utils::H256, + pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::events::StaticEvent for Executed { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Executed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A single member did some action; result will be `Ok` if it returned without error. + pub struct MemberExecuted { + pub proposal_hash: ::subxt::utils::H256, + pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::events::StaticEvent for MemberExecuted { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "MemberExecuted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A proposal was closed because its threshold was reached or after its duration was + /// up. + pub struct Closed { + pub proposal_hash: ::subxt::utils::H256, + pub yes: ::core::primitive::u32, + pub no: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Closed { + const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Closed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The hashes of the active proposals. + pub fn proposals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Proposals", + vec![], + [ + 210u8, 234u8, 7u8, 29u8, 231u8, 80u8, 17u8, 36u8, 189u8, 34u8, 175u8, + 147u8, 56u8, 92u8, 201u8, 104u8, 207u8, 150u8, 58u8, 110u8, 90u8, 28u8, + 198u8, 79u8, 236u8, 245u8, 19u8, 38u8, 68u8, 59u8, 215u8, 74u8, + ], + ) + } + /// Actual proposal for a given hash, if it's current. + pub fn proposal_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_testnet_runtime::RuntimeCall, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Council", + "ProposalOf", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 78u8, 112u8, 241u8, 178u8, 86u8, 75u8, 159u8, 115u8, 4u8, 22u8, 192u8, + 242u8, 237u8, 158u8, 10u8, 184u8, 47u8, 221u8, 174u8, 80u8, 89u8, + 219u8, 242u8, 201u8, 205u8, 185u8, 227u8, 202u8, 255u8, 123u8, 97u8, + 213u8, + ], + ) + } + /// Actual proposal for a given hash, if it's current. + pub fn proposal_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_testnet_runtime::RuntimeCall, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Council", + "ProposalOf", + Vec::new(), + [ + 78u8, 112u8, 241u8, 178u8, 86u8, 75u8, 159u8, 115u8, 4u8, 22u8, 192u8, + 242u8, 237u8, 158u8, 10u8, 184u8, 47u8, 221u8, 174u8, 80u8, 89u8, + 219u8, 242u8, 201u8, 205u8, 185u8, 227u8, 202u8, 255u8, 123u8, 97u8, + 213u8, + ], + ) + } + /// Votes on a given proposal, if it is ongoing. + pub fn voting( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_collective::Votes< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Voting", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 224u8, 140u8, 244u8, 24u8, 39u8, 198u8, 146u8, 44u8, 158u8, 251u8, 1u8, + 108u8, 40u8, 35u8, 34u8, 27u8, 98u8, 168u8, 153u8, 39u8, 174u8, 84u8, + 203u8, 77u8, 210u8, 34u8, 27u8, 4u8, 34u8, 23u8, 192u8, 216u8, + ], + ) + } + /// Votes on a given proposal, if it is ongoing. + pub fn voting_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_collective::Votes< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Voting", + Vec::new(), + [ + 224u8, 140u8, 244u8, 24u8, 39u8, 198u8, 146u8, 44u8, 158u8, 251u8, 1u8, + 108u8, 40u8, 35u8, 34u8, 27u8, 98u8, 168u8, 153u8, 39u8, 174u8, 84u8, + 203u8, 77u8, 210u8, 34u8, 27u8, 4u8, 34u8, 23u8, 192u8, 216u8, + ], + ) + } + /// Proposals so far. + pub fn proposal_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "ProposalCount", + vec![], + [ + 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, 1u8, 225u8, 164u8, + 216u8, 113u8, 101u8, 203u8, 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, + 29u8, 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, 51u8, 149u8, + ], + ) + } + /// The current members of the collective. This is stored sorted (just by value). + pub fn members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Members", + vec![], + [ + 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, + 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, + 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, + ], + ) + } + /// The prime member that helps determine the default vote behavior in case of + /// absentations. + pub fn prime( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Council", + "Prime", + vec![], + [ + 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, + 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, + 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The maximum weight of a dispatch call that can be proposed and executed. + pub fn max_proposal_weight( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static( + "Council", + "MaxProposalWeight", + [ + 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, + 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, + 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, + 112u8, + ], + ) + } + } + } + } + pub mod vesting { + use super::{root_mod, runtime_types}; + ///Error for the vesting pallet. + pub type Error = runtime_types::pallet_vesting::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_vesting::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Vest; + impl ::subxt::blocks::StaticExtrinsic for Vest { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "vest"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct VestOther { + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for VestOther { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "vest_other"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct VestedTransfer { + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u64, + >, + } + impl ::subxt::blocks::StaticExtrinsic for VestedTransfer { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "vested_transfer"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceVestedTransfer { + pub source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u64, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ForceVestedTransfer { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "force_vested_transfer"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MergeSchedules { + pub schedule1_index: ::core::primitive::u32, + pub schedule2_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for MergeSchedules { + const PALLET: &'static str = "Vesting"; + const CALL: &'static str = "merge_schedules"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::vest`]. + pub fn vest(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Vesting", + "vest", + types::Vest {}, + [ + 149u8, 89u8, 178u8, 148u8, 127u8, 127u8, 155u8, 60u8, 114u8, 126u8, + 204u8, 123u8, 166u8, 70u8, 104u8, 208u8, 186u8, 69u8, 139u8, 181u8, + 151u8, 154u8, 235u8, 161u8, 191u8, 35u8, 111u8, 60u8, 21u8, 165u8, + 44u8, 122u8, + ], + ) + } + ///See [`Pallet::vest_other`]. + pub fn vest_other( + &self, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Vesting", + "vest_other", + types::VestOther { target }, + [ + 19u8, 61u8, 216u8, 215u8, 68u8, 5u8, 173u8, 138u8, 29u8, 5u8, 46u8, + 138u8, 33u8, 189u8, 63u8, 251u8, 1u8, 79u8, 138u8, 166u8, 87u8, 154u8, + 141u8, 187u8, 28u8, 202u8, 144u8, 6u8, 231u8, 230u8, 197u8, 171u8, + ], + ) + } + ///See [`Pallet::vested_transfer`]. + pub fn vested_transfer( + &self, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u64, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Vesting", + "vested_transfer", + types::VestedTransfer { target, schedule }, + [ + 154u8, 217u8, 177u8, 183u8, 138u8, 67u8, 49u8, 19u8, 60u8, 186u8, 84u8, + 104u8, 183u8, 180u8, 148u8, 9u8, 177u8, 187u8, 173u8, 48u8, 103u8, + 125u8, 107u8, 221u8, 52u8, 168u8, 34u8, 162u8, 170u8, 89u8, 85u8, + 181u8, + ], + ) + } + ///See [`Pallet::force_vested_transfer`]. + pub fn force_vested_transfer( + &self, + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u64, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Vesting", + "force_vested_transfer", + types::ForceVestedTransfer { source, target, schedule }, + [ + 197u8, 0u8, 47u8, 118u8, 86u8, 214u8, 105u8, 187u8, 120u8, 32u8, 9u8, + 237u8, 131u8, 102u8, 155u8, 198u8, 9u8, 103u8, 207u8, 87u8, 249u8, + 53u8, 69u8, 38u8, 185u8, 27u8, 151u8, 252u8, 95u8, 32u8, 191u8, 176u8, + ], + ) + } + ///See [`Pallet::merge_schedules`]. + pub fn merge_schedules( + &self, + schedule1_index: ::core::primitive::u32, + schedule2_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Vesting", + "merge_schedules", + types::MergeSchedules { schedule1_index, schedule2_index }, + [ + 45u8, 24u8, 13u8, 108u8, 26u8, 99u8, 61u8, 117u8, 195u8, 218u8, 182u8, + 23u8, 188u8, 157u8, 181u8, 81u8, 38u8, 136u8, 31u8, 226u8, 8u8, 190u8, + 33u8, 81u8, 86u8, 185u8, 156u8, 77u8, 157u8, 197u8, 41u8, 58u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_vesting::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The amount vested has been updated. This could indicate a change in funds available. + ///The balance given is the amount which is left unvested (and thus locked). + pub struct VestingUpdated { + pub account: ::subxt::utils::AccountId32, + pub unvested: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for VestingUpdated { + const PALLET: &'static str = "Vesting"; + const EVENT: &'static str = "VestingUpdated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An \[account\] has become fully vested. + pub struct VestingCompleted { + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for VestingCompleted { + const PALLET: &'static str = "Vesting"; + const EVENT: &'static str = "VestingCompleted"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Information regarding the vesting of a given account. + pub fn vesting( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u64, + >, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Vesting", + "Vesting", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 37u8, 146u8, 66u8, 220u8, 99u8, 154u8, 82u8, 170u8, 197u8, 250u8, 73u8, + 125u8, 96u8, 104u8, 37u8, 226u8, 30u8, 111u8, 75u8, 18u8, 130u8, 206u8, + 20u8, 103u8, 82u8, 60u8, 211u8, 156u8, 40u8, 163u8, 103u8, 92u8, + ], + ) + } + /// Information regarding the vesting of a given account. + pub fn vesting_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u64, + >, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Vesting", + "Vesting", + Vec::new(), + [ + 37u8, 146u8, 66u8, 220u8, 99u8, 154u8, 82u8, 170u8, 197u8, 250u8, 73u8, + 125u8, 96u8, 104u8, 37u8, 226u8, 30u8, 111u8, 75u8, 18u8, 130u8, 206u8, + 20u8, 103u8, 82u8, 60u8, 211u8, 156u8, 40u8, 163u8, 103u8, 92u8, + ], + ) + } + /// Storage version of the pallet. + /// + /// New networks start with latest version, as determined by the genesis build. + pub fn storage_version( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_vesting::Releases, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Vesting", + "StorageVersion", + vec![], + [ + 230u8, 137u8, 180u8, 133u8, 142u8, 124u8, 231u8, 234u8, 223u8, 10u8, + 154u8, 98u8, 158u8, 253u8, 228u8, 80u8, 5u8, 9u8, 91u8, 210u8, 252u8, + 9u8, 13u8, 195u8, 193u8, 164u8, 129u8, 113u8, 128u8, 218u8, 8u8, 40u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The minimum amount transferred to call `vested_transfer`. + pub fn min_vested_transfer( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Vesting", + "MinVestedTransfer", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + pub fn max_vesting_schedules( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Vesting", + "MaxVestingSchedules", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod elections { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_elections_phragmen::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Vote { + pub votes: ::std::vec::Vec<::subxt::utils::AccountId32>, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Vote { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "vote"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemoveVoter; + impl ::subxt::blocks::StaticExtrinsic for RemoveVoter { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "remove_voter"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitCandidacy { + #[codec(compact)] + pub candidate_count: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SubmitCandidacy { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "submit_candidacy"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RenounceCandidacy { + pub renouncing: runtime_types::pallet_elections_phragmen::Renouncing, + } + impl ::subxt::blocks::StaticExtrinsic for RenounceCandidacy { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "renounce_candidacy"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemoveMember { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub slash_bond: ::core::primitive::bool, + pub rerun_election: ::core::primitive::bool, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveMember { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "remove_member"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CleanDefunctVoters { + pub num_voters: ::core::primitive::u32, + pub num_defunct: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CleanDefunctVoters { + const PALLET: &'static str = "Elections"; + const CALL: &'static str = "clean_defunct_voters"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::vote`]. + pub fn vote( + &self, + votes: ::std::vec::Vec<::subxt::utils::AccountId32>, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "vote", + types::Vote { votes, value }, + [ + 229u8, 163u8, 1u8, 49u8, 26u8, 130u8, 7u8, 228u8, 34u8, 80u8, 17u8, + 125u8, 32u8, 180u8, 174u8, 69u8, 17u8, 171u8, 163u8, 54u8, 42u8, 139u8, + 201u8, 205u8, 196u8, 18u8, 16u8, 211u8, 252u8, 64u8, 73u8, 5u8, + ], + ) + } + ///See [`Pallet::remove_voter`]. + pub fn remove_voter(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "remove_voter", + types::RemoveVoter {}, + [ + 89u8, 43u8, 70u8, 117u8, 76u8, 84u8, 230u8, 114u8, 229u8, 91u8, 75u8, + 213u8, 47u8, 143u8, 233u8, 47u8, 108u8, 120u8, 171u8, 167u8, 14u8, + 62u8, 52u8, 20u8, 227u8, 106u8, 249u8, 239u8, 33u8, 115u8, 155u8, + 106u8, + ], + ) + } + ///See [`Pallet::submit_candidacy`]. + pub fn submit_candidacy( + &self, + candidate_count: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "submit_candidacy", + types::SubmitCandidacy { candidate_count }, + [ + 229u8, 169u8, 247u8, 102u8, 33u8, 7u8, 9u8, 125u8, 190u8, 179u8, 241u8, + 220u8, 205u8, 242u8, 168u8, 112u8, 197u8, 169u8, 135u8, 133u8, 102u8, + 173u8, 168u8, 203u8, 17u8, 135u8, 224u8, 145u8, 101u8, 204u8, 253u8, + 4u8, + ], + ) + } + ///See [`Pallet::renounce_candidacy`]. + pub fn renounce_candidacy( + &self, + renouncing: runtime_types::pallet_elections_phragmen::Renouncing, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "renounce_candidacy", + types::RenounceCandidacy { renouncing }, + [ + 230u8, 140u8, 205u8, 240u8, 110u8, 247u8, 242u8, 185u8, 228u8, 135u8, + 243u8, 73u8, 71u8, 200u8, 88u8, 134u8, 132u8, 174u8, 190u8, 251u8, + 81u8, 85u8, 174u8, 230u8, 94u8, 97u8, 96u8, 230u8, 15u8, 204u8, 247u8, + 214u8, + ], + ) + } + ///See [`Pallet::remove_member`]. + pub fn remove_member( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + slash_bond: ::core::primitive::bool, + rerun_election: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "remove_member", + types::RemoveMember { who, slash_bond, rerun_election }, + [ + 108u8, 79u8, 187u8, 116u8, 243u8, 133u8, 188u8, 142u8, 71u8, 3u8, + 206u8, 109u8, 255u8, 118u8, 165u8, 21u8, 38u8, 192u8, 205u8, 69u8, + 223u8, 240u8, 104u8, 85u8, 234u8, 153u8, 153u8, 120u8, 36u8, 70u8, + 67u8, 124u8, + ], + ) + } + ///See [`Pallet::clean_defunct_voters`]. + pub fn clean_defunct_voters( + &self, + num_voters: ::core::primitive::u32, + num_defunct: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Elections", + "clean_defunct_voters", + types::CleanDefunctVoters { num_voters, num_defunct }, + [ + 99u8, 129u8, 198u8, 141u8, 41u8, 90u8, 151u8, 167u8, 50u8, 236u8, 88u8, + 57u8, 25u8, 26u8, 130u8, 61u8, 123u8, 177u8, 98u8, 57u8, 39u8, 204u8, + 29u8, 24u8, 191u8, 229u8, 224u8, 110u8, 223u8, 248u8, 191u8, 177u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_elections_phragmen::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A new term with new_members. This indicates that enough candidates existed to run + ///the election, not that enough have has been elected. The inner value must be + /// examined for this purpose. A `NewTerm(\[\])` indicates that some candidates got + /// their bond slashed and none were elected, whilst `EmptyTerm` means that no + /// candidates existed to begin with. + pub struct NewTerm { + pub new_members: + ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, + } + impl ::subxt::events::StaticEvent for NewTerm { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "NewTerm"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///No (or not enough) candidates existed for this round. This is different from + ///`NewTerm(\[\])`. See the description of `NewTerm`. + pub struct EmptyTerm; + impl ::subxt::events::StaticEvent for EmptyTerm { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "EmptyTerm"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Internal error happened while trying to perform election. + pub struct ElectionError; + impl ::subxt::events::StaticEvent for ElectionError { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "ElectionError"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A member has been removed. This should always be followed by either `NewTerm` or + ///`EmptyTerm`. + pub struct MemberKicked { + pub member: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for MemberKicked { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "MemberKicked"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Someone has renounced their candidacy. + pub struct Renounced { + pub candidate: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Renounced { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "Renounced"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A candidate was slashed by amount due to failing to obtain a seat as member or + ///runner-up. + /// + ///Note that old members and runners-up are also candidates. + pub struct CandidateSlashed { + pub candidate: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for CandidateSlashed { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "CandidateSlashed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A seat holder was slashed by amount by being forcefully removed from the set. + pub struct SeatHolderSlashed { + pub seat_holder: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for SeatHolderSlashed { + const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "SeatHolderSlashed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The current elected members. + /// + /// Invariant: Always sorted based on account id. + pub fn members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_elections_phragmen::SeatHolder< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Members", + vec![], + [ + 121u8, 128u8, 120u8, 242u8, 54u8, 127u8, 90u8, 113u8, 74u8, 54u8, + 181u8, 207u8, 213u8, 130u8, 123u8, 238u8, 66u8, 247u8, 177u8, 209u8, + 47u8, 106u8, 3u8, 130u8, 57u8, 217u8, 190u8, 164u8, 92u8, 223u8, 53u8, + 8u8, + ], + ) + } + /// The current reserved runners-up. + /// + /// Invariant: Always sorted based on rank (worse to best). Upon removal of a + /// member, the last (i.e. _best_) runner-up will be replaced. + pub fn runners_up( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_elections_phragmen::SeatHolder< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "RunnersUp", + vec![], + [ + 252u8, 213u8, 152u8, 58u8, 93u8, 84u8, 170u8, 162u8, 180u8, 51u8, 52u8, + 156u8, 18u8, 58u8, 210u8, 150u8, 76u8, 159u8, 75u8, 43u8, 103u8, 21u8, + 181u8, 184u8, 155u8, 198u8, 236u8, 173u8, 245u8, 49u8, 134u8, 153u8, + ], + ) + } + /// The present candidate list. A current member or runner-up can never enter this + /// vector and is always implicitly assumed to be a candidate. + /// + /// Second element is the deposit. + /// + /// Invariant: Always sorted based on account id. + pub fn candidates( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Candidates", + vec![], + [ + 220u8, 219u8, 115u8, 204u8, 15u8, 0u8, 135u8, 72u8, 241u8, 89u8, 10u8, + 105u8, 106u8, 93u8, 18u8, 63u8, 43u8, 117u8, 120u8, 73u8, 8u8, 143u8, + 244u8, 144u8, 223u8, 155u8, 217u8, 132u8, 246u8, 228u8, 210u8, 53u8, + ], + ) + } + /// The total number of vote rounds that have happened, excluding the upcoming one. + pub fn election_rounds( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "ElectionRounds", + vec![], + [ + 97u8, 151u8, 159u8, 133u8, 59u8, 215u8, 12u8, 178u8, 203u8, 24u8, + 138u8, 36u8, 108u8, 134u8, 217u8, 137u8, 24u8, 6u8, 126u8, 87u8, 49u8, + 90u8, 198u8, 16u8, 36u8, 109u8, 223u8, 190u8, 81u8, 7u8, 239u8, 243u8, + ], + ) + } + /// Votes and locked stake of a particular voter. + /// + /// TWOX-NOTE: SAFE as `AccountId` is a crypto hash. + pub fn voting( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_elections_phragmen::Voter< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Voting", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 37u8, 74u8, 221u8, 188u8, 168u8, 43u8, 125u8, 246u8, 191u8, 21u8, 85u8, + 87u8, 124u8, 180u8, 218u8, 43u8, 186u8, 170u8, 140u8, 186u8, 88u8, + 71u8, 111u8, 22u8, 46u8, 207u8, 178u8, 96u8, 55u8, 203u8, 21u8, 92u8, + ], + ) + } + /// Votes and locked stake of a particular voter. + /// + /// TWOX-NOTE: SAFE as `AccountId` is a crypto hash. + pub fn voting_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_elections_phragmen::Voter< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Elections", + "Voting", + Vec::new(), + [ + 37u8, 74u8, 221u8, 188u8, 168u8, 43u8, 125u8, 246u8, 191u8, 21u8, 85u8, + 87u8, 124u8, 180u8, 218u8, 43u8, 186u8, 170u8, 140u8, 186u8, 88u8, + 71u8, 111u8, 22u8, 46u8, 207u8, 178u8, 96u8, 55u8, 203u8, 21u8, 92u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// Identifier for the elections-phragmen pallet's lock + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> { + ::subxt::constants::Address::new_static( + "Elections", + "PalletId", + [ + 157u8, 118u8, 79u8, 88u8, 241u8, 22u8, 185u8, 37u8, 42u8, 20u8, 133u8, + 240u8, 11u8, 25u8, 66u8, 154u8, 84u8, 163u8, 78u8, 92u8, 171u8, 82u8, + 248u8, 76u8, 189u8, 70u8, 142u8, 249u8, 153u8, 84u8, 180u8, 60u8, + ], + ) + } + /// How much should be locked up in order to submit one's candidacy. + pub fn candidacy_bond( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Elections", + "CandidacyBond", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// Base deposit associated with voting. + /// + /// This should be sensibly high to economically ensure the pallet cannot be + /// attacked by creating a gigantic number of votes. + pub fn voting_bond_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Elections", + "VotingBondBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// The amount of bond that need to be locked for each vote (32 bytes). + pub fn voting_bond_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Elections", + "VotingBondFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// Number of members to elect. + pub fn desired_members( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Elections", + "DesiredMembers", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// Number of runners_up to keep. + pub fn desired_runners_up( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Elections", + "DesiredRunnersUp", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// How long each seat is kept. This defines the next block number at which an + /// election round will happen. If set to zero, no elections are ever triggered and + /// the module will be in passive mode. + pub fn term_duration(&self) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Elections", + "TermDuration", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// The maximum number of candidates in a phragmen election. + /// + /// Warning: This impacts the size of the election which is run onchain. Chose + /// wisely, and consider how it will impact `T::WeightInfo::election_phragmen`. + /// + /// When this limit is reached no more candidates are accepted in the election. + pub fn max_candidates( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Elections", + "MaxCandidates", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// The maximum number of voters to allow in a phragmen election. + /// + /// Warning: This impacts the size of the election which is run onchain. Chose + /// wisely, and consider how it will impact `T::WeightInfo::election_phragmen`. + /// + /// When the limit is reached the new voters are ignored. + pub fn max_voters(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Elections", + "MaxVoters", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// Maximum numbers of votes per voter. + /// + /// Warning: This impacts the size of the election which is run onchain. Chose + /// wisely, and consider how it will impact `T::WeightInfo::election_phragmen`. + pub fn max_votes_per_voter( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Elections", + "MaxVotesPerVoter", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod election_provider_multi_phase { + use super::{root_mod, runtime_types}; + ///Error of the pallet that can be returned in response to dispatches. + pub type Error = runtime_types::pallet_election_provider_multi_phase::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_election_provider_multi_phase::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitUnsigned { + pub raw_solution: ::std::boxed::Box< + runtime_types::pallet_election_provider_multi_phase::RawSolution< + runtime_types::tangle_testnet_runtime::NposSolution16, + >, + >, + pub witness: + runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, + } + impl ::subxt::blocks::StaticExtrinsic for SubmitUnsigned { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "submit_unsigned"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetMinimumUntrustedScore { + pub maybe_next_score: + ::core::option::Option, + } + impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "set_minimum_untrusted_score"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetEmergencyElectionResult { + pub supports: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "set_emergency_election_result"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Submit { + pub raw_solution: ::std::boxed::Box< + runtime_types::pallet_election_provider_multi_phase::RawSolution< + runtime_types::tangle_testnet_runtime::NposSolution16, + >, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Submit { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "submit"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct GovernanceFallback { + pub maybe_max_voters: ::core::option::Option<::core::primitive::u32>, + pub maybe_max_targets: ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "governance_fallback"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::submit_unsigned`]. + pub fn submit_unsigned( + &self, + raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< + runtime_types::tangle_testnet_runtime::NposSolution16, + >, + witness: runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "submit_unsigned", + types::SubmitUnsigned { + raw_solution: ::std::boxed::Box::new(raw_solution), + witness, + }, + [ + 237u8, 199u8, 102u8, 43u8, 103u8, 215u8, 145u8, 93u8, 71u8, 191u8, + 61u8, 144u8, 21u8, 58u8, 30u8, 51u8, 190u8, 219u8, 45u8, 66u8, 216u8, + 19u8, 62u8, 123u8, 197u8, 53u8, 249u8, 205u8, 117u8, 35u8, 32u8, 13u8, + ], + ) + } + ///See [`Pallet::set_minimum_untrusted_score`]. + pub fn set_minimum_untrusted_score( + &self, + maybe_next_score: ::core::option::Option< + runtime_types::sp_npos_elections::ElectionScore, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "set_minimum_untrusted_score", + types::SetMinimumUntrustedScore { maybe_next_score }, + [ + 244u8, 246u8, 85u8, 56u8, 156u8, 145u8, 169u8, 106u8, 16u8, 206u8, + 102u8, 216u8, 150u8, 180u8, 87u8, 153u8, 75u8, 177u8, 185u8, 55u8, + 37u8, 252u8, 214u8, 127u8, 103u8, 169u8, 198u8, 55u8, 10u8, 179u8, + 121u8, 219u8, + ], + ) + } + ///See [`Pallet::set_emergency_election_result`]. + pub fn set_emergency_election_result( + &self, + supports: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, + )>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "set_emergency_election_result", + types::SetEmergencyElectionResult { supports }, + [ + 6u8, 170u8, 228u8, 255u8, 61u8, 131u8, 137u8, 36u8, 135u8, 91u8, 183u8, + 94u8, 172u8, 205u8, 113u8, 69u8, 191u8, 255u8, 223u8, 152u8, 255u8, + 160u8, 205u8, 51u8, 140u8, 183u8, 101u8, 38u8, 185u8, 100u8, 92u8, + 87u8, + ], + ) + } + ///See [`Pallet::submit`]. + pub fn submit( + &self, + raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< + runtime_types::tangle_testnet_runtime::NposSolution16, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "submit", + types::Submit { raw_solution: ::std::boxed::Box::new(raw_solution) }, + [ + 55u8, 254u8, 53u8, 183u8, 136u8, 93u8, 56u8, 39u8, 98u8, 132u8, 8u8, + 38u8, 92u8, 38u8, 199u8, 43u8, 20u8, 86u8, 114u8, 240u8, 31u8, 72u8, + 141u8, 39u8, 73u8, 116u8, 250u8, 249u8, 119u8, 36u8, 244u8, 137u8, + ], + ) + } + ///See [`Pallet::governance_fallback`]. + pub fn governance_fallback( + &self, + maybe_max_voters: ::core::option::Option<::core::primitive::u32>, + maybe_max_targets: ::core::option::Option<::core::primitive::u32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ElectionProviderMultiPhase", + "governance_fallback", + types::GovernanceFallback { maybe_max_voters, maybe_max_targets }, + [ + 10u8, 56u8, 159u8, 48u8, 56u8, 246u8, 49u8, 9u8, 132u8, 156u8, 86u8, + 162u8, 52u8, 58u8, 175u8, 128u8, 12u8, 185u8, 203u8, 18u8, 99u8, 219u8, + 75u8, 13u8, 52u8, 40u8, 125u8, 212u8, 84u8, 147u8, 222u8, 17u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_election_provider_multi_phase::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A solution was stored with the given compute. + /// + ///The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`, + ///the stored solution was submited in the signed phase by a miner with the + /// `AccountId`. Otherwise, the solution was stored either during the unsigned phase or + /// by `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to + /// make room for this one. + pub struct SolutionStored { + pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + pub origin: ::core::option::Option<::subxt::utils::AccountId32>, + pub prev_ejected: ::core::primitive::bool, + } + impl ::subxt::events::StaticEvent for SolutionStored { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "SolutionStored"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The election has been finalized, with the given computation and score. + pub struct ElectionFinalized { + pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + pub score: runtime_types::sp_npos_elections::ElectionScore, + } + impl ::subxt::events::StaticEvent for ElectionFinalized { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "ElectionFinalized"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An election failed. + /// + ///Not much can be said about which computes failed in the process. + pub struct ElectionFailed; + impl ::subxt::events::StaticEvent for ElectionFailed { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "ElectionFailed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account has been rewarded for their signed submission being finalized. + pub struct Rewarded { + pub account: ::subxt::utils::AccountId32, + pub value: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rewarded { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Rewarded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account has been slashed for submitting an invalid signed submission. + pub struct Slashed { + pub account: ::subxt::utils::AccountId32, + pub value: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///There was a phase transition in a given round. + pub struct PhaseTransitioned { + pub from: runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u64, + >, + pub to: runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u64, + >, + pub round: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for PhaseTransitioned { + const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "PhaseTransitioned"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Internal counter for the number of rounds. + /// + /// This is useful for de-duplication of transactions submitted to the pool, and + /// general diagnostics of the pallet. + /// + /// This is merely incremented once per every time that an upstream `elect` is + /// called. + pub fn round( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "Round", + vec![], + [ + 37u8, 2u8, 47u8, 240u8, 18u8, 213u8, 214u8, 74u8, 57u8, 4u8, 103u8, + 253u8, 45u8, 17u8, 123u8, 203u8, 173u8, 170u8, 234u8, 109u8, 139u8, + 143u8, 216u8, 3u8, 161u8, 5u8, 0u8, 106u8, 181u8, 214u8, 170u8, 105u8, + ], + ) + } + /// Current phase. + pub fn current_phase( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u64, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "CurrentPhase", + vec![], + [ + 240u8, 174u8, 151u8, 37u8, 255u8, 168u8, 43u8, 235u8, 45u8, 249u8, + 212u8, 160u8, 168u8, 242u8, 230u8, 151u8, 86u8, 67u8, 58u8, 21u8, + 173u8, 32u8, 28u8, 112u8, 100u8, 36u8, 57u8, 207u8, 163u8, 88u8, 133u8, + 75u8, + ], + ) + } + /// Current best solution, signed or unsigned, queued to be returned upon `elect`. + /// + /// Always sorted by score. + pub fn queued_solution( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_election_provider_multi_phase::ReadySolution, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "QueuedSolution", + vec![], + [ + 70u8, 22u8, 249u8, 41u8, 72u8, 8u8, 99u8, 121u8, 102u8, 128u8, 244u8, + 104u8, 208u8, 244u8, 113u8, 122u8, 118u8, 17u8, 65u8, 78u8, 165u8, + 129u8, 117u8, 36u8, 244u8, 243u8, 153u8, 87u8, 46u8, 116u8, 103u8, + 43u8, + ], + ) + } + /// Snapshot data of the round. + /// + /// This is created at the beginning of the signed phase and cleared upon calling + /// `elect`. + pub fn snapshot( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_election_provider_multi_phase::RoundSnapshot< + ::subxt::utils::AccountId32, + ( + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ), + >, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "Snapshot", + vec![], + [ + 103u8, 204u8, 76u8, 156u8, 154u8, 95u8, 115u8, 109u8, 135u8, 17u8, 9u8, + 137u8, 3u8, 184u8, 111u8, 198u8, 216u8, 3u8, 78u8, 115u8, 101u8, 235u8, + 52u8, 235u8, 245u8, 58u8, 191u8, 144u8, 61u8, 204u8, 159u8, 55u8, + ], + ) + } + /// Desired number of targets to elect for this round. + /// + /// Only exists when [`Snapshot`] is present. + pub fn desired_targets( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "DesiredTargets", + vec![], + [ + 67u8, 241u8, 33u8, 113u8, 62u8, 173u8, 233u8, 76u8, 99u8, 12u8, 61u8, + 237u8, 21u8, 252u8, 39u8, 37u8, 86u8, 167u8, 173u8, 53u8, 238u8, 172u8, + 97u8, 59u8, 27u8, 164u8, 163u8, 76u8, 140u8, 37u8, 159u8, 250u8, + ], + ) + } + /// The metadata of the [`RoundSnapshot`] + /// + /// Only exists when [`Snapshot`] is present. + pub fn snapshot_metadata( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SnapshotMetadata", + vec![], + [ + 48u8, 121u8, 12u8, 130u8, 174u8, 100u8, 114u8, 183u8, 83u8, 63u8, 44u8, + 147u8, 242u8, 223u8, 22u8, 107u8, 175u8, 182u8, 178u8, 254u8, 12u8, + 189u8, 37u8, 117u8, 95u8, 21u8, 19u8, 167u8, 56u8, 205u8, 49u8, 100u8, + ], + ) + } + /// The next index to be assigned to an incoming signed submission. + /// + /// Every accepted submission is assigned a unique index; that index is bound to + /// that particular submission for the duration of the election. On election + /// finalization, the next index is reset to 0. + /// + /// We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; + /// past its capacity, it will simply saturate. We can't just iterate over + /// `SignedSubmissionsMap`, because iteration is slow. Instead, we store the value + /// here. + pub fn signed_submission_next_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionNextIndex", + vec![], + [ + 188u8, 126u8, 77u8, 166u8, 42u8, 81u8, 12u8, 239u8, 195u8, 16u8, 132u8, + 178u8, 217u8, 158u8, 28u8, 19u8, 201u8, 148u8, 47u8, 105u8, 178u8, + 115u8, 17u8, 78u8, 71u8, 178u8, 205u8, 171u8, 71u8, 52u8, 194u8, 82u8, + ], + ) + } + /// A sorted, bounded vector of `(score, block_number, index)`, where each `index` + /// points to a value in `SignedSubmissions`. + /// + /// We never need to process more than a single signed submission at a time. Signed + /// submissions can be quite large, so we're willing to pay the cost of multiple + /// database accesses to access them one at a time instead of reading and decoding + /// all of them at once. + pub fn signed_submission_indices( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + runtime_types::sp_npos_elections::ElectionScore, + ::core::primitive::u64, + ::core::primitive::u32, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionIndices", + vec![], + [ + 197u8, 117u8, 54u8, 43u8, 218u8, 37u8, 186u8, 54u8, 160u8, 203u8, 7u8, + 203u8, 63u8, 182u8, 13u8, 4u8, 165u8, 173u8, 7u8, 29u8, 90u8, 255u8, + 183u8, 31u8, 35u8, 66u8, 115u8, 7u8, 220u8, 31u8, 1u8, 227u8, + ], + ) + } + /// Unchecked, signed solutions. + /// + /// Together with `SubmissionIndices`, this stores a bounded set of + /// `SignedSubmissions` while allowing us to keep only a single one in memory at a + /// time. + /// + /// Twox note: the key of the map is an auto-incrementing index which users cannot + /// inspect or 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::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_election_provider_multi_phase::signed::SignedSubmission< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + runtime_types::tangle_testnet_runtime::NposSolution16, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionsMap", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 118u8, 12u8, 234u8, 73u8, 238u8, 134u8, 20u8, 105u8, 248u8, 39u8, 23u8, + 96u8, 157u8, 187u8, 14u8, 143u8, 135u8, 121u8, 77u8, 90u8, 154u8, + 221u8, 139u8, 28u8, 34u8, 8u8, 19u8, 246u8, 65u8, 155u8, 84u8, 53u8, + ], + ) + } + /// Unchecked, signed solutions. + /// + /// Together with `SubmissionIndices`, this stores a bounded set of + /// `SignedSubmissions` while allowing us to keep only a single one in memory at a + /// time. + /// + /// Twox note: the key of the map is an auto-incrementing index which users cannot + /// inspect or affect; we shouldn't need a cryptographically secure hasher. + pub fn signed_submissions_map_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_election_provider_multi_phase::signed::SignedSubmission< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + runtime_types::tangle_testnet_runtime::NposSolution16, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "SignedSubmissionsMap", + Vec::new(), + [ + 118u8, 12u8, 234u8, 73u8, 238u8, 134u8, 20u8, 105u8, 248u8, 39u8, 23u8, + 96u8, 157u8, 187u8, 14u8, 143u8, 135u8, 121u8, 77u8, 90u8, 154u8, + 221u8, 139u8, 28u8, 34u8, 8u8, 19u8, 246u8, 65u8, 155u8, 84u8, 53u8, + ], + ) + } + /// The minimum score that each 'untrusted' solution must attain in order to be + /// considered feasible. + /// + /// Can be set via `set_minimum_untrusted_score`. + pub fn minimum_untrusted_score( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_npos_elections::ElectionScore, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "ElectionProviderMultiPhase", + "MinimumUntrustedScore", + vec![], + [ + 22u8, 253u8, 11u8, 17u8, 171u8, 145u8, 175u8, 97u8, 137u8, 148u8, 36u8, + 232u8, 55u8, 174u8, 75u8, 173u8, 133u8, 5u8, 227u8, 161u8, 28u8, 62u8, + 188u8, 249u8, 123u8, 102u8, 186u8, 180u8, 226u8, 216u8, 71u8, 249u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// Duration of the unsigned phase. + pub fn unsigned_phase( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "UnsignedPhase", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// Duration of the signed phase. + pub fn signed_phase(&self) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedPhase", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// The minimum amount of improvement to the solution score that defines a solution + /// as "better" in the Signed phase. + pub fn better_signed_threshold( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "BetterSignedThreshold", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) + } + /// The minimum amount of improvement to the solution score that defines a solution + /// as "better" in the Unsigned phase. + pub fn better_unsigned_threshold( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "BetterUnsignedThreshold", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) + } + /// The repeat threshold of the offchain worker. + /// + /// For example, if it is 5, that means that at least 5 blocks will elapse between + /// attempts to submit the worker's solution. + pub fn offchain_repeat( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "OffchainRepeat", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// The priority of the unsigned transaction submitted in the unsigned-phase + pub fn miner_tx_priority( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerTxPriority", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// Maximum number of signed submissions that can be queued. + /// + /// It is best to avoid adjusting this during an election, as it impacts downstream + /// data structures. In particular, `SignedSubmissionIndices` is bounded on this + /// value. If you update this value during an election, you _must_ ensure that + /// `SignedSubmissionIndices.len()` is less than or equal to the new value. + /// Otherwise, attempts to submit new solutions may cause a runtime panic. + pub fn signed_max_submissions( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedMaxSubmissions", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// Maximum weight of a signed solution. + /// + /// If [`Config::MinerConfig`] is being implemented to submit signed solutions + /// (outside of this pallet), then [`MinerConfig::solution_weight`] is used to + /// compare against this value. + pub fn signed_max_weight( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedMaxWeight", + [ + 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, + 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, + 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, + 112u8, + ], + ) + } + /// The maximum amount of unchecked solutions to refund the call fee for. + pub fn signed_max_refunds( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedMaxRefunds", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// Base reward for a signed solution + pub fn signed_reward_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedRewardBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// Base deposit for a signed solution. + pub fn signed_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// Per-byte deposit for a signed solution. + pub fn signed_deposit_byte( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedDepositByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// Per-weight deposit for a signed solution. + pub fn signed_deposit_weight( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "SignedDepositWeight", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// The maximum number of winners that can be elected by this `ElectionProvider` + /// implementation. + /// + /// Note: This must always be greater or equal to + /// `T::DataProvider::desired_targets()`. + pub fn max_winners(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MaxWinners", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + pub fn miner_max_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + pub fn miner_max_weight( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxWeight", + [ + 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, + 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, + 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, + 112u8, + ], + ) + } + pub fn miner_max_votes_per_voter( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxVotesPerVoter", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + pub fn miner_max_winners( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxWinners", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod staking { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Bond { + #[codec(compact)] + pub value: ::core::primitive::u128, + pub payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Bond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "bond"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BondExtra { + #[codec(compact)] + pub max_additional: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for BondExtra { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "bond_extra"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Unbond { + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Unbond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "unbond"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WithdrawUnbonded { + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "withdraw_unbonded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Validate { + pub prefs: runtime_types::pallet_staking::ValidatorPrefs, + } + impl ::subxt::blocks::StaticExtrinsic for Validate { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "validate"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Nominate { + pub targets: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Nominate { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "nominate"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Chill; + impl ::subxt::blocks::StaticExtrinsic for Chill { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "chill"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetPayee { + pub payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetPayee { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_payee"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetController; + impl ::subxt::blocks::StaticExtrinsic for SetController { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_controller"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetValidatorCount { + #[codec(compact)] + pub new: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for SetValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_validator_count"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct IncreaseValidatorCount { + #[codec(compact)] + pub additional: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for IncreaseValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "increase_validator_count"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ScaleValidatorCount { + pub factor: runtime_types::sp_arithmetic::per_things::Percent, + } + impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "scale_validator_count"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceNoEras; + impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_no_eras"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceNewEra; + impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_new_era"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetInvulnerables { + pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_invulnerables"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceUnstake { + pub stash: ::subxt::utils::AccountId32, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceUnstake { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_unstake"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceNewEraAlways; + impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_new_era_always"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CancelDeferredSlash { + pub era: ::core::primitive::u32, + pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "cancel_deferred_slash"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PayoutStakers { + pub validator_stash: ::subxt::utils::AccountId32, + pub era: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "payout_stakers"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Rebond { + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Rebond { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "rebond"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReapStash { + pub stash: ::subxt::utils::AccountId32, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ReapStash { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "reap_stash"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Kick { + pub who: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Kick { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "kick"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetStakingConfigs { + pub min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + pub min_validator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + pub max_nominator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + pub max_validator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + pub chill_threshold: runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >, + pub min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_staking_configs"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChillOther { + pub controller: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ChillOther { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "chill_other"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceApplyMinCommission { + pub validator_stash: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_apply_min_commission"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetMinCommission { + pub new: runtime_types::sp_arithmetic::per_things::Perbill, + } + impl ::subxt::blocks::StaticExtrinsic for SetMinCommission { + const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_min_commission"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::bond`]. + pub fn bond( + &self, + value: ::core::primitive::u128, + payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "bond", + types::Bond { value, payee }, + [ + 45u8, 207u8, 34u8, 221u8, 252u8, 224u8, 162u8, 185u8, 67u8, 224u8, + 88u8, 91u8, 232u8, 114u8, 183u8, 44u8, 39u8, 5u8, 12u8, 163u8, 57u8, + 31u8, 251u8, 58u8, 37u8, 232u8, 206u8, 75u8, 164u8, 26u8, 170u8, 101u8, + ], + ) + } + ///See [`Pallet::bond_extra`]. + pub fn bond_extra( + &self, + max_additional: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "bond_extra", + types::BondExtra { max_additional }, + [ + 9u8, 143u8, 179u8, 99u8, 91u8, 254u8, 114u8, 189u8, 202u8, 245u8, 48u8, + 130u8, 103u8, 17u8, 183u8, 177u8, 172u8, 156u8, 227u8, 145u8, 191u8, + 134u8, 81u8, 3u8, 170u8, 85u8, 40u8, 56u8, 216u8, 95u8, 232u8, 52u8, + ], + ) + } + ///See [`Pallet::unbond`]. + pub fn unbond( + &self, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "unbond", + types::Unbond { value }, + [ + 70u8, 201u8, 146u8, 56u8, 51u8, 237u8, 90u8, 193u8, 69u8, 42u8, 168u8, + 96u8, 215u8, 128u8, 253u8, 22u8, 239u8, 14u8, 214u8, 103u8, 170u8, + 140u8, 2u8, 182u8, 3u8, 190u8, 184u8, 191u8, 231u8, 137u8, 50u8, 16u8, + ], + ) + } + ///See [`Pallet::withdraw_unbonded`]. + pub fn withdraw_unbonded( + &self, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "withdraw_unbonded", + types::WithdrawUnbonded { num_slashing_spans }, + [ + 229u8, 128u8, 177u8, 224u8, 197u8, 118u8, 239u8, 142u8, 179u8, 164u8, + 10u8, 205u8, 124u8, 254u8, 209u8, 157u8, 172u8, 87u8, 58u8, 120u8, + 74u8, 12u8, 150u8, 117u8, 234u8, 32u8, 191u8, 182u8, 92u8, 97u8, 77u8, + 59u8, + ], + ) + } + ///See [`Pallet::validate`]. + pub fn validate( + &self, + prefs: runtime_types::pallet_staking::ValidatorPrefs, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "validate", + types::Validate { prefs }, + [ + 63u8, 83u8, 12u8, 16u8, 56u8, 84u8, 41u8, 141u8, 202u8, 0u8, 37u8, + 30u8, 115u8, 2u8, 145u8, 101u8, 168u8, 89u8, 94u8, 98u8, 8u8, 45u8, + 140u8, 237u8, 101u8, 136u8, 179u8, 162u8, 205u8, 41u8, 88u8, 248u8, + ], + ) + } + ///See [`Pallet::nominate`]. + pub fn nominate( + &self, + targets: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "nominate", + types::Nominate { targets }, + [ + 235u8, 128u8, 69u8, 72u8, 149u8, 110u8, 119u8, 10u8, 99u8, 130u8, + 173u8, 12u8, 136u8, 41u8, 43u8, 223u8, 200u8, 216u8, 75u8, 216u8, 91u8, + 173u8, 247u8, 253u8, 129u8, 76u8, 89u8, 17u8, 35u8, 151u8, 208u8, + 227u8, + ], + ) + } + ///See [`Pallet::chill`]. + pub fn chill(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "chill", + types::Chill {}, + [ + 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, + 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, + 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, + ], + ) + } + ///See [`Pallet::set_payee`]. + pub fn set_payee( + &self, + payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_payee", + types::SetPayee { payee }, + [ + 86u8, 172u8, 187u8, 98u8, 106u8, 240u8, 184u8, 60u8, 163u8, 244u8, 7u8, + 64u8, 147u8, 168u8, 192u8, 177u8, 211u8, 138u8, 73u8, 188u8, 159u8, + 154u8, 175u8, 219u8, 231u8, 235u8, 93u8, 195u8, 204u8, 100u8, 196u8, + 241u8, + ], + ) + } + ///See [`Pallet::set_controller`]. + pub fn set_controller(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_controller", + types::SetController {}, + [ + 172u8, 27u8, 195u8, 188u8, 145u8, 203u8, 190u8, 174u8, 145u8, 43u8, + 253u8, 87u8, 11u8, 229u8, 112u8, 18u8, 57u8, 101u8, 84u8, 235u8, 109u8, + 228u8, 58u8, 129u8, 179u8, 174u8, 245u8, 169u8, 89u8, 240u8, 39u8, + 67u8, + ], + ) + } + ///See [`Pallet::set_validator_count`]. + pub fn set_validator_count( + &self, + new: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_validator_count", + types::SetValidatorCount { new }, + [ + 172u8, 225u8, 157u8, 48u8, 242u8, 217u8, 126u8, 206u8, 26u8, 156u8, + 203u8, 100u8, 116u8, 189u8, 98u8, 89u8, 151u8, 101u8, 77u8, 236u8, + 101u8, 8u8, 148u8, 236u8, 180u8, 175u8, 232u8, 146u8, 141u8, 141u8, + 78u8, 165u8, + ], + ) + } + ///See [`Pallet::increase_validator_count`]. + pub fn increase_validator_count( + &self, + additional: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "increase_validator_count", + types::IncreaseValidatorCount { additional }, + [ + 108u8, 67u8, 131u8, 248u8, 139u8, 227u8, 224u8, 221u8, 248u8, 94u8, + 141u8, 104u8, 131u8, 250u8, 127u8, 164u8, 137u8, 211u8, 5u8, 27u8, + 185u8, 251u8, 120u8, 243u8, 165u8, 50u8, 197u8, 161u8, 125u8, 195u8, + 16u8, 29u8, + ], + ) + } + ///See [`Pallet::scale_validator_count`]. + pub fn scale_validator_count( + &self, + factor: runtime_types::sp_arithmetic::per_things::Percent, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "scale_validator_count", + types::ScaleValidatorCount { factor }, + [ + 93u8, 200u8, 119u8, 240u8, 148u8, 144u8, 175u8, 135u8, 102u8, 130u8, + 183u8, 216u8, 28u8, 215u8, 155u8, 233u8, 152u8, 65u8, 49u8, 125u8, + 196u8, 79u8, 31u8, 195u8, 233u8, 79u8, 150u8, 138u8, 103u8, 161u8, + 78u8, 154u8, + ], + ) + } + ///See [`Pallet::force_no_eras`]. + pub fn force_no_eras(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_no_eras", + types::ForceNoEras {}, + [ + 77u8, 5u8, 105u8, 167u8, 251u8, 78u8, 52u8, 80u8, 177u8, 226u8, 28u8, + 130u8, 106u8, 62u8, 40u8, 210u8, 110u8, 62u8, 21u8, 113u8, 234u8, + 227u8, 171u8, 205u8, 240u8, 46u8, 32u8, 84u8, 184u8, 208u8, 61u8, + 207u8, + ], + ) + } + ///See [`Pallet::force_new_era`]. + pub fn force_new_era(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_new_era", + types::ForceNewEra {}, + [ + 119u8, 45u8, 11u8, 87u8, 236u8, 189u8, 41u8, 142u8, 130u8, 10u8, 132u8, + 140u8, 210u8, 134u8, 66u8, 152u8, 149u8, 55u8, 60u8, 31u8, 190u8, 41u8, + 177u8, 103u8, 245u8, 193u8, 95u8, 255u8, 29u8, 79u8, 112u8, 188u8, + ], + ) + } + ///See [`Pallet::set_invulnerables`]. + pub fn set_invulnerables( + &self, + invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_invulnerables", + types::SetInvulnerables { invulnerables }, + [ + 31u8, 115u8, 221u8, 229u8, 187u8, 61u8, 33u8, 22u8, 126u8, 142u8, + 248u8, 190u8, 213u8, 35u8, 49u8, 208u8, 193u8, 0u8, 58u8, 18u8, 136u8, + 220u8, 32u8, 8u8, 121u8, 36u8, 184u8, 57u8, 6u8, 125u8, 199u8, 245u8, + ], + ) + } + ///See [`Pallet::force_unstake`]. + pub fn force_unstake( + &self, + stash: ::subxt::utils::AccountId32, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_unstake", + types::ForceUnstake { stash, num_slashing_spans }, + [ + 205u8, 115u8, 222u8, 58u8, 168u8, 3u8, 59u8, 58u8, 220u8, 98u8, 204u8, + 90u8, 36u8, 250u8, 178u8, 45u8, 213u8, 158u8, 92u8, 107u8, 3u8, 94u8, + 118u8, 194u8, 187u8, 196u8, 101u8, 250u8, 36u8, 119u8, 21u8, 19u8, + ], + ) + } + ///See [`Pallet::force_new_era_always`]. + pub fn force_new_era_always( + &self, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_new_era_always", + types::ForceNewEraAlways {}, + [ + 102u8, 153u8, 116u8, 85u8, 80u8, 52u8, 89u8, 215u8, 173u8, 159u8, 96u8, + 99u8, 180u8, 5u8, 62u8, 142u8, 181u8, 101u8, 160u8, 57u8, 177u8, 182u8, + 6u8, 252u8, 107u8, 252u8, 225u8, 104u8, 147u8, 123u8, 244u8, 134u8, + ], + ) + } + ///See [`Pallet::cancel_deferred_slash`]. + pub fn cancel_deferred_slash( + &self, + era: ::core::primitive::u32, + slash_indices: ::std::vec::Vec<::core::primitive::u32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "cancel_deferred_slash", + types::CancelDeferredSlash { era, slash_indices }, + [ + 49u8, 208u8, 248u8, 109u8, 25u8, 132u8, 73u8, 172u8, 232u8, 194u8, + 114u8, 23u8, 114u8, 4u8, 64u8, 156u8, 70u8, 41u8, 207u8, 208u8, 78u8, + 199u8, 81u8, 125u8, 101u8, 31u8, 17u8, 140u8, 190u8, 254u8, 64u8, + 101u8, + ], + ) + } + ///See [`Pallet::payout_stakers`]. + pub fn payout_stakers( + &self, + validator_stash: ::subxt::utils::AccountId32, + era: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "payout_stakers", + types::PayoutStakers { validator_stash, era }, + [ + 69u8, 67u8, 140u8, 197u8, 89u8, 20u8, 59u8, 55u8, 142u8, 197u8, 62u8, + 107u8, 239u8, 50u8, 237u8, 52u8, 4u8, 65u8, 119u8, 73u8, 138u8, 57u8, + 46u8, 78u8, 252u8, 157u8, 187u8, 14u8, 232u8, 244u8, 217u8, 171u8, + ], + ) + } + ///See [`Pallet::rebond`]. + pub fn rebond( + &self, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "rebond", + types::Rebond { value }, + [ + 204u8, 209u8, 27u8, 219u8, 45u8, 129u8, 15u8, 39u8, 105u8, 165u8, + 255u8, 55u8, 0u8, 59u8, 115u8, 79u8, 139u8, 82u8, 163u8, 197u8, 44u8, + 89u8, 41u8, 234u8, 116u8, 214u8, 248u8, 123u8, 250u8, 49u8, 15u8, 77u8, + ], + ) + } + ///See [`Pallet::reap_stash`]. + pub fn reap_stash( + &self, + stash: ::subxt::utils::AccountId32, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "reap_stash", + types::ReapStash { stash, num_slashing_spans }, + [ + 231u8, 240u8, 152u8, 33u8, 10u8, 60u8, 18u8, 233u8, 0u8, 229u8, 90u8, + 45u8, 118u8, 29u8, 98u8, 109u8, 89u8, 7u8, 228u8, 254u8, 119u8, 125u8, + 172u8, 209u8, 217u8, 107u8, 50u8, 226u8, 31u8, 5u8, 153u8, 93u8, + ], + ) + } + ///See [`Pallet::kick`]. + pub fn kick( + &self, + who: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "kick", + types::Kick { who }, + [ + 61u8, 49u8, 184u8, 238u8, 17u8, 11u8, 173u8, 187u8, 229u8, 163u8, 69u8, + 139u8, 23u8, 90u8, 87u8, 10u8, 179u8, 39u8, 19u8, 251u8, 74u8, 21u8, + 126u8, 165u8, 21u8, 43u8, 237u8, 241u8, 75u8, 186u8, 35u8, 53u8, + ], + ) + } + ///See [`Pallet::set_staking_configs`]. + pub fn set_staking_configs( + &self, + min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + min_validator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + max_nominator_count: runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + max_validator_count: runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + chill_threshold: runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >, + min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_staking_configs", + types::SetStakingConfigs { + min_nominator_bond, + min_validator_bond, + max_nominator_count, + max_validator_count, + chill_threshold, + min_commission, + }, + [ + 99u8, 61u8, 196u8, 68u8, 226u8, 64u8, 104u8, 70u8, 173u8, 108u8, 29u8, + 39u8, 61u8, 202u8, 72u8, 227u8, 190u8, 6u8, 138u8, 137u8, 207u8, 11u8, + 190u8, 79u8, 73u8, 7u8, 108u8, 131u8, 19u8, 7u8, 173u8, 60u8, + ], + ) + } + ///See [`Pallet::chill_other`]. + pub fn chill_other( + &self, + controller: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "chill_other", + types::ChillOther { controller }, + [ + 143u8, 82u8, 167u8, 43u8, 102u8, 136u8, 78u8, 139u8, 110u8, 159u8, + 235u8, 226u8, 237u8, 140u8, 142u8, 47u8, 77u8, 57u8, 209u8, 208u8, 9u8, + 193u8, 3u8, 77u8, 147u8, 41u8, 182u8, 122u8, 178u8, 185u8, 32u8, 182u8, + ], + ) + } + ///See [`Pallet::force_apply_min_commission`]. + pub fn force_apply_min_commission( + &self, + validator_stash: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "force_apply_min_commission", + types::ForceApplyMinCommission { validator_stash }, + [ + 158u8, 27u8, 152u8, 23u8, 97u8, 53u8, 54u8, 49u8, 179u8, 236u8, 69u8, + 65u8, 253u8, 136u8, 232u8, 44u8, 207u8, 66u8, 5u8, 186u8, 49u8, 91u8, + 173u8, 5u8, 84u8, 45u8, 154u8, 91u8, 239u8, 97u8, 62u8, 42u8, + ], + ) + } + ///See [`Pallet::set_min_commission`]. + pub fn set_min_commission( + &self, + new: runtime_types::sp_arithmetic::per_things::Perbill, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Staking", + "set_min_commission", + types::SetMinCommission { new }, + [ + 96u8, 168u8, 55u8, 79u8, 79u8, 49u8, 8u8, 127u8, 98u8, 158u8, 106u8, + 187u8, 177u8, 201u8, 68u8, 181u8, 219u8, 172u8, 63u8, 120u8, 172u8, + 173u8, 251u8, 167u8, 84u8, 165u8, 238u8, 115u8, 110u8, 97u8, 144u8, + 50u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The era payout has been set; the first balance is the validator-payout; the second + /// is the remainder from the maximum amount of reward. + pub struct EraPaid { + pub era_index: ::core::primitive::u32, + pub validator_payout: ::core::primitive::u128, + pub remainder: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for EraPaid { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "EraPaid"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The nominator has been rewarded by this amount. + pub struct Rewarded { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rewarded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Rewarded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A staker (validator or nominator) has been slashed by the given amount. + pub struct Slashed { + pub staker: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A slash for the given validator, for the given percentage of their stake, at the + /// given era as been reported. + pub struct SlashReported { + pub validator: ::subxt::utils::AccountId32, + pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, + pub slash_era: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for SlashReported { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "SlashReported"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An old slashing report from a prior era was discarded because it could + ///not be processed. + pub struct OldSlashingReportDiscarded { + pub session_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "OldSlashingReportDiscarded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A new set of stakers was elected. + pub struct StakersElected; + impl ::subxt::events::StaticEvent for StakersElected { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "StakersElected"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account has bonded this amount. \[stash, amount\] + /// + ///NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably, + ///it will not be emitted for staking rewards when they are added to stake. + pub struct Bonded { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Bonded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Bonded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account has unbonded this amount. + pub struct Unbonded { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Unbonded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Unbonded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account has called `withdraw_unbonded` and removed unbonding chunks worth + /// `Balance` from the unlocking queue. + pub struct Withdrawn { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Withdrawn { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Withdrawn"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A nominator has been kicked from a validator. + pub struct Kicked { + pub nominator: ::subxt::utils::AccountId32, + pub stash: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Kicked { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Kicked"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The election failed. No new era is planned. + pub struct StakingElectionFailed; + impl ::subxt::events::StaticEvent for StakingElectionFailed { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "StakingElectionFailed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An account has stopped participating as either a validator or nominator. + pub struct Chilled { + pub stash: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Chilled { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Chilled"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The stakers' rewards are getting paid. + pub struct PayoutStarted { + pub era_index: ::core::primitive::u32, + pub validator_stash: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for PayoutStarted { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "PayoutStarted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A validator has set their preferences. + pub struct ValidatorPrefsSet { + pub stash: ::subxt::utils::AccountId32, + pub prefs: runtime_types::pallet_staking::ValidatorPrefs, + } + impl ::subxt::events::StaticEvent for ValidatorPrefsSet { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "ValidatorPrefsSet"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Voters size limit reached. + pub struct SnapshotVotersSizeExceeded { + pub size: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for SnapshotVotersSizeExceeded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "SnapshotVotersSizeExceeded"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Targets size limit reached. + pub struct SnapshotTargetsSizeExceeded { + pub size: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for SnapshotTargetsSizeExceeded { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "SnapshotTargetsSizeExceeded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A new force era mode was set. + pub struct ForceEra { + pub mode: runtime_types::pallet_staking::Forcing, + } + impl ::subxt::events::StaticEvent for ForceEra { + const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "ForceEra"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The ideal number of active validators. + pub fn validator_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ValidatorCount", + vec![], + [ + 105u8, 251u8, 193u8, 198u8, 232u8, 118u8, 73u8, 115u8, 205u8, 78u8, + 49u8, 253u8, 140u8, 193u8, 161u8, 205u8, 13u8, 147u8, 125u8, 102u8, + 142u8, 244u8, 210u8, 227u8, 225u8, 46u8, 144u8, 122u8, 254u8, 48u8, + 44u8, 169u8, + ], + ) + } + /// Minimum number of staking participants before emergency conditions are imposed. + pub fn minimum_validator_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinimumValidatorCount", + vec![], + [ + 103u8, 178u8, 29u8, 91u8, 90u8, 31u8, 49u8, 9u8, 11u8, 58u8, 178u8, + 30u8, 219u8, 55u8, 58u8, 181u8, 80u8, 155u8, 9u8, 11u8, 38u8, 46u8, + 125u8, 179u8, 220u8, 20u8, 212u8, 181u8, 136u8, 103u8, 58u8, 48u8, + ], + ) + } + /// Any validators that may never be slashed or forcibly kicked. It's a Vec since + /// they're easy to initialize and the performance hit is minimal (we expect no more + /// than four invulnerables) and restricted to testnets. + pub fn invulnerables( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Invulnerables", + vec![], + [ + 199u8, 35u8, 0u8, 229u8, 160u8, 128u8, 139u8, 245u8, 27u8, 133u8, 47u8, + 240u8, 86u8, 195u8, 90u8, 169u8, 158u8, 231u8, 128u8, 58u8, 24u8, + 173u8, 138u8, 122u8, 226u8, 104u8, 239u8, 114u8, 91u8, 165u8, 207u8, + 150u8, + ], + ) + } + /// Map from all locked "stash" accounts to the controller account. + /// + /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + pub fn bonded( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Bonded", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 99u8, 128u8, 108u8, 100u8, 235u8, 102u8, 243u8, 95u8, 61u8, 206u8, + 220u8, 49u8, 155u8, 85u8, 236u8, 110u8, 99u8, 21u8, 117u8, 127u8, + 157u8, 226u8, 108u8, 80u8, 126u8, 93u8, 203u8, 0u8, 160u8, 253u8, 56u8, + 101u8, + ], + ) + } + /// Map from all locked "stash" accounts to the controller account. + /// + /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + pub fn bonded_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Bonded", + Vec::new(), + [ + 99u8, 128u8, 108u8, 100u8, 235u8, 102u8, 243u8, 95u8, 61u8, 206u8, + 220u8, 49u8, 155u8, 85u8, 236u8, 110u8, 99u8, 21u8, 117u8, 127u8, + 157u8, 226u8, 108u8, 80u8, 126u8, 93u8, 203u8, 0u8, 160u8, 253u8, 56u8, + 101u8, + ], + ) + } + /// The minimum active bond to become and maintain the role of a nominator. + pub fn min_nominator_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinNominatorBond", + vec![], + [ + 102u8, 115u8, 254u8, 15u8, 191u8, 228u8, 85u8, 249u8, 112u8, 190u8, + 129u8, 243u8, 236u8, 39u8, 195u8, 232u8, 10u8, 230u8, 11u8, 144u8, + 115u8, 1u8, 45u8, 70u8, 181u8, 161u8, 17u8, 92u8, 19u8, 70u8, 100u8, + 94u8, + ], + ) + } + /// The minimum active bond to become and maintain the role of a validator. + pub fn min_validator_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinValidatorBond", + vec![], + [ + 146u8, 249u8, 26u8, 52u8, 224u8, 81u8, 85u8, 153u8, 118u8, 169u8, + 140u8, 37u8, 208u8, 242u8, 8u8, 29u8, 156u8, 73u8, 154u8, 162u8, 186u8, + 159u8, 119u8, 100u8, 109u8, 227u8, 6u8, 139u8, 155u8, 203u8, 167u8, + 244u8, + ], + ) + } + /// The minimum active nominator stake of the last successful election. + pub fn minimum_active_stake( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinimumActiveStake", + vec![], + [ + 166u8, 211u8, 59u8, 23u8, 2u8, 160u8, 244u8, 52u8, 153u8, 12u8, 103u8, + 113u8, 51u8, 232u8, 145u8, 188u8, 54u8, 67u8, 227u8, 221u8, 186u8, 6u8, + 28u8, 63u8, 146u8, 212u8, 233u8, 173u8, 134u8, 41u8, 169u8, 153u8, + ], + ) + } + /// The minimum amount of commission that validators can set. + /// + /// If set to `0`, no limit exists. + pub fn min_commission( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MinCommission", + vec![], + [ + 220u8, 197u8, 232u8, 212u8, 205u8, 242u8, 121u8, 165u8, 255u8, 199u8, + 122u8, 20u8, 145u8, 245u8, 175u8, 26u8, 45u8, 70u8, 207u8, 26u8, 112u8, + 234u8, 181u8, 167u8, 140u8, 75u8, 15u8, 1u8, 221u8, 168u8, 17u8, 211u8, + ], + ) + } + /// Map from all (unlocked) "controller" accounts to the info regarding the staking. + pub fn ledger( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::StakingLedger, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Ledger", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 210u8, 236u8, 6u8, 49u8, 200u8, 118u8, 116u8, 25u8, 66u8, 60u8, 18u8, + 75u8, 240u8, 156u8, 58u8, 48u8, 176u8, 10u8, 175u8, 0u8, 86u8, 7u8, + 16u8, 134u8, 64u8, 41u8, 46u8, 128u8, 33u8, 40u8, 10u8, 129u8, + ], + ) + } + /// Map from all (unlocked) "controller" accounts to the info regarding the staking. + pub fn ledger_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::StakingLedger, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Ledger", + Vec::new(), + [ + 210u8, 236u8, 6u8, 49u8, 200u8, 118u8, 116u8, 25u8, 66u8, 60u8, 18u8, + 75u8, 240u8, 156u8, 58u8, 48u8, 176u8, 10u8, 175u8, 0u8, 86u8, 7u8, + 16u8, 134u8, 64u8, 41u8, 46u8, 128u8, 33u8, 40u8, 10u8, 129u8, + ], + ) + } + /// Where the reward payment should be made. Keyed by stash. + /// + /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + pub fn payee( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::RewardDestination<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Payee", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 141u8, 225u8, 44u8, 134u8, 50u8, 229u8, 64u8, 186u8, 166u8, 88u8, + 213u8, 118u8, 32u8, 154u8, 151u8, 204u8, 104u8, 216u8, 198u8, 66u8, + 123u8, 143u8, 206u8, 245u8, 53u8, 67u8, 78u8, 82u8, 115u8, 31u8, 39u8, + 76u8, + ], + ) + } + /// Where the reward payment should be made. Keyed by stash. + /// + /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + pub fn payee_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::RewardDestination<::subxt::utils::AccountId32>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Payee", + Vec::new(), + [ + 141u8, 225u8, 44u8, 134u8, 50u8, 229u8, 64u8, 186u8, 166u8, 88u8, + 213u8, 118u8, 32u8, 154u8, 151u8, 204u8, 104u8, 216u8, 198u8, 66u8, + 123u8, 143u8, 206u8, 245u8, 53u8, 67u8, 78u8, 82u8, 115u8, 31u8, 39u8, + 76u8, + ], + ) + } + /// The map from (wannabe) validator stash key to the preferences of that validator. + /// + /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + pub fn validators( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Validators", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 149u8, 207u8, 68u8, 38u8, 24u8, 220u8, 207u8, 84u8, 236u8, 33u8, 210u8, + 124u8, 200u8, 99u8, 98u8, 29u8, 235u8, 46u8, 124u8, 4u8, 203u8, 6u8, + 209u8, 21u8, 124u8, 236u8, 112u8, 118u8, 180u8, 85u8, 78u8, 13u8, + ], + ) + } + /// The map from (wannabe) validator stash key to the preferences of that validator. + /// + /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + pub fn validators_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Validators", + Vec::new(), + [ + 149u8, 207u8, 68u8, 38u8, 24u8, 220u8, 207u8, 84u8, 236u8, 33u8, 210u8, + 124u8, 200u8, 99u8, 98u8, 29u8, 235u8, 46u8, 124u8, 4u8, 203u8, 6u8, + 209u8, 21u8, 124u8, 236u8, 112u8, 118u8, 180u8, 85u8, 78u8, 13u8, + ], + ) + } + ///Counter for the related counted storage map + pub fn counter_for_validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CounterForValidators", + vec![], + [ + 169u8, 146u8, 194u8, 114u8, 57u8, 232u8, 137u8, 93u8, 214u8, 98u8, + 176u8, 151u8, 237u8, 165u8, 176u8, 252u8, 73u8, 124u8, 22u8, 166u8, + 225u8, 217u8, 65u8, 56u8, 174u8, 12u8, 32u8, 2u8, 7u8, 173u8, 125u8, + 235u8, + ], + ) + } + /// The maximum validator count before we stop allowing new validators to join. + /// + /// When this value is not set, no limits are enforced. + pub fn max_validators_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MaxValidatorsCount", + vec![], + [ + 139u8, 116u8, 236u8, 217u8, 110u8, 47u8, 140u8, 197u8, 184u8, 246u8, + 180u8, 188u8, 233u8, 99u8, 102u8, 21u8, 114u8, 23u8, 143u8, 163u8, + 224u8, 250u8, 248u8, 185u8, 235u8, 94u8, 110u8, 83u8, 170u8, 123u8, + 113u8, 168u8, + ], + ) + } + /// The map from nominator stash key to their nomination preferences, namely the + /// validators that they wish to support. + /// + /// Note that the keys of this storage map might become non-decodable in case the + /// account's [`NominationsQuota::MaxNominations`] configuration is decreased. + /// In this rare case, these nominators + /// are still existent in storage, their key is correct and retrievable (i.e. + /// `contains_key` indicates that they exist), but their value cannot be decoded. + /// Therefore, the non-decodable nominators will effectively not-exist, until they + /// re-submit their preferences such that it is within the bounds of the newly set + /// `Config::MaxNominations`. + /// + /// This implies that `::iter_keys().count()` and `::iter().count()` might return + /// different values for this map. Moreover, the main `::count()` is aligned with + /// the former, namely the number of keys that exist. + /// + /// Lastly, if any of the nominators become non-decodable, they can be chilled + /// immediately via [`Call::chill_other`] dispatchable by anyone. + /// + /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + pub fn nominators( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Nominations, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Nominators", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 244u8, 174u8, 214u8, 105u8, 215u8, 218u8, 241u8, 145u8, 155u8, 54u8, + 219u8, 34u8, 158u8, 224u8, 251u8, 17u8, 245u8, 9u8, 150u8, 36u8, 2u8, + 233u8, 222u8, 218u8, 136u8, 86u8, 37u8, 244u8, 18u8, 50u8, 91u8, 120u8, + ], + ) + } + /// The map from nominator stash key to their nomination preferences, namely the + /// validators that they wish to support. + /// + /// Note that the keys of this storage map might become non-decodable in case the + /// account's [`NominationsQuota::MaxNominations`] configuration is decreased. + /// In this rare case, these nominators + /// are still existent in storage, their key is correct and retrievable (i.e. + /// `contains_key` indicates that they exist), but their value cannot be decoded. + /// Therefore, the non-decodable nominators will effectively not-exist, until they + /// re-submit their preferences such that it is within the bounds of the newly set + /// `Config::MaxNominations`. + /// + /// This implies that `::iter_keys().count()` and `::iter().count()` might return + /// different values for this map. Moreover, the main `::count()` is aligned with + /// the former, namely the number of keys that exist. + /// + /// Lastly, if any of the nominators become non-decodable, they can be chilled + /// immediately via [`Call::chill_other`] dispatchable by anyone. + /// + /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + pub fn nominators_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Nominations, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "Nominators", + Vec::new(), + [ + 244u8, 174u8, 214u8, 105u8, 215u8, 218u8, 241u8, 145u8, 155u8, 54u8, + 219u8, 34u8, 158u8, 224u8, 251u8, 17u8, 245u8, 9u8, 150u8, 36u8, 2u8, + 233u8, 222u8, 218u8, 136u8, 86u8, 37u8, 244u8, 18u8, 50u8, 91u8, 120u8, + ], + ) + } + ///Counter for the related counted storage map + pub fn counter_for_nominators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CounterForNominators", + vec![], + [ + 150u8, 236u8, 184u8, 12u8, 224u8, 26u8, 13u8, 204u8, 208u8, 178u8, + 68u8, 148u8, 232u8, 85u8, 74u8, 248u8, 167u8, 61u8, 88u8, 126u8, 40u8, + 20u8, 73u8, 47u8, 94u8, 57u8, 144u8, 77u8, 156u8, 179u8, 55u8, 49u8, + ], + ) + } + /// The maximum nominator count before we stop allowing new validators to join. + /// + /// When this value is not set, no limits are enforced. + pub fn max_nominators_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "MaxNominatorsCount", + vec![], + [ + 11u8, 234u8, 179u8, 254u8, 95u8, 119u8, 35u8, 255u8, 141u8, 95u8, + 148u8, 209u8, 43u8, 202u8, 19u8, 57u8, 185u8, 50u8, 152u8, 192u8, 95u8, + 13u8, 158u8, 245u8, 113u8, 199u8, 255u8, 187u8, 37u8, 44u8, 8u8, 119u8, + ], + ) + } + /// The current era index. + /// + /// This is the latest planned era, depending on how the Session pallet queues the + /// validator set, it might be active or not. + pub fn current_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CurrentEra", + vec![], + [ + 247u8, 239u8, 171u8, 18u8, 137u8, 240u8, 213u8, 3u8, 173u8, 173u8, + 236u8, 141u8, 202u8, 191u8, 228u8, 120u8, 196u8, 188u8, 13u8, 66u8, + 253u8, 117u8, 90u8, 8u8, 158u8, 11u8, 236u8, 141u8, 178u8, 44u8, 119u8, + 25u8, + ], + ) + } + /// The active era information, it holds index and start. + /// + /// The active era is the era being currently rewarded. Validator set of this era + /// must be equal to [`SessionInterface::validators`]. + pub fn active_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ActiveEraInfo, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ActiveEra", + vec![], + [ + 24u8, 229u8, 66u8, 56u8, 111u8, 234u8, 139u8, 93u8, 245u8, 137u8, + 110u8, 110u8, 121u8, 15u8, 216u8, 207u8, 97u8, 120u8, 125u8, 45u8, + 61u8, 2u8, 50u8, 100u8, 3u8, 106u8, 12u8, 233u8, 123u8, 156u8, 145u8, + 38u8, + ], + ) + } + /// The session index at which the era start for the last `HISTORY_DEPTH` eras. + /// + /// Note: This tracks the starting session (i.e. session index when era start being + /// active) for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`. + pub fn eras_start_session_index( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStartSessionIndex", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 104u8, 76u8, 102u8, 20u8, 9u8, 146u8, 55u8, 204u8, 12u8, 15u8, 117u8, + 22u8, 54u8, 230u8, 98u8, 105u8, 191u8, 136u8, 140u8, 65u8, 48u8, 29u8, + 19u8, 144u8, 159u8, 241u8, 158u8, 77u8, 4u8, 230u8, 216u8, 52u8, + ], + ) + } + /// The session index at which the era start for the last `HISTORY_DEPTH` eras. + /// + /// Note: This tracks the starting session (i.e. session index when era start being + /// active) for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`. + pub fn eras_start_session_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStartSessionIndex", + Vec::new(), + [ + 104u8, 76u8, 102u8, 20u8, 9u8, 146u8, 55u8, 204u8, 12u8, 15u8, 117u8, + 22u8, 54u8, 230u8, 98u8, 105u8, 191u8, 136u8, 140u8, 65u8, 48u8, 29u8, + 19u8, 144u8, 159u8, 241u8, 158u8, 77u8, 4u8, 230u8, 216u8, 52u8, + ], + ) + } + /// Exposure of validator at era. + /// + /// This is keyed first by the era index to allow bulk deletion and then the stash + /// account. + /// + /// Is it removed after `HISTORY_DEPTH` eras. + /// If stakers hasn't been set or has been removed then empty exposure is returned. + pub fn eras_stakers( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakers", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 120u8, 64u8, 232u8, 134u8, 109u8, 212u8, 242u8, 64u8, 68u8, 196u8, + 108u8, 91u8, 255u8, 123u8, 245u8, 27u8, 55u8, 254u8, 60u8, 74u8, 183u8, + 183u8, 226u8, 159u8, 244u8, 56u8, 139u8, 34u8, 228u8, 176u8, 241u8, + 76u8, + ], + ) + } + /// Exposure of validator at era. + /// + /// This is keyed first by the era index to allow bulk deletion and then the stash + /// account. + /// + /// Is it removed after `HISTORY_DEPTH` eras. + /// If stakers hasn't been set or has been removed then empty exposure is returned. + pub fn eras_stakers_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakers", + Vec::new(), + [ + 120u8, 64u8, 232u8, 134u8, 109u8, 212u8, 242u8, 64u8, 68u8, 196u8, + 108u8, 91u8, 255u8, 123u8, 245u8, 27u8, 55u8, 254u8, 60u8, 74u8, 183u8, + 183u8, 226u8, 159u8, 244u8, 56u8, 139u8, 34u8, 228u8, 176u8, 241u8, + 76u8, + ], + ) + } + /// Clipped Exposure of validator at era. + /// + /// This is similar to [`ErasStakers`] but number of nominators exposed is reduced + /// to the `T::MaxNominatorRewardedPerValidator` biggest stakers. + /// (Note: the field `total` and `own` of the exposure remains unchanged). + /// This is used to limit the i/o cost for the nominator payout. + /// + /// This is keyed fist by the era index to allow bulk deletion and then the stash + /// account. + /// + /// Is it removed after `HISTORY_DEPTH` eras. + /// If stakers hasn't been set or has been removed then empty exposure is returned. + pub fn eras_stakers_clipped( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersClipped", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 85u8, 192u8, 164u8, 53u8, 181u8, 61u8, 132u8, 255u8, 144u8, 41u8, 44u8, + 199u8, 34u8, 11u8, 248u8, 81u8, 203u8, 204u8, 152u8, 138u8, 112u8, + 229u8, 145u8, 253u8, 111u8, 111u8, 38u8, 74u8, 199u8, 164u8, 16u8, + 45u8, + ], + ) + } + /// Clipped Exposure of validator at era. + /// + /// This is similar to [`ErasStakers`] but number of nominators exposed is reduced + /// to the `T::MaxNominatorRewardedPerValidator` biggest stakers. + /// (Note: the field `total` and `own` of the exposure remains unchanged). + /// This is used to limit the i/o cost for the nominator payout. + /// + /// This is keyed fist by the era index to allow bulk deletion and then the stash + /// account. + /// + /// Is it removed after `HISTORY_DEPTH` eras. + /// If stakers hasn't been set or has been removed then empty exposure is returned. + pub fn eras_stakers_clipped_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasStakersClipped", + Vec::new(), + [ + 85u8, 192u8, 164u8, 53u8, 181u8, 61u8, 132u8, 255u8, 144u8, 41u8, 44u8, + 199u8, 34u8, 11u8, 248u8, 81u8, 203u8, 204u8, 152u8, 138u8, 112u8, + 229u8, 145u8, 253u8, 111u8, 111u8, 38u8, 74u8, 199u8, 164u8, 16u8, + 45u8, + ], + ) + } + /// Similar to `ErasStakers`, this holds the preferences of validators. + /// + /// This is keyed first by the era index to allow bulk deletion and then the stash + /// account. + /// + /// Is it removed after `HISTORY_DEPTH` eras. + pub fn eras_validator_prefs( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorPrefs", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 134u8, 250u8, 229u8, 21u8, 44u8, 119u8, 43u8, 99u8, 69u8, 94u8, 177u8, + 180u8, 174u8, 134u8, 54u8, 25u8, 56u8, 144u8, 194u8, 149u8, 56u8, + 234u8, 78u8, 238u8, 78u8, 247u8, 205u8, 43u8, 16u8, 159u8, 92u8, 169u8, + ], + ) + } + /// Similar to `ErasStakers`, this holds the preferences of validators. + /// + /// This is keyed first by the era index to allow bulk deletion and then the stash + /// account. + /// + /// Is it removed after `HISTORY_DEPTH` eras. + pub fn eras_validator_prefs_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ValidatorPrefs, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorPrefs", + Vec::new(), + [ + 134u8, 250u8, 229u8, 21u8, 44u8, 119u8, 43u8, 99u8, 69u8, 94u8, 177u8, + 180u8, 174u8, 134u8, 54u8, 25u8, 56u8, 144u8, 194u8, 149u8, 56u8, + 234u8, 78u8, 238u8, 78u8, 247u8, 205u8, 43u8, 16u8, 159u8, 92u8, 169u8, + ], + ) + } + /// The total validator era payout for the last `HISTORY_DEPTH` eras. + /// + /// Eras that haven't finished yet or has been removed doesn't have reward. + pub fn eras_validator_reward( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorReward", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 185u8, 85u8, 179u8, 163u8, 178u8, 168u8, 141u8, 200u8, 59u8, 77u8, 2u8, + 197u8, 36u8, 188u8, 133u8, 117u8, 2u8, 25u8, 105u8, 132u8, 44u8, 75u8, + 15u8, 82u8, 57u8, 89u8, 242u8, 234u8, 70u8, 244u8, 198u8, 126u8, + ], + ) + } + /// The total validator era payout for the last `HISTORY_DEPTH` eras. + /// + /// Eras that haven't finished yet or has been removed doesn't have reward. + pub fn eras_validator_reward_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasValidatorReward", + Vec::new(), + [ + 185u8, 85u8, 179u8, 163u8, 178u8, 168u8, 141u8, 200u8, 59u8, 77u8, 2u8, + 197u8, 36u8, 188u8, 133u8, 117u8, 2u8, 25u8, 105u8, 132u8, 44u8, 75u8, + 15u8, 82u8, 57u8, 89u8, 242u8, 234u8, 70u8, 244u8, 198u8, 126u8, + ], + ) + } + /// Rewards for the last `HISTORY_DEPTH` eras. + /// If reward hasn't been set or has been removed then 0 reward is returned. + pub fn eras_reward_points( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasRewardPoints", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 135u8, 0u8, 85u8, 241u8, 213u8, 133u8, 30u8, 192u8, 251u8, 191u8, 41u8, + 38u8, 233u8, 236u8, 218u8, 246u8, 166u8, 93u8, 46u8, 37u8, 48u8, 187u8, + 172u8, 48u8, 251u8, 178u8, 75u8, 203u8, 60u8, 188u8, 204u8, 207u8, + ], + ) + } + /// Rewards for the last `HISTORY_DEPTH` eras. + /// If reward hasn't been set or has been removed then 0 reward is returned. + pub fn eras_reward_points_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints<::subxt::utils::AccountId32>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasRewardPoints", + Vec::new(), + [ + 135u8, 0u8, 85u8, 241u8, 213u8, 133u8, 30u8, 192u8, 251u8, 191u8, 41u8, + 38u8, 233u8, 236u8, 218u8, 246u8, 166u8, 93u8, 46u8, 37u8, 48u8, 187u8, + 172u8, 48u8, 251u8, 178u8, 75u8, 203u8, 60u8, 188u8, 204u8, 207u8, + ], + ) + } + /// The total amount staked for the last `HISTORY_DEPTH` eras. + /// If total hasn't been set or has been removed then 0 stake is returned. + pub fn eras_total_stake( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasTotalStake", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 8u8, 78u8, 101u8, 62u8, 124u8, 126u8, 66u8, 26u8, 47u8, 126u8, 239u8, + 204u8, 222u8, 104u8, 19u8, 108u8, 238u8, 160u8, 112u8, 242u8, 56u8, + 2u8, 250u8, 164u8, 250u8, 213u8, 201u8, 84u8, 193u8, 117u8, 108u8, + 146u8, + ], + ) + } + /// The total amount staked for the last `HISTORY_DEPTH` eras. + /// If total hasn't been set or has been removed then 0 stake is returned. + pub fn eras_total_stake_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ErasTotalStake", + Vec::new(), + [ + 8u8, 78u8, 101u8, 62u8, 124u8, 126u8, 66u8, 26u8, 47u8, 126u8, 239u8, + 204u8, 222u8, 104u8, 19u8, 108u8, 238u8, 160u8, 112u8, 242u8, 56u8, + 2u8, 250u8, 164u8, 250u8, 213u8, 201u8, 84u8, 193u8, 117u8, 108u8, + 146u8, + ], + ) + } + /// Mode of era forcing. + pub fn force_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::Forcing, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ForceEra", + vec![], + [ + 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, 18u8, 124u8, 66u8, 30u8, + 102u8, 133u8, 164u8, 78u8, 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, + 233u8, 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, 82u8, 16u8, + 222u8, + ], + ) + } + /// The percentage of the slash that is distributed to reporters. + /// + /// The rest of the slashed value is handled by the `Slash`. + pub fn slash_reward_fraction( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SlashRewardFraction", + vec![], + [ + 53u8, 88u8, 253u8, 237u8, 84u8, 228u8, 187u8, 130u8, 108u8, 195u8, + 135u8, 25u8, 75u8, 52u8, 238u8, 62u8, 133u8, 38u8, 139u8, 129u8, 216u8, + 193u8, 197u8, 216u8, 245u8, 171u8, 128u8, 207u8, 125u8, 246u8, 248u8, + 7u8, + ], + ) + } + /// The amount of currency given to reporters of a slash event which was + /// canceled by extraordinary circumstances (e.g. governance). + pub fn canceled_slash_payout( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CanceledSlashPayout", + vec![], + [ + 221u8, 88u8, 134u8, 81u8, 22u8, 229u8, 100u8, 27u8, 86u8, 244u8, 229u8, + 107u8, 251u8, 119u8, 58u8, 153u8, 19u8, 20u8, 254u8, 169u8, 248u8, + 220u8, 98u8, 118u8, 48u8, 213u8, 22u8, 79u8, 242u8, 250u8, 147u8, + 173u8, + ], + ) + } + /// All unapplied slashes that are queued for later. + pub fn unapplied_slashes( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "UnappliedSlashes", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 158u8, 134u8, 7u8, 21u8, 200u8, 222u8, 197u8, 166u8, 199u8, 39u8, 1u8, + 167u8, 164u8, 154u8, 165u8, 118u8, 92u8, 223u8, 219u8, 136u8, 196u8, + 155u8, 243u8, 20u8, 198u8, 92u8, 198u8, 61u8, 252u8, 176u8, 175u8, + 172u8, + ], + ) + } + /// All unapplied slashes that are queued for later. + pub fn unapplied_slashes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec< + runtime_types::pallet_staking::UnappliedSlash< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "UnappliedSlashes", + Vec::new(), + [ + 158u8, 134u8, 7u8, 21u8, 200u8, 222u8, 197u8, 166u8, 199u8, 39u8, 1u8, + 167u8, 164u8, 154u8, 165u8, 118u8, 92u8, 223u8, 219u8, 136u8, 196u8, + 155u8, 243u8, 20u8, 198u8, 92u8, 198u8, 61u8, 252u8, 176u8, 175u8, + 172u8, + ], + ) + } + /// A mapping from still-bonded eras to the first session index of that era. + /// + /// Must contains information for eras for the range: + /// `[active_era - bounding_duration; active_era]` + pub fn bonded_eras( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::u32)>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "BondedEras", + vec![], + [ + 20u8, 0u8, 164u8, 169u8, 183u8, 130u8, 242u8, 167u8, 92u8, 254u8, + 191u8, 206u8, 177u8, 182u8, 219u8, 162u8, 7u8, 116u8, 223u8, 166u8, + 239u8, 216u8, 140u8, 42u8, 174u8, 237u8, 134u8, 186u8, 180u8, 62u8, + 175u8, 239u8, + ], + ) + } + /// All slashing events on validators, mapped by era to the highest slash proportion + /// and slash value of the era. + pub fn validator_slash_in_era( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (runtime_types::sp_arithmetic::per_things::Perbill, ::core::primitive::u128), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ValidatorSlashInEra", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 245u8, 72u8, 52u8, 22u8, 10u8, 177u8, 127u8, 83u8, 180u8, 246u8, 17u8, + 82u8, 6u8, 231u8, 131u8, 68u8, 73u8, 92u8, 241u8, 251u8, 32u8, 97u8, + 121u8, 137u8, 190u8, 227u8, 162u8, 16u8, 224u8, 207u8, 63u8, 184u8, + ], + ) + } + /// All slashing events on validators, mapped by era to the highest slash proportion + /// and slash value of the era. + pub fn validator_slash_in_era_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (runtime_types::sp_arithmetic::per_things::Perbill, ::core::primitive::u128), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ValidatorSlashInEra", + Vec::new(), + [ + 245u8, 72u8, 52u8, 22u8, 10u8, 177u8, 127u8, 83u8, 180u8, 246u8, 17u8, + 82u8, 6u8, 231u8, 131u8, 68u8, 73u8, 92u8, 241u8, 251u8, 32u8, 97u8, + 121u8, 137u8, 190u8, 227u8, 162u8, 16u8, 224u8, 207u8, 63u8, 184u8, + ], + ) + } + /// All slashing events on nominators, mapped by era to the highest slash value of + /// the era. + pub fn nominator_slash_in_era( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "NominatorSlashInEra", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, 11u8, 204u8, 67u8, + 60u8, 208u8, 132u8, 9u8, 214u8, 13u8, 148u8, 205u8, 26u8, 5u8, 7u8, + 250u8, 191u8, 83u8, 118u8, 95u8, 17u8, 40u8, 126u8, 16u8, 135u8, + ], + ) + } + /// All slashing events on nominators, mapped by era to the highest slash value of + /// the era. + pub fn nominator_slash_in_era_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "NominatorSlashInEra", + Vec::new(), + [ + 8u8, 89u8, 171u8, 183u8, 64u8, 29u8, 44u8, 185u8, 11u8, 204u8, 67u8, + 60u8, 208u8, 132u8, 9u8, 214u8, 13u8, 148u8, 205u8, 26u8, 5u8, 7u8, + 250u8, 191u8, 83u8, 118u8, 95u8, 17u8, 40u8, 126u8, 16u8, 135u8, + ], + ) + } + /// Slashing spans for stash accounts. + pub fn slashing_spans( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SlashingSpans, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SlashingSpans", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 74u8, 169u8, 189u8, 252u8, 193u8, 191u8, 114u8, 107u8, 158u8, 125u8, + 252u8, 35u8, 177u8, 129u8, 99u8, 24u8, 77u8, 223u8, 238u8, 24u8, 237u8, + 225u8, 5u8, 117u8, 163u8, 180u8, 139u8, 22u8, 169u8, 185u8, 60u8, + 217u8, + ], + ) + } + /// Slashing spans for stash accounts. + pub fn slashing_spans_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SlashingSpans, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SlashingSpans", + Vec::new(), + [ + 74u8, 169u8, 189u8, 252u8, 193u8, 191u8, 114u8, 107u8, 158u8, 125u8, + 252u8, 35u8, 177u8, 129u8, 99u8, 24u8, 77u8, 223u8, 238u8, 24u8, 237u8, + 225u8, 5u8, 117u8, 163u8, 180u8, 139u8, 22u8, 169u8, 185u8, 60u8, + 217u8, + ], + ) + } + /// Records information about the maximum slash of a stash within a slashing span, + /// as well as how much reward has been paid out. + pub fn span_slash( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SpanRecord<::core::primitive::u128>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SpanSlash", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 158u8, 168u8, 151u8, 108u8, 4u8, 168u8, 253u8, 28u8, 69u8, 111u8, 99u8, + 235u8, 175u8, 72u8, 48u8, 238u8, 239u8, 142u8, 40u8, 142u8, 97u8, 77u8, + 72u8, 123u8, 210u8, 157u8, 119u8, 180u8, 205u8, 98u8, 110u8, 215u8, + ], + ) + } + /// Records information about the maximum slash of a stash within a slashing span, + /// as well as how much reward has been paid out. + pub fn span_slash_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::slashing::SpanRecord<::core::primitive::u128>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "SpanSlash", + Vec::new(), + [ + 158u8, 168u8, 151u8, 108u8, 4u8, 168u8, 253u8, 28u8, 69u8, 111u8, 99u8, + 235u8, 175u8, 72u8, 48u8, 238u8, 239u8, 142u8, 40u8, 142u8, 97u8, 77u8, + 72u8, 123u8, 210u8, 157u8, 119u8, 180u8, 205u8, 98u8, 110u8, 215u8, + ], + ) + } + /// The last planned session scheduled by the session pallet. + /// + /// This is basically in sync with the call to + /// [`pallet_session::SessionManager::new_session`]. + pub fn current_planned_session( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "CurrentPlannedSession", + vec![], + [ + 12u8, 47u8, 20u8, 104u8, 155u8, 181u8, 35u8, 91u8, 172u8, 97u8, 206u8, + 135u8, 185u8, 142u8, 46u8, 72u8, 32u8, 118u8, 225u8, 191u8, 28u8, + 130u8, 7u8, 38u8, 181u8, 233u8, 201u8, 8u8, 160u8, 161u8, 86u8, 204u8, + ], + ) + } + /// Indices of validators that have offended in the active era and whether they are + /// currently disabled. + /// + /// This value should be a superset of disabled validators since not all offences + /// lead to the validator being disabled (if there was no slash). This is needed to + /// track the percentage of validators that have offended in the current era, + /// ensuring a new era is forced if `OffendingValidatorsThreshold` is reached. The + /// vec is always kept sorted so that we can find whether a given validator has + /// previously offended using binary search. It gets cleared when the era ends. + pub fn offending_validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<(::core::primitive::u32, ::core::primitive::bool)>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "OffendingValidators", + vec![], + [ + 201u8, 31u8, 141u8, 182u8, 160u8, 180u8, 37u8, 226u8, 50u8, 65u8, + 103u8, 11u8, 38u8, 120u8, 200u8, 219u8, 219u8, 98u8, 185u8, 137u8, + 154u8, 20u8, 130u8, 163u8, 126u8, 185u8, 33u8, 194u8, 76u8, 172u8, + 70u8, 220u8, + ], + ) + } + /// The threshold for when users can start calling `chill_other` for other + /// validators / nominators. The threshold is compared to the actual number of + /// validators / nominators (`CountFor*`) in the system compared to the configured + /// max (`Max*Count`). + pub fn chill_threshold( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Percent, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Staking", + "ChillThreshold", + vec![], + [ + 133u8, 222u8, 1u8, 208u8, 212u8, 216u8, 247u8, 66u8, 178u8, 96u8, 35u8, + 112u8, 33u8, 245u8, 11u8, 249u8, 255u8, 212u8, 204u8, 161u8, 44u8, + 38u8, 126u8, 151u8, 140u8, 42u8, 253u8, 101u8, 1u8, 23u8, 239u8, 39u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// Number of eras to keep in history. + /// + /// Following information is kept for eras in `[current_era - + /// HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`, + /// `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`, + /// `ErasTotalStake`, `ErasStartSessionIndex`, + /// `StakingLedger.claimed_rewards`. + /// + /// Must be more than the number of eras delayed by session. + /// I.e. active era must always be in history. I.e. `active_era > + /// current_era - history_depth` must be guaranteed. + /// + /// If migrating an existing pallet from storage value to config value, + /// this should be set to same value or greater as in storage. + /// + /// Note: `HistoryDepth` is used as the upper bound for the `BoundedVec` + /// item `StakingLedger.claimed_rewards`. Setting this value lower than + /// the existing value can lead to inconsistencies in the + /// `StakingLedger` and will need to be handled properly in a migration. + /// The test `reducing_history_depth_abrupt` shows this effect. + pub fn history_depth(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Staking", + "HistoryDepth", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// Number of sessions per era. + pub fn sessions_per_era( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Staking", + "SessionsPerEra", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// Number of eras that staked funds must remain bonded for. + pub fn bonding_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Staking", + "BondingDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// Number of eras that slashes are deferred by, after computation. + /// + /// This should be less than the bonding duration. Set to 0 if slashes + /// should be applied immediately, without opportunity for intervention. + pub fn slash_defer_duration( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Staking", + "SlashDeferDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// The maximum number of nominators rewarded for each validator. + /// + /// For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers + /// can claim their reward. This used to limit the i/o cost for the nominator + /// payout. + pub fn max_nominator_rewarded_per_validator( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Staking", + "MaxNominatorRewardedPerValidator", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// The maximum number of `unlocking` chunks a [`StakingLedger`] can + /// have. Effectively determines how many unique eras a staker may be + /// unbonding in. + /// + /// Note: `MaxUnlockingChunks` is used as the upper bound for the + /// `BoundedVec` item `StakingLedger.unlocking`. Setting this value + /// lower than the existing value can lead to inconsistencies in the + /// `StakingLedger` and will need to be handled properly in a runtime + /// migration. The test `reducing_max_unlocking_chunks_abrupt` shows + /// this effect. + pub fn max_unlocking_chunks( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Staking", + "MaxUnlockingChunks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod session { + use super::{root_mod, runtime_types}; + ///Error for the session pallet. + pub type Error = runtime_types::pallet_session::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_session::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetKeys { + pub keys: runtime_types::tangle_testnet_runtime::opaque::SessionKeys, + pub proof: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetKeys { + const PALLET: &'static str = "Session"; + const CALL: &'static str = "set_keys"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PurgeKeys; + impl ::subxt::blocks::StaticExtrinsic for PurgeKeys { + const PALLET: &'static str = "Session"; + const CALL: &'static str = "purge_keys"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::set_keys`]. + pub fn set_keys( + &self, + keys: runtime_types::tangle_testnet_runtime::opaque::SessionKeys, + proof: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Session", + "set_keys", + types::SetKeys { keys, proof }, + [ + 53u8, 192u8, 83u8, 155u8, 68u8, 70u8, 208u8, 171u8, 57u8, 34u8, 177u8, + 200u8, 16u8, 91u8, 176u8, 234u8, 27u8, 73u8, 242u8, 86u8, 71u8, 79u8, + 11u8, 154u8, 253u8, 65u8, 122u8, 144u8, 6u8, 152u8, 243u8, 72u8, + ], + ) + } + ///See [`Pallet::purge_keys`]. + pub fn purge_keys(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Session", + "purge_keys", + types::PurgeKeys {}, + [ + 215u8, 204u8, 146u8, 236u8, 32u8, 78u8, 198u8, 79u8, 85u8, 214u8, 15u8, + 151u8, 158u8, 31u8, 146u8, 119u8, 119u8, 204u8, 151u8, 169u8, 226u8, + 67u8, 217u8, 39u8, 241u8, 245u8, 203u8, 240u8, 203u8, 172u8, 16u8, + 209u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_session::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///New session has happened. Note that the argument is the session index, not the + ///block number as the type might suggest. + pub struct NewSession { + pub session_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for NewSession { + const PALLET: &'static str = "Session"; + const EVENT: &'static str = "NewSession"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The current set of validators. + pub fn validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "Validators", + vec![], + [ + 50u8, 86u8, 154u8, 222u8, 249u8, 209u8, 156u8, 22u8, 155u8, 25u8, + 133u8, 194u8, 210u8, 50u8, 38u8, 28u8, 139u8, 201u8, 90u8, 139u8, + 115u8, 12u8, 12u8, 141u8, 4u8, 178u8, 201u8, 241u8, 223u8, 234u8, 6u8, + 86u8, + ], + ) + } + /// Current index of the session. + pub fn current_index( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "CurrentIndex", + vec![], + [ + 167u8, 151u8, 125u8, 150u8, 159u8, 21u8, 78u8, 217u8, 237u8, 183u8, + 135u8, 65u8, 187u8, 114u8, 188u8, 206u8, 16u8, 32u8, 69u8, 208u8, + 134u8, 159u8, 232u8, 224u8, 243u8, 27u8, 31u8, 166u8, 145u8, 44u8, + 221u8, 230u8, + ], + ) + } + /// True if the underlying economic identities or weighting behind the validators + /// has changed in the queued validator set. + pub fn queued_changed( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "QueuedChanged", + vec![], + [ + 184u8, 137u8, 224u8, 137u8, 31u8, 236u8, 95u8, 164u8, 102u8, 225u8, + 198u8, 227u8, 140u8, 37u8, 113u8, 57u8, 59u8, 4u8, 202u8, 102u8, 117u8, + 36u8, 226u8, 64u8, 113u8, 141u8, 199u8, 111u8, 99u8, 144u8, 198u8, + 153u8, + ], + ) + } + /// The queued keys for the next session. When the next session begins, these keys + /// will be used to determine the validator's session keys. + pub fn queued_keys( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::tangle_testnet_runtime::opaque::SessionKeys, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "QueuedKeys", + vec![], + [ + 91u8, 161u8, 137u8, 28u8, 192u8, 226u8, 146u8, 6u8, 197u8, 86u8, 247u8, + 15u8, 209u8, 200u8, 197u8, 248u8, 187u8, 80u8, 133u8, 30u8, 12u8, 70u8, + 175u8, 55u8, 47u8, 0u8, 46u8, 57u8, 182u8, 200u8, 210u8, 161u8, + ], + ) + } + /// Indices of disabled validators. + /// + /// The vec is always kept sorted so that we can find whether a given validator is + /// disabled using binary search. It gets cleared when `on_session_ending` returns + /// a new set of identities. + pub fn disabled_validators( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Session", + "DisabledValidators", + vec![], + [ + 213u8, 19u8, 168u8, 234u8, 187u8, 200u8, 180u8, 97u8, 234u8, 189u8, + 36u8, 233u8, 158u8, 184u8, 45u8, 35u8, 129u8, 213u8, 133u8, 8u8, 104u8, + 183u8, 46u8, 68u8, 154u8, 240u8, 132u8, 22u8, 247u8, 11u8, 54u8, 221u8, + ], + ) + } + /// The next session keys for a validator. + pub fn next_keys( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_testnet_runtime::opaque::SessionKeys, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Session", + "NextKeys", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 140u8, 85u8, 129u8, 223u8, 77u8, 166u8, 46u8, 184u8, 49u8, 27u8, 185u8, + 59u8, 28u8, 171u8, 93u8, 8u8, 107u8, 48u8, 103u8, 97u8, 55u8, 52u8, + 251u8, 57u8, 184u8, 216u8, 141u8, 167u8, 31u8, 255u8, 67u8, 165u8, + ], + ) + } + /// The next session keys for a validator. + pub fn next_keys_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_testnet_runtime::opaque::SessionKeys, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Session", + "NextKeys", + Vec::new(), + [ + 140u8, 85u8, 129u8, 223u8, 77u8, 166u8, 46u8, 184u8, 49u8, 27u8, 185u8, + 59u8, 28u8, 171u8, 93u8, 8u8, 107u8, 48u8, 103u8, 97u8, 55u8, 52u8, + 251u8, 57u8, 184u8, 216u8, 141u8, 167u8, 31u8, 255u8, 67u8, 165u8, + ], + ) + } + /// The owner of a key. The key is the `KeyTypeId` + the encoded key. + pub fn key_owner( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Session", + "KeyOwner", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8, + 253u8, 253u8, 248u8, 90u8, 12u8, 202u8, 195u8, 25u8, 18u8, 100u8, + 253u8, 109u8, 88u8, 77u8, 217u8, 140u8, 51u8, 40u8, 118u8, 35u8, 107u8, + 206u8, + ], + ) + } + /// The owner of a key. The key is the `KeyTypeId` + the encoded key. + pub fn key_owner_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Session", + "KeyOwner", + Vec::new(), + [ + 217u8, 204u8, 21u8, 114u8, 247u8, 129u8, 32u8, 242u8, 93u8, 91u8, + 253u8, 253u8, 248u8, 90u8, 12u8, 202u8, 195u8, 25u8, 18u8, 100u8, + 253u8, 109u8, 88u8, 77u8, 217u8, 140u8, 51u8, 40u8, 118u8, 35u8, 107u8, + 206u8, + ], + ) + } + } + } + } + pub mod historical { + use super::{root_mod, runtime_types}; + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Mapping from historical session indices to session-data root hash and validator + /// count. + pub fn historical_sessions( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::subxt::utils::H256, ::core::primitive::u32), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Historical", + "HistoricalSessions", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 9u8, 138u8, 247u8, 141u8, 178u8, 146u8, 124u8, 81u8, 162u8, 211u8, + 205u8, 149u8, 222u8, 254u8, 253u8, 188u8, 170u8, 242u8, 218u8, 41u8, + 124u8, 178u8, 109u8, 209u8, 163u8, 125u8, 225u8, 206u8, 249u8, 175u8, + 117u8, 75u8, + ], + ) + } + /// Mapping from historical session indices to session-data root hash and validator + /// count. + pub fn historical_sessions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::subxt::utils::H256, ::core::primitive::u32), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Historical", + "HistoricalSessions", + Vec::new(), + [ + 9u8, 138u8, 247u8, 141u8, 178u8, 146u8, 124u8, 81u8, 162u8, 211u8, + 205u8, 149u8, 222u8, 254u8, 253u8, 188u8, 170u8, 242u8, 218u8, 41u8, + 124u8, 178u8, 109u8, 209u8, 163u8, 125u8, 225u8, 206u8, 249u8, 175u8, + 117u8, 75u8, + ], + ) + } + /// The range of historical sessions we store. [first, last) + pub fn stored_range( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u32, ::core::primitive::u32), + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Historical", + "StoredRange", + vec![], + [ + 134u8, 32u8, 250u8, 13u8, 201u8, 25u8, 54u8, 243u8, 231u8, 81u8, 252u8, + 231u8, 68u8, 217u8, 235u8, 43u8, 22u8, 223u8, 220u8, 133u8, 198u8, + 218u8, 95u8, 152u8, 189u8, 87u8, 6u8, 228u8, 242u8, 59u8, 232u8, 59u8, + ], + ) + } + } + } + } + pub mod treasury { + use super::{root_mod, runtime_types}; + ///Error for the treasury pallet. + pub type Error = runtime_types::pallet_treasury::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_treasury::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ProposeSpend { + #[codec(compact)] + pub value: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "propose_spend"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RejectProposal { + #[codec(compact)] + pub proposal_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RejectProposal { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "reject_proposal"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ApproveProposal { + #[codec(compact)] + pub proposal_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ApproveProposal { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "approve_proposal"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Spend { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Spend { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "spend"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemoveApproval { + #[codec(compact)] + pub proposal_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveApproval { + const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "remove_approval"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::propose_spend`]. + pub fn propose_spend( + &self, + value: ::core::primitive::u128, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "propose_spend", + types::ProposeSpend { value, beneficiary }, + [ + 82u8, 0u8, 77u8, 68u8, 172u8, 126u8, 179u8, 217u8, 173u8, 214u8, 69u8, + 227u8, 243u8, 252u8, 100u8, 30u8, 205u8, 80u8, 99u8, 57u8, 63u8, 59u8, + 142u8, 81u8, 38u8, 22u8, 243u8, 165u8, 131u8, 193u8, 135u8, 171u8, + ], + ) + } + ///See [`Pallet::reject_proposal`]. + pub fn reject_proposal( + &self, + proposal_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "reject_proposal", + types::RejectProposal { proposal_id }, + [ + 18u8, 166u8, 80u8, 141u8, 222u8, 230u8, 4u8, 36u8, 7u8, 76u8, 12u8, + 40u8, 145u8, 114u8, 12u8, 43u8, 223u8, 78u8, 189u8, 222u8, 120u8, 80u8, + 225u8, 215u8, 119u8, 68u8, 200u8, 15u8, 25u8, 172u8, 192u8, 173u8, + ], + ) + } + ///See [`Pallet::approve_proposal`]. + pub fn approve_proposal( + &self, + proposal_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "approve_proposal", + types::ApproveProposal { proposal_id }, + [ + 154u8, 176u8, 152u8, 97u8, 167u8, 177u8, 78u8, 9u8, 235u8, 229u8, + 199u8, 193u8, 214u8, 3u8, 16u8, 30u8, 4u8, 104u8, 27u8, 184u8, 100u8, + 65u8, 179u8, 13u8, 91u8, 62u8, 115u8, 5u8, 219u8, 211u8, 251u8, 153u8, + ], + ) + } + ///See [`Pallet::spend`]. + pub fn spend( + &self, + amount: ::core::primitive::u128, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "spend", + types::Spend { amount, beneficiary }, + [ + 127u8, 149u8, 250u8, 91u8, 236u8, 214u8, 148u8, 99u8, 110u8, 217u8, + 128u8, 254u8, 102u8, 8u8, 203u8, 245u8, 101u8, 171u8, 176u8, 191u8, + 167u8, 223u8, 97u8, 235u8, 86u8, 18u8, 40u8, 41u8, 19u8, 116u8, 1u8, + 13u8, + ], + ) + } + ///See [`Pallet::remove_approval`]. + pub fn remove_approval( + &self, + proposal_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Treasury", + "remove_approval", + types::RemoveApproval { proposal_id }, + [ + 180u8, 20u8, 39u8, 227u8, 29u8, 228u8, 234u8, 36u8, 155u8, 114u8, + 197u8, 135u8, 185u8, 31u8, 56u8, 247u8, 224u8, 168u8, 254u8, 233u8, + 250u8, 134u8, 186u8, 155u8, 108u8, 84u8, 94u8, 226u8, 207u8, 130u8, + 196u8, 100u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_treasury::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///New proposal. + pub struct Proposed { + pub proposal_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Proposed { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Proposed"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///We have ended a spend period and will now allocate funds. + pub struct Spending { + pub budget_remaining: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Spending { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Spending"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some funds have been allocated. + pub struct Awarded { + pub proposal_index: ::core::primitive::u32, + pub award: ::core::primitive::u128, + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Awarded { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Awarded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A proposal was rejected; funds were slashed. + pub struct Rejected { + pub proposal_index: ::core::primitive::u32, + pub slashed: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rejected { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Rejected"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some of our funds have been burnt. + pub struct Burnt { + pub burnt_funds: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Burnt { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Burnt"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Spending has finished; this is the amount that rolls over until next spend. + pub struct Rollover { + pub rollover_balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rollover { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Rollover"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Some funds have been deposited. + pub struct Deposit { + pub value: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Deposit { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Deposit"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A new spend proposal has been approved. + pub struct SpendApproved { + pub proposal_index: ::core::primitive::u32, + pub amount: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for SpendApproved { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "SpendApproved"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The inactive funds of the pallet have been updated. + pub struct UpdatedInactive { + pub reactivated: ::core::primitive::u128, + pub deactivated: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for UpdatedInactive { + const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "UpdatedInactive"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Number of proposals that have been made. + pub fn proposal_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "ProposalCount", + vec![], + [ + 91u8, 238u8, 246u8, 106u8, 95u8, 66u8, 83u8, 134u8, 1u8, 225u8, 164u8, + 216u8, 113u8, 101u8, 203u8, 200u8, 113u8, 97u8, 246u8, 228u8, 140u8, + 29u8, 29u8, 48u8, 176u8, 137u8, 93u8, 230u8, 56u8, 75u8, 51u8, 149u8, + ], + ) + } + /// Proposals that have been made. + pub fn proposals( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_treasury::Proposal< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "Proposals", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 207u8, 135u8, 145u8, 146u8, 48u8, 10u8, 252u8, 40u8, 20u8, 115u8, + 205u8, 41u8, 173u8, 83u8, 115u8, 46u8, 106u8, 40u8, 130u8, 157u8, + 213u8, 87u8, 45u8, 23u8, 14u8, 167u8, 99u8, 208u8, 153u8, 163u8, 141u8, + 55u8, + ], + ) + } + /// Proposals that have been made. + pub fn proposals_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_treasury::Proposal< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "Proposals", + Vec::new(), + [ + 207u8, 135u8, 145u8, 146u8, 48u8, 10u8, 252u8, 40u8, 20u8, 115u8, + 205u8, 41u8, 173u8, 83u8, 115u8, 46u8, 106u8, 40u8, 130u8, 157u8, + 213u8, 87u8, 45u8, 23u8, 14u8, 167u8, 99u8, 208u8, 153u8, 163u8, 141u8, + 55u8, + ], + ) + } + /// The amount which has been reported as inactive to Currency. + pub fn deactivated( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "Deactivated", + vec![], + [ + 120u8, 221u8, 159u8, 56u8, 161u8, 44u8, 54u8, 233u8, 47u8, 114u8, + 170u8, 150u8, 52u8, 24u8, 137u8, 212u8, 122u8, 247u8, 40u8, 17u8, + 208u8, 130u8, 42u8, 154u8, 33u8, 222u8, 59u8, 116u8, 0u8, 15u8, 79u8, + 123u8, + ], + ) + } + /// Proposal indices that have been approved but not yet awarded. + pub fn approvals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Treasury", + "Approvals", + vec![], + [ + 78u8, 147u8, 186u8, 235u8, 17u8, 40u8, 247u8, 235u8, 67u8, 222u8, 3u8, + 14u8, 248u8, 17u8, 67u8, 180u8, 93u8, 161u8, 64u8, 35u8, 119u8, 194u8, + 187u8, 226u8, 135u8, 162u8, 147u8, 174u8, 139u8, 72u8, 99u8, 212u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// Fraction of a proposal's value that should be bonded in order to place the + /// proposal. An accepted proposal gets these back. A rejected proposal does not. + pub fn proposal_bond( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBond", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) + } + /// Minimum amount of funds that should be placed in a deposit for making a + /// proposal. + pub fn proposal_bond_minimum( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// Maximum amount of funds that should be placed in a deposit for making a + /// proposal. + pub fn proposal_bond_maximum( + &self, + ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMaximum", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) + } + /// Period between successive spends. + pub fn spend_period(&self) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Treasury", + "SpendPeriod", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// Percentage of spare funds (if any) that are burnt per spend period. + pub fn burn( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Treasury", + "Burn", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) + } + /// The treasury's pallet id, used for deriving its sovereign account ID. + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static( + "Treasury", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) + } + /// The maximum number of approvals that can wait in the spending queue. + /// + /// NOTE: This parameter is also used within the Bounties Pallet extension if + /// enabled. + pub fn max_approvals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Treasury", + "MaxApprovals", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod bounties { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_bounties::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_bounties::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ProposeBounty { + #[codec(compact)] + pub value: ::core::primitive::u128, + pub description: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "propose_bounty"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ApproveBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ApproveBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "approve_bounty"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ProposeCurator { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + pub curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "propose_curator"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnassignCurator { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "unassign_curator"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AcceptCurator { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "accept_curator"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AwardBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AwardBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "award_bounty"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClaimBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "claim_bounty"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CloseBounty { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CloseBounty { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "close_bounty"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExtendBountyExpiry { + #[codec(compact)] + pub bounty_id: ::core::primitive::u32, + pub remark: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for ExtendBountyExpiry { + const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "extend_bounty_expiry"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::propose_bounty`]. + pub fn propose_bounty( + &self, + value: ::core::primitive::u128, + description: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "propose_bounty", + types::ProposeBounty { value, description }, + [ + 131u8, 169u8, 55u8, 102u8, 212u8, 139u8, 9u8, 65u8, 75u8, 112u8, 6u8, + 180u8, 92u8, 124u8, 43u8, 42u8, 38u8, 40u8, 226u8, 24u8, 28u8, 34u8, + 169u8, 220u8, 184u8, 206u8, 109u8, 227u8, 53u8, 228u8, 88u8, 25u8, + ], + ) + } + ///See [`Pallet::approve_bounty`]. + pub fn approve_bounty( + &self, + bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "approve_bounty", + types::ApproveBounty { bounty_id }, + [ + 85u8, 12u8, 177u8, 91u8, 183u8, 124u8, 175u8, 148u8, 188u8, 200u8, + 237u8, 144u8, 6u8, 67u8, 159u8, 48u8, 177u8, 222u8, 183u8, 137u8, + 173u8, 131u8, 128u8, 219u8, 255u8, 243u8, 80u8, 224u8, 126u8, 136u8, + 90u8, 47u8, + ], + ) + } + ///See [`Pallet::propose_curator`]. + pub fn propose_curator( + &self, + bounty_id: ::core::primitive::u32, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + fee: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "propose_curator", + types::ProposeCurator { bounty_id, curator, fee }, + [ + 137u8, 37u8, 180u8, 149u8, 223u8, 16u8, 83u8, 160u8, 153u8, 149u8, + 137u8, 167u8, 231u8, 100u8, 142u8, 13u8, 43u8, 161u8, 108u8, 121u8, + 202u8, 196u8, 35u8, 176u8, 203u8, 87u8, 23u8, 226u8, 89u8, 222u8, 47u8, + 112u8, + ], + ) + } + ///See [`Pallet::unassign_curator`]. + pub fn unassign_curator( + &self, + bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "unassign_curator", + types::UnassignCurator { bounty_id }, + [ + 98u8, 94u8, 107u8, 111u8, 151u8, 182u8, 71u8, 239u8, 214u8, 88u8, + 108u8, 11u8, 51u8, 163u8, 102u8, 162u8, 245u8, 247u8, 244u8, 159u8, + 197u8, 23u8, 171u8, 6u8, 60u8, 146u8, 144u8, 101u8, 68u8, 133u8, 245u8, + 74u8, + ], + ) + } + ///See [`Pallet::accept_curator`]. + pub fn accept_curator( + &self, + bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "accept_curator", + types::AcceptCurator { bounty_id }, + [ + 178u8, 142u8, 138u8, 15u8, 243u8, 10u8, 222u8, 169u8, 150u8, 200u8, + 85u8, 185u8, 39u8, 167u8, 134u8, 3u8, 186u8, 84u8, 43u8, 140u8, 11u8, + 70u8, 56u8, 197u8, 39u8, 84u8, 138u8, 139u8, 198u8, 104u8, 41u8, 238u8, + ], + ) + } + ///See [`Pallet::award_bounty`]. + pub fn award_bounty( + &self, + bounty_id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "award_bounty", + types::AwardBounty { bounty_id, beneficiary }, + [ + 130u8, 148u8, 63u8, 19u8, 102u8, 114u8, 81u8, 70u8, 249u8, 32u8, 175u8, + 81u8, 140u8, 195u8, 98u8, 221u8, 153u8, 148u8, 196u8, 104u8, 15u8, + 91u8, 153u8, 51u8, 2u8, 179u8, 35u8, 136u8, 12u8, 219u8, 27u8, 100u8, + ], + ) + } + ///See [`Pallet::claim_bounty`]. + pub fn claim_bounty( + &self, + bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "claim_bounty", + types::ClaimBounty { bounty_id }, + [ + 211u8, 143u8, 123u8, 205u8, 140u8, 43u8, 176u8, 103u8, 110u8, 125u8, + 158u8, 131u8, 103u8, 62u8, 69u8, 215u8, 220u8, 110u8, 11u8, 3u8, 30u8, + 193u8, 235u8, 177u8, 96u8, 241u8, 140u8, 53u8, 62u8, 133u8, 170u8, + 25u8, + ], + ) + } + ///See [`Pallet::close_bounty`]. + pub fn close_bounty( + &self, + bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "close_bounty", + types::CloseBounty { bounty_id }, + [ + 144u8, 234u8, 109u8, 39u8, 227u8, 231u8, 104u8, 48u8, 45u8, 196u8, + 217u8, 220u8, 241u8, 197u8, 157u8, 227u8, 154u8, 156u8, 181u8, 69u8, + 146u8, 77u8, 203u8, 167u8, 79u8, 102u8, 15u8, 253u8, 135u8, 53u8, 96u8, + 60u8, + ], + ) + } + ///See [`Pallet::extend_bounty_expiry`]. + pub fn extend_bounty_expiry( + &self, + bounty_id: ::core::primitive::u32, + remark: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Bounties", + "extend_bounty_expiry", + types::ExtendBountyExpiry { bounty_id, remark }, + [ + 102u8, 118u8, 89u8, 189u8, 138u8, 157u8, 216u8, 10u8, 239u8, 3u8, + 200u8, 217u8, 219u8, 19u8, 195u8, 182u8, 105u8, 220u8, 11u8, 146u8, + 222u8, 79u8, 95u8, 136u8, 188u8, 230u8, 248u8, 119u8, 30u8, 6u8, 242u8, + 194u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_bounties::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///New bounty proposal. + pub struct BountyProposed { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyProposed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyProposed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A bounty proposal was rejected; funds were slashed. + pub struct BountyRejected { + pub index: ::core::primitive::u32, + pub bond: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for BountyRejected { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyRejected"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A bounty proposal is funded and became active. + pub struct BountyBecameActive { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyBecameActive { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyBecameActive"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A bounty is awarded to a beneficiary. + pub struct BountyAwarded { + pub index: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for BountyAwarded { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyAwarded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A bounty is claimed by beneficiary. + pub struct BountyClaimed { + pub index: ::core::primitive::u32, + pub payout: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for BountyClaimed { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyClaimed"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A bounty is cancelled. + pub struct BountyCanceled { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyCanceled { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyCanceled"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A bounty expiry is extended. + pub struct BountyExtended { + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for BountyExtended { + const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyExtended"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Number of bounty proposals that have been made. + pub fn bounty_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "BountyCount", + vec![], + [ + 120u8, 204u8, 26u8, 150u8, 37u8, 81u8, 43u8, 223u8, 180u8, 252u8, + 142u8, 144u8, 109u8, 5u8, 184u8, 72u8, 223u8, 230u8, 66u8, 196u8, 14u8, + 14u8, 164u8, 190u8, 246u8, 168u8, 190u8, 56u8, 212u8, 73u8, 175u8, + 26u8, + ], + ) + } + /// Bounties that have been made. + pub fn bounties( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bounties::Bounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u64, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "Bounties", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 61u8, 113u8, 145u8, 206u8, 130u8, 71u8, 78u8, 125u8, 214u8, 253u8, + 128u8, 143u8, 36u8, 0u8, 201u8, 132u8, 215u8, 58u8, 129u8, 34u8, 46u8, + 164u8, 68u8, 103u8, 25u8, 241u8, 43u8, 147u8, 6u8, 199u8, 145u8, 222u8, + ], + ) + } + /// Bounties that have been made. + pub fn bounties_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bounties::Bounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u64, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "Bounties", + Vec::new(), + [ + 61u8, 113u8, 145u8, 206u8, 130u8, 71u8, 78u8, 125u8, 214u8, 253u8, + 128u8, 143u8, 36u8, 0u8, 201u8, 132u8, 215u8, 58u8, 129u8, 34u8, 46u8, + 164u8, 68u8, 103u8, 25u8, 241u8, 43u8, 147u8, 6u8, 199u8, 145u8, 222u8, + ], + ) + } + /// The description of each bounty. + pub fn bounty_descriptions( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "BountyDescriptions", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 71u8, 40u8, 133u8, 84u8, 55u8, 207u8, 169u8, 189u8, 160u8, 51u8, 202u8, + 144u8, 15u8, 226u8, 97u8, 114u8, 54u8, 247u8, 53u8, 26u8, 36u8, 54u8, + 186u8, 163u8, 198u8, 100u8, 191u8, 121u8, 186u8, 160u8, 85u8, 97u8, + ], + ) + } + /// The description of each bounty. + pub fn bounty_descriptions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "BountyDescriptions", + Vec::new(), + [ + 71u8, 40u8, 133u8, 84u8, 55u8, 207u8, 169u8, 189u8, 160u8, 51u8, 202u8, + 144u8, 15u8, 226u8, 97u8, 114u8, 54u8, 247u8, 53u8, 26u8, 36u8, 54u8, + 186u8, 163u8, 198u8, 100u8, 191u8, 121u8, 186u8, 160u8, 85u8, 97u8, + ], + ) + } + /// Bounty indices that have been approved but not yet funded. + pub fn bounty_approvals( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Bounties", + "BountyApprovals", + vec![], + [ + 182u8, 228u8, 0u8, 46u8, 176u8, 25u8, 222u8, 180u8, 51u8, 57u8, 14u8, + 0u8, 69u8, 160u8, 64u8, 27u8, 88u8, 29u8, 227u8, 146u8, 2u8, 121u8, + 27u8, 85u8, 45u8, 110u8, 244u8, 62u8, 134u8, 77u8, 175u8, 188u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The amount held on deposit for placing a bounty proposal. + pub fn bounty_deposit_base( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Bounties", + "BountyDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// The delay period for which a bounty beneficiary need to wait before claim the + /// payout. + pub fn bounty_deposit_payout_delay( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Bounties", + "BountyDepositPayoutDelay", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// Bounty duration in blocks. + pub fn bounty_update_period( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "Bounties", + "BountyUpdatePeriod", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + /// The curator deposit is calculated as a percentage of the curator fee. + /// + /// This deposit has optional upper and lower bounds with `CuratorDepositMax` and + /// `CuratorDepositMin`. + pub fn curator_deposit_multiplier( + &self, + ) -> ::subxt::constants::Address + { + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMultiplier", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) + } + /// Maximum amount of funds that should be placed in a deposit for making a + /// proposal. + pub fn curator_deposit_max( + &self, + ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMax", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) + } + /// Minimum amount of funds that should be placed in a deposit for making a + /// proposal. + pub fn curator_deposit_min( + &self, + ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMin", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) + } + /// Minimum value for a bounty. + pub fn bounty_value_minimum( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Bounties", + "BountyValueMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// The amount held on deposit per byte within the tip report reason or bounty + /// description. + pub fn data_deposit_per_byte( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Bounties", + "DataDepositPerByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// Maximum acceptable reason length. + /// + /// Benchmarks depend on this value, be sure to update weights file when changing + /// this value + pub fn maximum_reason_length( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Bounties", + "MaximumReasonLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod child_bounties { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_child_bounties::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_child_bounties::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AddChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub value: ::core::primitive::u128, + pub description: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for AddChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "add_child_bounty"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ProposeCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + pub curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "propose_curator"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AcceptCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "accept_curator"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnassignCurator { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "unassign_curator"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AwardChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AwardChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "award_child_bounty"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClaimChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "claim_child_bounty"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CloseChildBounty { + #[codec(compact)] + pub parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + pub child_bounty_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CloseChildBounty { + const PALLET: &'static str = "ChildBounties"; + const CALL: &'static str = "close_child_bounty"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::add_child_bounty`]. + pub fn add_child_bounty( + &self, + parent_bounty_id: ::core::primitive::u32, + value: ::core::primitive::u128, + description: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "add_child_bounty", + types::AddChildBounty { parent_bounty_id, value, description }, + [ + 249u8, 159u8, 185u8, 144u8, 114u8, 142u8, 104u8, 215u8, 136u8, 52u8, + 255u8, 125u8, 54u8, 243u8, 220u8, 171u8, 254u8, 49u8, 105u8, 134u8, + 137u8, 221u8, 100u8, 111u8, 72u8, 38u8, 184u8, 122u8, 72u8, 204u8, + 182u8, 123u8, + ], + ) + } + ///See [`Pallet::propose_curator`]. + pub fn propose_curator( + &self, + parent_bounty_id: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + fee: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "propose_curator", + types::ProposeCurator { parent_bounty_id, child_bounty_id, curator, fee }, + [ + 15u8, 139u8, 57u8, 81u8, 211u8, 60u8, 35u8, 225u8, 143u8, 75u8, 187u8, + 90u8, 21u8, 158u8, 80u8, 116u8, 87u8, 207u8, 92u8, 76u8, 79u8, 180u8, + 157u8, 200u8, 60u8, 19u8, 147u8, 127u8, 92u8, 158u8, 178u8, 16u8, + ], + ) + } + ///See [`Pallet::accept_curator`]. + pub fn accept_curator( + &self, + parent_bounty_id: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "accept_curator", + types::AcceptCurator { parent_bounty_id, child_bounty_id }, + [ + 80u8, 117u8, 237u8, 83u8, 230u8, 230u8, 159u8, 136u8, 87u8, 17u8, + 239u8, 110u8, 190u8, 12u8, 52u8, 63u8, 171u8, 118u8, 82u8, 168u8, + 190u8, 255u8, 91u8, 85u8, 117u8, 226u8, 51u8, 28u8, 116u8, 230u8, + 137u8, 123u8, + ], + ) + } + ///See [`Pallet::unassign_curator`]. + pub fn unassign_curator( + &self, + parent_bounty_id: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "unassign_curator", + types::UnassignCurator { parent_bounty_id, child_bounty_id }, + [ + 120u8, 208u8, 75u8, 141u8, 220u8, 153u8, 79u8, 28u8, 255u8, 227u8, + 239u8, 10u8, 243u8, 116u8, 0u8, 226u8, 205u8, 208u8, 91u8, 193u8, + 154u8, 81u8, 169u8, 240u8, 120u8, 48u8, 102u8, 35u8, 25u8, 136u8, 92u8, + 141u8, + ], + ) + } + ///See [`Pallet::award_child_bounty`]. + pub fn award_child_bounty( + &self, + parent_bounty_id: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "award_child_bounty", + types::AwardChildBounty { parent_bounty_id, child_bounty_id, beneficiary }, + [ + 239u8, 218u8, 175u8, 237u8, 227u8, 66u8, 182u8, 162u8, 38u8, 30u8, + 108u8, 58u8, 24u8, 255u8, 202u8, 56u8, 234u8, 200u8, 138u8, 21u8, 99u8, + 246u8, 199u8, 136u8, 223u8, 83u8, 43u8, 83u8, 130u8, 41u8, 232u8, + 165u8, + ], + ) + } + ///See [`Pallet::claim_child_bounty`]. + pub fn claim_child_bounty( + &self, + parent_bounty_id: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "claim_child_bounty", + types::ClaimChildBounty { parent_bounty_id, child_bounty_id }, + [ + 114u8, 134u8, 242u8, 240u8, 103u8, 141u8, 181u8, 214u8, 193u8, 222u8, + 23u8, 19u8, 68u8, 174u8, 190u8, 60u8, 94u8, 235u8, 14u8, 115u8, 155u8, + 199u8, 0u8, 106u8, 37u8, 144u8, 92u8, 188u8, 2u8, 149u8, 235u8, 244u8, + ], + ) + } + ///See [`Pallet::close_child_bounty`]. + pub fn close_child_bounty( + &self, + parent_bounty_id: ::core::primitive::u32, + child_bounty_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ChildBounties", + "close_child_bounty", + types::CloseChildBounty { parent_bounty_id, child_bounty_id }, + [ + 121u8, 20u8, 81u8, 13u8, 102u8, 102u8, 162u8, 24u8, 133u8, 35u8, 203u8, + 58u8, 28u8, 195u8, 114u8, 31u8, 254u8, 252u8, 118u8, 57u8, 30u8, 211u8, + 217u8, 124u8, 148u8, 244u8, 144u8, 224u8, 39u8, 155u8, 162u8, 91u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_child_bounties::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A child-bounty is added. + pub struct Added { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Added { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Added"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A child-bounty is awarded to a beneficiary. + pub struct Awarded { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Awarded { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Awarded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A child-bounty is claimed by beneficiary. + pub struct Claimed { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + pub payout: ::core::primitive::u128, + pub beneficiary: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Claimed { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Claimed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A child-bounty is cancelled. + pub struct Canceled { + pub index: ::core::primitive::u32, + pub child_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Canceled { + const PALLET: &'static str = "ChildBounties"; + const EVENT: &'static str = "Canceled"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Number of total child bounties. + pub fn child_bounty_count( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyCount", + vec![], + [ + 206u8, 1u8, 40u8, 132u8, 51u8, 139u8, 234u8, 20u8, 89u8, 86u8, 247u8, + 107u8, 169u8, 252u8, 5u8, 180u8, 218u8, 24u8, 232u8, 94u8, 82u8, 135u8, + 24u8, 16u8, 134u8, 23u8, 201u8, 86u8, 12u8, 19u8, 199u8, 0u8, + ], + ) + } + /// Number of child bounties per parent bounty. + /// Map of parent bounty index to number of child bounties. + pub fn parent_child_bounties( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ParentChildBounties", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 52u8, 179u8, 242u8, 212u8, 91u8, 185u8, 176u8, 52u8, 100u8, 200u8, 1u8, + 41u8, 184u8, 234u8, 234u8, 8u8, 123u8, 252u8, 131u8, 55u8, 109u8, + 123u8, 89u8, 75u8, 101u8, 165u8, 117u8, 175u8, 92u8, 71u8, 62u8, 67u8, + ], + ) + } + /// Number of child bounties per parent bounty. + /// Map of parent bounty index to number of child bounties. + pub fn parent_child_bounties_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ParentChildBounties", + Vec::new(), + [ + 52u8, 179u8, 242u8, 212u8, 91u8, 185u8, 176u8, 52u8, 100u8, 200u8, 1u8, + 41u8, 184u8, 234u8, 234u8, 8u8, 123u8, 252u8, 131u8, 55u8, 109u8, + 123u8, 89u8, 75u8, 101u8, 165u8, 117u8, 175u8, 92u8, 71u8, 62u8, 67u8, + ], + ) + } + /// Child bounties that have been added. + pub fn child_bounties( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_child_bounties::ChildBounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u64, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBounties", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 147u8, 73u8, 192u8, 132u8, 112u8, 28u8, 88u8, 203u8, 183u8, 170u8, + 198u8, 134u8, 5u8, 80u8, 131u8, 179u8, 28u8, 249u8, 195u8, 139u8, + 224u8, 86u8, 41u8, 12u8, 202u8, 224u8, 104u8, 151u8, 216u8, 169u8, + 164u8, 85u8, + ], + ) + } + /// Child bounties that have been added. + pub fn child_bounties_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_child_bounties::ChildBounty< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + ::core::primitive::u64, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBounties", + Vec::new(), + [ + 147u8, 73u8, 192u8, 132u8, 112u8, 28u8, 88u8, 203u8, 183u8, 170u8, + 198u8, 134u8, 5u8, 80u8, 131u8, 179u8, 28u8, 249u8, 195u8, 139u8, + 224u8, 86u8, 41u8, 12u8, 202u8, 224u8, 104u8, 151u8, 216u8, 169u8, + 164u8, 85u8, + ], + ) + } + /// The description of each child-bounty. + pub fn child_bounty_descriptions( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyDescriptions", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, + 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, + 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, 11u8, 164u8, 100u8, + ], + ) + } + /// The description of each child-bounty. + pub fn child_bounty_descriptions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildBountyDescriptions", + Vec::new(), + [ + 192u8, 0u8, 220u8, 156u8, 109u8, 65u8, 113u8, 102u8, 119u8, 0u8, 109u8, + 141u8, 211u8, 128u8, 237u8, 61u8, 28u8, 56u8, 206u8, 93u8, 183u8, 74u8, + 192u8, 220u8, 76u8, 175u8, 85u8, 105u8, 179u8, 11u8, 164u8, 100u8, + ], + ) + } + /// The cumulative child-bounty curator fee for each parent bounty. + pub fn children_curator_fees( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildrenCuratorFees", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, + 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, + 129u8, 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, 227u8, 235u8, + ], + ) + } + /// The cumulative child-bounty curator fee for each parent bounty. + pub fn children_curator_fees_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ChildBounties", + "ChildrenCuratorFees", + Vec::new(), + [ + 32u8, 16u8, 190u8, 193u8, 6u8, 80u8, 163u8, 16u8, 85u8, 111u8, 39u8, + 141u8, 209u8, 70u8, 213u8, 167u8, 22u8, 12u8, 93u8, 17u8, 104u8, 94u8, + 129u8, 37u8, 179u8, 41u8, 156u8, 117u8, 39u8, 202u8, 227u8, 235u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// Maximum number of child bounties that can be added to a parent bounty. + pub fn max_active_child_bounty_count( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ChildBounties", + "MaxActiveChildBountyCount", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// Minimum value for a child-bounty. + pub fn child_bounty_value_minimum( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "ChildBounties", + "ChildBountyValueMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + } + } + } + pub mod bags_list { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_bags_list::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_bags_list::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Rebag { + pub dislocated: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Rebag { + const PALLET: &'static str = "BagsList"; + const CALL: &'static str = "rebag"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PutInFrontOf { + pub lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for PutInFrontOf { + const PALLET: &'static str = "BagsList"; + const CALL: &'static str = "put_in_front_of"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PutInFrontOfOther { + pub heavier: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for PutInFrontOfOther { + const PALLET: &'static str = "BagsList"; + const CALL: &'static str = "put_in_front_of_other"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::rebag`]. + pub fn rebag( + &self, + dislocated: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "BagsList", + "rebag", + types::Rebag { dislocated }, + [ + 17u8, 68u8, 184u8, 176u8, 15u8, 190u8, 220u8, 192u8, 28u8, 87u8, 207u8, + 145u8, 178u8, 46u8, 112u8, 18u8, 176u8, 140u8, 102u8, 65u8, 6u8, 77u8, + 64u8, 224u8, 250u8, 114u8, 169u8, 142u8, 231u8, 253u8, 247u8, 230u8, + ], + ) + } + ///See [`Pallet::put_in_front_of`]. + pub fn put_in_front_of( + &self, + lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "BagsList", + "put_in_front_of", + types::PutInFrontOf { lighter }, + [ + 237u8, 62u8, 128u8, 96u8, 151u8, 215u8, 182u8, 124u8, 233u8, 141u8, + 76u8, 29u8, 214u8, 88u8, 182u8, 251u8, 221u8, 81u8, 65u8, 223u8, 49u8, + 164u8, 132u8, 60u8, 208u8, 191u8, 195u8, 128u8, 31u8, 7u8, 78u8, 115u8, + ], + ) + } + ///See [`Pallet::put_in_front_of_other`]. + pub fn put_in_front_of_other( + &self, + heavier: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "BagsList", + "put_in_front_of_other", + types::PutInFrontOfOther { heavier, lighter }, + [ + 124u8, 92u8, 107u8, 108u8, 210u8, 92u8, 109u8, 96u8, 100u8, 47u8, + 218u8, 221u8, 1u8, 37u8, 242u8, 32u8, 180u8, 53u8, 21u8, 121u8, 174u8, + 219u8, 155u8, 172u8, 201u8, 76u8, 214u8, 51u8, 244u8, 21u8, 115u8, + 165u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_bags_list::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Moved an account from one bag to another. + pub struct Rebagged { + pub who: ::subxt::utils::AccountId32, + pub from: ::core::primitive::u64, + pub to: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for Rebagged { + const PALLET: &'static str = "BagsList"; + const EVENT: &'static str = "Rebagged"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Updated the score of some account to the given amount. + pub struct ScoreUpdated { + pub who: ::subxt::utils::AccountId32, + pub new_score: ::core::primitive::u64, + } + impl ::subxt::events::StaticEvent for ScoreUpdated { + const PALLET: &'static str = "BagsList"; + const EVENT: &'static str = "ScoreUpdated"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// A single node, within some bag. + /// + /// Nodes store links forward and back within their respective bags. + pub fn list_nodes( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Node, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "BagsList", + "ListNodes", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 240u8, 139u8, 78u8, 185u8, 159u8, 185u8, 33u8, 229u8, 171u8, 222u8, + 54u8, 81u8, 104u8, 170u8, 49u8, 232u8, 29u8, 117u8, 193u8, 68u8, 225u8, + 180u8, 46u8, 199u8, 100u8, 26u8, 99u8, 216u8, 74u8, 248u8, 73u8, 144u8, + ], + ) + } + /// A single node, within some bag. + /// + /// Nodes store links forward and back within their respective bags. + pub fn list_nodes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Node, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "BagsList", + "ListNodes", + Vec::new(), + [ + 240u8, 139u8, 78u8, 185u8, 159u8, 185u8, 33u8, 229u8, 171u8, 222u8, + 54u8, 81u8, 104u8, 170u8, 49u8, 232u8, 29u8, 117u8, 193u8, 68u8, 225u8, + 180u8, 46u8, 199u8, 100u8, 26u8, 99u8, 216u8, 74u8, 248u8, 73u8, 144u8, + ], + ) + } + ///Counter for the related counted storage map + pub fn counter_for_list_nodes( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "BagsList", + "CounterForListNodes", + vec![], + [ + 126u8, 150u8, 201u8, 81u8, 155u8, 79u8, 50u8, 48u8, 120u8, 170u8, 3u8, + 104u8, 112u8, 254u8, 106u8, 46u8, 108u8, 126u8, 158u8, 245u8, 95u8, + 88u8, 236u8, 89u8, 79u8, 172u8, 13u8, 146u8, 202u8, 151u8, 122u8, + 132u8, + ], + ) + } + /// A bag stored in storage. + /// + /// Stores a `Bag` struct, which stores head and tail pointers to itself. + pub fn list_bags( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Bag, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "BagsList", + "ListBags", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 98u8, 52u8, 177u8, 147u8, 244u8, 169u8, 45u8, 213u8, 76u8, 163u8, 47u8, + 96u8, 197u8, 245u8, 17u8, 208u8, 86u8, 15u8, 233u8, 156u8, 165u8, 44u8, + 164u8, 202u8, 117u8, 167u8, 209u8, 193u8, 218u8, 235u8, 140u8, 158u8, + ], + ) + } + /// A bag stored in storage. + /// + /// Stores a `Bag` struct, which stores head and tail pointers to itself. + pub fn list_bags_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_bags_list::list::Bag, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "BagsList", + "ListBags", + Vec::new(), + [ + 98u8, 52u8, 177u8, 147u8, 244u8, 169u8, 45u8, 213u8, 76u8, 163u8, 47u8, + 96u8, 197u8, 245u8, 17u8, 208u8, 86u8, 15u8, 233u8, 156u8, 165u8, 44u8, + 164u8, 202u8, 117u8, 167u8, 209u8, 193u8, 218u8, 235u8, 140u8, 158u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The list of thresholds separating the various bags. + /// + /// Ids are separated into unsorted bags according to their score. This specifies + /// the thresholds separating the bags. An id's bag is the largest bag for which the + /// id's score is less than or equal to its upper threshold. + /// + /// When ids are iterated, higher bags are iterated completely before lower bags. + /// This means that iteration is _semi-sorted_: ids of higher score tend to come + /// before ids of lower score, but peer ids within a particular bag are sorted in + /// insertion order. + /// + /// # Expressing the constant + /// + /// This constant must be sorted in strictly increasing order. Duplicate items are + /// not permitted. + /// + /// There is an implied upper limit of `Score::MAX`; that value does not need to be + /// specified within the bag. For any two threshold lists, if one ends with + /// `Score::MAX`, the other one does not, and they are otherwise equal, the two + /// lists will behave identically. + /// + /// # Calculation + /// + /// It is recommended to generate the set of thresholds in a geometric series, such + /// that there exists some constant ratio such that `threshold[k + 1] == + /// (threshold[k] * constant_ratio).max(threshold[k] + 1)` for all `k`. + /// + /// The helpers in the `/utils/frame/generate-bags` module can simplify this + /// calculation. + /// + /// # Examples + /// + /// - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, + /// and iteration is strictly in insertion order. + /// - If `BagThresholds::get().len() == 64`, and the thresholds are determined + /// according to the procedure given above, then the constant ratio is equal to 2. + /// - If `BagThresholds::get().len() == 200`, and the thresholds are determined + /// according to the procedure given above, then the constant ratio is + /// approximately equal to 1.248. + /// - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 + /// will fall into bag 0, an id with score 2 will fall into bag 1, etc. + /// + /// # Migration + /// + /// In the event that this list ever changes, a copy of the old bags list must be + /// retained. With that `List::migrate` can be called, which will perform the + /// appropriate migration. + pub fn bag_thresholds( + &self, + ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u64>> { + ::subxt::constants::Address::new_static( + "BagsList", + "BagThresholds", + [ + 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, 108u8, 4u8, 110u8, 43u8, + 165u8, 228u8, 7u8, 36u8, 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, + 25u8, 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, 212u8, 198u8, + ], + ) + } + } + } + } + pub mod nomination_pools { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Join { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Join { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "join"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BondExtra { + pub extra: + runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, + } + impl ::subxt::blocks::StaticExtrinsic for BondExtra { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "bond_extra"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClaimPayout; + impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_payout"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Unbond { + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub unbonding_points: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Unbond { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "unbond"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PoolWithdrawUnbonded { + pub pool_id: ::core::primitive::u32, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for PoolWithdrawUnbonded { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "pool_withdraw_unbonded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WithdrawUnbonded { + pub member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub num_slashing_spans: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "withdraw_unbonded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Create { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "create"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CreateWithPoolId { + #[codec(compact)] + pub amount: ::core::primitive::u128, + pub root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CreateWithPoolId { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "create_with_pool_id"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Nominate { + pub pool_id: ::core::primitive::u32, + pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for Nominate { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "nominate"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetState { + pub pool_id: ::core::primitive::u32, + pub state: runtime_types::pallet_nomination_pools::PoolState, + } + impl ::subxt::blocks::StaticExtrinsic for SetState { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_state"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetMetadata { + pub pool_id: ::core::primitive::u32, + pub metadata: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_metadata"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetConfigs { + pub min_join_bond: + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>, + pub min_create_bond: + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u128>, + pub max_pools: + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>, + pub max_members: + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>, + pub max_members_per_pool: + runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>, + pub global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetConfigs { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_configs"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpdateRoles { + pub pool_id: ::core::primitive::u32, + 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_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for UpdateRoles { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "update_roles"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Chill { + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Chill { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "chill"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BondExtraOther { + pub member: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub extra: + runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, + } + impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "bond_extra_other"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetClaimPermission { + pub permission: runtime_types::pallet_nomination_pools::ClaimPermission, + } + impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_claim_permission"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClaimPayoutOther { + pub other: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimPayoutOther { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_payout_other"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetCommission { + pub pool_id: ::core::primitive::u32, + pub new_commission: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetCommission { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_commission"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetCommissionMax { + pub pool_id: ::core::primitive::u32, + pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + } + impl ::subxt::blocks::StaticExtrinsic for SetCommissionMax { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_commission_max"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetCommissionChangeRate { + pub pool_id: ::core::primitive::u32, + pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u64, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetCommissionChangeRate { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_commission_change_rate"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClaimCommission { + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimCommission { + const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_commission"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::join`]. + pub fn join( + &self, + amount: ::core::primitive::u128, + pool_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "join", + types::Join { amount, pool_id }, + [ + 9u8, 24u8, 209u8, 117u8, 242u8, 76u8, 192u8, 40u8, 196u8, 136u8, 158u8, + 182u8, 117u8, 140u8, 164u8, 64u8, 184u8, 160u8, 146u8, 143u8, 173u8, + 180u8, 6u8, 242u8, 203u8, 130u8, 41u8, 176u8, 158u8, 96u8, 94u8, 175u8, + ], + ) + } + ///See [`Pallet::bond_extra`]. + pub fn bond_extra( + &self, + extra: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "bond_extra", + types::BondExtra { extra }, + [ + 149u8, 176u8, 102u8, 52u8, 76u8, 227u8, 61u8, 60u8, 109u8, 187u8, 40u8, + 176u8, 163u8, 37u8, 10u8, 228u8, 164u8, 77u8, 155u8, 155u8, 14u8, + 106u8, 5u8, 177u8, 176u8, 224u8, 163u8, 28u8, 66u8, 237u8, 186u8, + 188u8, + ], + ) + } + ///See [`Pallet::claim_payout`]. + pub fn claim_payout(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "claim_payout", + types::ClaimPayout {}, + [ + 28u8, 87u8, 180u8, 5u8, 69u8, 49u8, 121u8, 28u8, 34u8, 63u8, 78u8, + 228u8, 223u8, 12u8, 171u8, 41u8, 181u8, 137u8, 145u8, 141u8, 198u8, + 220u8, 5u8, 101u8, 173u8, 69u8, 222u8, 59u8, 111u8, 92u8, 182u8, 8u8, + ], + ) + } + ///See [`Pallet::unbond`]. + pub fn unbond( + &self, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + unbonding_points: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "unbond", + types::Unbond { member_account, unbonding_points }, + [ + 183u8, 93u8, 100u8, 99u8, 110u8, 67u8, 49u8, 3u8, 32u8, 33u8, 33u8, + 213u8, 198u8, 81u8, 120u8, 187u8, 249u8, 177u8, 81u8, 156u8, 162u8, + 165u8, 80u8, 88u8, 34u8, 7u8, 19u8, 199u8, 26u8, 110u8, 208u8, 218u8, + ], + ) + } + ///See [`Pallet::pool_withdraw_unbonded`]. + pub fn pool_withdraw_unbonded( + &self, + pool_id: ::core::primitive::u32, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "pool_withdraw_unbonded", + types::PoolWithdrawUnbonded { pool_id, num_slashing_spans }, + [ + 145u8, 39u8, 154u8, 109u8, 24u8, 233u8, 144u8, 66u8, 28u8, 252u8, + 180u8, 5u8, 54u8, 123u8, 28u8, 182u8, 26u8, 156u8, 69u8, 105u8, 226u8, + 208u8, 154u8, 34u8, 22u8, 201u8, 139u8, 104u8, 198u8, 195u8, 247u8, + 49u8, + ], + ) + } + ///See [`Pallet::withdraw_unbonded`]. + pub fn withdraw_unbonded( + &self, + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + num_slashing_spans: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "withdraw_unbonded", + types::WithdrawUnbonded { member_account, num_slashing_spans }, + [ + 86u8, 117u8, 152u8, 53u8, 236u8, 139u8, 234u8, 34u8, 89u8, 229u8, + 163u8, 115u8, 248u8, 231u8, 39u8, 82u8, 188u8, 79u8, 125u8, 134u8, + 213u8, 26u8, 162u8, 42u8, 105u8, 212u8, 31u8, 192u8, 137u8, 68u8, 93u8, + 149u8, + ], + ) + } + ///See [`Pallet::create`]. + pub fn create( + &self, + amount: ::core::primitive::u128, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "create", + types::Create { amount, root, nominator, bouncer }, + [ + 178u8, 5u8, 192u8, 56u8, 49u8, 78u8, 47u8, 174u8, 224u8, 191u8, 143u8, + 247u8, 33u8, 141u8, 180u8, 96u8, 236u8, 234u8, 181u8, 72u8, 254u8, + 148u8, 228u8, 85u8, 30u8, 187u8, 8u8, 24u8, 255u8, 247u8, 196u8, 229u8, + ], + ) + } + ///See [`Pallet::create_with_pool_id`]. + pub fn create_with_pool_id( + &self, + amount: ::core::primitive::u128, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pool_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "create_with_pool_id", + types::CreateWithPoolId { amount, root, nominator, bouncer, pool_id }, + [ + 3u8, 35u8, 125u8, 15u8, 31u8, 212u8, 98u8, 154u8, 127u8, 158u8, 202u8, + 73u8, 141u8, 248u8, 238u8, 102u8, 183u8, 24u8, 69u8, 211u8, 128u8, + 152u8, 205u8, 19u8, 215u8, 167u8, 221u8, 77u8, 210u8, 219u8, 69u8, + 246u8, + ], + ) + } + ///See [`Pallet::nominate`]. + pub fn nominate( + &self, + pool_id: ::core::primitive::u32, + validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "nominate", + types::Nominate { pool_id, validators }, + [ + 118u8, 80u8, 137u8, 47u8, 102u8, 9u8, 20u8, 136u8, 76u8, 164u8, 161u8, + 114u8, 33u8, 159u8, 204u8, 49u8, 233u8, 199u8, 246u8, 67u8, 144u8, + 169u8, 211u8, 67u8, 12u8, 68u8, 198u8, 149u8, 87u8, 62u8, 226u8, 72u8, + ], + ) + } + ///See [`Pallet::set_state`]. + pub fn set_state( + &self, + pool_id: ::core::primitive::u32, + state: runtime_types::pallet_nomination_pools::PoolState, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_state", + types::SetState { pool_id, state }, + [ + 39u8, 221u8, 24u8, 65u8, 144u8, 230u8, 228u8, 24u8, 191u8, 53u8, 171u8, + 148u8, 131u8, 45u8, 10u8, 22u8, 222u8, 240u8, 13u8, 87u8, 123u8, 182u8, + 102u8, 26u8, 124u8, 205u8, 23u8, 31u8, 25u8, 43u8, 12u8, 140u8, + ], + ) + } + ///See [`Pallet::set_metadata`]. + pub fn set_metadata( + &self, + pool_id: ::core::primitive::u32, + metadata: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_metadata", + types::SetMetadata { pool_id, metadata }, + [ + 221u8, 189u8, 15u8, 232u8, 0u8, 49u8, 187u8, 67u8, 124u8, 26u8, 114u8, + 191u8, 81u8, 14u8, 253u8, 75u8, 88u8, 182u8, 136u8, 18u8, 238u8, 119u8, + 215u8, 248u8, 133u8, 160u8, 154u8, 193u8, 177u8, 140u8, 1u8, 16u8, + ], + ) + } + ///See [`Pallet::set_configs`]. + pub fn set_configs( + &self, + min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + min_create_bond: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + max_pools: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + max_members: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_configs", + types::SetConfigs { + min_join_bond, + min_create_bond, + max_pools, + max_members, + max_members_per_pool, + global_max_commission, + }, + [ + 151u8, 222u8, 184u8, 213u8, 161u8, 89u8, 162u8, 112u8, 198u8, 87u8, + 186u8, 55u8, 99u8, 197u8, 164u8, 156u8, 185u8, 199u8, 202u8, 19u8, + 44u8, 34u8, 35u8, 39u8, 129u8, 22u8, 41u8, 32u8, 27u8, 37u8, 176u8, + 107u8, + ], + ) + } + ///See [`Pallet::update_roles`]. + pub fn update_roles( + &self, + pool_id: ::core::primitive::u32, + new_root: runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "update_roles", + types::UpdateRoles { pool_id, new_root, new_nominator, new_bouncer }, + [ + 48u8, 253u8, 39u8, 205u8, 196u8, 231u8, 254u8, 76u8, 238u8, 70u8, 2u8, + 192u8, 188u8, 240u8, 206u8, 91u8, 213u8, 98u8, 226u8, 51u8, 167u8, + 205u8, 120u8, 128u8, 40u8, 175u8, 238u8, 57u8, 147u8, 96u8, 116u8, + 133u8, + ], + ) + } + ///See [`Pallet::chill`]. + pub fn chill( + &self, + pool_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "chill", + types::Chill { pool_id }, + [ + 65u8, 206u8, 54u8, 53u8, 37u8, 97u8, 161u8, 104u8, 62u8, 9u8, 93u8, + 236u8, 61u8, 185u8, 204u8, 245u8, 234u8, 218u8, 213u8, 40u8, 154u8, + 29u8, 244u8, 19u8, 207u8, 172u8, 142u8, 221u8, 38u8, 70u8, 39u8, 10u8, + ], + ) + } + ///See [`Pallet::bond_extra_other`]. + pub fn bond_extra_other( + &self, + member: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + extra: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "bond_extra_other", + types::BondExtraOther { member, extra }, + [ + 253u8, 254u8, 246u8, 159u8, 248u8, 251u8, 20u8, 192u8, 70u8, 196u8, + 152u8, 189u8, 177u8, 144u8, 15u8, 52u8, 188u8, 132u8, 132u8, 97u8, + 112u8, 183u8, 102u8, 170u8, 132u8, 119u8, 204u8, 193u8, 7u8, 170u8, + 31u8, 156u8, + ], + ) + } + ///See [`Pallet::set_claim_permission`]. + pub fn set_claim_permission( + &self, + permission: runtime_types::pallet_nomination_pools::ClaimPermission, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_claim_permission", + types::SetClaimPermission { permission }, + [ + 36u8, 137u8, 193u8, 200u8, 57u8, 46u8, 87u8, 236u8, 180u8, 170u8, 90u8, + 99u8, 137u8, 123u8, 99u8, 197u8, 113u8, 119u8, 72u8, 153u8, 207u8, + 189u8, 69u8, 89u8, 225u8, 115u8, 45u8, 32u8, 216u8, 43u8, 92u8, 135u8, + ], + ) + } + ///See [`Pallet::claim_payout_other`]. + pub fn claim_payout_other( + &self, + other: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "claim_payout_other", + types::ClaimPayoutOther { other }, + [ + 202u8, 130u8, 122u8, 10u8, 159u8, 181u8, 124u8, 215u8, 23u8, 85u8, + 234u8, 178u8, 169u8, 41u8, 204u8, 226u8, 195u8, 69u8, 168u8, 88u8, + 58u8, 15u8, 3u8, 227u8, 180u8, 183u8, 62u8, 224u8, 39u8, 218u8, 75u8, + 166u8, + ], + ) + } + ///See [`Pallet::set_commission`]. + pub fn set_commission( + &self, + pool_id: ::core::primitive::u32, + new_commission: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_commission", + types::SetCommission { pool_id, new_commission }, + [ + 77u8, 139u8, 221u8, 210u8, 51u8, 57u8, 243u8, 96u8, 25u8, 0u8, 42u8, + 81u8, 80u8, 7u8, 145u8, 28u8, 17u8, 44u8, 123u8, 28u8, 130u8, 194u8, + 153u8, 139u8, 222u8, 166u8, 169u8, 184u8, 46u8, 178u8, 236u8, 246u8, + ], + ) + } + ///See [`Pallet::set_commission_max`]. + pub fn set_commission_max( + &self, + pool_id: ::core::primitive::u32, + max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_commission_max", + types::SetCommissionMax { pool_id, max_commission }, + [ + 198u8, 127u8, 255u8, 230u8, 96u8, 142u8, 9u8, 220u8, 204u8, 82u8, + 192u8, 76u8, 140u8, 52u8, 94u8, 80u8, 153u8, 30u8, 162u8, 21u8, 71u8, + 31u8, 218u8, 160u8, 254u8, 180u8, 160u8, 219u8, 163u8, 30u8, 193u8, + 6u8, + ], + ) + } + ///See [`Pallet::set_commission_change_rate`]. + pub fn set_commission_change_rate( + &self, + pool_id: ::core::primitive::u32, + change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u64, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_commission_change_rate", + types::SetCommissionChangeRate { pool_id, change_rate }, + [ + 253u8, 128u8, 246u8, 46u8, 81u8, 204u8, 114u8, 21u8, 245u8, 99u8, 88u8, + 98u8, 194u8, 103u8, 85u8, 231u8, 181u8, 61u8, 146u8, 184u8, 225u8, + 175u8, 175u8, 99u8, 63u8, 141u8, 112u8, 218u8, 160u8, 226u8, 251u8, + 185u8, + ], + ) + } + ///See [`Pallet::claim_commission`]. + pub fn claim_commission( + &self, + pool_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "claim_commission", + types::ClaimCommission { pool_id }, + [ + 51u8, 64u8, 163u8, 230u8, 2u8, 119u8, 68u8, 5u8, 154u8, 4u8, 84u8, + 149u8, 9u8, 195u8, 173u8, 37u8, 98u8, 48u8, 188u8, 65u8, 81u8, 11u8, + 64u8, 254u8, 126u8, 62u8, 29u8, 204u8, 92u8, 230u8, 240u8, 91u8, + ], + ) + } + } + } + ///Events of this pallet. + pub type Event = runtime_types::pallet_nomination_pools::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A pool has been created. + pub struct Created { + pub depositor: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Created { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Created"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A member has became bonded in a pool. + pub struct Bonded { + pub member: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + pub bonded: ::core::primitive::u128, + pub joined: ::core::primitive::bool, + } + impl ::subxt::events::StaticEvent for Bonded { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Bonded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A payout has been made to a member. + pub struct PaidOut { + pub member: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + pub payout: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for PaidOut { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PaidOut"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A member has unbonded from their pool. + /// + /// - `balance` is the corresponding balance of the number of points that has been + /// requested to be unbonded (the argument of the `unbond` transaction) from the bonded + /// pool. + /// - `points` is the number of points that are issued as a result of `balance` being + ///dissolved into the corresponding unbonding pool. + /// - `era` is the era in which the balance will be unbonded. + ///In the absence of slashing, these values will match. In the presence of slashing, + /// the number of points that are issued in the unbonding pool will be less than the + /// amount requested to be unbonded. + pub struct Unbonded { + pub member: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + pub balance: ::core::primitive::u128, + pub points: ::core::primitive::u128, + pub era: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Unbonded { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Unbonded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A member has withdrawn from their pool. + /// + ///The given number of `points` have been dissolved in return of `balance`. + /// + ///Similar to `Unbonded` event, in the absence of slashing, the ratio of point to + /// balance will be 1. + pub struct Withdrawn { + pub member: ::subxt::utils::AccountId32, + pub pool_id: ::core::primitive::u32, + pub balance: ::core::primitive::u128, + pub points: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Withdrawn { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Withdrawn"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A pool has been destroyed. + pub struct Destroyed { + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Destroyed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Destroyed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The state of a pool has changed + pub struct StateChanged { + pub pool_id: ::core::primitive::u32, + pub new_state: runtime_types::pallet_nomination_pools::PoolState, + } + impl ::subxt::events::StaticEvent for StateChanged { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "StateChanged"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A member has been removed from a pool. + /// + ///The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked). + pub struct MemberRemoved { + pub pool_id: ::core::primitive::u32, + pub member: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for MemberRemoved { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "MemberRemoved"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The roles of a pool have been updated to the given new roles. Note that the + /// depositor can never change. + pub struct RolesUpdated { + pub root: ::core::option::Option<::subxt::utils::AccountId32>, + pub bouncer: ::core::option::Option<::subxt::utils::AccountId32>, + pub nominator: ::core::option::Option<::subxt::utils::AccountId32>, + } + impl ::subxt::events::StaticEvent for RolesUpdated { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "RolesUpdated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The active balance of pool `pool_id` has been slashed to `balance`. + pub struct PoolSlashed { + pub pool_id: ::core::primitive::u32, + pub balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for PoolSlashed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolSlashed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. + pub struct UnbondingPoolSlashed { + pub pool_id: ::core::primitive::u32, + pub era: ::core::primitive::u32, + pub balance: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "UnbondingPoolSlashed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A pool's commission setting has been changed. + pub struct PoolCommissionUpdated { + pub pool_id: ::core::primitive::u32, + pub current: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + } + impl ::subxt::events::StaticEvent for PoolCommissionUpdated { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolCommissionUpdated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A pool's maximum commission setting has been changed. + pub struct PoolMaxCommissionUpdated { + pub pool_id: ::core::primitive::u32, + pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + } + impl ::subxt::events::StaticEvent for PoolMaxCommissionUpdated { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolMaxCommissionUpdated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A pool's commission `change_rate` has been changed. + pub struct PoolCommissionChangeRateUpdated { + pub pool_id: ::core::primitive::u32, + pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u64, + >, + } + impl ::subxt::events::StaticEvent for PoolCommissionChangeRateUpdated { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolCommissionChangeRateUpdated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Pool commission has been claimed. + pub struct PoolCommissionClaimed { + pub pool_id: ::core::primitive::u32, + pub commission: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for PoolCommissionClaimed { + const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolCommissionClaimed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Minimum amount to bond to join a pool. + pub fn min_join_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MinJoinBond", + vec![], + [ + 64u8, 180u8, 71u8, 185u8, 81u8, 46u8, 155u8, 26u8, 251u8, 84u8, 108u8, + 80u8, 128u8, 44u8, 163u8, 118u8, 107u8, 79u8, 250u8, 211u8, 194u8, + 71u8, 87u8, 16u8, 247u8, 9u8, 76u8, 95u8, 103u8, 227u8, 180u8, 231u8, + ], + ) + } + /// Minimum bond required to create a pool. + /// + /// This is the amount that the depositor must put as their initial stake in the + /// pool, as an indication of "skin in the game". + /// + /// This is the value that will always exist in the staking ledger of the pool + /// bonded account while all other accounts leave. + pub fn min_create_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MinCreateBond", + vec![], + [ + 210u8, 67u8, 92u8, 230u8, 231u8, 105u8, 54u8, 249u8, 154u8, 192u8, + 29u8, 217u8, 233u8, 79u8, 170u8, 126u8, 133u8, 98u8, 253u8, 153u8, + 248u8, 189u8, 63u8, 107u8, 170u8, 224u8, 12u8, 42u8, 198u8, 185u8, + 85u8, 46u8, + ], + ) + } + /// Maximum number of nomination pools that can exist. If `None`, then an unbounded + /// number of pools can exist. + pub fn max_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MaxPools", + vec![], + [ + 230u8, 184u8, 242u8, 91u8, 118u8, 111u8, 90u8, 204u8, 136u8, 61u8, + 228u8, 50u8, 212u8, 40u8, 83u8, 49u8, 121u8, 161u8, 245u8, 80u8, 46u8, + 184u8, 105u8, 134u8, 249u8, 225u8, 39u8, 3u8, 123u8, 137u8, 156u8, + 240u8, + ], + ) + } + /// Maximum number of members that can exist in the system. If `None`, then the + /// count members are not bound on a system wide basis. + pub fn max_pool_members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MaxPoolMembers", + vec![], + [ + 210u8, 222u8, 181u8, 146u8, 137u8, 200u8, 71u8, 196u8, 74u8, 38u8, + 36u8, 122u8, 187u8, 164u8, 218u8, 116u8, 216u8, 143u8, 182u8, 15u8, + 23u8, 124u8, 57u8, 121u8, 81u8, 151u8, 8u8, 247u8, 80u8, 136u8, 115u8, + 2u8, + ], + ) + } + /// Maximum number of members that may belong to pool. If `None`, then the count of + /// members is not bound on a per pool basis. + pub fn max_pool_members_per_pool( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "MaxPoolMembersPerPool", + vec![], + [ + 250u8, 255u8, 136u8, 223u8, 61u8, 119u8, 117u8, 240u8, 68u8, 114u8, + 55u8, 1u8, 176u8, 120u8, 143u8, 48u8, 232u8, 125u8, 218u8, 105u8, 28u8, + 230u8, 253u8, 36u8, 9u8, 44u8, 129u8, 225u8, 147u8, 33u8, 181u8, 68u8, + ], + ) + } + /// The maximum commission that can be charged by a pool. Used on commission payouts + /// to bound pool commissions that are > `GlobalMaxCommission`, necessary if a + /// future `GlobalMaxCommission` is lower than some current pool commissions. + pub fn global_max_commission( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "GlobalMaxCommission", + vec![], + [ + 2u8, 112u8, 8u8, 116u8, 114u8, 97u8, 250u8, 106u8, 170u8, 215u8, 218u8, + 217u8, 80u8, 235u8, 149u8, 81u8, 85u8, 185u8, 201u8, 127u8, 107u8, + 251u8, 191u8, 231u8, 142u8, 74u8, 8u8, 70u8, 151u8, 238u8, 117u8, + 173u8, + ], + ) + } + /// Active members. + /// + /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + pub fn pool_members( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::PoolMember, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "PoolMembers", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 71u8, 14u8, 198u8, 220u8, 13u8, 117u8, 189u8, 187u8, 123u8, 105u8, + 247u8, 41u8, 154u8, 176u8, 134u8, 226u8, 195u8, 136u8, 193u8, 6u8, + 134u8, 131u8, 105u8, 80u8, 140u8, 160u8, 20u8, 80u8, 179u8, 187u8, + 151u8, 47u8, + ], + ) + } + /// Active members. + /// + /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + pub fn pool_members_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::PoolMember, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "PoolMembers", + Vec::new(), + [ + 71u8, 14u8, 198u8, 220u8, 13u8, 117u8, 189u8, 187u8, 123u8, 105u8, + 247u8, 41u8, 154u8, 176u8, 134u8, 226u8, 195u8, 136u8, 193u8, 6u8, + 134u8, 131u8, 105u8, 80u8, 140u8, 160u8, 20u8, 80u8, 179u8, 187u8, + 151u8, 47u8, + ], + ) + } + ///Counter for the related counted storage map + pub fn counter_for_pool_members( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForPoolMembers", + vec![], + [ + 165u8, 158u8, 130u8, 19u8, 106u8, 227u8, 134u8, 73u8, 36u8, 237u8, + 103u8, 146u8, 198u8, 68u8, 219u8, 186u8, 134u8, 224u8, 89u8, 251u8, + 200u8, 46u8, 87u8, 232u8, 53u8, 152u8, 13u8, 10u8, 105u8, 49u8, 150u8, + 212u8, + ], + ) + } + /// Storage for bonded pools. + pub fn bonded_pools( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::BondedPoolInner, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "BondedPools", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 207u8, 128u8, 149u8, 201u8, 159u8, 89u8, 67u8, 201u8, 165u8, 94u8, + 169u8, 117u8, 137u8, 26u8, 235u8, 215u8, 126u8, 122u8, 214u8, 171u8, + 163u8, 224u8, 0u8, 55u8, 42u8, 195u8, 255u8, 102u8, 46u8, 14u8, 124u8, + 243u8, + ], + ) + } + /// Storage for bonded pools. + pub fn bonded_pools_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::BondedPoolInner, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "BondedPools", + Vec::new(), + [ + 207u8, 128u8, 149u8, 201u8, 159u8, 89u8, 67u8, 201u8, 165u8, 94u8, + 169u8, 117u8, 137u8, 26u8, 235u8, 215u8, 126u8, 122u8, 214u8, 171u8, + 163u8, 224u8, 0u8, 55u8, 42u8, 195u8, 255u8, 102u8, 46u8, 14u8, 124u8, + 243u8, + ], + ) + } + ///Counter for the related counted storage map + pub fn counter_for_bonded_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForBondedPools", + vec![], + [ + 198u8, 6u8, 213u8, 92u8, 4u8, 114u8, 164u8, 244u8, 51u8, 55u8, 157u8, + 20u8, 224u8, 183u8, 40u8, 236u8, 115u8, 86u8, 171u8, 207u8, 31u8, + 111u8, 0u8, 210u8, 48u8, 198u8, 243u8, 153u8, 5u8, 216u8, 107u8, 113u8, + ], + ) + } + /// Reward pools. This is where there rewards for each pool accumulate. When a + /// members payout is claimed, the balance comes out fo the reward pool. Keyed by + /// the bonded pools account. + pub fn reward_pools( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::RewardPool, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "RewardPools", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 9u8, 12u8, 53u8, 236u8, 133u8, 154u8, 71u8, 150u8, 220u8, 31u8, 130u8, + 126u8, 208u8, 240u8, 214u8, 66u8, 16u8, 43u8, 202u8, 222u8, 94u8, + 136u8, 76u8, 60u8, 174u8, 197u8, 130u8, 138u8, 253u8, 239u8, 89u8, + 46u8, + ], + ) + } + /// Reward pools. This is where there rewards for each pool accumulate. When a + /// members payout is claimed, the balance comes out fo the reward pool. Keyed by + /// the bonded pools account. + pub fn reward_pools_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::RewardPool, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "RewardPools", + Vec::new(), + [ + 9u8, 12u8, 53u8, 236u8, 133u8, 154u8, 71u8, 150u8, 220u8, 31u8, 130u8, + 126u8, 208u8, 240u8, 214u8, 66u8, 16u8, 43u8, 202u8, 222u8, 94u8, + 136u8, 76u8, 60u8, 174u8, 197u8, 130u8, 138u8, 253u8, 239u8, 89u8, + 46u8, + ], + ) + } + ///Counter for the related counted storage map + pub fn counter_for_reward_pools( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForRewardPools", + vec![], + [ + 218u8, 186u8, 28u8, 97u8, 205u8, 249u8, 187u8, 10u8, 127u8, 190u8, + 213u8, 152u8, 103u8, 20u8, 157u8, 183u8, 86u8, 104u8, 186u8, 236u8, + 84u8, 159u8, 117u8, 78u8, 5u8, 242u8, 193u8, 59u8, 112u8, 200u8, 34u8, + 166u8, + ], + ) + } + /// Groups of unbonding pools. Each group of unbonding pools belongs to a + /// bonded pool, hence the name sub-pools. Keyed by the bonded pools account. + pub fn sub_pools_storage( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::SubPools, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "SubPoolsStorage", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 43u8, 35u8, 94u8, 197u8, 201u8, 86u8, 21u8, 118u8, 230u8, 10u8, 66u8, + 180u8, 104u8, 146u8, 250u8, 207u8, 159u8, 153u8, 203u8, 58u8, 20u8, + 247u8, 102u8, 155u8, 47u8, 58u8, 136u8, 150u8, 167u8, 83u8, 81u8, 44u8, + ], + ) + } + /// Groups of unbonding pools. Each group of unbonding pools belongs to a + /// bonded pool, hence the name sub-pools. Keyed by the bonded pools account. + pub fn sub_pools_storage_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::SubPools, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "SubPoolsStorage", + Vec::new(), + [ + 43u8, 35u8, 94u8, 197u8, 201u8, 86u8, 21u8, 118u8, 230u8, 10u8, 66u8, + 180u8, 104u8, 146u8, 250u8, 207u8, 159u8, 153u8, 203u8, 58u8, 20u8, + 247u8, 102u8, 155u8, 47u8, 58u8, 136u8, 150u8, 167u8, 83u8, 81u8, 44u8, + ], + ) + } + ///Counter for the related counted storage map + pub fn counter_for_sub_pools_storage( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForSubPoolsStorage", + vec![], + [ + 137u8, 162u8, 32u8, 44u8, 163u8, 30u8, 54u8, 158u8, 169u8, 118u8, + 196u8, 101u8, 78u8, 28u8, 184u8, 78u8, 185u8, 225u8, 226u8, 207u8, + 14u8, 119u8, 0u8, 116u8, 140u8, 141u8, 116u8, 106u8, 71u8, 161u8, + 200u8, 228u8, + ], + ) + } + /// Metadata for the pool. + pub fn metadata( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "Metadata", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 10u8, 171u8, 251u8, 5u8, 72u8, 74u8, 86u8, 144u8, 59u8, 67u8, 92u8, + 111u8, 217u8, 111u8, 175u8, 107u8, 119u8, 206u8, 199u8, 78u8, 182u8, + 84u8, 12u8, 102u8, 10u8, 124u8, 103u8, 9u8, 86u8, 199u8, 233u8, 54u8, + ], + ) + } + /// Metadata for the pool. + pub fn metadata_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "Metadata", + Vec::new(), + [ + 10u8, 171u8, 251u8, 5u8, 72u8, 74u8, 86u8, 144u8, 59u8, 67u8, 92u8, + 111u8, 217u8, 111u8, 175u8, 107u8, 119u8, 206u8, 199u8, 78u8, 182u8, + 84u8, 12u8, 102u8, 10u8, 124u8, 103u8, 9u8, 86u8, 199u8, 233u8, 54u8, + ], + ) + } + ///Counter for the related counted storage map + pub fn counter_for_metadata( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForMetadata", + vec![], + [ + 49u8, 76u8, 175u8, 236u8, 99u8, 120u8, 156u8, 116u8, 153u8, 173u8, + 10u8, 102u8, 194u8, 139u8, 25u8, 149u8, 109u8, 195u8, 150u8, 21u8, + 43u8, 24u8, 196u8, 180u8, 231u8, 101u8, 69u8, 98u8, 82u8, 159u8, 183u8, + 174u8, + ], + ) + } + /// Ever increasing number of all pools created so far. + pub fn last_pool_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "LastPoolId", + vec![], + [ + 178u8, 198u8, 245u8, 157u8, 176u8, 45u8, 214u8, 86u8, 73u8, 154u8, + 217u8, 39u8, 191u8, 53u8, 233u8, 145u8, 57u8, 100u8, 31u8, 13u8, 202u8, + 122u8, 115u8, 16u8, 205u8, 69u8, 157u8, 250u8, 216u8, 180u8, 113u8, + 30u8, + ], + ) + } + /// A reverse lookup from the pool's account id to its id. + /// + /// This is only used for slashing. In all other instances, the pool id is used, and + /// the accounts are deterministically derived from it. + pub fn reverse_pool_id_lookup( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ReversePoolIdLookup", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 76u8, 76u8, 150u8, 33u8, 64u8, 81u8, 90u8, 75u8, 212u8, 221u8, 59u8, + 83u8, 178u8, 45u8, 86u8, 206u8, 196u8, 221u8, 117u8, 94u8, 229u8, + 160u8, 52u8, 54u8, 11u8, 64u8, 0u8, 103u8, 85u8, 86u8, 5u8, 71u8, + ], + ) + } + /// A reverse lookup from the pool's account id to its id. + /// + /// This is only used for slashing. In all other instances, the pool id is used, and + /// the accounts are deterministically derived from it. + pub fn reverse_pool_id_lookup_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ReversePoolIdLookup", + Vec::new(), + [ + 76u8, 76u8, 150u8, 33u8, 64u8, 81u8, 90u8, 75u8, 212u8, 221u8, 59u8, + 83u8, 178u8, 45u8, 86u8, 206u8, 196u8, 221u8, 117u8, 94u8, 229u8, + 160u8, 52u8, 54u8, 11u8, 64u8, 0u8, 103u8, 85u8, 86u8, 5u8, 71u8, + ], + ) + } + ///Counter for the related counted storage map + pub fn counter_for_reverse_pool_id_lookup( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "CounterForReversePoolIdLookup", + vec![], + [ + 135u8, 72u8, 203u8, 197u8, 101u8, 135u8, 114u8, 202u8, 122u8, 231u8, + 128u8, 17u8, 81u8, 70u8, 22u8, 146u8, 100u8, 138u8, 16u8, 74u8, 31u8, + 250u8, 110u8, 184u8, 250u8, 75u8, 249u8, 71u8, 171u8, 77u8, 95u8, + 251u8, + ], + ) + } + /// Map from a pool member account to their opted claim permission. + pub fn claim_permissions( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::ClaimPermission, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ClaimPermissions", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, + 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, + 249u8, 19u8, 140u8, 201u8, 182u8, 106u8, 0u8, 21u8, 102u8, 15u8, + ], + ) + } + /// Map from a pool member account to their opted claim permission. + pub fn claim_permissions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::ClaimPermission, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ClaimPermissions", + Vec::new(), + [ + 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, + 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, + 249u8, 19u8, 140u8, 201u8, 182u8, 106u8, 0u8, 21u8, 102u8, 15u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The nomination pool's pallet id. + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static( + "NominationPools", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) + } + /// The maximum pool points-to-balance ratio that an `open` pool can have. + /// + /// This is important in the event slashing takes place and the pool's + /// points-to-balance ratio becomes disproportional. + /// + /// Moreover, this relates to the `RewardCounter` type as well, as the arithmetic + /// operations are a function of number of points, and by setting this value to e.g. + /// 10, you ensure that the total number of points in the system are at most 10 + /// times the total_issuance of the chain, in the absolute worse case. + /// + /// For a value of 10, the threshold would be a pool points-to-balance ratio of + /// 10:1. Such a scenario would also be the equivalent of the pool being 90% + /// slashed. + pub fn max_points_to_balance( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u8> { + ::subxt::constants::Address::new_static( + "NominationPools", + "MaxPointsToBalance", + [ + 141u8, 130u8, 11u8, 35u8, 226u8, 114u8, 92u8, 179u8, 168u8, 110u8, + 28u8, 91u8, 221u8, 64u8, 4u8, 148u8, 201u8, 193u8, 185u8, 66u8, 226u8, + 114u8, 97u8, 79u8, 62u8, 212u8, 202u8, 114u8, 237u8, 228u8, 183u8, + 165u8, + ], + ) + } + } + } + } + pub mod scheduler { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_scheduler::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_scheduler::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Schedule { + pub when: ::core::primitive::u64, + pub maybe_periodic: + ::core::option::Option<(::core::primitive::u64, ::core::primitive::u32)>, + pub priority: ::core::primitive::u8, + pub call: ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for Schedule { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Cancel { + pub when: ::core::primitive::u64, + pub index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for Cancel { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ScheduleNamed { + pub id: [::core::primitive::u8; 32usize], + pub when: ::core::primitive::u64, + pub maybe_periodic: + ::core::option::Option<(::core::primitive::u64, ::core::primitive::u32)>, + pub priority: ::core::primitive::u8, + pub call: ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_named"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CancelNamed { + pub id: [::core::primitive::u8; 32usize], + } + impl ::subxt::blocks::StaticExtrinsic for CancelNamed { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel_named"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ScheduleAfter { + pub after: ::core::primitive::u64, + pub maybe_periodic: + ::core::option::Option<(::core::primitive::u64, ::core::primitive::u32)>, + pub priority: ::core::primitive::u8, + pub call: ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_after"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ScheduleNamedAfter { + pub id: [::core::primitive::u8; 32usize], + pub after: ::core::primitive::u64, + pub maybe_periodic: + ::core::option::Option<(::core::primitive::u64, ::core::primitive::u32)>, + pub priority: ::core::primitive::u8, + pub call: ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { + const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_named_after"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::schedule`]. + pub fn schedule( + &self, + when: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: runtime_types::tangle_testnet_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule", + types::Schedule { + when, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 90u8, 226u8, 27u8, 219u8, 197u8, 23u8, 71u8, 174u8, 9u8, 114u8, 101u8, + 26u8, 194u8, 254u8, 216u8, 80u8, 96u8, 48u8, 84u8, 232u8, 232u8, 87u8, + 6u8, 91u8, 44u8, 216u8, 71u8, 191u8, 33u8, 91u8, 151u8, 91u8, + ], + ) + } + ///See [`Pallet::cancel`]. + pub fn cancel( + &self, + when: ::core::primitive::u64, + index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "cancel", + types::Cancel { when, index }, + [ + 162u8, 37u8, 210u8, 217u8, 171u8, 208u8, 224u8, 159u8, 153u8, 51u8, + 217u8, 80u8, 202u8, 244u8, 51u8, 32u8, 117u8, 141u8, 231u8, 215u8, + 212u8, 30u8, 93u8, 8u8, 226u8, 199u8, 216u8, 217u8, 100u8, 99u8, 169u8, + 73u8, + ], + ) + } + ///See [`Pallet::schedule_named`]. + pub fn schedule_named( + &self, + id: [::core::primitive::u8; 32usize], + when: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: runtime_types::tangle_testnet_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule_named", + types::ScheduleNamed { + id, + when, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 43u8, 171u8, 248u8, 207u8, 183u8, 78u8, 246u8, 58u8, 29u8, 83u8, 67u8, + 174u8, 127u8, 68u8, 164u8, 143u8, 233u8, 187u8, 221u8, 184u8, 188u8, + 56u8, 229u8, 150u8, 77u8, 181u8, 229u8, 65u8, 235u8, 135u8, 32u8, + 225u8, + ], + ) + } + ///See [`Pallet::cancel_named`]. + pub fn cancel_named( + &self, + id: [::core::primitive::u8; 32usize], + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "cancel_named", + types::CancelNamed { id }, + [ + 205u8, 35u8, 28u8, 57u8, 224u8, 7u8, 49u8, 233u8, 236u8, 163u8, 93u8, + 236u8, 103u8, 69u8, 65u8, 51u8, 121u8, 84u8, 9u8, 196u8, 147u8, 122u8, + 227u8, 200u8, 181u8, 233u8, 62u8, 240u8, 174u8, 83u8, 129u8, 193u8, + ], + ) + } + ///See [`Pallet::schedule_after`]. + pub fn schedule_after( + &self, + after: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: runtime_types::tangle_testnet_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule_after", + types::ScheduleAfter { + after, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 229u8, 96u8, 16u8, 160u8, 4u8, 241u8, 234u8, 206u8, 84u8, 146u8, 27u8, + 233u8, 17u8, 170u8, 185u8, 203u8, 74u8, 119u8, 150u8, 203u8, 196u8, + 183u8, 16u8, 255u8, 52u8, 169u8, 220u8, 244u8, 141u8, 54u8, 70u8, + 160u8, + ], + ) + } + ///See [`Pallet::schedule_named_after`]. + pub fn schedule_named_after( + &self, + id: [::core::primitive::u8; 32usize], + after: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: runtime_types::tangle_testnet_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Scheduler", + "schedule_named_after", + types::ScheduleNamedAfter { + id, + after, + maybe_periodic, + priority, + call: ::std::boxed::Box::new(call), + }, + [ + 250u8, 66u8, 204u8, 169u8, 140u8, 215u8, 217u8, 59u8, 180u8, 108u8, + 126u8, 243u8, 87u8, 159u8, 158u8, 141u8, 95u8, 73u8, 242u8, 31u8, + 243u8, 90u8, 155u8, 241u8, 72u8, 81u8, 223u8, 91u8, 214u8, 19u8, 148u8, + 219u8, + ], + ) + } + } + } + ///Events type. + pub type Event = runtime_types::pallet_scheduler::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Scheduled some task. + pub struct Scheduled { + pub when: ::core::primitive::u64, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Scheduled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Scheduled"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Canceled some task. + pub struct Canceled { + pub when: ::core::primitive::u64, + pub index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for Canceled { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Canceled"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Dispatched some task. + pub struct Dispatched { + pub task: (::core::primitive::u64, ::core::primitive::u32), + pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::events::StaticEvent for Dispatched { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Dispatched"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The call for the provided hash was not found so the task has been aborted. + pub struct CallUnavailable { + pub task: (::core::primitive::u64, ::core::primitive::u32), + pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + } + impl ::subxt::events::StaticEvent for CallUnavailable { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "CallUnavailable"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The given task was unable to be renewed since the agenda is full at that block. + pub struct PeriodicFailed { + pub task: (::core::primitive::u64, ::core::primitive::u32), + pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + } + impl ::subxt::events::StaticEvent for PeriodicFailed { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "PeriodicFailed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The given task can never be executed since it is overweight. + pub struct PermanentlyOverweight { + pub task: (::core::primitive::u64, ::core::primitive::u32), + pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + } + impl ::subxt::events::StaticEvent for PermanentlyOverweight { + const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "PermanentlyOverweight"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn incomplete_since( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Scheduler", + "IncompleteSince", + vec![], + [ + 185u8, 100u8, 100u8, 209u8, 239u8, 6u8, 107u8, 78u8, 195u8, 194u8, + 227u8, 80u8, 234u8, 161u8, 95u8, 15u8, 81u8, 192u8, 231u8, 245u8, 94u8, + 199u8, 129u8, 171u8, 124u8, 118u8, 13u8, 66u8, 50u8, 193u8, 74u8, + 229u8, + ], + ) + } + /// Items to be executed, indexed by the block number that they should be executed + /// on. + pub fn agenda( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::option::Option< + runtime_types::pallet_scheduler::Scheduled< + [::core::primitive::u8; 32usize], + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + ::core::primitive::u64, + runtime_types::tangle_testnet_runtime::OriginCaller, + ::subxt::utils::AccountId32, + >, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Scheduler", + "Agenda", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 207u8, 229u8, 12u8, 111u8, 82u8, 163u8, 230u8, 234u8, 172u8, 240u8, + 41u8, 179u8, 64u8, 235u8, 253u8, 139u8, 75u8, 150u8, 218u8, 97u8, + 123u8, 252u8, 91u8, 74u8, 17u8, 60u8, 66u8, 229u8, 84u8, 153u8, 164u8, + 160u8, + ], + ) + } + /// Items to be executed, indexed by the block number that they should be executed + /// on. + pub fn agenda_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::option::Option< + runtime_types::pallet_scheduler::Scheduled< + [::core::primitive::u8; 32usize], + runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + ::core::primitive::u64, + runtime_types::tangle_testnet_runtime::OriginCaller, + ::subxt::utils::AccountId32, + >, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Scheduler", + "Agenda", + Vec::new(), + [ + 207u8, 229u8, 12u8, 111u8, 82u8, 163u8, 230u8, 234u8, 172u8, 240u8, + 41u8, 179u8, 64u8, 235u8, 253u8, 139u8, 75u8, 150u8, 218u8, 97u8, + 123u8, 252u8, 91u8, 74u8, 17u8, 60u8, 66u8, 229u8, 84u8, 153u8, 164u8, + 160u8, + ], + ) + } + /// Lookup from a name to the block number and index of the task. + /// + /// For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form + /// the v4 identities. + pub fn lookup( + &self, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u64, ::core::primitive::u32), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Scheduler", + "Lookup", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 43u8, 113u8, 203u8, 163u8, 123u8, 137u8, 242u8, 150u8, 151u8, 218u8, + 249u8, 222u8, 109u8, 245u8, 242u8, 112u8, 45u8, 96u8, 67u8, 162u8, + 205u8, 33u8, 159u8, 36u8, 115u8, 212u8, 213u8, 189u8, 237u8, 54u8, + 139u8, 56u8, + ], + ) + } + /// Lookup from a name to the block number and index of the task. + /// + /// For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form + /// the v4 identities. + pub fn lookup_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::core::primitive::u64, ::core::primitive::u32), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Scheduler", + "Lookup", + Vec::new(), + [ + 43u8, 113u8, 203u8, 163u8, 123u8, 137u8, 242u8, 150u8, 151u8, 218u8, + 249u8, 222u8, 109u8, 245u8, 242u8, 112u8, 45u8, 96u8, 67u8, 162u8, + 205u8, 33u8, 159u8, 36u8, 115u8, 212u8, 213u8, 189u8, 237u8, 54u8, + 139u8, 56u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The maximum weight that may be scheduled per block for any dispatchables. + pub fn maximum_weight( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static( + "Scheduler", + "MaximumWeight", + [ + 149u8, 252u8, 129u8, 80u8, 169u8, 36u8, 79u8, 127u8, 240u8, 156u8, + 56u8, 202u8, 219u8, 86u8, 5u8, 65u8, 245u8, 148u8, 138u8, 243u8, 210u8, + 128u8, 234u8, 216u8, 240u8, 219u8, 123u8, 235u8, 21u8, 158u8, 237u8, + 112u8, + ], + ) + } + /// The maximum number of scheduled calls in the queue for a single block. + /// + /// NOTE: + /// + Dependent pallets' benchmarks might require a higher limit for the setting. + /// Set a + /// higher limit under `runtime-benchmarks` feature. + pub fn max_scheduled_per_block( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Scheduler", + "MaxScheduledPerBlock", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod preimage { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_preimage::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_preimage::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NotePreimage { + pub bytes: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for NotePreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "note_preimage"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnnotePreimage { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for UnnotePreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "unnote_preimage"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RequestPreimage { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for RequestPreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "request_preimage"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnrequestPreimage { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for UnrequestPreimage { + const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "unrequest_preimage"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::note_preimage`]. + pub fn note_preimage( + &self, + bytes: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Preimage", + "note_preimage", + types::NotePreimage { bytes }, + [ + 121u8, 88u8, 18u8, 92u8, 176u8, 15u8, 192u8, 198u8, 146u8, 198u8, 38u8, + 242u8, 213u8, 83u8, 7u8, 230u8, 14u8, 110u8, 235u8, 32u8, 215u8, 26u8, + 192u8, 217u8, 113u8, 224u8, 206u8, 96u8, 177u8, 198u8, 246u8, 33u8, + ], + ) + } + ///See [`Pallet::unnote_preimage`]. + pub fn unnote_preimage( + &self, + hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Preimage", + "unnote_preimage", + types::UnnotePreimage { hash }, + [ + 188u8, 116u8, 222u8, 22u8, 127u8, 215u8, 2u8, 133u8, 96u8, 202u8, + 190u8, 123u8, 203u8, 43u8, 200u8, 161u8, 226u8, 24u8, 49u8, 36u8, + 221u8, 160u8, 130u8, 119u8, 30u8, 138u8, 144u8, 85u8, 5u8, 164u8, + 252u8, 222u8, + ], + ) + } + ///See [`Pallet::request_preimage`]. + pub fn request_preimage( + &self, + hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Preimage", + "request_preimage", + types::RequestPreimage { hash }, + [ + 87u8, 0u8, 204u8, 111u8, 43u8, 115u8, 64u8, 209u8, 133u8, 13u8, 83u8, + 45u8, 164u8, 166u8, 233u8, 105u8, 242u8, 238u8, 235u8, 208u8, 113u8, + 134u8, 93u8, 242u8, 86u8, 32u8, 7u8, 152u8, 107u8, 208u8, 79u8, 59u8, + ], + ) + } + ///See [`Pallet::unrequest_preimage`]. + pub fn unrequest_preimage( + &self, + hash: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Preimage", + "unrequest_preimage", + types::UnrequestPreimage { hash }, + [ + 55u8, 37u8, 224u8, 149u8, 142u8, 120u8, 8u8, 68u8, 183u8, 225u8, 255u8, + 240u8, 254u8, 111u8, 58u8, 200u8, 113u8, 217u8, 177u8, 203u8, 107u8, + 104u8, 233u8, 87u8, 252u8, 53u8, 33u8, 112u8, 116u8, 254u8, 117u8, + 134u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_preimage::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A preimage has been noted. + pub struct Noted { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Noted { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Noted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A preimage has been requested. + pub struct Requested { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Requested { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Requested"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A preimage has ben cleared. + pub struct Cleared { + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for Cleared { + const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Cleared"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The request status of a given hash. + pub fn status_for( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_preimage::RequestStatus< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Preimage", + "StatusFor", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 187u8, 100u8, 54u8, 112u8, 96u8, 129u8, 36u8, 149u8, 127u8, 226u8, + 126u8, 171u8, 72u8, 189u8, 59u8, 126u8, 204u8, 125u8, 67u8, 204u8, + 231u8, 6u8, 212u8, 135u8, 166u8, 252u8, 5u8, 46u8, 111u8, 120u8, 54u8, + 209u8, + ], + ) + } + /// The request status of a given hash. + pub fn status_for_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_preimage::RequestStatus< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Preimage", + "StatusFor", + Vec::new(), + [ + 187u8, 100u8, 54u8, 112u8, 96u8, 129u8, 36u8, 149u8, 127u8, 226u8, + 126u8, 171u8, 72u8, 189u8, 59u8, 126u8, 204u8, 125u8, 67u8, 204u8, + 231u8, 6u8, 212u8, 135u8, 166u8, 252u8, 5u8, 46u8, 111u8, 120u8, 54u8, + 209u8, + ], + ) + } + pub fn preimage_for( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Preimage", + "PreimageFor", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 106u8, 5u8, 17u8, 46u8, 6u8, 184u8, 177u8, 113u8, 169u8, 34u8, 119u8, + 141u8, 117u8, 40u8, 30u8, 94u8, 187u8, 35u8, 206u8, 216u8, 143u8, + 208u8, 49u8, 156u8, 200u8, 255u8, 109u8, 200u8, 210u8, 134u8, 24u8, + 139u8, + ], + ) + } + pub fn preimage_for_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Preimage", + "PreimageFor", + Vec::new(), + [ + 106u8, 5u8, 17u8, 46u8, 6u8, 184u8, 177u8, 113u8, 169u8, 34u8, 119u8, + 141u8, 117u8, 40u8, 30u8, 94u8, 187u8, 35u8, 206u8, 216u8, 143u8, + 208u8, 49u8, 156u8, 200u8, 255u8, 109u8, 200u8, 210u8, 134u8, 24u8, + 139u8, + ], + ) + } + } + } + } + pub mod offences { + use super::{root_mod, runtime_types}; + ///Events type. + pub type Event = runtime_types::pallet_offences::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///There is an offence reported of the given `kind` happened at the `session_index` and + ///(kind-specific) time slot. This event is not deposited for duplicate slashes. + ///\[kind, timeslot\]. + pub struct Offence { + pub kind: [::core::primitive::u8; 16usize], + pub timeslot: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for Offence { + const PALLET: &'static str = "Offences"; + const EVENT: &'static str = "Offence"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The primary structure that holds all offence records keyed by report + /// identifiers. + pub fn reports( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_staking::offence::OffenceDetails< + ::subxt::utils::AccountId32, + ( + ::subxt::utils::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ), + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "Reports", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 140u8, 14u8, 199u8, 180u8, 83u8, 5u8, 23u8, 57u8, 241u8, 41u8, 240u8, + 35u8, 80u8, 12u8, 115u8, 16u8, 2u8, 15u8, 22u8, 77u8, 25u8, 92u8, + 100u8, 39u8, 226u8, 55u8, 240u8, 80u8, 190u8, 196u8, 234u8, 177u8, + ], + ) + } + /// The primary structure that holds all offence records keyed by report + /// identifiers. + pub fn reports_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_staking::offence::OffenceDetails< + ::subxt::utils::AccountId32, + ( + ::subxt::utils::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + ), + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "Reports", + Vec::new(), + [ + 140u8, 14u8, 199u8, 180u8, 83u8, 5u8, 23u8, 57u8, 241u8, 41u8, 240u8, + 35u8, 80u8, 12u8, 115u8, 16u8, 2u8, 15u8, 22u8, 77u8, 25u8, 92u8, + 100u8, 39u8, 226u8, 55u8, 240u8, 80u8, 190u8, 196u8, 234u8, 177u8, + ], + ) + } + /// A vector of reports of the same kind that happened at the same time slot. + pub fn concurrent_reports_index( + &self, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::H256>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "ConcurrentReportsIndex", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, + 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, + 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, + 247u8, + ], + ) + } + /// A vector of reports of the same kind that happened at the same time slot. + pub fn concurrent_reports_index_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::subxt::utils::H256>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Offences", + "ConcurrentReportsIndex", + Vec::new(), + [ + 170u8, 186u8, 72u8, 29u8, 251u8, 38u8, 193u8, 195u8, 109u8, 86u8, 0u8, + 241u8, 20u8, 235u8, 108u8, 126u8, 215u8, 82u8, 73u8, 113u8, 199u8, + 138u8, 24u8, 58u8, 216u8, 72u8, 221u8, 232u8, 252u8, 244u8, 96u8, + 247u8, + ], + ) + } + } + } + } + pub mod transaction_pause { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_transaction_pause::module::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_transaction_pause::module::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PauseTransaction { + pub pallet_name: ::std::vec::Vec<::core::primitive::u8>, + pub function_name: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for PauseTransaction { + const PALLET: &'static str = "TransactionPause"; + const CALL: &'static str = "pause_transaction"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnpauseTransaction { + pub pallet_name: ::std::vec::Vec<::core::primitive::u8>, + pub function_name: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for UnpauseTransaction { + const PALLET: &'static str = "TransactionPause"; + const CALL: &'static str = "unpause_transaction"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::pause_transaction`]. + pub fn pause_transaction( + &self, + pallet_name: ::std::vec::Vec<::core::primitive::u8>, + function_name: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TransactionPause", + "pause_transaction", + types::PauseTransaction { pallet_name, function_name }, + [ + 51u8, 222u8, 12u8, 112u8, 19u8, 240u8, 229u8, 70u8, 203u8, 228u8, + 124u8, 35u8, 183u8, 76u8, 224u8, 157u8, 217u8, 145u8, 114u8, 18u8, + 129u8, 97u8, 134u8, 90u8, 180u8, 1u8, 227u8, 95u8, 243u8, 247u8, 250u8, + 131u8, + ], + ) + } + ///See [`Pallet::unpause_transaction`]. + pub fn unpause_transaction( + &self, + pallet_name: ::std::vec::Vec<::core::primitive::u8>, + function_name: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "TransactionPause", + "unpause_transaction", + types::UnpauseTransaction { pallet_name, function_name }, + [ + 171u8, 221u8, 16u8, 220u8, 142u8, 78u8, 14u8, 202u8, 15u8, 80u8, 32u8, + 71u8, 92u8, 255u8, 58u8, 48u8, 31u8, 87u8, 48u8, 182u8, 253u8, 16u8, + 31u8, 198u8, 103u8, 252u8, 123u8, 115u8, 192u8, 23u8, 191u8, 115u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_transaction_pause::module::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Paused transaction + pub struct TransactionPaused { + pub pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + pub function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for TransactionPaused { + const PALLET: &'static str = "TransactionPause"; + const EVENT: &'static str = "TransactionPaused"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Unpaused transaction + pub struct TransactionUnpaused { + pub pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + pub function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for TransactionUnpaused { + const PALLET: &'static str = "TransactionPause"; + const EVENT: &'static str = "TransactionUnpaused"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The paused transaction map + /// + /// map (PalletNameBytes, FunctionNameBytes) => Option<()> + pub fn paused_transactions( + &self, + _0: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TransactionPause", + "PausedTransactions", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 203u8, 192u8, 79u8, 202u8, 109u8, 238u8, 58u8, 52u8, 103u8, 149u8, + 77u8, 121u8, 162u8, 56u8, 85u8, 1u8, 166u8, 110u8, 101u8, 136u8, 0u8, + 56u8, 199u8, 170u8, 137u8, 220u8, 129u8, 195u8, 15u8, 212u8, 89u8, + 229u8, + ], + ) + } + /// The paused transaction map + /// + /// map (PalletNameBytes, FunctionNameBytes) => Option<()> + pub fn paused_transactions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "TransactionPause", + "PausedTransactions", + Vec::new(), + [ + 203u8, 192u8, 79u8, 202u8, 109u8, 238u8, 58u8, 52u8, 103u8, 149u8, + 77u8, 121u8, 162u8, 56u8, 85u8, 1u8, 166u8, 110u8, 101u8, 136u8, 0u8, + 56u8, 199u8, 170u8, 137u8, 220u8, 129u8, 195u8, 15u8, 212u8, 89u8, + 229u8, + ], + ) + } + } + } + } + pub mod im_online { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_im_online::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_im_online::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Heartbeat { + pub heartbeat: + runtime_types::pallet_im_online::Heartbeat<::core::primitive::u64>, + pub signature: runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, + } + impl ::subxt::blocks::StaticExtrinsic for Heartbeat { + const PALLET: &'static str = "ImOnline"; + const CALL: &'static str = "heartbeat"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::heartbeat`]. + pub fn heartbeat( + &self, + heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u64>, + signature: runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ImOnline", + "heartbeat", + types::Heartbeat { heartbeat, signature }, + [ + 104u8, 32u8, 33u8, 190u8, 92u8, 252u8, 37u8, 90u8, 116u8, 64u8, 13u8, + 87u8, 210u8, 182u8, 139u8, 111u8, 168u8, 61u8, 130u8, 57u8, 83u8, 16u8, + 52u8, 84u8, 97u8, 148u8, 243u8, 59u8, 194u8, 211u8, 14u8, 169u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_im_online::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A new heartbeat was received from `AuthorityId`. + pub struct HeartbeatReceived { + pub authority_id: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + } + impl ::subxt::events::StaticEvent for HeartbeatReceived { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "HeartbeatReceived"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///At the end of the session, no offence was committed. + pub struct AllGood; + impl ::subxt::events::StaticEvent for AllGood { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "AllGood"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///At the end of the session, at least one validator was found to be offline. + pub struct SomeOffline { + pub offline: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + )>, + } + impl ::subxt::events::StaticEvent for SomeOffline { + const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "SomeOffline"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The block number after which it's ok to send heartbeats in the current + /// session. + /// + /// At the beginning of each session we set this to a value that should fall + /// roughly in the middle of the session duration. The idea is to first wait for + /// the validators to produce a block in the current session, so that the + /// heartbeat later on will not be necessary. + /// + /// This value will only be used as a fallback if we fail to get a proper session + /// progress estimate from `NextSessionRotation`, as those estimates should be + /// more accurate then the value we calculate for `HeartbeatAfter`. + pub fn heartbeat_after( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "HeartbeatAfter", + vec![], + [ + 68u8, 123u8, 210u8, 22u8, 2u8, 3u8, 102u8, 109u8, 229u8, 105u8, 224u8, + 81u8, 50u8, 191u8, 34u8, 195u8, 50u8, 33u8, 173u8, 218u8, 124u8, 235u8, + 235u8, 206u8, 233u8, 66u8, 254u8, 225u8, 149u8, 96u8, 107u8, 242u8, + ], + ) + } + /// The current set of keys that may issue a heartbeat. + pub fn keys( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "Keys", + vec![], + [ + 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, + 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, + 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, + 29u8, 218u8, + ], + ) + } + /// For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`. + pub fn received_heartbeats( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "ReceivedHeartbeats", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, + 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, + 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, + ], + ) + } + /// For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`. + pub fn received_heartbeats_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "ReceivedHeartbeats", + Vec::new(), + [ + 30u8, 155u8, 42u8, 200u8, 223u8, 48u8, 127u8, 31u8, 253u8, 195u8, + 234u8, 108u8, 64u8, 27u8, 247u8, 17u8, 187u8, 199u8, 41u8, 138u8, 55u8, + 163u8, 94u8, 226u8, 10u8, 3u8, 132u8, 129u8, 8u8, 138u8, 137u8, 171u8, + ], + ) + } + /// For each session index, we keep a mapping of `ValidatorId` to the + /// number of blocks authored by the given authority. + pub fn authored_blocks( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + _1: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "AuthoredBlocks", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, + 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, + 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, + 233u8, 126u8, + ], + ) + } + /// For each session index, we keep a mapping of `ValidatorId` to the + /// number of blocks authored by the given authority. + pub fn authored_blocks_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u32, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "ImOnline", + "AuthoredBlocks", + Vec::new(), + [ + 123u8, 76u8, 230u8, 113u8, 65u8, 255u8, 99u8, 79u8, 131u8, 139u8, + 218u8, 20u8, 174u8, 191u8, 224u8, 67u8, 137u8, 48u8, 146u8, 209u8, + 148u8, 69u8, 130u8, 9u8, 173u8, 253u8, 206u8, 196u8, 68u8, 160u8, + 233u8, 126u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// A configuration for base priority of unsigned transactions. + /// + /// This is exposed so that it can be tuned for particular runtime, when + /// multiple pallets send unsigned transactions. + pub fn unsigned_priority( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static( + "ImOnline", + "UnsignedPriority", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) + } + } + } + } + pub mod identity { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_identity::pallet::Error; + ///Identity pallet declaration. + pub type Call = runtime_types::pallet_identity::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AddRegistrar { + pub account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for AddRegistrar { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "add_registrar"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetIdentity { + pub info: + ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for SetIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_identity"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetSubs { + pub subs: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetSubs { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_subs"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClearIdentity; + impl ::subxt::blocks::StaticExtrinsic for ClearIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "clear_identity"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RequestJudgement { + #[codec(compact)] + pub reg_index: ::core::primitive::u32, + #[codec(compact)] + pub max_fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for RequestJudgement { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "request_judgement"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CancelRequest { + pub reg_index: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for CancelRequest { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "cancel_request"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetFee { + #[codec(compact)] + pub index: ::core::primitive::u32, + #[codec(compact)] + pub fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for SetFee { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_fee"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetAccountId { + #[codec(compact)] + pub index: ::core::primitive::u32, + pub new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetAccountId { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_account_id"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetFields { + #[codec(compact)] + pub index: ::core::primitive::u32, + pub fields: runtime_types::pallet_identity::types::BitFlags< + runtime_types::pallet_identity::types::IdentityField, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetFields { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_fields"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ProvideJudgement { + #[codec(compact)] + pub reg_index: ::core::primitive::u32, + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub judgement: + runtime_types::pallet_identity::types::Judgement<::core::primitive::u128>, + pub identity: ::subxt::utils::H256, + } + impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "provide_judgement"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct KillIdentity { + pub target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for KillIdentity { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "kill_identity"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AddSub { + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub data: runtime_types::pallet_identity::types::Data, + } + impl ::subxt::blocks::StaticExtrinsic for AddSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "add_sub"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RenameSub { + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub data: runtime_types::pallet_identity::types::Data, + } + impl ::subxt::blocks::StaticExtrinsic for RenameSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "rename_sub"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RemoveSub { + pub sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for RemoveSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "remove_sub"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QuitSub; + impl ::subxt::blocks::StaticExtrinsic for QuitSub { + const PALLET: &'static str = "Identity"; + const CALL: &'static str = "quit_sub"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::add_registrar`]. + pub fn add_registrar( + &self, + account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "add_registrar", + types::AddRegistrar { account }, + [ + 206u8, 30u8, 240u8, 168u8, 67u8, 228u8, 17u8, 74u8, 26u8, 222u8, 61u8, + 15u8, 100u8, 25u8, 162u8, 159u8, 83u8, 110u8, 30u8, 52u8, 201u8, 49u8, + 115u8, 152u8, 142u8, 76u8, 14u8, 239u8, 184u8, 136u8, 195u8, 39u8, + ], + ) + } + ///See [`Pallet::set_identity`]. + pub fn set_identity( + &self, + info: runtime_types::pallet_identity::types::IdentityInfo, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_identity", + types::SetIdentity { info: ::std::boxed::Box::new(info) }, + [ + 18u8, 86u8, 67u8, 10u8, 116u8, 254u8, 94u8, 95u8, 166u8, 30u8, 204u8, + 189u8, 174u8, 70u8, 191u8, 255u8, 149u8, 93u8, 156u8, 120u8, 105u8, + 138u8, 199u8, 181u8, 43u8, 150u8, 143u8, 254u8, 182u8, 81u8, 86u8, + 45u8, + ], + ) + } + ///See [`Pallet::set_subs`]. + pub fn set_subs( + &self, + subs: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_subs", + types::SetSubs { subs }, + [ + 34u8, 184u8, 18u8, 155u8, 112u8, 247u8, 235u8, 75u8, 209u8, 236u8, + 21u8, 238u8, 43u8, 237u8, 223u8, 147u8, 48u8, 6u8, 39u8, 231u8, 174u8, + 164u8, 243u8, 184u8, 220u8, 151u8, 165u8, 69u8, 219u8, 122u8, 234u8, + 100u8, + ], + ) + } + ///See [`Pallet::clear_identity`]. + pub fn clear_identity(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "clear_identity", + types::ClearIdentity {}, + [ + 43u8, 115u8, 205u8, 44u8, 24u8, 130u8, 220u8, 69u8, 247u8, 176u8, + 200u8, 175u8, 67u8, 183u8, 36u8, 200u8, 162u8, 132u8, 242u8, 25u8, + 21u8, 106u8, 197u8, 219u8, 141u8, 51u8, 204u8, 13u8, 191u8, 201u8, + 31u8, 31u8, + ], + ) + } + ///See [`Pallet::request_judgement`]. + pub fn request_judgement( + &self, + reg_index: ::core::primitive::u32, + max_fee: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "request_judgement", + types::RequestJudgement { reg_index, max_fee }, + [ + 83u8, 85u8, 55u8, 184u8, 14u8, 54u8, 49u8, 212u8, 26u8, 148u8, 33u8, + 147u8, 182u8, 54u8, 180u8, 12u8, 61u8, 179u8, 216u8, 157u8, 103u8, + 52u8, 120u8, 252u8, 83u8, 203u8, 144u8, 65u8, 15u8, 3u8, 21u8, 33u8, + ], + ) + } + ///See [`Pallet::cancel_request`]. + pub fn cancel_request( + &self, + reg_index: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "cancel_request", + types::CancelRequest { reg_index }, + [ + 81u8, 14u8, 133u8, 219u8, 43u8, 84u8, 163u8, 208u8, 21u8, 185u8, 75u8, + 117u8, 126u8, 33u8, 210u8, 106u8, 122u8, 210u8, 35u8, 207u8, 104u8, + 206u8, 41u8, 117u8, 247u8, 108u8, 56u8, 23u8, 123u8, 169u8, 169u8, + 61u8, + ], + ) + } + ///See [`Pallet::set_fee`]. + pub fn set_fee( + &self, + index: ::core::primitive::u32, + fee: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_fee", + types::SetFee { index, fee }, + [ + 131u8, 20u8, 17u8, 127u8, 180u8, 65u8, 225u8, 144u8, 193u8, 60u8, + 131u8, 241u8, 30u8, 149u8, 8u8, 76u8, 29u8, 52u8, 102u8, 108u8, 127u8, + 130u8, 70u8, 18u8, 94u8, 145u8, 179u8, 109u8, 252u8, 219u8, 58u8, + 163u8, + ], + ) + } + ///See [`Pallet::set_account_id`]. + pub fn set_account_id( + &self, + index: ::core::primitive::u32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_account_id", + types::SetAccountId { index, new }, + [ + 40u8, 151u8, 216u8, 253u8, 241u8, 117u8, 210u8, 208u8, 98u8, 94u8, + 228u8, 208u8, 122u8, 100u8, 86u8, 237u8, 240u8, 89u8, 90u8, 109u8, + 23u8, 255u8, 121u8, 176u8, 146u8, 10u8, 190u8, 175u8, 148u8, 228u8, + 176u8, 43u8, + ], + ) + } + ///See [`Pallet::set_fields`]. + pub fn set_fields( + &self, + index: ::core::primitive::u32, + fields: runtime_types::pallet_identity::types::BitFlags< + runtime_types::pallet_identity::types::IdentityField, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "set_fields", + types::SetFields { index, fields }, + [ + 25u8, 129u8, 119u8, 232u8, 18u8, 32u8, 77u8, 23u8, 185u8, 56u8, 32u8, + 199u8, 74u8, 174u8, 104u8, 203u8, 171u8, 253u8, 19u8, 225u8, 101u8, + 239u8, 14u8, 242u8, 157u8, 51u8, 203u8, 74u8, 1u8, 65u8, 165u8, 205u8, + ], + ) + } + ///See [`Pallet::provide_judgement`]. + pub fn provide_judgement( + &self, + reg_index: ::core::primitive::u32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + judgement: runtime_types::pallet_identity::types::Judgement< + ::core::primitive::u128, + >, + identity: ::subxt::utils::H256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "provide_judgement", + types::ProvideJudgement { reg_index, target, judgement, identity }, + [ + 224u8, 108u8, 183u8, 113u8, 45u8, 239u8, 165u8, 94u8, 110u8, 181u8, + 66u8, 213u8, 45u8, 9u8, 132u8, 203u8, 55u8, 96u8, 19u8, 129u8, 0u8, + 240u8, 138u8, 193u8, 191u8, 188u8, 150u8, 5u8, 64u8, 188u8, 163u8, + 231u8, + ], + ) + } + ///See [`Pallet::kill_identity`]. + pub fn kill_identity( + &self, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "kill_identity", + types::KillIdentity { target }, + [ + 41u8, 147u8, 161u8, 132u8, 99u8, 63u8, 42u8, 219u8, 109u8, 209u8, 19u8, + 243u8, 61u8, 122u8, 16u8, 248u8, 110u8, 85u8, 71u8, 170u8, 38u8, 4u8, + 91u8, 173u8, 212u8, 55u8, 227u8, 51u8, 100u8, 5u8, 211u8, 177u8, + ], + ) + } + ///See [`Pallet::add_sub`]. + pub fn add_sub( + &self, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + data: runtime_types::pallet_identity::types::Data, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "add_sub", + types::AddSub { sub, data }, + [ + 92u8, 68u8, 199u8, 2u8, 215u8, 177u8, 19u8, 216u8, 8u8, 79u8, 165u8, + 233u8, 254u8, 85u8, 115u8, 41u8, 103u8, 67u8, 61u8, 93u8, 204u8, 245u8, + 197u8, 120u8, 88u8, 70u8, 37u8, 22u8, 221u8, 5u8, 100u8, 78u8, + ], + ) + } + ///See [`Pallet::rename_sub`]. + pub fn rename_sub( + &self, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + data: runtime_types::pallet_identity::types::Data, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "rename_sub", + types::RenameSub { sub, data }, + [ + 54u8, 76u8, 163u8, 56u8, 90u8, 60u8, 49u8, 218u8, 100u8, 249u8, 177u8, + 33u8, 174u8, 122u8, 237u8, 205u8, 107u8, 232u8, 168u8, 155u8, 240u8, + 22u8, 97u8, 197u8, 174u8, 250u8, 8u8, 227u8, 10u8, 205u8, 188u8, 30u8, + ], + ) + } + ///See [`Pallet::remove_sub`]. + pub fn remove_sub( + &self, + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "remove_sub", + types::RemoveSub { sub }, + [ + 80u8, 67u8, 217u8, 201u8, 139u8, 178u8, 58u8, 253u8, 137u8, 193u8, + 133u8, 239u8, 21u8, 226u8, 14u8, 160u8, 110u8, 20u8, 35u8, 168u8, + 139u8, 199u8, 92u8, 125u8, 13u8, 52u8, 248u8, 63u8, 54u8, 166u8, 55u8, + 225u8, + ], + ) + } + ///See [`Pallet::quit_sub`]. + pub fn quit_sub(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Identity", + "quit_sub", + types::QuitSub {}, + [ + 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, + 74u8, 166u8, 242u8, 193u8, 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, + 208u8, 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, 141u8, 233u8, + 223u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_identity::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A name was set or reset (which will remove all judgements). + pub struct IdentitySet { + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for IdentitySet { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentitySet"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A name was cleared, and the given balance returned. + pub struct IdentityCleared { + pub who: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for IdentityCleared { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentityCleared"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A name was removed and the given balance slashed. + pub struct IdentityKilled { + pub who: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for IdentityKilled { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentityKilled"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A judgement was asked from a registrar. + pub struct JudgementRequested { + pub who: ::subxt::utils::AccountId32, + pub registrar_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for JudgementRequested { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementRequested"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A judgement request was retracted. + pub struct JudgementUnrequested { + pub who: ::subxt::utils::AccountId32, + pub registrar_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for JudgementUnrequested { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementUnrequested"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A judgement was given by a registrar. + pub struct JudgementGiven { + pub target: ::subxt::utils::AccountId32, + pub registrar_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for JudgementGiven { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementGiven"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A registrar was added. + pub struct RegistrarAdded { + pub registrar_index: ::core::primitive::u32, + } + impl ::subxt::events::StaticEvent for RegistrarAdded { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "RegistrarAdded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A sub-identity was added to an identity and the deposit paid. + pub struct SubIdentityAdded { + pub sub: ::subxt::utils::AccountId32, + pub main: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for SubIdentityAdded { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityAdded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A sub-identity was removed from an identity and the deposit freed. + pub struct SubIdentityRemoved { + pub sub: ::subxt::utils::AccountId32, + pub main: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for SubIdentityRemoved { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityRemoved"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A sub-identity was cleared, and the given deposit repatriated from the + ///main identity account to the sub-identity account. + pub struct SubIdentityRevoked { + pub sub: ::subxt::utils::AccountId32, + pub main: ::subxt::utils::AccountId32, + pub deposit: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for SubIdentityRevoked { + const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityRevoked"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Information that is pertinent to identify the entity behind an account. + /// + /// TWOX-NOTE: OK ― `AccountId` is a secure hash. + pub fn identity_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_identity::types::Registration<::core::primitive::u128>, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "IdentityOf", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 112u8, 2u8, 209u8, 123u8, 138u8, 171u8, 80u8, 243u8, 226u8, 88u8, 81u8, + 49u8, 59u8, 172u8, 88u8, 180u8, 255u8, 119u8, 57u8, 16u8, 169u8, 149u8, + 77u8, 239u8, 73u8, 182u8, 28u8, 112u8, 150u8, 110u8, 65u8, 139u8, + ], + ) + } + /// Information that is pertinent to identify the entity behind an account. + /// + /// TWOX-NOTE: OK ― `AccountId` is a secure hash. + pub fn identity_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_identity::types::Registration<::core::primitive::u128>, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "IdentityOf", + Vec::new(), + [ + 112u8, 2u8, 209u8, 123u8, 138u8, 171u8, 80u8, 243u8, 226u8, 88u8, 81u8, + 49u8, 59u8, 172u8, 88u8, 180u8, 255u8, 119u8, 57u8, 16u8, 169u8, 149u8, + 77u8, 239u8, 73u8, 182u8, 28u8, 112u8, 150u8, 110u8, 65u8, 139u8, + ], + ) + } + /// The super-identity of an alternative "sub" identity together with its name, + /// within that context. If the account is not some other account's sub-identity, + /// then just `None`. + pub fn super_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::subxt::utils::AccountId32, runtime_types::pallet_identity::types::Data), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "SuperOf", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 84u8, 72u8, 64u8, 14u8, 56u8, 9u8, 143u8, 100u8, 141u8, 163u8, 36u8, + 55u8, 38u8, 254u8, 164u8, 17u8, 3u8, 110u8, 88u8, 175u8, 161u8, 65u8, + 159u8, 40u8, 46u8, 8u8, 177u8, 81u8, 130u8, 38u8, 193u8, 28u8, + ], + ) + } + /// The super-identity of an alternative "sub" identity together with its name, + /// within that context. If the account is not some other account's sub-identity, + /// then just `None`. + pub fn super_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (::subxt::utils::AccountId32, runtime_types::pallet_identity::types::Data), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "SuperOf", + Vec::new(), + [ + 84u8, 72u8, 64u8, 14u8, 56u8, 9u8, 143u8, 100u8, 141u8, 163u8, 36u8, + 55u8, 38u8, 254u8, 164u8, 17u8, 3u8, 110u8, 88u8, 175u8, 161u8, 65u8, + 159u8, 40u8, 46u8, 8u8, 177u8, 81u8, 130u8, 38u8, 193u8, 28u8, + ], + ) + } + /// Alternative "sub" identities of this account. + /// + /// The first item is the deposit, the second is a vector of the accounts. + /// + /// TWOX-NOTE: OK ― `AccountId` is a secure hash. + pub fn subs_of( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::core::primitive::u128, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "SubsOf", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 164u8, 140u8, 52u8, 123u8, 220u8, 118u8, 147u8, 3u8, 67u8, 22u8, 191u8, + 18u8, 186u8, 21u8, 154u8, 8u8, 205u8, 224u8, 163u8, 173u8, 174u8, + 107u8, 144u8, 215u8, 116u8, 64u8, 159u8, 115u8, 159u8, 205u8, 91u8, + 28u8, + ], + ) + } + /// Alternative "sub" identities of this account. + /// + /// The first item is the deposit, the second is a vector of the accounts. + /// + /// TWOX-NOTE: OK ― `AccountId` is a secure hash. + pub fn subs_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::core::primitive::u128, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ), + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "SubsOf", + Vec::new(), + [ + 164u8, 140u8, 52u8, 123u8, 220u8, 118u8, 147u8, 3u8, 67u8, 22u8, 191u8, + 18u8, 186u8, 21u8, 154u8, 8u8, 205u8, 224u8, 163u8, 173u8, 174u8, + 107u8, 144u8, 215u8, 116u8, 64u8, 159u8, 115u8, 159u8, 205u8, 91u8, + 28u8, + ], + ) + } + /// The set of registrars. Not expected to get very big as can only be added through + /// a special origin (likely a council motion). + /// + /// The index into this can be cast to `RegistrarIndex` to get a valid value. + pub fn registrars( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::option::Option< + runtime_types::pallet_identity::types::RegistrarInfo< + ::core::primitive::u128, + ::subxt::utils::AccountId32, + >, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Identity", + "Registrars", + vec![], + [ + 207u8, 253u8, 229u8, 237u8, 228u8, 85u8, 173u8, 74u8, 164u8, 67u8, + 144u8, 144u8, 5u8, 242u8, 84u8, 187u8, 110u8, 181u8, 2u8, 162u8, 239u8, + 212u8, 72u8, 233u8, 160u8, 196u8, 121u8, 218u8, 100u8, 0u8, 219u8, + 181u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The amount held on deposit for a registered identity + pub fn basic_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Identity", + "BasicDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// The amount held on deposit per additional field for a registered identity. + pub fn field_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Identity", + "FieldDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// The amount held on deposit for a registered subaccount. This should account for + /// the fact that one storage item's value will increase by the size of an account + /// ID, and there will be another trie item whose value is the size of an account ID + /// plus 32 bytes. + pub fn sub_account_deposit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Identity", + "SubAccountDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// The maximum number of sub-accounts allowed per identified account. + pub fn max_sub_accounts( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Identity", + "MaxSubAccounts", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// Maximum number of additional fields that may be stored in an ID. Needed to bound + /// the I/O required to access an identity, but can be pretty high. + pub fn max_additional_fields( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Identity", + "MaxAdditionalFields", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + /// Maxmimum number of registrars allowed in the system. Needed to bound the + /// complexity of, e.g., updating judgements. + pub fn max_registrars( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Identity", + "MaxRegistrars", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod utility { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_utility::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_utility::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Batch { + pub calls: ::std::vec::Vec, + } + impl ::subxt::blocks::StaticExtrinsic for Batch { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AsDerivative { + pub index: ::core::primitive::u16, + pub call: ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for AsDerivative { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "as_derivative"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BatchAll { + pub calls: ::std::vec::Vec, + } + impl ::subxt::blocks::StaticExtrinsic for BatchAll { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch_all"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DispatchAs { + pub as_origin: + ::std::boxed::Box, + pub call: ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for DispatchAs { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "dispatch_as"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceBatch { + pub calls: ::std::vec::Vec, + } + impl ::subxt::blocks::StaticExtrinsic for ForceBatch { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "force_batch"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WithWeight { + pub call: ::std::boxed::Box, + pub weight: runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for WithWeight { + const PALLET: &'static str = "Utility"; + const CALL: &'static str = "with_weight"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::batch`]. + pub fn batch( + &self, + calls: ::std::vec::Vec, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "batch", + types::Batch { calls }, + [ + 155u8, 18u8, 118u8, 113u8, 33u8, 214u8, 173u8, 150u8, 51u8, 149u8, + 251u8, 252u8, 17u8, 245u8, 57u8, 230u8, 140u8, 208u8, 107u8, 250u8, + 52u8, 31u8, 14u8, 93u8, 254u8, 177u8, 248u8, 61u8, 10u8, 17u8, 5u8, + 36u8, + ], + ) + } + ///See [`Pallet::as_derivative`]. + pub fn as_derivative( + &self, + index: ::core::primitive::u16, + call: runtime_types::tangle_testnet_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "as_derivative", + types::AsDerivative { index, call: ::std::boxed::Box::new(call) }, + [ + 169u8, 78u8, 224u8, 4u8, 19u8, 230u8, 143u8, 77u8, 130u8, 145u8, 116u8, + 45u8, 187u8, 238u8, 202u8, 234u8, 228u8, 80u8, 243u8, 90u8, 111u8, + 93u8, 246u8, 99u8, 111u8, 154u8, 70u8, 18u8, 23u8, 150u8, 100u8, 71u8, + ], + ) + } + ///See [`Pallet::batch_all`]. + pub fn batch_all( + &self, + calls: ::std::vec::Vec, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "batch_all", + types::BatchAll { calls }, + [ + 204u8, 53u8, 224u8, 45u8, 191u8, 90u8, 4u8, 79u8, 60u8, 69u8, 141u8, + 159u8, 225u8, 245u8, 227u8, 244u8, 232u8, 130u8, 74u8, 159u8, 110u8, + 220u8, 4u8, 13u8, 191u8, 253u8, 236u8, 208u8, 60u8, 47u8, 26u8, 251u8, + ], + ) + } + ///See [`Pallet::dispatch_as`]. + pub fn dispatch_as( + &self, + as_origin: runtime_types::tangle_testnet_runtime::OriginCaller, + call: runtime_types::tangle_testnet_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "dispatch_as", + types::DispatchAs { + as_origin: ::std::boxed::Box::new(as_origin), + call: ::std::boxed::Box::new(call), + }, + [ + 32u8, 251u8, 126u8, 79u8, 219u8, 149u8, 24u8, 158u8, 97u8, 128u8, + 165u8, 24u8, 209u8, 187u8, 113u8, 195u8, 195u8, 178u8, 6u8, 185u8, + 36u8, 218u8, 8u8, 84u8, 83u8, 20u8, 13u8, 50u8, 246u8, 5u8, 125u8, + 12u8, + ], + ) + } + ///See [`Pallet::force_batch`]. + pub fn force_batch( + &self, + calls: ::std::vec::Vec, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "force_batch", + types::ForceBatch { calls }, + [ + 155u8, 68u8, 152u8, 120u8, 92u8, 226u8, 211u8, 108u8, 208u8, 155u8, + 170u8, 171u8, 205u8, 18u8, 3u8, 110u8, 71u8, 197u8, 101u8, 50u8, 250u8, + 29u8, 103u8, 14u8, 196u8, 121u8, 189u8, 155u8, 156u8, 85u8, 1u8, 84u8, + ], + ) + } + ///See [`Pallet::with_weight`]. + pub fn with_weight( + &self, + call: runtime_types::tangle_testnet_runtime::RuntimeCall, + weight: runtime_types::sp_weights::weight_v2::Weight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Utility", + "with_weight", + types::WithWeight { call: ::std::boxed::Box::new(call), weight }, + [ + 165u8, 64u8, 194u8, 170u8, 104u8, 199u8, 142u8, 22u8, 137u8, 5u8, + 181u8, 54u8, 172u8, 179u8, 204u8, 26u8, 226u8, 173u8, 66u8, 117u8, + 101u8, 192u8, 25u8, 87u8, 44u8, 18u8, 230u8, 87u8, 238u8, 88u8, 148u8, + 32u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_utility::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Batch of dispatches did not complete fully. Index of first failing dispatch given, + /// as well as the error. + pub struct BatchInterrupted { + pub index: ::core::primitive::u32, + pub error: runtime_types::sp_runtime::DispatchError, + } + impl ::subxt::events::StaticEvent for BatchInterrupted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchInterrupted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Batch of dispatches completed fully with no error. + pub struct BatchCompleted; + impl ::subxt::events::StaticEvent for BatchCompleted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompleted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Batch of dispatches completed but has errors. + pub struct BatchCompletedWithErrors; + impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompletedWithErrors"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A single item within a Batch of dispatches has completed with no error. + pub struct ItemCompleted; + impl ::subxt::events::StaticEvent for ItemCompleted { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemCompleted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A single item within a Batch of dispatches has completed with error. + pub struct ItemFailed { + pub error: runtime_types::sp_runtime::DispatchError, + } + impl ::subxt::events::StaticEvent for ItemFailed { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemFailed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A call was dispatched. + pub struct DispatchedAs { + pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::events::StaticEvent for DispatchedAs { + const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "DispatchedAs"; + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The limit on the number of batched calls. + pub fn batched_calls_limit( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Utility", + "batched_calls_limit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod multisig { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_multisig::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_multisig::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AsMultiThreshold1 { + pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub call: ::std::boxed::Box, + } + impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "as_multi_threshold_1"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AsMulti { + pub threshold: ::core::primitive::u16, + pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + >, + pub call: ::std::boxed::Box, + pub max_weight: runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for AsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "as_multi"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ApproveAsMulti { + pub threshold: ::core::primitive::u16, + pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + >, + pub call_hash: [::core::primitive::u8; 32usize], + pub max_weight: runtime_types::sp_weights::weight_v2::Weight, + } + impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "approve_as_multi"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CancelAsMulti { + pub threshold: ::core::primitive::u16, + pub other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub timepoint: + runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti { + const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "cancel_as_multi"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::as_multi_threshold_1`]. + pub fn as_multi_threshold_1( + &self, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + call: runtime_types::tangle_testnet_runtime::RuntimeCall, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "as_multi_threshold_1", + types::AsMultiThreshold1 { + other_signatories, + call: ::std::boxed::Box::new(call), + }, + [ + 58u8, 75u8, 224u8, 190u8, 6u8, 255u8, 21u8, 118u8, 242u8, 143u8, 77u8, + 171u8, 11u8, 70u8, 81u8, 151u8, 158u8, 221u8, 170u8, 86u8, 85u8, 135u8, + 232u8, 164u8, 117u8, 106u8, 221u8, 214u8, 244u8, 59u8, 14u8, 124u8, + ], + ) + } + ///See [`Pallet::as_multi`]. + pub fn as_multi( + &self, + threshold: ::core::primitive::u16, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + >, + call: runtime_types::tangle_testnet_runtime::RuntimeCall, + max_weight: runtime_types::sp_weights::weight_v2::Weight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "as_multi", + types::AsMulti { + threshold, + other_signatories, + maybe_timepoint, + call: ::std::boxed::Box::new(call), + max_weight, + }, + [ + 54u8, 213u8, 149u8, 98u8, 23u8, 201u8, 227u8, 169u8, 127u8, 235u8, + 70u8, 222u8, 41u8, 117u8, 193u8, 19u8, 6u8, 197u8, 187u8, 139u8, 199u8, + 133u8, 16u8, 187u8, 32u8, 236u8, 148u8, 238u8, 84u8, 240u8, 47u8, 64u8, + ], + ) + } + ///See [`Pallet::approve_as_multi`]. + pub fn approve_as_multi( + &self, + threshold: ::core::primitive::u16, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + >, + call_hash: [::core::primitive::u8; 32usize], + max_weight: runtime_types::sp_weights::weight_v2::Weight, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "approve_as_multi", + types::ApproveAsMulti { + threshold, + other_signatories, + maybe_timepoint, + call_hash, + max_weight, + }, + [ + 54u8, 141u8, 48u8, 156u8, 12u8, 82u8, 142u8, 38u8, 79u8, 125u8, 32u8, + 202u8, 3u8, 230u8, 157u8, 221u8, 206u8, 76u8, 163u8, 225u8, 18u8, + 253u8, 165u8, 17u8, 21u8, 65u8, 103u8, 79u8, 236u8, 68u8, 10u8, 21u8, + ], + ) + } + ///See [`Pallet::cancel_as_multi`]. + pub fn cancel_as_multi( + &self, + threshold: ::core::primitive::u16, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + call_hash: [::core::primitive::u8; 32usize], + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Multisig", + "cancel_as_multi", + types::CancelAsMulti { threshold, other_signatories, timepoint, call_hash }, + [ + 118u8, 81u8, 25u8, 77u8, 172u8, 129u8, 41u8, 32u8, 104u8, 194u8, 106u8, + 92u8, 195u8, 252u8, 140u8, 31u8, 177u8, 250u8, 247u8, 73u8, 206u8, + 153u8, 131u8, 168u8, 96u8, 45u8, 216u8, 234u8, 173u8, 37u8, 226u8, + 20u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_multisig::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A new multisig operation has begun. + pub struct NewMultisig { + pub approving: ::subxt::utils::AccountId32, + pub multisig: ::subxt::utils::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::events::StaticEvent for NewMultisig { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "NewMultisig"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A multisig operation has been approved by someone. + pub struct MultisigApproval { + pub approving: ::subxt::utils::AccountId32, + pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + pub multisig: ::subxt::utils::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::events::StaticEvent for MultisigApproval { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigApproval"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A multisig operation has been executed. + pub struct MultisigExecuted { + pub approving: ::subxt::utils::AccountId32, + pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + pub multisig: ::subxt::utils::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + } + impl ::subxt::events::StaticEvent for MultisigExecuted { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigExecuted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A multisig operation has been cancelled. + pub struct MultisigCancelled { + pub cancelling: ::subxt::utils::AccountId32, + pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + pub multisig: ::subxt::utils::AccountId32, + pub call_hash: [::core::primitive::u8; 32usize], + } + impl ::subxt::events::StaticEvent for MultisigCancelled { + const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigCancelled"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The set of open multisig operations. + pub fn multisigs( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + _1: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_multisig::Multisig< + ::core::primitive::u64, + ::core::primitive::u128, + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Multisig", + "Multisigs", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 69u8, 190u8, 134u8, 80u8, 236u8, 248u8, 25u8, 153u8, 154u8, 71u8, + 192u8, 101u8, 159u8, 179u8, 0u8, 228u8, 93u8, 125u8, 99u8, 229u8, + 142u8, 117u8, 215u8, 149u8, 134u8, 13u8, 139u8, 251u8, 220u8, 251u8, + 2u8, 255u8, + ], + ) + } + /// The set of open multisig operations. + pub fn multisigs_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_multisig::Multisig< + ::core::primitive::u64, + ::core::primitive::u128, + ::subxt::utils::AccountId32, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Multisig", + "Multisigs", + Vec::new(), + [ + 69u8, 190u8, 134u8, 80u8, 236u8, 248u8, 25u8, 153u8, 154u8, 71u8, + 192u8, 101u8, 159u8, 179u8, 0u8, 228u8, 93u8, 125u8, 99u8, 229u8, + 142u8, 117u8, 215u8, 149u8, 134u8, 13u8, 139u8, 251u8, 220u8, 251u8, + 2u8, 255u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// The base amount of currency needed to reserve for creating a multisig execution + /// or to store a dispatch call for later. + /// + /// This is held for an additional storage item whose value size is + /// `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is + /// `32 + sizeof(AccountId)` bytes. + pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Multisig", + "DepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// The amount of currency needed per unit threshold when creating a multisig + /// execution. + /// + /// This is held for adding 32 bytes more into a pre-existing storage value. + pub fn deposit_factor( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u128> { + ::subxt::constants::Address::new_static( + "Multisig", + "DepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) + } + /// The maximum amount of signatories allowed in the multisig. + pub fn max_signatories( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Multisig", + "MaxSignatories", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod ethereum { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_ethereum::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_ethereum::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Transact { + pub transaction: runtime_types::ethereum::transaction::TransactionV2, + } + impl ::subxt::blocks::StaticExtrinsic for Transact { + const PALLET: &'static str = "Ethereum"; + const CALL: &'static str = "transact"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::transact`]. + pub fn transact( + &self, + transaction: runtime_types::ethereum::transaction::TransactionV2, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Ethereum", + "transact", + types::Transact { transaction }, + [ + 124u8, 9u8, 75u8, 222u8, 225u8, 49u8, 255u8, 53u8, 207u8, 220u8, 198u8, + 31u8, 26u8, 150u8, 238u8, 140u8, 230u8, 77u8, 248u8, 1u8, 97u8, 222u8, + 9u8, 32u8, 217u8, 160u8, 195u8, 4u8, 69u8, 210u8, 251u8, 109u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_ethereum::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///An ethereum transaction was successfully executed. + pub struct Executed { + pub from: ::subxt::utils::H160, + pub to: ::subxt::utils::H160, + pub transaction_hash: ::subxt::utils::H256, + pub exit_reason: runtime_types::evm_core::error::ExitReason, + pub extra_data: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for Executed { + const PALLET: &'static str = "Ethereum"; + const EVENT: &'static str = "Executed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Current building block's transactions and receipts. + pub fn pending( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<( + runtime_types::ethereum::transaction::TransactionV2, + runtime_types::fp_rpc::TransactionStatus, + runtime_types::ethereum::receipt::ReceiptV3, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Ethereum", + "Pending", + vec![], + [ + 249u8, 60u8, 121u8, 166u8, 91u8, 128u8, 146u8, 87u8, 240u8, 165u8, + 236u8, 61u8, 65u8, 140u8, 14u8, 203u8, 169u8, 102u8, 126u8, 247u8, + 245u8, 3u8, 166u8, 188u8, 144u8, 74u8, 13u8, 2u8, 244u8, 49u8, 223u8, + 198u8, + ], + ) + } + /// The current Ethereum block. + pub fn current_block( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::ethereum::block::Block< + runtime_types::ethereum::transaction::TransactionV2, + >, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Ethereum", + "CurrentBlock", + vec![], + [ + 54u8, 128u8, 41u8, 16u8, 65u8, 25u8, 184u8, 85u8, 192u8, 220u8, 208u8, + 92u8, 166u8, 132u8, 223u8, 50u8, 252u8, 112u8, 236u8, 217u8, 108u8, + 166u8, 131u8, 224u8, 141u8, 59u8, 248u8, 42u8, 197u8, 96u8, 240u8, + 88u8, + ], + ) + } + /// The current Ethereum receipts. + pub fn current_receipts( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Ethereum", + "CurrentReceipts", + vec![], + [ + 97u8, 46u8, 228u8, 135u8, 133u8, 148u8, 98u8, 3u8, 128u8, 26u8, 83u8, + 12u8, 33u8, 135u8, 88u8, 205u8, 147u8, 176u8, 13u8, 113u8, 148u8, 48u8, + 31u8, 200u8, 105u8, 224u8, 201u8, 225u8, 157u8, 108u8, 55u8, 209u8, + ], + ) + } + /// The current transaction statuses. + pub fn current_transaction_statuses( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Ethereum", + "CurrentTransactionStatuses", + vec![], + [ + 29u8, 20u8, 106u8, 243u8, 226u8, 102u8, 121u8, 20u8, 222u8, 53u8, 99u8, + 68u8, 173u8, 238u8, 167u8, 165u8, 192u8, 192u8, 230u8, 46u8, 231u8, + 88u8, 144u8, 159u8, 3u8, 171u8, 72u8, 125u8, 68u8, 66u8, 125u8, 165u8, + ], + ) + } + pub fn block_hash( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Ethereum", + "BlockHash", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 131u8, 87u8, 201u8, 82u8, 203u8, 241u8, 176u8, 149u8, 39u8, 243u8, + 227u8, 1u8, 86u8, 62u8, 6u8, 231u8, 55u8, 6u8, 212u8, 96u8, 207u8, + 73u8, 56u8, 204u8, 215u8, 227u8, 48u8, 249u8, 67u8, 137u8, 139u8, 76u8, + ], + ) + } + pub fn block_hash_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Ethereum", + "BlockHash", + Vec::new(), + [ + 131u8, 87u8, 201u8, 82u8, 203u8, 241u8, 176u8, 149u8, 39u8, 243u8, + 227u8, 1u8, 86u8, 62u8, 6u8, 231u8, 55u8, 6u8, 212u8, 96u8, 207u8, + 73u8, 56u8, 204u8, 215u8, 227u8, 48u8, 249u8, 67u8, 137u8, 139u8, 76u8, + ], + ) + } + } + } + } + pub mod evm { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_evm::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_evm::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Withdraw { + pub address: ::subxt::utils::H160, + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Withdraw { + const PALLET: &'static str = "EVM"; + const CALL: &'static str = "withdraw"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Call { + pub source: ::subxt::utils::H160, + pub target: ::subxt::utils::H160, + pub input: ::std::vec::Vec<::core::primitive::u8>, + pub value: runtime_types::primitive_types::U256, + pub gas_limit: ::core::primitive::u64, + pub max_fee_per_gas: runtime_types::primitive_types::U256, + pub max_priority_fee_per_gas: + ::core::option::Option, + pub nonce: ::core::option::Option, + pub access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for Call { + const PALLET: &'static str = "EVM"; + const CALL: &'static str = "call"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Create { + pub source: ::subxt::utils::H160, + pub init: ::std::vec::Vec<::core::primitive::u8>, + pub value: runtime_types::primitive_types::U256, + pub gas_limit: ::core::primitive::u64, + pub max_fee_per_gas: runtime_types::primitive_types::U256, + pub max_priority_fee_per_gas: + ::core::option::Option, + pub nonce: ::core::option::Option, + pub access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for Create { + const PALLET: &'static str = "EVM"; + const CALL: &'static str = "create"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Create2 { + pub source: ::subxt::utils::H160, + pub init: ::std::vec::Vec<::core::primitive::u8>, + pub salt: ::subxt::utils::H256, + pub value: runtime_types::primitive_types::U256, + pub gas_limit: ::core::primitive::u64, + pub max_fee_per_gas: runtime_types::primitive_types::U256, + pub max_priority_fee_per_gas: + ::core::option::Option, + pub nonce: ::core::option::Option, + pub access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for Create2 { + const PALLET: &'static str = "EVM"; + const CALL: &'static str = "create2"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::withdraw`]. + pub fn withdraw( + &self, + address: ::subxt::utils::H160, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "EVM", + "withdraw", + types::Withdraw { address, value }, + [ + 62u8, 162u8, 234u8, 15u8, 176u8, 61u8, 183u8, 203u8, 241u8, 10u8, + 202u8, 26u8, 45u8, 116u8, 38u8, 44u8, 32u8, 57u8, 208u8, 55u8, 182u8, + 92u8, 136u8, 133u8, 216u8, 255u8, 25u8, 132u8, 242u8, 34u8, 43u8, 64u8, + ], + ) + } + ///See [`Pallet::call`]. + pub fn call( + &self, + source: ::subxt::utils::H160, + target: ::subxt::utils::H160, + input: ::std::vec::Vec<::core::primitive::u8>, + value: runtime_types::primitive_types::U256, + gas_limit: ::core::primitive::u64, + max_fee_per_gas: runtime_types::primitive_types::U256, + max_priority_fee_per_gas: ::core::option::Option< + runtime_types::primitive_types::U256, + >, + nonce: ::core::option::Option, + access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "EVM", + "call", + types::Call { + source, + target, + input, + value, + gas_limit, + max_fee_per_gas, + max_priority_fee_per_gas, + nonce, + access_list, + }, + [ + 121u8, 179u8, 103u8, 152u8, 89u8, 27u8, 36u8, 13u8, 114u8, 246u8, + 222u8, 197u8, 249u8, 250u8, 241u8, 66u8, 219u8, 123u8, 126u8, 144u8, + 144u8, 213u8, 165u8, 25u8, 248u8, 129u8, 86u8, 34u8, 105u8, 145u8, + 85u8, 85u8, + ], + ) + } + ///See [`Pallet::create`]. + pub fn create( + &self, + source: ::subxt::utils::H160, + init: ::std::vec::Vec<::core::primitive::u8>, + value: runtime_types::primitive_types::U256, + gas_limit: ::core::primitive::u64, + max_fee_per_gas: runtime_types::primitive_types::U256, + max_priority_fee_per_gas: ::core::option::Option< + runtime_types::primitive_types::U256, + >, + nonce: ::core::option::Option, + access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "EVM", + "create", + types::Create { + source, + init, + value, + gas_limit, + max_fee_per_gas, + max_priority_fee_per_gas, + nonce, + access_list, + }, + [ + 231u8, 52u8, 103u8, 5u8, 29u8, 96u8, 200u8, 245u8, 151u8, 231u8, 111u8, + 150u8, 185u8, 126u8, 12u8, 42u8, 169u8, 92u8, 68u8, 130u8, 36u8, 11u8, + 234u8, 211u8, 199u8, 200u8, 45u8, 10u8, 53u8, 91u8, 226u8, 145u8, + ], + ) + } + ///See [`Pallet::create2`]. + pub fn create2( + &self, + source: ::subxt::utils::H160, + init: ::std::vec::Vec<::core::primitive::u8>, + salt: ::subxt::utils::H256, + value: runtime_types::primitive_types::U256, + gas_limit: ::core::primitive::u64, + max_fee_per_gas: runtime_types::primitive_types::U256, + max_priority_fee_per_gas: ::core::option::Option< + runtime_types::primitive_types::U256, + >, + nonce: ::core::option::Option, + access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "EVM", + "create2", + types::Create2 { + source, + init, + salt, + value, + gas_limit, + max_fee_per_gas, + max_priority_fee_per_gas, + nonce, + access_list, + }, + [ + 73u8, 157u8, 32u8, 232u8, 164u8, 93u8, 191u8, 129u8, 171u8, 104u8, + 212u8, 108u8, 167u8, 5u8, 61u8, 171u8, 247u8, 97u8, 122u8, 162u8, + 102u8, 152u8, 224u8, 130u8, 94u8, 112u8, 115u8, 68u8, 249u8, 215u8, + 233u8, 115u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_evm::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Ethereum events from contracts. + pub struct Log { + pub log: runtime_types::ethereum::log::Log, + } + impl ::subxt::events::StaticEvent for Log { + const PALLET: &'static str = "EVM"; + const EVENT: &'static str = "Log"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A contract has been created at given address. + pub struct Created { + pub address: ::subxt::utils::H160, + } + impl ::subxt::events::StaticEvent for Created { + const PALLET: &'static str = "EVM"; + const EVENT: &'static str = "Created"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A contract was attempted to be created, but the execution failed. + pub struct CreatedFailed { + pub address: ::subxt::utils::H160, + } + impl ::subxt::events::StaticEvent for CreatedFailed { + const PALLET: &'static str = "EVM"; + const EVENT: &'static str = "CreatedFailed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A contract has been executed successfully with states applied. + pub struct Executed { + pub address: ::subxt::utils::H160, + } + impl ::subxt::events::StaticEvent for Executed { + const PALLET: &'static str = "EVM"; + const EVENT: &'static str = "Executed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A contract has been executed with errors. States are reverted with only gas fees + /// applied. + pub struct ExecutedFailed { + pub address: ::subxt::utils::H160, + } + impl ::subxt::events::StaticEvent for ExecutedFailed { + const PALLET: &'static str = "EVM"; + const EVENT: &'static str = "ExecutedFailed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn account_codes( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H160>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "EVM", + "AccountCodes", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 49u8, 73u8, 188u8, 164u8, 3u8, 40u8, 187u8, 216u8, 70u8, 119u8, 176u8, + 187u8, 76u8, 24u8, 49u8, 174u8, 54u8, 98u8, 208u8, 255u8, 38u8, 214u8, + 120u8, 116u8, 130u8, 139u8, 44u8, 102u8, 115u8, 222u8, 63u8, 56u8, + ], + ) + } + pub fn account_codes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::std::vec::Vec<::core::primitive::u8>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "EVM", + "AccountCodes", + Vec::new(), + [ + 49u8, 73u8, 188u8, 164u8, 3u8, 40u8, 187u8, 216u8, 70u8, 119u8, 176u8, + 187u8, 76u8, 24u8, 49u8, 174u8, 54u8, 98u8, 208u8, 255u8, 38u8, 214u8, + 120u8, 116u8, 130u8, 139u8, 44u8, 102u8, 115u8, 222u8, 63u8, 56u8, + ], + ) + } + pub fn account_codes_metadata( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H160>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_evm::CodeMetadata, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "EVM", + "AccountCodesMetadata", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 17u8, 83u8, 22u8, 15u8, 158u8, 242u8, 39u8, 174u8, 61u8, 230u8, 0u8, + 161u8, 173u8, 242u8, 155u8, 156u8, 149u8, 108u8, 47u8, 129u8, 190u8, + 223u8, 25u8, 235u8, 168u8, 86u8, 49u8, 118u8, 132u8, 93u8, 100u8, + 173u8, + ], + ) + } + pub fn account_codes_metadata_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_evm::CodeMetadata, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "EVM", + "AccountCodesMetadata", + Vec::new(), + [ + 17u8, 83u8, 22u8, 15u8, 158u8, 242u8, 39u8, 174u8, 61u8, 230u8, 0u8, + 161u8, 173u8, 242u8, 155u8, 156u8, 149u8, 108u8, 47u8, 129u8, 190u8, + 223u8, 25u8, 235u8, 168u8, 86u8, 49u8, 118u8, 132u8, 93u8, 100u8, + 173u8, + ], + ) + } + pub fn account_storages( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H160>, + _1: impl ::std::borrow::Borrow<::subxt::utils::H256>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "EVM", + "AccountStorages", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 63u8, 69u8, 109u8, 3u8, 190u8, 233u8, 39u8, 122u8, 94u8, 37u8, 74u8, + 90u8, 197u8, 191u8, 12u8, 119u8, 165u8, 61u8, 217u8, 15u8, 36u8, 167u8, + 211u8, 120u8, 169u8, 97u8, 13u8, 38u8, 148u8, 224u8, 167u8, 199u8, + ], + ) + } + pub fn account_storages_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "EVM", + "AccountStorages", + Vec::new(), + [ + 63u8, 69u8, 109u8, 3u8, 190u8, 233u8, 39u8, 122u8, 94u8, 37u8, 74u8, + 90u8, 197u8, 191u8, 12u8, 119u8, 165u8, 61u8, 217u8, 15u8, 36u8, 167u8, + 211u8, 120u8, 169u8, 97u8, 13u8, 38u8, 148u8, 224u8, 167u8, 199u8, + ], + ) + } + pub fn suicided( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::H160>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "EVM", + "Suicided", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 5u8, 137u8, 180u8, 131u8, 216u8, 217u8, 148u8, 127u8, 9u8, 159u8, 14u8, + 25u8, 56u8, 99u8, 55u8, 151u8, 140u8, 143u8, 188u8, 172u8, 33u8, 91u8, + 42u8, 59u8, 104u8, 94u8, 215u8, 41u8, 224u8, 118u8, 190u8, 249u8, + ], + ) + } + pub fn suicided_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + (), + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "EVM", + "Suicided", + Vec::new(), + [ + 5u8, 137u8, 180u8, 131u8, 216u8, 217u8, 148u8, 127u8, 9u8, 159u8, 14u8, + 25u8, 56u8, 99u8, 55u8, 151u8, 140u8, 143u8, 188u8, 172u8, 33u8, 91u8, + 42u8, 59u8, 104u8, 94u8, 215u8, 41u8, 224u8, 118u8, 190u8, 249u8, + ], + ) + } + } + } + } + pub mod evm_chain_id { + use super::{root_mod, runtime_types}; + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// The EVM chain ID. + pub fn chain_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "EVMChainId", + "ChainId", + vec![], + [ + 250u8, 158u8, 90u8, 220u8, 184u8, 126u8, 207u8, 222u8, 62u8, 226u8, + 144u8, 204u8, 19u8, 136u8, 127u8, 5u8, 135u8, 48u8, 234u8, 138u8, + 216u8, 103u8, 28u8, 140u8, 193u8, 197u8, 142u8, 22u8, 159u8, 16u8, + 225u8, 255u8, + ], + ) + } + } + } + } + pub mod dynamic_fee { + use super::{root_mod, runtime_types}; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_dynamic_fee::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NoteMinGasPriceTarget { + pub target: runtime_types::primitive_types::U256, + } + impl ::subxt::blocks::StaticExtrinsic for NoteMinGasPriceTarget { + const PALLET: &'static str = "DynamicFee"; + const CALL: &'static str = "note_min_gas_price_target"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::note_min_gas_price_target`]. + pub fn note_min_gas_price_target( + &self, + target: runtime_types::primitive_types::U256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "DynamicFee", + "note_min_gas_price_target", + types::NoteMinGasPriceTarget { target }, + [ + 195u8, 135u8, 128u8, 209u8, 249u8, 41u8, 223u8, 153u8, 197u8, 51u8, + 194u8, 204u8, 79u8, 173u8, 113u8, 25u8, 6u8, 153u8, 167u8, 20u8, 24u8, + 86u8, 205u8, 157u8, 213u8, 248u8, 52u8, 247u8, 209u8, 0u8, 17u8, 171u8, + ], + ) + } + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn min_gas_price( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitive_types::U256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "DynamicFee", + "MinGasPrice", + vec![], + [ + 135u8, 244u8, 108u8, 147u8, 120u8, 36u8, 33u8, 200u8, 200u8, 249u8, + 110u8, 39u8, 180u8, 17u8, 231u8, 219u8, 95u8, 60u8, 227u8, 68u8, 150u8, + 151u8, 67u8, 45u8, 235u8, 130u8, 4u8, 244u8, 35u8, 112u8, 69u8, 119u8, + ], + ) + } + pub fn target_min_gas_price( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitive_types::U256, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "DynamicFee", + "TargetMinGasPrice", + vec![], + [ + 219u8, 94u8, 37u8, 223u8, 148u8, 89u8, 16u8, 136u8, 218u8, 154u8, 54u8, + 94u8, 202u8, 5u8, 82u8, 185u8, 235u8, 239u8, 152u8, 206u8, 203u8, 71u8, + 237u8, 200u8, 28u8, 250u8, 217u8, 29u8, 132u8, 255u8, 78u8, 94u8, + ], + ) + } + } + } + } + pub mod base_fee { + use super::{root_mod, runtime_types}; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_base_fee::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetBaseFeePerGas { + pub fee: runtime_types::primitive_types::U256, + } + impl ::subxt::blocks::StaticExtrinsic for SetBaseFeePerGas { + const PALLET: &'static str = "BaseFee"; + const CALL: &'static str = "set_base_fee_per_gas"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetElasticity { + pub elasticity: runtime_types::sp_arithmetic::per_things::Permill, + } + impl ::subxt::blocks::StaticExtrinsic for SetElasticity { + const PALLET: &'static str = "BaseFee"; + const CALL: &'static str = "set_elasticity"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::set_base_fee_per_gas`]. + pub fn set_base_fee_per_gas( + &self, + fee: runtime_types::primitive_types::U256, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "BaseFee", + "set_base_fee_per_gas", + types::SetBaseFeePerGas { fee }, + [ + 126u8, 236u8, 128u8, 184u8, 42u8, 39u8, 13u8, 175u8, 155u8, 36u8, + 229u8, 20u8, 13u8, 15u8, 88u8, 56u8, 206u8, 44u8, 127u8, 182u8, 120u8, + 212u8, 35u8, 72u8, 100u8, 181u8, 64u8, 200u8, 63u8, 129u8, 167u8, + 132u8, + ], + ) + } + ///See [`Pallet::set_elasticity`]. + pub fn set_elasticity( + &self, + elasticity: runtime_types::sp_arithmetic::per_things::Permill, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "BaseFee", + "set_elasticity", + types::SetElasticity { elasticity }, + [ + 209u8, 8u8, 19u8, 35u8, 199u8, 151u8, 122u8, 91u8, 181u8, 133u8, 162u8, + 167u8, 186u8, 150u8, 54u8, 83u8, 101u8, 180u8, 188u8, 136u8, 111u8, + 100u8, 76u8, 51u8, 118u8, 171u8, 15u8, 75u8, 120u8, 106u8, 37u8, 1u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_base_fee::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NewBaseFeePerGas { + pub fee: runtime_types::primitive_types::U256, + } + impl ::subxt::events::StaticEvent for NewBaseFeePerGas { + const PALLET: &'static str = "BaseFee"; + const EVENT: &'static str = "NewBaseFeePerGas"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BaseFeeOverflow; + impl ::subxt::events::StaticEvent for BaseFeeOverflow { + const PALLET: &'static str = "BaseFee"; + const EVENT: &'static str = "BaseFeeOverflow"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NewElasticity { + pub elasticity: runtime_types::sp_arithmetic::per_things::Permill, + } + impl ::subxt::events::StaticEvent for NewElasticity { + const PALLET: &'static str = "BaseFee"; + const EVENT: &'static str = "NewElasticity"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn base_fee_per_gas( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::primitive_types::U256, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "BaseFee", + "BaseFeePerGas", + vec![], + [ + 72u8, 143u8, 208u8, 233u8, 10u8, 122u8, 20u8, 183u8, 203u8, 61u8, + 240u8, 154u8, 28u8, 65u8, 239u8, 220u8, 205u8, 19u8, 227u8, 113u8, + 146u8, 90u8, 234u8, 209u8, 113u8, 169u8, 216u8, 194u8, 189u8, 0u8, + 154u8, 144u8, + ], + ) + } + pub fn elasticity( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Permill, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "BaseFee", + "Elasticity", + vec![], + [ + 219u8, 23u8, 184u8, 17u8, 59u8, 152u8, 197u8, 61u8, 167u8, 131u8, + 124u8, 42u8, 70u8, 42u8, 101u8, 54u8, 11u8, 206u8, 96u8, 165u8, 30u8, + 76u8, 2u8, 64u8, 58u8, 49u8, 74u8, 97u8, 109u8, 222u8, 75u8, 234u8, + ], + ) + } + } + } + } + pub mod hotfix_sufficients { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_hotfix_sufficients::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_hotfix_sufficients::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct HotfixIncAccountSufficients { + pub addresses: ::std::vec::Vec<::subxt::utils::H160>, + } + impl ::subxt::blocks::StaticExtrinsic for HotfixIncAccountSufficients { + const PALLET: &'static str = "HotfixSufficients"; + const CALL: &'static str = "hotfix_inc_account_sufficients"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::hotfix_inc_account_sufficients`]. + pub fn hotfix_inc_account_sufficients( + &self, + addresses: ::std::vec::Vec<::subxt::utils::H160>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "HotfixSufficients", + "hotfix_inc_account_sufficients", + types::HotfixIncAccountSufficients { addresses }, + [ + 135u8, 117u8, 192u8, 209u8, 218u8, 115u8, 124u8, 21u8, 78u8, 250u8, + 55u8, 209u8, 86u8, 92u8, 17u8, 196u8, 209u8, 131u8, 185u8, 20u8, 166u8, + 25u8, 175u8, 119u8, 21u8, 155u8, 139u8, 112u8, 128u8, 35u8, 223u8, + 195u8, + ], + ) + } + } + } + } + pub mod claims { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_airdrop_claims::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_airdrop_claims::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Claim { + pub dest: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + pub signer: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + pub signature: + runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature, + } + impl ::subxt::blocks::StaticExtrinsic for Claim { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "claim"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MintClaim { + pub who: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + pub value: ::core::primitive::u128, + pub vesting_schedule: ::core::option::Option< + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u64, + )>, + >, + pub statement: + ::core::option::Option, + } + impl ::subxt::blocks::StaticExtrinsic for MintClaim { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "mint_claim"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClaimAttest { + pub dest: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + pub signer: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + pub signature: + runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature, + pub statement: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimAttest { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "claim_attest"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MoveClaim { + pub old: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + pub new: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + } + impl ::subxt::blocks::StaticExtrinsic for MoveClaim { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "move_claim"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceSetExpiryConfig { + pub expiry_block: ::core::primitive::u64, + pub dest: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + } + impl ::subxt::blocks::StaticExtrinsic for ForceSetExpiryConfig { + const PALLET: &'static str = "Claims"; + const CALL: &'static str = "force_set_expiry_config"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::claim`]. + pub fn claim( + &self, + dest: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + signer: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + signature: runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Claims", + "claim", + types::Claim { dest, signer, signature }, + [ + 179u8, 122u8, 199u8, 92u8, 100u8, 225u8, 109u8, 4u8, 235u8, 4u8, 141u8, + 223u8, 155u8, 237u8, 212u8, 236u8, 195u8, 253u8, 224u8, 107u8, 217u8, + 181u8, 55u8, 161u8, 211u8, 251u8, 32u8, 110u8, 117u8, 29u8, 12u8, 81u8, + ], + ) + } + ///See [`Pallet::mint_claim`]. + pub fn mint_claim( + &self, + who: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + value: ::core::primitive::u128, + vesting_schedule: ::core::option::Option< + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u64, + )>, + >, + statement: ::core::option::Option< + runtime_types::pallet_airdrop_claims::StatementKind, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Claims", + "mint_claim", + types::MintClaim { who, value, vesting_schedule, statement }, + [ + 242u8, 253u8, 106u8, 199u8, 247u8, 60u8, 244u8, 130u8, 62u8, 97u8, + 108u8, 22u8, 29u8, 146u8, 25u8, 16u8, 185u8, 223u8, 212u8, 253u8, + 117u8, 169u8, 156u8, 186u8, 58u8, 11u8, 116u8, 255u8, 197u8, 172u8, + 78u8, 58u8, + ], + ) + } + ///See [`Pallet::claim_attest`]. + pub fn claim_attest( + &self, + dest: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + signer: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + signature: runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature, + statement: ::std::vec::Vec<::core::primitive::u8>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Claims", + "claim_attest", + types::ClaimAttest { dest, signer, signature, statement }, + [ + 136u8, 113u8, 8u8, 143u8, 192u8, 60u8, 29u8, 118u8, 8u8, 99u8, 46u8, + 66u8, 17u8, 40u8, 193u8, 222u8, 56u8, 241u8, 22u8, 1u8, 174u8, 142u8, + 232u8, 89u8, 231u8, 239u8, 123u8, 213u8, 22u8, 63u8, 180u8, 14u8, + ], + ) + } + ///See [`Pallet::move_claim`]. + pub fn move_claim( + &self, + old: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + new: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Claims", + "move_claim", + types::MoveClaim { old, new }, + [ + 158u8, 85u8, 19u8, 154u8, 152u8, 57u8, 252u8, 225u8, 31u8, 9u8, 80u8, + 0u8, 17u8, 78u8, 224u8, 34u8, 255u8, 2u8, 53u8, 220u8, 242u8, 220u8, + 185u8, 48u8, 155u8, 1u8, 71u8, 53u8, 112u8, 111u8, 5u8, 42u8, + ], + ) + } + ///See [`Pallet::force_set_expiry_config`]. + pub fn force_set_expiry_config( + &self, + expiry_block: ::core::primitive::u64, + dest: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Claims", + "force_set_expiry_config", + types::ForceSetExpiryConfig { expiry_block, dest }, + [ + 102u8, 135u8, 138u8, 85u8, 68u8, 159u8, 220u8, 113u8, 148u8, 11u8, + 123u8, 91u8, 3u8, 149u8, 37u8, 92u8, 153u8, 156u8, 210u8, 174u8, 145u8, + 192u8, 149u8, 238u8, 53u8, 217u8, 190u8, 157u8, 224u8, 188u8, 7u8, + 92u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_airdrop_claims::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Someone claimed some native tokens. + pub struct Claimed { + pub recipient: ::subxt::utils::AccountId32, + pub source: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Claimed { + const PALLET: &'static str = "Claims"; + const EVENT: &'static str = "Claimed"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn claims( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Claims", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 175u8, 97u8, 79u8, 164u8, 220u8, 228u8, 14u8, 49u8, 136u8, 218u8, 96u8, + 209u8, 66u8, 54u8, 156u8, 95u8, 86u8, 234u8, 219u8, 166u8, 181u8, 93u8, + 48u8, 201u8, 147u8, 253u8, 55u8, 28u8, 8u8, 81u8, 204u8, 255u8, + ], + ) + } + pub fn claims_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Claims", + Vec::new(), + [ + 175u8, 97u8, 79u8, 164u8, 220u8, 228u8, 14u8, 49u8, 136u8, 218u8, 96u8, + 209u8, 66u8, 54u8, 156u8, 95u8, 86u8, 234u8, 219u8, 166u8, 181u8, 93u8, + 48u8, 201u8, 147u8, 253u8, 55u8, 28u8, 8u8, 81u8, 204u8, 255u8, + ], + ) + } + pub fn total( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Total", + vec![], + [ + 188u8, 31u8, 219u8, 189u8, 49u8, 213u8, 203u8, 89u8, 125u8, 58u8, + 232u8, 159u8, 131u8, 155u8, 166u8, 113u8, 99u8, 24u8, 40u8, 242u8, + 118u8, 183u8, 108u8, 230u8, 135u8, 150u8, 84u8, 86u8, 118u8, 91u8, + 168u8, 62u8, + ], + ) + } + /// Expiry block and account to deposit expired funds + pub fn expiry_config( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ( + ::core::primitive::u64, + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + ), + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "ExpiryConfig", + vec![], + [ + 104u8, 249u8, 22u8, 81u8, 1u8, 147u8, 78u8, 127u8, 228u8, 229u8, 17u8, + 129u8, 253u8, 171u8, 42u8, 125u8, 147u8, 73u8, 241u8, 242u8, 199u8, + 44u8, 67u8, 51u8, 206u8, 29u8, 127u8, 229u8, 218u8, 160u8, 132u8, 24u8, + ], + ) + } + /// Vesting schedule for a claim. + /// First balance is the total amount that should be held for vesting. + /// Second balance is how much should be unlocked per block. + /// The block number is when the vesting should start. + pub fn vesting( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u64, + )>, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Vesting", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 166u8, 245u8, 205u8, 165u8, 58u8, 90u8, 122u8, 157u8, 28u8, 220u8, + 114u8, 22u8, 73u8, 221u8, 230u8, 238u8, 57u8, 16u8, 66u8, 5u8, 63u8, + 105u8, 184u8, 141u8, 99u8, 116u8, 130u8, 150u8, 180u8, 165u8, 119u8, + 35u8, + ], + ) + } + /// Vesting schedule for a claim. + /// First balance is the total amount that should be held for vesting. + /// Second balance is how much should be unlocked per block. + /// The block number is when the vesting should start. + pub fn vesting_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u64, + )>, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Vesting", + Vec::new(), + [ + 166u8, 245u8, 205u8, 165u8, 58u8, 90u8, 122u8, 157u8, 28u8, 220u8, + 114u8, 22u8, 73u8, 221u8, 230u8, 238u8, 57u8, 16u8, 66u8, 5u8, 63u8, + 105u8, 184u8, 141u8, 99u8, 116u8, 130u8, 150u8, 180u8, 165u8, 119u8, + 35u8, + ], + ) + } + /// The statement kind that must be signed, if any. + pub fn signing( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_airdrop_claims::StatementKind, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Signing", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 210u8, 2u8, 184u8, 130u8, 98u8, 38u8, 101u8, 191u8, 250u8, 166u8, + 246u8, 153u8, 175u8, 181u8, 174u8, 232u8, 58u8, 4u8, 40u8, 112u8, 68u8, + 213u8, 124u8, 49u8, 250u8, 95u8, 49u8, 122u8, 144u8, 206u8, 57u8, 51u8, + ], + ) + } + /// The statement kind that must be signed, if any. + pub fn signing_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_airdrop_claims::StatementKind, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Claims", + "Signing", + Vec::new(), + [ + 210u8, 2u8, 184u8, 130u8, 98u8, 38u8, 101u8, 191u8, 250u8, 166u8, + 246u8, 153u8, 175u8, 181u8, 174u8, 232u8, 58u8, 4u8, 40u8, 112u8, 68u8, + 213u8, 124u8, 49u8, 250u8, 95u8, 49u8, 122u8, 144u8, 206u8, 57u8, 51u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn prefix( + &self, + ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u8>> { + ::subxt::constants::Address::new_static( + "Claims", + "Prefix", + [ + 64u8, 190u8, 244u8, 122u8, 87u8, 182u8, 217u8, 16u8, 55u8, 223u8, + 128u8, 6u8, 112u8, 30u8, 236u8, 222u8, 153u8, 53u8, 247u8, 102u8, + 196u8, 31u8, 6u8, 186u8, 251u8, 209u8, 114u8, 125u8, 213u8, 222u8, + 240u8, 8u8, + ], + ) + } + } + } + } + pub mod eth2_client { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_eth2_light_client::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_eth2_light_client::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Init { + pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub args: ::std::boxed::Box< + runtime_types::eth_types::pallet::InitInput<::subxt::utils::AccountId32>, + >, + } + impl ::subxt::blocks::StaticExtrinsic for Init { + const PALLET: &'static str = "Eth2Client"; + const CALL: &'static str = "init"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitBeaconChainLightClientUpdate { + pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub light_client_update: runtime_types::eth_types::eth2::LightClientUpdate, + } + impl ::subxt::blocks::StaticExtrinsic for SubmitBeaconChainLightClientUpdate { + const PALLET: &'static str = "Eth2Client"; + const CALL: &'static str = "submit_beacon_chain_light_client_update"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitExecutionHeader { + pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub block_header: runtime_types::eth_types::BlockHeader, + } + impl ::subxt::blocks::StaticExtrinsic for SubmitExecutionHeader { + const PALLET: &'static str = "Eth2Client"; + const CALL: &'static str = "submit_execution_header"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpdateTrustedSigner { + pub trusted_signer: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for UpdateTrustedSigner { + const PALLET: &'static str = "Eth2Client"; + const CALL: &'static str = "update_trusted_signer"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::init`]. + pub fn init( + &self, + typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + args: runtime_types::eth_types::pallet::InitInput<::subxt::utils::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Eth2Client", + "init", + types::Init { typed_chain_id, args: ::std::boxed::Box::new(args) }, + [ + 98u8, 124u8, 40u8, 241u8, 126u8, 79u8, 129u8, 32u8, 170u8, 193u8, 2u8, + 183u8, 28u8, 3u8, 32u8, 41u8, 232u8, 131u8, 123u8, 92u8, 21u8, 106u8, + 157u8, 76u8, 47u8, 117u8, 55u8, 253u8, 103u8, 129u8, 224u8, 235u8, + ], + ) + } + ///See [`Pallet::submit_beacon_chain_light_client_update`]. + pub fn submit_beacon_chain_light_client_update( + &self, + typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + light_client_update: runtime_types::eth_types::eth2::LightClientUpdate, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Eth2Client", + "submit_beacon_chain_light_client_update", + types::SubmitBeaconChainLightClientUpdate { + typed_chain_id, + light_client_update, + }, + [ + 217u8, 94u8, 214u8, 232u8, 174u8, 193u8, 56u8, 74u8, 153u8, 251u8, + 146u8, 199u8, 5u8, 198u8, 120u8, 154u8, 6u8, 165u8, 91u8, 11u8, 92u8, + 0u8, 136u8, 170u8, 250u8, 82u8, 128u8, 11u8, 92u8, 203u8, 206u8, 52u8, + ], + ) + } + ///See [`Pallet::submit_execution_header`]. + pub fn submit_execution_header( + &self, + typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + block_header: runtime_types::eth_types::BlockHeader, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Eth2Client", + "submit_execution_header", + types::SubmitExecutionHeader { typed_chain_id, block_header }, + [ + 198u8, 5u8, 153u8, 166u8, 19u8, 13u8, 111u8, 19u8, 173u8, 138u8, 249u8, + 64u8, 135u8, 222u8, 199u8, 3u8, 215u8, 252u8, 45u8, 51u8, 248u8, 97u8, + 39u8, 166u8, 74u8, 199u8, 186u8, 158u8, 174u8, 147u8, 117u8, 233u8, + ], + ) + } + ///See [`Pallet::update_trusted_signer`]. + pub fn update_trusted_signer( + &self, + trusted_signer: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Eth2Client", + "update_trusted_signer", + types::UpdateTrustedSigner { trusted_signer }, + [ + 135u8, 127u8, 171u8, 28u8, 199u8, 19u8, 175u8, 128u8, 88u8, 130u8, + 38u8, 205u8, 75u8, 117u8, 25u8, 185u8, 27u8, 122u8, 93u8, 169u8, 210u8, + 246u8, 87u8, 174u8, 15u8, 61u8, 152u8, 173u8, 27u8, 4u8, 172u8, 194u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_eth2_light_client::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Init { + pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub header_info: runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, + } + impl ::subxt::events::StaticEvent for Init { + const PALLET: &'static str = "Eth2Client"; + const EVENT: &'static str = "Init"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitBeaconChainLightClientUpdate { + pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub submitter: ::subxt::utils::AccountId32, + pub beacon_block_header: runtime_types::eth_types::eth2::BeaconBlockHeader, + } + impl ::subxt::events::StaticEvent for SubmitBeaconChainLightClientUpdate { + const PALLET: &'static str = "Eth2Client"; + const EVENT: &'static str = "SubmitBeaconChainLightClientUpdate"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitExecutionHeader { + pub typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + pub header_info: ::std::boxed::Box, + } + impl ::subxt::events::StaticEvent for SubmitExecutionHeader { + const PALLET: &'static str = "Eth2Client"; + const EVENT: &'static str = "SubmitExecutionHeader"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpdateTrustedSigner { + pub trusted_signer: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for UpdateTrustedSigner { + const PALLET: &'static str = "Eth2Client"; + const EVENT: &'static str = "UpdateTrustedSigner"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// If set, only light client updates by the trusted signer will be accepted + pub fn trusted_signer( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::AccountId32, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "TrustedSigner", + vec![], + [ + 21u8, 189u8, 0u8, 45u8, 62u8, 32u8, 95u8, 123u8, 212u8, 22u8, 46u8, + 86u8, 77u8, 59u8, 244u8, 58u8, 71u8, 37u8, 128u8, 236u8, 255u8, 63u8, + 167u8, 111u8, 213u8, 109u8, 43u8, 161u8, 205u8, 37u8, 83u8, 187u8, + ], + ) + } + /// Mask determining all paused functions + pub fn paused( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "Paused", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 225u8, 146u8, 19u8, 187u8, 155u8, 149u8, 130u8, 19u8, 61u8, 74u8, 60u8, + 218u8, 126u8, 208u8, 229u8, 177u8, 155u8, 107u8, 69u8, 183u8, 158u8, + 145u8, 217u8, 151u8, 190u8, 47u8, 198u8, 94u8, 139u8, 150u8, 136u8, + 57u8, + ], + ) + } + /// Mask determining all paused functions + pub fn paused_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "Paused", + Vec::new(), + [ + 225u8, 146u8, 19u8, 187u8, 155u8, 149u8, 130u8, 19u8, 61u8, 74u8, 60u8, + 218u8, 126u8, 208u8, 229u8, 177u8, 155u8, 107u8, 69u8, 183u8, 158u8, + 145u8, 217u8, 151u8, 190u8, 47u8, 198u8, 94u8, 139u8, 150u8, 136u8, + 57u8, + ], + ) + } + /// Whether the client validates the updates. + /// Should only be set to `false` for debugging, testing, and diagnostic purposes + pub fn validate_updates( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "ValidateUpdates", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 189u8, 162u8, 106u8, 20u8, 86u8, 190u8, 123u8, 206u8, 225u8, 161u8, + 100u8, 79u8, 209u8, 254u8, 106u8, 48u8, 61u8, 70u8, 254u8, 192u8, + 127u8, 158u8, 81u8, 38u8, 232u8, 142u8, 45u8, 51u8, 177u8, 142u8, + 131u8, 140u8, + ], + ) + } + /// Whether the client validates the updates. + /// Should only be set to `false` for debugging, testing, and diagnostic purposes + pub fn validate_updates_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "ValidateUpdates", + Vec::new(), + [ + 189u8, 162u8, 106u8, 20u8, 86u8, 190u8, 123u8, 206u8, 225u8, 161u8, + 100u8, 79u8, 209u8, 254u8, 106u8, 48u8, 61u8, 70u8, 254u8, 192u8, + 127u8, 158u8, 81u8, 38u8, 232u8, 142u8, 45u8, 51u8, 177u8, 142u8, + 131u8, 140u8, + ], + ) + } + /// Whether the client verifies BLS signatures. + pub fn verify_bls_signatures( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "VerifyBlsSignatures", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 21u8, 142u8, 206u8, 88u8, 194u8, 10u8, 146u8, 182u8, 242u8, 12u8, + 253u8, 182u8, 226u8, 254u8, 12u8, 216u8, 63u8, 14u8, 63u8, 24u8, 219u8, + 236u8, 185u8, 12u8, 3u8, 175u8, 58u8, 198u8, 126u8, 142u8, 193u8, + 106u8, + ], + ) + } + /// Whether the client verifies BLS signatures. + pub fn verify_bls_signatures_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::bool, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "VerifyBlsSignatures", + Vec::new(), + [ + 21u8, 142u8, 206u8, 88u8, 194u8, 10u8, 146u8, 182u8, 242u8, 12u8, + 253u8, 182u8, 226u8, 254u8, 12u8, 216u8, 63u8, 14u8, 63u8, 24u8, 219u8, + 236u8, 185u8, 12u8, 3u8, 175u8, 58u8, 198u8, 126u8, 142u8, 193u8, + 106u8, + ], + ) + } + /// We store the hashes of the blocks for the past `hashes_gc_threshold` headers. + /// Events that happen past this threshold cannot be verified by the client. + /// It is desirable that this number is larger than 7 days' worth of headers, which + /// is roughly 51k Ethereum blocks. So this number should be 51k in production. + pub fn hashes_gc_threshold( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "HashesGcThreshold", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 245u8, 179u8, 52u8, 219u8, 221u8, 120u8, 155u8, 114u8, 229u8, 82u8, + 110u8, 133u8, 238u8, 55u8, 253u8, 189u8, 54u8, 171u8, 24u8, 53u8, + 122u8, 58u8, 41u8, 160u8, 101u8, 222u8, 185u8, 0u8, 172u8, 172u8, 33u8, + 123u8, + ], + ) + } + /// We store the hashes of the blocks for the past `hashes_gc_threshold` headers. + /// Events that happen past this threshold cannot be verified by the client. + /// It is desirable that this number is larger than 7 days' worth of headers, which + /// is roughly 51k Ethereum blocks. So this number should be 51k in production. + pub fn hashes_gc_threshold_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "HashesGcThreshold", + Vec::new(), + [ + 245u8, 179u8, 52u8, 219u8, 221u8, 120u8, 155u8, 114u8, 229u8, 82u8, + 110u8, 133u8, 238u8, 55u8, 253u8, 189u8, 54u8, 171u8, 24u8, 53u8, + 122u8, 58u8, 41u8, 160u8, 101u8, 222u8, 185u8, 0u8, 172u8, 172u8, 33u8, + 123u8, + ], + ) + } + /// Hashes of the finalized execution blocks mapped to their numbers. Stores up to + /// `hashes_gc_threshold` entries. Execution block number -> execution block hash + pub fn finalized_execution_blocks( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::H256, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "FinalizedExecutionBlocks", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 58u8, 52u8, 188u8, 229u8, 224u8, 150u8, 173u8, 152u8, 158u8, 164u8, + 188u8, 5u8, 37u8, 191u8, 130u8, 242u8, 145u8, 30u8, 58u8, 57u8, 171u8, + 225u8, 250u8, 173u8, 244u8, 246u8, 116u8, 74u8, 122u8, 76u8, 24u8, + 101u8, + ], + ) + } + /// Hashes of the finalized execution blocks mapped to their numbers. Stores up to + /// `hashes_gc_threshold` entries. Execution block number -> execution block hash + pub fn finalized_execution_blocks_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::H256, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "FinalizedExecutionBlocks", + Vec::new(), + [ + 58u8, 52u8, 188u8, 229u8, 224u8, 150u8, 173u8, 152u8, 158u8, 164u8, + 188u8, 5u8, 37u8, 191u8, 130u8, 242u8, 145u8, 30u8, 58u8, 57u8, 171u8, + 225u8, 250u8, 173u8, 244u8, 246u8, 116u8, 74u8, 122u8, 76u8, 24u8, + 101u8, + ], + ) + } + /// Light client state + pub fn finalized_beacon_header( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::eth2::ExtendedBeaconBlockHeader, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "FinalizedBeaconHeader", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 106u8, 40u8, 18u8, 213u8, 11u8, 188u8, 147u8, 101u8, 46u8, 215u8, + 236u8, 85u8, 212u8, 81u8, 91u8, 116u8, 154u8, 199u8, 187u8, 141u8, + 142u8, 99u8, 71u8, 32u8, 199u8, 234u8, 53u8, 238u8, 37u8, 50u8, 220u8, + 0u8, + ], + ) + } + /// Light client state + pub fn finalized_beacon_header_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::eth2::ExtendedBeaconBlockHeader, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "FinalizedBeaconHeader", + Vec::new(), + [ + 106u8, 40u8, 18u8, 213u8, 11u8, 188u8, 147u8, 101u8, 46u8, 215u8, + 236u8, 85u8, 212u8, 81u8, 91u8, 116u8, 154u8, 199u8, 187u8, 141u8, + 142u8, 99u8, 71u8, 32u8, 199u8, 234u8, 53u8, 238u8, 37u8, 50u8, 220u8, + 0u8, + ], + ) + } + pub fn finalized_execution_header( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "FinalizedExecutionHeader", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 90u8, 53u8, 119u8, 191u8, 19u8, 61u8, 75u8, 20u8, 10u8, 121u8, 54u8, + 202u8, 139u8, 253u8, 100u8, 36u8, 81u8, 225u8, 174u8, 29u8, 255u8, + 191u8, 36u8, 96u8, 155u8, 210u8, 168u8, 167u8, 64u8, 19u8, 31u8, 233u8, + ], + ) + } + pub fn finalized_execution_header_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "FinalizedExecutionHeader", + Vec::new(), + [ + 90u8, 53u8, 119u8, 191u8, 19u8, 61u8, 75u8, 20u8, 10u8, 121u8, 54u8, + 202u8, 139u8, 253u8, 100u8, 36u8, 81u8, 225u8, 174u8, 29u8, 255u8, + 191u8, 36u8, 96u8, 155u8, 210u8, 168u8, 167u8, 64u8, 19u8, 31u8, 233u8, + ], + ) + } + pub fn current_sync_committee( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::eth2::SyncCommittee, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "CurrentSyncCommittee", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 144u8, 146u8, 15u8, 229u8, 193u8, 72u8, 128u8, 198u8, 248u8, 208u8, + 196u8, 55u8, 178u8, 109u8, 126u8, 120u8, 95u8, 4u8, 33u8, 152u8, 87u8, + 116u8, 87u8, 211u8, 16u8, 116u8, 141u8, 35u8, 42u8, 82u8, 238u8, 79u8, + ], + ) + } + pub fn current_sync_committee_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::eth2::SyncCommittee, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "CurrentSyncCommittee", + Vec::new(), + [ + 144u8, 146u8, 15u8, 229u8, 193u8, 72u8, 128u8, 198u8, 248u8, 208u8, + 196u8, 55u8, 178u8, 109u8, 126u8, 120u8, 95u8, 4u8, 33u8, 152u8, 87u8, + 116u8, 87u8, 211u8, 16u8, 116u8, 141u8, 35u8, 42u8, 82u8, 238u8, 79u8, + ], + ) + } + pub fn next_sync_committee( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::eth2::SyncCommittee, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "NextSyncCommittee", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 46u8, 100u8, 85u8, 213u8, 86u8, 94u8, 243u8, 79u8, 54u8, 147u8, 156u8, + 111u8, 235u8, 225u8, 33u8, 33u8, 129u8, 237u8, 215u8, 39u8, 121u8, + 229u8, 16u8, 28u8, 195u8, 90u8, 101u8, 157u8, 48u8, 55u8, 32u8, 229u8, + ], + ) + } + pub fn next_sync_committee_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::eth2::SyncCommittee, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "NextSyncCommittee", + Vec::new(), + [ + 46u8, 100u8, 85u8, 213u8, 86u8, 94u8, 243u8, 79u8, 54u8, 147u8, 156u8, + 111u8, 235u8, 225u8, 33u8, 33u8, 129u8, 237u8, 215u8, 39u8, 121u8, + 229u8, 16u8, 28u8, 195u8, 90u8, 101u8, 157u8, 48u8, 55u8, 32u8, 229u8, + ], + ) + } + pub fn unfinalized_head_execution_header( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "UnfinalizedHeadExecutionHeader", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 162u8, 81u8, 230u8, 244u8, 111u8, 100u8, 245u8, 21u8, 24u8, 163u8, + 130u8, 9u8, 18u8, 201u8, 101u8, 172u8, 74u8, 87u8, 161u8, 115u8, 189u8, + 224u8, 104u8, 183u8, 54u8, 34u8, 232u8, 234u8, 45u8, 101u8, 159u8, + 144u8, + ], + ) + } + pub fn unfinalized_head_execution_header_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "UnfinalizedHeadExecutionHeader", + Vec::new(), + [ + 162u8, 81u8, 230u8, 244u8, 111u8, 100u8, 245u8, 21u8, 24u8, 163u8, + 130u8, 9u8, 18u8, 201u8, 101u8, 172u8, 74u8, 87u8, 161u8, 115u8, 189u8, + 224u8, 104u8, 183u8, 54u8, 34u8, 232u8, 234u8, 45u8, 101u8, 159u8, + 144u8, + ], + ) + } + pub fn unfinalized_tail_execution_header( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "UnfinalizedTailExecutionHeader", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 147u8, 137u8, 114u8, 232u8, 247u8, 23u8, 131u8, 132u8, 63u8, 252u8, + 212u8, 108u8, 88u8, 87u8, 188u8, 133u8, 180u8, 206u8, 190u8, 214u8, + 144u8, 124u8, 38u8, 89u8, 46u8, 209u8, 131u8, 27u8, 72u8, 146u8, 176u8, + 242u8, + ], + ) + } + pub fn unfinalized_tail_execution_header_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "UnfinalizedTailExecutionHeader", + Vec::new(), + [ + 147u8, 137u8, 114u8, 232u8, 247u8, 23u8, 131u8, 132u8, 63u8, 252u8, + 212u8, 108u8, 88u8, 87u8, 188u8, 133u8, 180u8, 206u8, 190u8, 214u8, + 144u8, 124u8, 38u8, 89u8, 46u8, 209u8, 131u8, 27u8, 72u8, 146u8, 176u8, + 242u8, + ], + ) + } + pub fn client_mode_for_chain( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::pallet::ClientMode, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "ClientModeForChain", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 213u8, 239u8, 191u8, 154u8, 96u8, 124u8, 247u8, 107u8, 90u8, 61u8, + 94u8, 186u8, 32u8, 212u8, 100u8, 66u8, 156u8, 12u8, 26u8, 16u8, 231u8, + 35u8, 29u8, 164u8, 136u8, 175u8, 113u8, 3u8, 23u8, 249u8, 94u8, 207u8, + ], + ) + } + pub fn client_mode_for_chain_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::eth_types::pallet::ClientMode, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "ClientModeForChain", + Vec::new(), + [ + 213u8, 239u8, 191u8, 154u8, 96u8, 124u8, 247u8, 107u8, 90u8, 61u8, + 94u8, 186u8, 32u8, 212u8, 100u8, 66u8, 156u8, 12u8, 26u8, 16u8, 231u8, + 35u8, 29u8, 164u8, 136u8, 175u8, 113u8, 3u8, 23u8, 249u8, 94u8, 207u8, + ], + ) + } + pub fn network_config_for_chain( + &self, + _0: impl ::std::borrow::Borrow, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_consensus_types::network_config::NetworkConfig, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "NetworkConfigForChain", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 158u8, 33u8, 145u8, 202u8, 92u8, 227u8, 120u8, 7u8, 41u8, 88u8, 235u8, + 202u8, 208u8, 4u8, 166u8, 112u8, 28u8, 253u8, 180u8, 39u8, 6u8, 93u8, + 7u8, 39u8, 248u8, 217u8, 116u8, 32u8, 17u8, 41u8, 122u8, 120u8, + ], + ) + } + pub fn network_config_for_chain_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::webb_consensus_types::network_config::NetworkConfig, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Eth2Client", + "NetworkConfigForChain", + Vec::new(), + [ + 158u8, 33u8, 145u8, 202u8, 92u8, 227u8, 120u8, 7u8, 41u8, 88u8, 235u8, + 202u8, 208u8, 4u8, 166u8, 112u8, 28u8, 253u8, 180u8, 39u8, 6u8, 93u8, + 7u8, 39u8, 248u8, 217u8, 116u8, 32u8, 17u8, 41u8, 122u8, 120u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static( + "Eth2Client", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) + } + } + } + } + pub mod roles { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_roles::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_roles::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CreateProfile { + pub profile: runtime_types::pallet_roles::profile::Profile, + pub max_active_services: ::core::option::Option<::core::primitive::u32>, + } + impl ::subxt::blocks::StaticExtrinsic for CreateProfile { + const PALLET: &'static str = "Roles"; + const CALL: &'static str = "create_profile"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpdateProfile { + pub updated_profile: runtime_types::pallet_roles::profile::Profile, + } + impl ::subxt::blocks::StaticExtrinsic for UpdateProfile { + const PALLET: &'static str = "Roles"; + const CALL: &'static str = "update_profile"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DeleteProfile; + impl ::subxt::blocks::StaticExtrinsic for DeleteProfile { + const PALLET: &'static str = "Roles"; + const CALL: &'static str = "delete_profile"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Chill; + impl ::subxt::blocks::StaticExtrinsic for Chill { + const PALLET: &'static str = "Roles"; + const CALL: &'static str = "chill"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnbondFunds { + #[codec(compact)] + pub amount: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for UnbondFunds { + const PALLET: &'static str = "Roles"; + const CALL: &'static str = "unbond_funds"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WithdrawUnbonded; + impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { + const PALLET: &'static str = "Roles"; + const CALL: &'static str = "withdraw_unbonded"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PayoutStakers { + pub validator_stash: ::subxt::utils::AccountId32, + pub era: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { + const PALLET: &'static str = "Roles"; + const CALL: &'static str = "payout_stakers"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::create_profile`]. + pub fn create_profile( + &self, + profile: runtime_types::pallet_roles::profile::Profile, + max_active_services: ::core::option::Option<::core::primitive::u32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Roles", + "create_profile", + types::CreateProfile { profile, max_active_services }, + [ + 127u8, 239u8, 243u8, 197u8, 40u8, 102u8, 111u8, 67u8, 21u8, 78u8, + 182u8, 113u8, 150u8, 125u8, 73u8, 240u8, 226u8, 101u8, 10u8, 22u8, + 114u8, 101u8, 167u8, 163u8, 105u8, 243u8, 216u8, 164u8, 73u8, 58u8, + 74u8, 33u8, + ], + ) + } + ///See [`Pallet::update_profile`]. + pub fn update_profile( + &self, + updated_profile: runtime_types::pallet_roles::profile::Profile, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Roles", + "update_profile", + types::UpdateProfile { updated_profile }, + [ + 66u8, 55u8, 87u8, 59u8, 91u8, 191u8, 227u8, 104u8, 190u8, 141u8, 109u8, + 58u8, 44u8, 200u8, 220u8, 197u8, 175u8, 5u8, 115u8, 104u8, 227u8, + 255u8, 66u8, 23u8, 164u8, 10u8, 141u8, 249u8, 37u8, 226u8, 251u8, 35u8, + ], + ) + } + ///See [`Pallet::delete_profile`]. + pub fn delete_profile(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Roles", + "delete_profile", + types::DeleteProfile {}, + [ + 183u8, 103u8, 250u8, 206u8, 24u8, 200u8, 142u8, 200u8, 204u8, 109u8, + 97u8, 16u8, 145u8, 37u8, 215u8, 153u8, 210u8, 241u8, 239u8, 4u8, 150u8, + 117u8, 92u8, 200u8, 163u8, 54u8, 145u8, 6u8, 94u8, 255u8, 220u8, 118u8, + ], + ) + } + ///See [`Pallet::chill`]. + pub fn chill(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Roles", + "chill", + types::Chill {}, + [ + 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, + 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, + 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, + ], + ) + } + ///See [`Pallet::unbond_funds`]. + pub fn unbond_funds( + &self, + amount: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Roles", + "unbond_funds", + types::UnbondFunds { amount }, + [ + 156u8, 162u8, 131u8, 178u8, 50u8, 254u8, 82u8, 29u8, 224u8, 210u8, + 134u8, 156u8, 219u8, 6u8, 67u8, 32u8, 20u8, 118u8, 54u8, 252u8, 60u8, + 28u8, 45u8, 10u8, 234u8, 76u8, 104u8, 191u8, 13u8, 186u8, 154u8, 180u8, + ], + ) + } + ///See [`Pallet::withdraw_unbonded`]. + pub fn withdraw_unbonded(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Roles", + "withdraw_unbonded", + types::WithdrawUnbonded {}, + [ + 80u8, 176u8, 200u8, 141u8, 68u8, 48u8, 226u8, 210u8, 103u8, 124u8, + 204u8, 178u8, 234u8, 34u8, 83u8, 205u8, 100u8, 166u8, 173u8, 10u8, + 251u8, 249u8, 128u8, 53u8, 101u8, 145u8, 210u8, 204u8, 245u8, 229u8, + 164u8, 113u8, + ], + ) + } + ///See [`Pallet::payout_stakers`]. + pub fn payout_stakers( + &self, + validator_stash: ::subxt::utils::AccountId32, + era: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Roles", + "payout_stakers", + types::PayoutStakers { validator_stash, era }, + [ + 69u8, 67u8, 140u8, 197u8, 89u8, 20u8, 59u8, 55u8, 142u8, 197u8, 62u8, + 107u8, 239u8, 50u8, 237u8, 52u8, 4u8, 65u8, 119u8, 73u8, 138u8, 57u8, + 46u8, 78u8, 252u8, 157u8, 187u8, 14u8, 232u8, 244u8, 217u8, 171u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_roles::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Role assigned to the validator. + pub struct RoleAssigned { + pub account: ::subxt::utils::AccountId32, + pub role: runtime_types::tangle_primitives::roles::RoleType, + } + impl ::subxt::events::StaticEvent for RoleAssigned { + const PALLET: &'static str = "Roles"; + const EVENT: &'static str = "RoleAssigned"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Removed validator from role. + pub struct RoleRemoved { + pub account: ::subxt::utils::AccountId32, + pub role: runtime_types::tangle_primitives::roles::RoleType, + } + impl ::subxt::events::StaticEvent for RoleRemoved { + const PALLET: &'static str = "Roles"; + const EVENT: &'static str = "RoleRemoved"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Slashed validator. + pub struct Slashed { + pub account: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Slashed { + const PALLET: &'static str = "Roles"; + const EVENT: &'static str = "Slashed"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///New profile created. + pub struct ProfileCreated { + pub account: ::subxt::utils::AccountId32, + pub total_profile_restake: ::core::primitive::u128, + pub roles: ::std::vec::Vec, + } + impl ::subxt::events::StaticEvent for ProfileCreated { + const PALLET: &'static str = "Roles"; + const EVENT: &'static str = "ProfileCreated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Profile updated. + pub struct ProfileUpdated { + pub account: ::subxt::utils::AccountId32, + pub total_profile_restake: ::core::primitive::u128, + pub roles: ::std::vec::Vec, + } + impl ::subxt::events::StaticEvent for ProfileUpdated { + const PALLET: &'static str = "Roles"; + const EVENT: &'static str = "ProfileUpdated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Profile deleted. + pub struct ProfileDeleted { + pub account: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for ProfileDeleted { + const PALLET: &'static str = "Roles"; + const EVENT: &'static str = "ProfileDeleted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Pending jobs,that cannot be opted out at the moment. + pub struct PendingJobs { + pub pending_jobs: ::std::vec::Vec<( + runtime_types::tangle_primitives::roles::RoleType, + ::core::primitive::u64, + )>, + } + impl ::subxt::events::StaticEvent for PendingJobs { + const PALLET: &'static str = "Roles"; + const EVENT: &'static str = "PendingJobs"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Roles inflation reward paid for era + pub struct RolesRewardSet { + pub total_rewards: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for RolesRewardSet { + const PALLET: &'static str = "Roles"; + const EVENT: &'static str = "RolesRewardSet"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The re-stakers' rewards are getting paid. + pub struct PayoutStarted { + pub era_index: ::core::primitive::u32, + pub validator_stash: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for PayoutStarted { + const PALLET: &'static str = "Roles"; + const EVENT: &'static str = "PayoutStarted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The re-staker has been rewarded by this amount. + pub struct Rewarded { + pub stash: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rewarded { + const PALLET: &'static str = "Roles"; + const EVENT: &'static str = "Rewarded"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + /// Map from all "controller" accounts to the info regarding the staking. + pub fn ledger( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_roles::types::RestakingLedger, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Roles", + "Ledger", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 202u8, 39u8, 6u8, 95u8, 5u8, 12u8, 5u8, 168u8, 205u8, 246u8, 186u8, + 224u8, 179u8, 189u8, 241u8, 163u8, 93u8, 237u8, 205u8, 63u8, 227u8, + 51u8, 146u8, 3u8, 33u8, 113u8, 84u8, 107u8, 67u8, 111u8, 149u8, 25u8, + ], + ) + } + /// Map from all "controller" accounts to the info regarding the staking. + pub fn ledger_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_roles::types::RestakingLedger, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Roles", + "Ledger", + Vec::new(), + [ + 202u8, 39u8, 6u8, 95u8, 5u8, 12u8, 5u8, 168u8, 205u8, 246u8, 186u8, + 224u8, 179u8, 189u8, 241u8, 163u8, 93u8, 237u8, 205u8, 63u8, 227u8, + 51u8, 146u8, 3u8, 33u8, 113u8, 84u8, 107u8, 67u8, 111u8, 149u8, 25u8, + ], + ) + } + /// Mapping of resource to bridge index + pub fn account_roles_mapping( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::tangle_primitives::roles::RoleType, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Roles", + "AccountRolesMapping", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 209u8, 173u8, 151u8, 170u8, 161u8, 30u8, 57u8, 85u8, 51u8, 53u8, 54u8, + 79u8, 120u8, 140u8, 69u8, 69u8, 253u8, 22u8, 193u8, 40u8, 82u8, 51u8, + 159u8, 152u8, 20u8, 132u8, 37u8, 0u8, 122u8, 129u8, 177u8, 142u8, + ], + ) + } + /// Mapping of resource to bridge index + pub fn account_roles_mapping_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::tangle_primitives::roles::RoleType, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Roles", + "AccountRolesMapping", + Vec::new(), + [ + 209u8, 173u8, 151u8, 170u8, 161u8, 30u8, 57u8, 85u8, 51u8, 53u8, 54u8, + 79u8, 120u8, 140u8, 69u8, 69u8, 253u8, 22u8, 193u8, 40u8, 82u8, 51u8, + 159u8, 152u8, 20u8, 132u8, 37u8, 0u8, 122u8, 129u8, 177u8, 142u8, + ], + ) + } + /// The minimum re staking bond to become and maintain the role. + pub fn min_restaking_bond( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Roles", + "MinRestakingBond", + vec![], + [ + 108u8, 139u8, 56u8, 166u8, 184u8, 52u8, 72u8, 29u8, 24u8, 136u8, 96u8, + 10u8, 186u8, 92u8, 246u8, 106u8, 126u8, 42u8, 57u8, 173u8, 75u8, 78u8, + 102u8, 216u8, 206u8, 185u8, 84u8, 169u8, 6u8, 180u8, 237u8, 208u8, + ], + ) + } + /// The number of jobs completed by a validator in era + pub fn validator_jobs_in_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Roles", + "ValidatorJobsInEra", + vec![], + [ + 125u8, 130u8, 184u8, 34u8, 6u8, 164u8, 104u8, 92u8, 61u8, 187u8, 55u8, + 30u8, 100u8, 18u8, 89u8, 140u8, 36u8, 162u8, 165u8, 29u8, 192u8, 46u8, + 100u8, 113u8, 189u8, 222u8, 177u8, 207u8, 162u8, 229u8, 216u8, 124u8, + ], + ) + } + /// Rewards for the last `HISTORY_DEPTH` eras. + /// If reward hasn't been set or has been removed then 0 reward is returned. + pub fn eras_restake_reward_points( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints<::subxt::utils::AccountId32>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Roles", + "ErasRestakeRewardPoints", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 179u8, 194u8, 204u8, 246u8, 160u8, 127u8, 200u8, 83u8, 71u8, 165u8, + 162u8, 209u8, 254u8, 220u8, 201u8, 209u8, 75u8, 45u8, 247u8, 247u8, + 148u8, 234u8, 191u8, 79u8, 202u8, 107u8, 186u8, 72u8, 106u8, 154u8, + 140u8, 107u8, + ], + ) + } + /// Rewards for the last `HISTORY_DEPTH` eras. + /// If reward hasn't been set or has been removed then 0 reward is returned. + pub fn eras_restake_reward_points_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::EraRewardPoints<::subxt::utils::AccountId32>, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Roles", + "ErasRestakeRewardPoints", + Vec::new(), + [ + 179u8, 194u8, 204u8, 246u8, 160u8, 127u8, 200u8, 83u8, 71u8, 165u8, + 162u8, 209u8, 254u8, 220u8, 201u8, 209u8, 75u8, 45u8, 247u8, 247u8, + 148u8, 234u8, 191u8, 79u8, 202u8, 107u8, 186u8, 72u8, 106u8, 154u8, + 140u8, 107u8, + ], + ) + } + /// The active era information, it holds index and start. + /// + /// The active era is the era being currently rewarded. + pub fn active_restaker_era( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_staking::ActiveEraInfo, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "Roles", + "ActiveRestakerEra", + vec![], + [ + 169u8, 15u8, 202u8, 51u8, 247u8, 216u8, 207u8, 213u8, 236u8, 134u8, + 159u8, 33u8, 151u8, 188u8, 225u8, 168u8, 127u8, 34u8, 229u8, 148u8, + 64u8, 183u8, 151u8, 101u8, 245u8, 214u8, 150u8, 198u8, 47u8, 84u8, + 216u8, 177u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// Max roles per account. + pub fn max_roles_per_account( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "Roles", + "MaxRolesPerAccount", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } + } + pub mod jobs { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_jobs::module::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_jobs::module::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitJob { + pub job: runtime_types::tangle_primitives::jobs::JobSubmission< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxSubmissionLen, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SubmitJob { + const PALLET: &'static str = "Jobs"; + const CALL: &'static str = "submit_job"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitJobResult { + pub role_type: runtime_types::tangle_primitives::roles::RoleType, + pub job_id: ::core::primitive::u64, + pub result: runtime_types::tangle_primitives::jobs::JobResult< + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxKeyLen, + runtime_types::tangle_primitives::jobs::MaxSignatureLen, + runtime_types::tangle_primitives::jobs::MaxDataLen, + runtime_types::tangle_primitives::jobs::MaxProofLen, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SubmitJobResult { + const PALLET: &'static str = "Jobs"; + const CALL: &'static str = "submit_job_result"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WithdrawRewards; + impl ::subxt::blocks::StaticExtrinsic for WithdrawRewards { + const PALLET: &'static str = "Jobs"; + const CALL: &'static str = "withdraw_rewards"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReportInactiveValidator { + pub role_type: runtime_types::tangle_primitives::roles::RoleType, + pub job_id: ::core::primitive::u64, + pub validator: ::subxt::utils::AccountId32, + pub offence: runtime_types::tangle_primitives::jobs::ValidatorOffenceType, + pub signatures: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + } + impl ::subxt::blocks::StaticExtrinsic for ReportInactiveValidator { + const PALLET: &'static str = "Jobs"; + const CALL: &'static str = "report_inactive_validator"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetPermittedCaller { + pub role_type: runtime_types::tangle_primitives::roles::RoleType, + pub job_id: ::core::primitive::u64, + pub new_permitted_caller: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for SetPermittedCaller { + const PALLET: &'static str = "Jobs"; + const CALL: &'static str = "set_permitted_caller"; + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetTimeFee { + pub new_fee: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for SetTimeFee { + const PALLET: &'static str = "Jobs"; + const CALL: &'static str = "set_time_fee"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubmitMisbehavior { + pub misbehavior: + runtime_types::tangle_primitives::misbehavior::MisbehaviorSubmission, + } + impl ::subxt::blocks::StaticExtrinsic for SubmitMisbehavior { + const PALLET: &'static str = "Jobs"; + const CALL: &'static str = "submit_misbehavior"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::submit_job`]. + pub fn submit_job( + &self, + job: runtime_types::tangle_primitives::jobs::JobSubmission< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxSubmissionLen, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Jobs", + "submit_job", + types::SubmitJob { job }, + [ + 190u8, 28u8, 49u8, 108u8, 163u8, 47u8, 54u8, 161u8, 203u8, 110u8, 33u8, + 134u8, 174u8, 91u8, 137u8, 114u8, 228u8, 241u8, 188u8, 31u8, 96u8, + 176u8, 11u8, 154u8, 145u8, 143u8, 254u8, 247u8, 5u8, 49u8, 229u8, 77u8, + ], + ) + } + ///See [`Pallet::submit_job_result`]. + pub fn submit_job_result( + &self, + role_type: runtime_types::tangle_primitives::roles::RoleType, + job_id: ::core::primitive::u64, + result: runtime_types::tangle_primitives::jobs::JobResult< + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxKeyLen, + runtime_types::tangle_primitives::jobs::MaxSignatureLen, + runtime_types::tangle_primitives::jobs::MaxDataLen, + runtime_types::tangle_primitives::jobs::MaxProofLen, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Jobs", + "submit_job_result", + types::SubmitJobResult { role_type, job_id, result }, + [ + 213u8, 154u8, 196u8, 6u8, 230u8, 218u8, 127u8, 29u8, 190u8, 130u8, + 34u8, 109u8, 146u8, 42u8, 88u8, 41u8, 88u8, 60u8, 184u8, 28u8, 245u8, + 202u8, 149u8, 70u8, 163u8, 133u8, 203u8, 106u8, 114u8, 78u8, 233u8, + 235u8, + ], + ) + } + ///See [`Pallet::withdraw_rewards`]. + pub fn withdraw_rewards(&self) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Jobs", + "withdraw_rewards", + types::WithdrawRewards {}, + [ + 138u8, 171u8, 8u8, 216u8, 66u8, 163u8, 109u8, 39u8, 254u8, 155u8, + 224u8, 193u8, 244u8, 132u8, 176u8, 97u8, 204u8, 107u8, 148u8, 64u8, + 33u8, 213u8, 227u8, 164u8, 77u8, 51u8, 100u8, 174u8, 182u8, 247u8, + 187u8, 18u8, + ], + ) + } + ///See [`Pallet::report_inactive_validator`]. + pub fn report_inactive_validator( + &self, + role_type: runtime_types::tangle_primitives::roles::RoleType, + job_id: ::core::primitive::u64, + validator: ::subxt::utils::AccountId32, + offence: runtime_types::tangle_primitives::jobs::ValidatorOffenceType, + signatures: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Jobs", + "report_inactive_validator", + types::ReportInactiveValidator { + role_type, + job_id, + validator, + offence, + signatures, + }, + [ + 169u8, 184u8, 123u8, 243u8, 15u8, 0u8, 205u8, 219u8, 27u8, 95u8, 64u8, + 9u8, 22u8, 56u8, 121u8, 150u8, 54u8, 189u8, 191u8, 38u8, 112u8, 136u8, + 129u8, 153u8, 163u8, 7u8, 195u8, 73u8, 224u8, 26u8, 157u8, 13u8, + ], + ) + } + ///See [`Pallet::set_permitted_caller`]. + pub fn set_permitted_caller( + &self, + role_type: runtime_types::tangle_primitives::roles::RoleType, + job_id: ::core::primitive::u64, + new_permitted_caller: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Jobs", + "set_permitted_caller", + types::SetPermittedCaller { role_type, job_id, new_permitted_caller }, + [ + 69u8, 243u8, 138u8, 253u8, 50u8, 182u8, 21u8, 237u8, 211u8, 18u8, + 161u8, 94u8, 169u8, 52u8, 238u8, 197u8, 54u8, 160u8, 55u8, 187u8, 4u8, + 119u8, 43u8, 50u8, 34u8, 245u8, 82u8, 8u8, 228u8, 214u8, 219u8, 220u8, + ], + ) + } + ///See [`Pallet::set_time_fee`]. + pub fn set_time_fee( + &self, + new_fee: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Jobs", + "set_time_fee", + types::SetTimeFee { new_fee }, + [ + 9u8, 96u8, 202u8, 11u8, 3u8, 232u8, 45u8, 199u8, 233u8, 22u8, 24u8, + 5u8, 99u8, 150u8, 171u8, 12u8, 56u8, 41u8, 124u8, 128u8, 88u8, 143u8, + 124u8, 215u8, 75u8, 17u8, 222u8, 183u8, 238u8, 230u8, 43u8, 24u8, + ], + ) + } + ///See [`Pallet::submit_misbehavior`]. + pub fn submit_misbehavior( + &self, + misbehavior: runtime_types::tangle_primitives::misbehavior::MisbehaviorSubmission, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Jobs", + "submit_misbehavior", + types::SubmitMisbehavior { misbehavior }, + [ + 128u8, 227u8, 25u8, 107u8, 195u8, 70u8, 49u8, 97u8, 251u8, 0u8, 244u8, + 223u8, 86u8, 87u8, 99u8, 70u8, 57u8, 37u8, 220u8, 230u8, 119u8, 50u8, + 218u8, 39u8, 188u8, 2u8, 18u8, 85u8, 164u8, 54u8, 190u8, 61u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_jobs::module::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A new job has been submitted + pub struct JobSubmitted { + pub job_id: ::core::primitive::u64, + pub role_type: runtime_types::tangle_primitives::roles::RoleType, + pub details: runtime_types::tangle_primitives::jobs::JobSubmission< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxSubmissionLen, + >, + } + impl ::subxt::events::StaticEvent for JobSubmitted { + const PALLET: &'static str = "Jobs"; + const EVENT: &'static str = "JobSubmitted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A new job result has been submitted + pub struct JobResultSubmitted { + pub job_id: ::core::primitive::u64, + pub role_type: runtime_types::tangle_primitives::roles::RoleType, + } + impl ::subxt::events::StaticEvent for JobResultSubmitted { + const PALLET: &'static str = "Jobs"; + const EVENT: &'static str = "JobResultSubmitted"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///validator has earned reward + pub struct ValidatorRewarded { + pub id: ::subxt::utils::AccountId32, + pub reward: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for ValidatorRewarded { + const PALLET: &'static str = "Jobs"; + const EVENT: &'static str = "ValidatorRewarded"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn submitted_jobs( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_primitives::jobs::JobInfo< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + ::core::primitive::u128, + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxSubmissionLen, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Jobs", + "SubmittedJobs", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 37u8, 37u8, 208u8, 81u8, 138u8, 131u8, 183u8, 202u8, 106u8, 216u8, + 82u8, 126u8, 18u8, 77u8, 39u8, 30u8, 166u8, 154u8, 114u8, 70u8, 237u8, + 28u8, 23u8, 80u8, 178u8, 179u8, 4u8, 26u8, 67u8, 163u8, 113u8, 126u8, + ], + ) + } + pub fn submitted_jobs_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_primitives::jobs::JobInfo< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + ::core::primitive::u128, + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxSubmissionLen, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Jobs", + "SubmittedJobs", + Vec::new(), + [ + 37u8, 37u8, 208u8, 81u8, 138u8, 131u8, 183u8, 202u8, 106u8, 216u8, + 82u8, 126u8, 18u8, 77u8, 39u8, 30u8, 166u8, 154u8, 114u8, 70u8, 237u8, + 28u8, 23u8, 80u8, 178u8, 179u8, 4u8, 26u8, 67u8, 163u8, 113u8, 126u8, + ], + ) + } + pub fn submitted_jobs_role( + &self, + _0: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_primitives::roles::RoleType, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Jobs", + "SubmittedJobsRole", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 11u8, 218u8, 148u8, 217u8, 120u8, 174u8, 246u8, 132u8, 255u8, 84u8, + 114u8, 138u8, 245u8, 67u8, 55u8, 67u8, 246u8, 105u8, 20u8, 13u8, 119u8, + 244u8, 154u8, 59u8, 28u8, 230u8, 4u8, 159u8, 6u8, 43u8, 47u8, 49u8, + ], + ) + } + pub fn submitted_jobs_role_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_primitives::roles::RoleType, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Jobs", + "SubmittedJobsRole", + Vec::new(), + [ + 11u8, 218u8, 148u8, 217u8, 120u8, 174u8, 246u8, 132u8, 255u8, 84u8, + 114u8, 138u8, 245u8, 67u8, 55u8, 67u8, 246u8, 105u8, 20u8, 13u8, 119u8, + 244u8, 154u8, 59u8, 28u8, 230u8, 4u8, 159u8, 6u8, 43u8, 47u8, 49u8, + ], + ) + } + pub fn known_results( + &self, + _0: impl ::std::borrow::Borrow, + _1: impl ::std::borrow::Borrow<::core::primitive::u64>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_primitives::jobs::PhaseResult< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxKeyLen, + runtime_types::tangle_primitives::jobs::MaxDataLen, + runtime_types::tangle_primitives::jobs::MaxSignatureLen, + runtime_types::tangle_primitives::jobs::MaxSubmissionLen, + runtime_types::tangle_primitives::jobs::MaxProofLen, + >, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Jobs", + "KnownResults", + vec![ + ::subxt::storage::address::make_static_storage_map_key(_0.borrow()), + ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), + ], + [ + 115u8, 199u8, 14u8, 135u8, 205u8, 21u8, 61u8, 103u8, 156u8, 98u8, + 178u8, 38u8, 228u8, 145u8, 238u8, 163u8, 54u8, 3u8, 82u8, 75u8, 93u8, + 50u8, 222u8, 187u8, 182u8, 146u8, 253u8, 61u8, 189u8, 15u8, 130u8, + 67u8, + ], + ) + } + pub fn known_results_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::tangle_primitives::jobs::PhaseResult< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxKeyLen, + runtime_types::tangle_primitives::jobs::MaxDataLen, + runtime_types::tangle_primitives::jobs::MaxSignatureLen, + runtime_types::tangle_primitives::jobs::MaxSubmissionLen, + runtime_types::tangle_primitives::jobs::MaxProofLen, + >, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Jobs", + "KnownResults", + Vec::new(), + [ + 115u8, 199u8, 14u8, 135u8, 205u8, 21u8, 61u8, 103u8, 156u8, 98u8, + 178u8, 38u8, 228u8, 145u8, 238u8, 163u8, 54u8, 3u8, 82u8, 75u8, 93u8, + 50u8, 222u8, 187u8, 182u8, 146u8, 253u8, 61u8, 189u8, 15u8, 130u8, + 67u8, + ], + ) + } + pub fn validator_job_id_lookup( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + runtime_types::tangle_primitives::roles::RoleType, + ::core::primitive::u64, + )>, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Jobs", + "ValidatorJobIdLookup", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 47u8, 215u8, 60u8, 86u8, 210u8, 138u8, 35u8, 126u8, 88u8, 249u8, 16u8, + 199u8, 112u8, 53u8, 225u8, 68u8, 48u8, 134u8, 47u8, 149u8, 82u8, 99u8, + 45u8, 82u8, 184u8, 62u8, 59u8, 50u8, 50u8, 177u8, 164u8, 196u8, + ], + ) + } + pub fn validator_job_id_lookup_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + runtime_types::tangle_primitives::roles::RoleType, + ::core::primitive::u64, + )>, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Jobs", + "ValidatorJobIdLookup", + Vec::new(), + [ + 47u8, 215u8, 60u8, 86u8, 210u8, 138u8, 35u8, 126u8, 88u8, 249u8, 16u8, + 199u8, 112u8, 53u8, 225u8, 68u8, 48u8, 134u8, 47u8, 149u8, 82u8, 99u8, + 45u8, 82u8, 184u8, 62u8, 59u8, 50u8, 50u8, 177u8, 164u8, 196u8, + ], + ) + } + pub fn validator_rewards( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Jobs", + "ValidatorRewards", + vec![::subxt::storage::address::make_static_storage_map_key(_0.borrow())], + [ + 181u8, 120u8, 201u8, 9u8, 183u8, 177u8, 113u8, 198u8, 209u8, 245u8, + 205u8, 165u8, 183u8, 122u8, 147u8, 151u8, 35u8, 109u8, 45u8, 215u8, + 195u8, 93u8, 226u8, 8u8, 106u8, 98u8, 217u8, 231u8, 26u8, 81u8, 123u8, + 224u8, + ], + ) + } + pub fn validator_rewards_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Jobs", + "ValidatorRewards", + Vec::new(), + [ + 181u8, 120u8, 201u8, 9u8, 183u8, 177u8, 113u8, 198u8, 209u8, 245u8, + 205u8, 165u8, 183u8, 122u8, 147u8, 151u8, 35u8, 109u8, 45u8, 215u8, + 195u8, 93u8, 226u8, 8u8, 106u8, 98u8, 217u8, 231u8, 26u8, 81u8, 123u8, + 224u8, + ], + ) + } + /// The job-id storage + pub fn next_job_id( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u64, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Jobs", + "NextJobId", + vec![], + [ + 168u8, 152u8, 73u8, 23u8, 111u8, 17u8, 85u8, 129u8, 97u8, 59u8, 245u8, + 42u8, 36u8, 190u8, 47u8, 245u8, 249u8, 45u8, 2u8, 29u8, 174u8, 60u8, + 177u8, 145u8, 143u8, 80u8, 147u8, 159u8, 216u8, 232u8, 21u8, 25u8, + ], + ) + } + pub fn time_fee_per_block( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::core::primitive::u128, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Jobs", + "TimeFeePerBlock", + vec![], + [ + 69u8, 177u8, 229u8, 105u8, 52u8, 200u8, 169u8, 194u8, 249u8, 38u8, + 165u8, 189u8, 88u8, 51u8, 40u8, 252u8, 11u8, 238u8, 246u8, 119u8, 97u8, + 122u8, 235u8, 214u8, 160u8, 209u8, 240u8, 123u8, 237u8, 110u8, 170u8, + 253u8, + ], + ) + } + } + } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + /// `PalletId` for the jobs pallet. + pub fn pallet_id( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static( + "Jobs", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) + } + } + } + } + pub mod dkg { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_dkg::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_dkg::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetFee { + pub fee_info: + runtime_types::pallet_dkg::types::FeeInfo<::core::primitive::u128>, + } + impl ::subxt::blocks::StaticExtrinsic for SetFee { + const PALLET: &'static str = "Dkg"; + const CALL: &'static str = "set_fee"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::set_fee`]. + pub fn set_fee( + &self, + fee_info: runtime_types::pallet_dkg::types::FeeInfo<::core::primitive::u128>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Dkg", + "set_fee", + types::SetFee { fee_info }, + [ + 124u8, 149u8, 146u8, 32u8, 255u8, 220u8, 164u8, 71u8, 96u8, 158u8, + 96u8, 40u8, 25u8, 22u8, 119u8, 235u8, 102u8, 15u8, 245u8, 246u8, 140u8, + 83u8, 251u8, 227u8, 104u8, 171u8, 231u8, 11u8, 94u8, 183u8, 13u8, 4u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_dkg::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Fee has been updated to the new value + pub struct FeeUpdated( + pub runtime_types::pallet_dkg::types::FeeInfo<::core::primitive::u128>, + ); + impl ::subxt::events::StaticEvent for FeeUpdated { + const PALLET: &'static str = "Dkg"; + const EVENT: &'static str = "FeeUpdated"; + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///A DKG has been rotated. + pub struct KeyRotated { + pub from_job_id: ::core::primitive::u64, + pub to_job_id: ::core::primitive::u64, + pub signature: ::std::vec::Vec<::core::primitive::u8>, + } + impl ::subxt::events::StaticEvent for KeyRotated { + const PALLET: &'static str = "Dkg"; + const EVENT: &'static str = "KeyRotated"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn fee_info( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_dkg::types::FeeInfo<::core::primitive::u128>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Dkg", + "FeeInfo", + vec![], + [ + 237u8, 101u8, 26u8, 207u8, 182u8, 174u8, 174u8, 20u8, 195u8, 6u8, 4u8, + 48u8, 36u8, 168u8, 229u8, 14u8, 68u8, 43u8, 224u8, 53u8, 37u8, 231u8, + 235u8, 185u8, 22u8, 249u8, 217u8, 223u8, 65u8, 171u8, 21u8, 110u8, + ], + ) + } + } + } + } + pub mod zk_saa_s { + use super::{root_mod, runtime_types}; + ///The `Error` enum of this pallet. + pub type Error = runtime_types::pallet_zksaas::pallet::Error; + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub type Call = runtime_types::pallet_zksaas::pallet::Call; + pub mod calls { + use super::{root_mod, runtime_types}; + type DispatchError = runtime_types::sp_runtime::DispatchError; + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetFee { + pub fee_info: + runtime_types::pallet_zksaas::types::FeeInfo<::core::primitive::u128>, + } + impl ::subxt::blocks::StaticExtrinsic for SetFee { + const PALLET: &'static str = "ZkSaaS"; + const CALL: &'static str = "set_fee"; + } + } + pub struct TransactionApi; + impl TransactionApi { + ///See [`Pallet::set_fee`]. + pub fn set_fee( + &self, + fee_info: runtime_types::pallet_zksaas::types::FeeInfo<::core::primitive::u128>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "ZkSaaS", + "set_fee", + types::SetFee { fee_info }, + [ + 104u8, 154u8, 14u8, 206u8, 235u8, 157u8, 140u8, 180u8, 26u8, 214u8, + 243u8, 248u8, 217u8, 42u8, 20u8, 108u8, 206u8, 77u8, 49u8, 91u8, 167u8, + 97u8, 93u8, 121u8, 118u8, 177u8, 42u8, 121u8, 2u8, 101u8, 138u8, 129u8, + ], + ) + } + } + } + ///The `Event` enum of this pallet + pub type Event = runtime_types::pallet_zksaas::pallet::Event; + pub mod events { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Fee has been updated to the new value + pub struct FeeUpdated( + pub runtime_types::pallet_zksaas::types::FeeInfo<::core::primitive::u128>, + ); + impl ::subxt::events::StaticEvent for FeeUpdated { + const PALLET: &'static str = "ZkSaaS"; + const EVENT: &'static str = "FeeUpdated"; + } + } + pub mod storage { + use super::runtime_types; + pub struct StorageApi; + impl StorageApi { + pub fn fee_info( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_zksaas::types::FeeInfo<::core::primitive::u128>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "ZkSaaS", + "FeeInfo", + vec![], + [ + 237u8, 49u8, 62u8, 207u8, 21u8, 52u8, 36u8, 20u8, 102u8, 210u8, 65u8, + 28u8, 216u8, 196u8, 60u8, 128u8, 141u8, 162u8, 60u8, 16u8, 164u8, 80u8, + 142u8, 210u8, 114u8, 30u8, 80u8, 76u8, 82u8, 236u8, 152u8, 81u8, + ], + ) + } + } + } + } + pub mod runtime_types { + use super::runtime_types; + pub mod bounded_collections { + use super::runtime_types; + pub mod bounded_btree_map { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); + } + pub mod bounded_vec { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + pub mod weak_bounded_vec { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + } + pub mod eth_types { + use super::runtime_types; + pub mod eth2 { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BeaconBlockHeader { + pub slot: ::core::primitive::u64, + pub proposer_index: ::core::primitive::u64, + pub parent_root: runtime_types::eth_types::H256, + pub state_root: runtime_types::eth_types::H256, + pub body_root: runtime_types::eth_types::H256, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExtendedBeaconBlockHeader { + pub header: runtime_types::eth_types::eth2::BeaconBlockHeader, + pub beacon_block_root: runtime_types::eth_types::H256, + pub execution_block_hash: runtime_types::eth_types::H256, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct FinalizedHeaderUpdate { + pub header_update: runtime_types::eth_types::eth2::HeaderUpdate, + pub finality_branch: ::std::vec::Vec, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct HeaderUpdate { + pub beacon_header: runtime_types::eth_types::eth2::BeaconBlockHeader, + pub execution_block_hash: runtime_types::eth_types::H256, + pub execution_hash_branch: ::std::vec::Vec, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct LightClientUpdate { + pub attested_beacon_header: runtime_types::eth_types::eth2::BeaconBlockHeader, + pub sync_aggregate: runtime_types::eth_types::eth2::SyncAggregate, + pub signature_slot: ::core::primitive::u64, + pub finality_update: runtime_types::eth_types::eth2::FinalizedHeaderUpdate, + pub sync_committee_update: + ::core::option::Option, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PublicKeyBytes(pub [::core::primitive::u8; 48usize]); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SignatureBytes(pub [::core::primitive::u8; 96usize]); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SyncAggregate { + pub sync_committee_bits: runtime_types::eth_types::eth2::SyncCommitteeBits, + pub sync_committee_signature: runtime_types::eth_types::eth2::SignatureBytes, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SyncCommittee { + pub pubkeys: runtime_types::eth_types::eth2::SyncCommitteePublicKeys, + pub aggregate_pubkey: runtime_types::eth_types::eth2::PublicKeyBytes, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SyncCommitteeBits(pub [::core::primitive::u8; 64usize]); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SyncCommitteePublicKeys( + pub ::std::vec::Vec, + ); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SyncCommitteeUpdate { + pub next_sync_committee: runtime_types::eth_types::eth2::SyncCommittee, + pub next_sync_committee_branch: ::std::vec::Vec, + } + } + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ClientMode { + #[codec(index = 0)] + SubmitLightClientUpdate, + #[codec(index = 1)] + SubmitHeader, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecutionHeaderInfo<_0> { + pub parent_hash: runtime_types::eth_types::H256, + pub block_number: ::core::primitive::u64, + pub submitter: _0, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct InitInput<_0> { + pub finalized_execution_header: runtime_types::eth_types::BlockHeader, + pub finalized_beacon_header: + runtime_types::eth_types::eth2::ExtendedBeaconBlockHeader, + pub current_sync_committee: runtime_types::eth_types::eth2::SyncCommittee, + pub next_sync_committee: runtime_types::eth_types::eth2::SyncCommittee, + pub validate_updates: ::core::primitive::bool, + pub verify_bls_signatures: ::core::primitive::bool, + pub hashes_gc_threshold: ::core::primitive::u64, + pub trusted_signer: ::core::option::Option<_0>, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BlockHeader { + pub parent_hash: runtime_types::eth_types::H256, + pub uncles_hash: runtime_types::eth_types::H256, + pub author: runtime_types::eth_types::H160, + pub state_root: runtime_types::eth_types::H256, + pub transactions_root: runtime_types::eth_types::H256, + pub receipts_root: runtime_types::eth_types::H256, + pub log_bloom: runtime_types::eth_types::Bloom, + pub difficulty: runtime_types::eth_types::U256, + pub number: ::core::primitive::u64, + pub gas_limit: runtime_types::eth_types::U256, + pub gas_used: runtime_types::eth_types::U256, + pub timestamp: ::core::primitive::u64, + pub extra_data: ::std::vec::Vec<::core::primitive::u8>, + pub mix_hash: runtime_types::eth_types::H256, + pub nonce: runtime_types::eth_types::H64, + pub base_fee_per_gas: ::core::option::Option<::core::primitive::u64>, + pub withdrawals_root: ::core::option::Option, + pub hash: ::core::option::Option, + pub partial_hash: ::core::option::Option, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Bloom(pub runtime_types::ethbloom::Bloom); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct H160(pub ::subxt::utils::H160); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct H256(pub ::subxt::utils::H256); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct H64(pub runtime_types::ethereum_types::hash::H64); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct U256(pub runtime_types::primitive_types::U256); + } + pub mod ethbloom { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Bloom(pub [::core::primitive::u8; 256usize]); + } + pub mod ethereum { + use super::runtime_types; + pub mod block { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Block<_0> { + pub header: runtime_types::ethereum::header::Header, + pub transactions: ::std::vec::Vec<_0>, + pub ommers: ::std::vec::Vec, + } + } + pub mod header { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Header { + pub parent_hash: ::subxt::utils::H256, + pub ommers_hash: ::subxt::utils::H256, + pub beneficiary: ::subxt::utils::H160, + pub state_root: ::subxt::utils::H256, + pub transactions_root: ::subxt::utils::H256, + pub receipts_root: ::subxt::utils::H256, + pub logs_bloom: runtime_types::ethbloom::Bloom, + pub difficulty: runtime_types::primitive_types::U256, + pub number: runtime_types::primitive_types::U256, + pub gas_limit: runtime_types::primitive_types::U256, + pub gas_used: runtime_types::primitive_types::U256, + pub timestamp: ::core::primitive::u64, + pub extra_data: ::std::vec::Vec<::core::primitive::u8>, + pub mix_hash: ::subxt::utils::H256, + pub nonce: runtime_types::ethereum_types::hash::H64, + } + } + pub mod log { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Log { + pub address: ::subxt::utils::H160, + pub topics: ::std::vec::Vec<::subxt::utils::H256>, + pub data: ::std::vec::Vec<::core::primitive::u8>, + } + } + pub mod receipt { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EIP658ReceiptData { + pub status_code: ::core::primitive::u8, + pub used_gas: runtime_types::primitive_types::U256, + pub logs_bloom: runtime_types::ethbloom::Bloom, + pub logs: ::std::vec::Vec, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ReceiptV3 { + #[codec(index = 0)] + Legacy(runtime_types::ethereum::receipt::EIP658ReceiptData), + #[codec(index = 1)] + EIP2930(runtime_types::ethereum::receipt::EIP658ReceiptData), + #[codec(index = 2)] + EIP1559(runtime_types::ethereum::receipt::EIP658ReceiptData), + } + } + pub mod transaction { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccessListItem { + pub address: ::subxt::utils::H160, + pub storage_keys: ::std::vec::Vec<::subxt::utils::H256>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EIP1559Transaction { + pub chain_id: ::core::primitive::u64, + pub nonce: runtime_types::primitive_types::U256, + pub max_priority_fee_per_gas: runtime_types::primitive_types::U256, + pub max_fee_per_gas: runtime_types::primitive_types::U256, + pub gas_limit: runtime_types::primitive_types::U256, + pub action: runtime_types::ethereum::transaction::TransactionAction, + pub value: runtime_types::primitive_types::U256, + pub input: ::std::vec::Vec<::core::primitive::u8>, + pub access_list: + ::std::vec::Vec, + pub odd_y_parity: ::core::primitive::bool, + pub r: ::subxt::utils::H256, + pub s: ::subxt::utils::H256, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EIP2930Transaction { + pub chain_id: ::core::primitive::u64, + pub nonce: runtime_types::primitive_types::U256, + pub gas_price: runtime_types::primitive_types::U256, + pub gas_limit: runtime_types::primitive_types::U256, + pub action: runtime_types::ethereum::transaction::TransactionAction, + pub value: runtime_types::primitive_types::U256, + pub input: ::std::vec::Vec<::core::primitive::u8>, + pub access_list: + ::std::vec::Vec, + pub odd_y_parity: ::core::primitive::bool, + pub r: ::subxt::utils::H256, + pub s: ::subxt::utils::H256, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct LegacyTransaction { + pub nonce: runtime_types::primitive_types::U256, + pub gas_price: runtime_types::primitive_types::U256, + pub gas_limit: runtime_types::primitive_types::U256, + pub action: runtime_types::ethereum::transaction::TransactionAction, + pub value: runtime_types::primitive_types::U256, + pub input: ::std::vec::Vec<::core::primitive::u8>, + pub signature: runtime_types::ethereum::transaction::TransactionSignature, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum TransactionAction { + #[codec(index = 0)] + Call(::subxt::utils::H160), + #[codec(index = 1)] + Create, + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TransactionRecoveryId(pub ::core::primitive::u64); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TransactionSignature { + pub v: runtime_types::ethereum::transaction::TransactionRecoveryId, + pub r: ::subxt::utils::H256, + pub s: ::subxt::utils::H256, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum TransactionV2 { + #[codec(index = 0)] + Legacy(runtime_types::ethereum::transaction::LegacyTransaction), + #[codec(index = 1)] + EIP2930(runtime_types::ethereum::transaction::EIP2930Transaction), + #[codec(index = 2)] + EIP1559(runtime_types::ethereum::transaction::EIP1559Transaction), + } + } + } + pub mod ethereum_types { + use super::runtime_types; + pub mod hash { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct H64(pub [::core::primitive::u8; 8usize]); + } + } + pub mod evm { + use super::runtime_types; + pub mod backend { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Basic { + pub balance: runtime_types::primitive_types::U256, + pub nonce: runtime_types::primitive_types::U256, + } + } + } + pub mod evm_core { + use super::runtime_types; + pub mod error { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ExitError { + #[codec(index = 0)] + StackUnderflow, + #[codec(index = 1)] + StackOverflow, + #[codec(index = 2)] + InvalidJump, + #[codec(index = 3)] + InvalidRange, + #[codec(index = 4)] + DesignatedInvalid, + #[codec(index = 5)] + CallTooDeep, + #[codec(index = 6)] + CreateCollision, + #[codec(index = 7)] + CreateContractLimit, + #[codec(index = 15)] + InvalidCode(runtime_types::evm_core::opcode::Opcode), + #[codec(index = 8)] + OutOfOffset, + #[codec(index = 9)] + OutOfGas, + #[codec(index = 10)] + OutOfFund, + #[codec(index = 11)] + PCUnderflow, + #[codec(index = 12)] + CreateEmpty, + #[codec(index = 13)] + Other(::std::string::String), + #[codec(index = 14)] + MaxNonce, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ExitFatal { + #[codec(index = 0)] + NotSupported, + #[codec(index = 1)] + UnhandledInterrupt, + #[codec(index = 2)] + CallErrorAsFatal(runtime_types::evm_core::error::ExitError), + #[codec(index = 3)] + Other(::std::string::String), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ExitReason { + #[codec(index = 0)] + Succeed(runtime_types::evm_core::error::ExitSucceed), + #[codec(index = 1)] + Error(runtime_types::evm_core::error::ExitError), + #[codec(index = 2)] + Revert(runtime_types::evm_core::error::ExitRevert), + #[codec(index = 3)] + Fatal(runtime_types::evm_core::error::ExitFatal), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ExitRevert { + #[codec(index = 0)] + Reverted, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ExitSucceed { + #[codec(index = 0)] + Stopped, + #[codec(index = 1)] + Returned, + #[codec(index = 2)] + Suicided, + } + } + pub mod opcode { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Opcode(pub ::core::primitive::u8); + } + } + pub mod finality_grandpa { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Equivocation<_0, _1, _2> { + pub round_number: ::core::primitive::u64, + pub identity: _0, + pub first: (_1, _2), + pub second: (_1, _2), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Precommit<_0, _1> { + pub target_hash: _0, + pub target_number: _1, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Prevote<_0, _1> { + pub target_hash: _0, + pub target_number: _1, + } + } + pub mod fp_evm { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecutionInfoV2<_0> { + pub exit_reason: runtime_types::evm_core::error::ExitReason, + pub value: _0, + pub used_gas: runtime_types::fp_evm::UsedGas, + pub weight_info: ::core::option::Option, + pub logs: ::std::vec::Vec, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UsedGas { + pub standard: runtime_types::primitive_types::U256, + pub effective: runtime_types::primitive_types::U256, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WeightInfo { + pub ref_time_limit: ::core::option::Option<::core::primitive::u64>, + pub proof_size_limit: ::core::option::Option<::core::primitive::u64>, + pub ref_time_usage: ::core::option::Option<::core::primitive::u64>, + pub proof_size_usage: ::core::option::Option<::core::primitive::u64>, + } + } + pub mod fp_rpc { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TransactionStatus { + pub transaction_hash: ::subxt::utils::H256, + pub transaction_index: ::core::primitive::u32, + pub from: ::subxt::utils::H160, + pub to: ::core::option::Option<::subxt::utils::H160>, + pub contract_address: ::core::option::Option<::subxt::utils::H160>, + pub logs: ::std::vec::Vec, + pub logs_bloom: runtime_types::ethbloom::Bloom, + } + } + pub mod fp_self_contained { + use super::runtime_types; + pub mod unchecked_extrinsic { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UncheckedExtrinsic<_0, _1, _2, _3>( + pub ::subxt::utils::UncheckedExtrinsic<_0, _1, _2, _3>, + ); + } + } + pub mod frame_support { + use super::runtime_types; + pub mod dispatch { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum DispatchClass { + #[codec(index = 0)] + Normal, + #[codec(index = 1)] + Operational, + #[codec(index = 2)] + Mandatory, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DispatchInfo { + pub weight: runtime_types::sp_weights::weight_v2::Weight, + pub class: runtime_types::frame_support::dispatch::DispatchClass, + pub pays_fee: runtime_types::frame_support::dispatch::Pays, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Pays { + #[codec(index = 0)] + Yes, + #[codec(index = 1)] + No, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PerDispatchClass<_0> { + pub normal: _0, + pub operational: _0, + pub mandatory: _0, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RawOrigin<_0> { + #[codec(index = 0)] + Root, + #[codec(index = 1)] + Signed(_0), + #[codec(index = 2)] + None, + } + } + pub mod traits { + use super::runtime_types; + pub mod preimages { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Bounded<_0> { + #[codec(index = 0)] + Legacy { + hash: ::subxt::utils::H256, + }, + #[codec(index = 1)] + Inline( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ), + #[codec(index = 2)] + Lookup { + hash: ::subxt::utils::H256, + len: ::core::primitive::u32, + }, + __Ignore(::core::marker::PhantomData<_0>), + } + } + pub mod tokens { + use super::runtime_types; + pub mod misc { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum BalanceStatus { + #[codec(index = 0)] + Free, + #[codec(index = 1)] + Reserved, + } + } + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PalletId(pub [::core::primitive::u8; 8usize]); + } + pub mod frame_system { + use super::runtime_types; + pub mod extensions { + use super::runtime_types; + pub mod check_genesis { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckGenesis; + } + pub mod check_mortality { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era); + } + pub mod check_non_zero_sender { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckNonZeroSender; + } + pub mod check_nonce { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32); + } + pub mod check_spec_version { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckSpecVersion; + } + pub mod check_tx_version { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckTxVersion; + } + pub mod check_weight { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckWeight; + } + } + pub mod limits { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BlockLength { + pub max: runtime_types::frame_support::dispatch::PerDispatchClass< + ::core::primitive::u32, + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BlockWeights { + pub base_block: runtime_types::sp_weights::weight_v2::Weight, + pub max_block: runtime_types::sp_weights::weight_v2::Weight, + pub per_class: runtime_types::frame_support::dispatch::PerDispatchClass< + runtime_types::frame_system::limits::WeightsPerClass, + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WeightsPerClass { + pub base_extrinsic: runtime_types::sp_weights::weight_v2::Weight, + pub max_extrinsic: + ::core::option::Option, + pub max_total: + ::core::option::Option, + pub reserved: + ::core::option::Option, + } + } + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::remark`]. + remark { remark: ::std::vec::Vec<::core::primitive::u8> }, + #[codec(index = 1)] + ///See [`Pallet::set_heap_pages`]. + set_heap_pages { pages: ::core::primitive::u64 }, + #[codec(index = 2)] + ///See [`Pallet::set_code`]. + set_code { code: ::std::vec::Vec<::core::primitive::u8> }, + #[codec(index = 3)] + ///See [`Pallet::set_code_without_checks`]. + set_code_without_checks { code: ::std::vec::Vec<::core::primitive::u8> }, + #[codec(index = 4)] + ///See [`Pallet::set_storage`]. + set_storage { + items: ::std::vec::Vec<( + ::std::vec::Vec<::core::primitive::u8>, + ::std::vec::Vec<::core::primitive::u8>, + )>, + }, + #[codec(index = 5)] + ///See [`Pallet::kill_storage`]. + kill_storage { keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>> }, + #[codec(index = 6)] + ///See [`Pallet::kill_prefix`]. + kill_prefix { + prefix: ::std::vec::Vec<::core::primitive::u8>, + subkeys: ::core::primitive::u32, + }, + #[codec(index = 7)] + ///See [`Pallet::remark_with_event`]. + remark_with_event { remark: ::std::vec::Vec<::core::primitive::u8> }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Error for the System pallet + pub enum Error { + #[codec(index = 0)] + ///The name of specification does not match between the current runtime + ///and the new runtime. + InvalidSpecName, + #[codec(index = 1)] + ///The specification version is not allowed to decrease between the current + /// runtime and the new runtime. + SpecVersionNeedsToIncrease, + #[codec(index = 2)] + ///Failed to extract the runtime version from the new runtime. + /// + ///Either calling `Core_version` or decoding `RuntimeVersion` failed. + FailedToExtractRuntimeVersion, + #[codec(index = 3)] + ///Suicide called when the account has non-default composite data. + NonDefaultComposite, + #[codec(index = 4)] + ///There is a non-zero reference count preventing the account from being + /// purged. + NonZeroRefCount, + #[codec(index = 5)] + ///The origin filter prevent the call to be dispatched. + CallFiltered, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Event for the System pallet. + pub enum Event { + #[codec(index = 0)] + ///An extrinsic completed successfully. + ExtrinsicSuccess { + dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, + }, + #[codec(index = 1)] + ///An extrinsic failed. + ExtrinsicFailed { + dispatch_error: runtime_types::sp_runtime::DispatchError, + dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, + }, + #[codec(index = 2)] + ///`:code` was updated. + CodeUpdated, + #[codec(index = 3)] + ///A new account was created. + NewAccount { account: ::subxt::utils::AccountId32 }, + #[codec(index = 4)] + ///An account was reaped. + KilledAccount { account: ::subxt::utils::AccountId32 }, + #[codec(index = 5)] + ///On on-chain remark happened. + Remarked { sender: ::subxt::utils::AccountId32, hash: ::subxt::utils::H256 }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountInfo<_0, _1> { + pub nonce: _0, + pub consumers: ::core::primitive::u32, + pub providers: ::core::primitive::u32, + pub sufficients: ::core::primitive::u32, + pub data: _1, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EventRecord<_0, _1> { + pub phase: runtime_types::frame_system::Phase, + pub event: _0, + pub topics: ::std::vec::Vec<_1>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct LastRuntimeUpgradeInfo { + #[codec(compact)] + pub spec_version: ::core::primitive::u32, + pub spec_name: ::std::string::String, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Phase { + #[codec(index = 0)] + ApplyExtrinsic(::core::primitive::u32), + #[codec(index = 1)] + Finalization, + #[codec(index = 2)] + Initialization, + } + } + pub mod pallet_airdrop_claims { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::claim`]. + claim { + dest: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + signer: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + signature: + runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature, + }, + #[codec(index = 1)] + ///See [`Pallet::mint_claim`]. + mint_claim { + who: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + value: ::core::primitive::u128, + vesting_schedule: ::core::option::Option< + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u128, + ::core::primitive::u128, + ::core::primitive::u64, + )>, + >, + statement: ::core::option::Option< + runtime_types::pallet_airdrop_claims::StatementKind, + >, + }, + #[codec(index = 2)] + ///See [`Pallet::claim_attest`]. + claim_attest { + dest: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + signer: ::core::option::Option< + runtime_types::pallet_airdrop_claims::utils::MultiAddress, + >, + signature: + runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature, + statement: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 4)] + ///See [`Pallet::move_claim`]. + move_claim { + old: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + new: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + }, + #[codec(index = 5)] + ///See [`Pallet::force_set_expiry_config`]. + force_set_expiry_config { + expiry_block: ::core::primitive::u64, + dest: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Invalid Ethereum signature. + InvalidEthereumSignature, + #[codec(index = 1)] + ///Invalid Native (sr25519) signature + InvalidNativeSignature, + #[codec(index = 2)] + ///Invalid Native account decoding + InvalidNativeAccount, + #[codec(index = 3)] + ///Ethereum address has no claim. + SignerHasNoClaim, + #[codec(index = 4)] + ///Account ID sending transaction has no claim. + SenderHasNoClaim, + #[codec(index = 5)] + ///There's not enough in the pot to pay out some unvested amount. Generally + /// implies a logic error. + PotUnderflow, + #[codec(index = 6)] + ///A needed statement was not included. + InvalidStatement, + #[codec(index = 7)] + ///The account already has a vested balance. + VestedBalanceExists, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///Someone claimed some native tokens. + Claimed { + recipient: ::subxt::utils::AccountId32, + source: runtime_types::pallet_airdrop_claims::utils::MultiAddress, + amount: ::core::primitive::u128, + }, + } + } + pub mod utils { + use super::runtime_types; + pub mod ethereum_address { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EcdsaSignature(pub [::core::primitive::u8; 65usize]); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EthereumAddress(pub [::core::primitive::u8; 20usize]); + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MultiAddress { + #[codec(index = 0)] + EVM( + runtime_types::pallet_airdrop_claims::utils::ethereum_address::EthereumAddress, + ), + #[codec(index = 1)] + Native(::subxt::utils::AccountId32), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MultiAddressSignature { + #[codec(index = 0)] + EVM( + runtime_types::pallet_airdrop_claims::utils::ethereum_address::EcdsaSignature, + ), + #[codec(index = 1)] + Native( + runtime_types::pallet_airdrop_claims::utils::Sr25519Signature, + ), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Sr25519Signature(pub runtime_types::sp_core::sr25519::Signature); + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum StatementKind { + #[codec(index = 0)] + Regular, + #[codec(index = 1)] + Safe, + } + } + pub mod pallet_babe { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::report_equivocation`]. + report_equivocation { + equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + >, + runtime_types::sp_consensus_babe::app::Public, + >, + >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + }, + #[codec(index = 1)] + ///See [`Pallet::report_equivocation_unsigned`]. + report_equivocation_unsigned { + equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_slots::EquivocationProof< + runtime_types::sp_runtime::generic::header::Header< + ::core::primitive::u64, + >, + runtime_types::sp_consensus_babe::app::Public, + >, + >, + key_owner_proof: runtime_types::sp_session::MembershipProof, + }, + #[codec(index = 2)] + ///See [`Pallet::plan_config_change`]. + plan_config_change { + config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///An equivocation proof provided as part of an equivocation report is + /// invalid. + InvalidEquivocationProof, + #[codec(index = 1)] + ///A key ownership proof provided as part of an equivocation report is + /// invalid. + InvalidKeyOwnershipProof, + #[codec(index = 2)] + ///A given equivocation report is valid but already previously reported. + DuplicateOffenceReport, + #[codec(index = 3)] + ///Submitted configuration is invalid. + InvalidConfiguration, + } + } + } + pub mod pallet_bags_list { + use super::runtime_types; + pub mod list { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Bag { + pub head: ::core::option::Option<::subxt::utils::AccountId32>, + pub tail: ::core::option::Option<::subxt::utils::AccountId32>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ListError { + #[codec(index = 0)] + Duplicate, + #[codec(index = 1)] + NotHeavier, + #[codec(index = 2)] + NotInSameBag, + #[codec(index = 3)] + NodeNotFound, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Node { + 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, + } + } + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::rebag`]. + rebag { + dislocated: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + ///See [`Pallet::put_in_front_of`]. + put_in_front_of { + lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 2)] + ///See [`Pallet::put_in_front_of_other`]. + put_in_front_of_other { + heavier: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + lighter: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///A error in the list interface implementation. + List(runtime_types::pallet_bags_list::list::ListError), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///Moved an account from one bag to another. + Rebagged { + who: ::subxt::utils::AccountId32, + from: ::core::primitive::u64, + to: ::core::primitive::u64, + }, + #[codec(index = 1)] + ///Updated the score of some account to the given amount. + ScoreUpdated { + who: ::subxt::utils::AccountId32, + new_score: ::core::primitive::u64, + }, + } + } + } + pub mod pallet_balances { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::transfer_allow_death`]. + transfer_allow_death { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 1)] + ///See [`Pallet::set_balance_deprecated`]. + set_balance_deprecated { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + new_free: ::core::primitive::u128, + #[codec(compact)] + old_reserved: ::core::primitive::u128, + }, + #[codec(index = 2)] + ///See [`Pallet::force_transfer`]. + force_transfer { + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 3)] + ///See [`Pallet::transfer_keep_alive`]. + transfer_keep_alive { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 4)] + ///See [`Pallet::transfer_all`]. + transfer_all { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + keep_alive: ::core::primitive::bool, + }, + #[codec(index = 5)] + ///See [`Pallet::force_unreserve`]. + force_unreserve { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + amount: ::core::primitive::u128, + }, + #[codec(index = 6)] + ///See [`Pallet::upgrade_accounts`]. + upgrade_accounts { who: ::std::vec::Vec<::subxt::utils::AccountId32> }, + #[codec(index = 7)] + ///See [`Pallet::transfer`]. + transfer { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 8)] + ///See [`Pallet::force_set_balance`]. + force_set_balance { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + new_free: ::core::primitive::u128, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Vesting balance too high to send value. + VestingBalance, + #[codec(index = 1)] + ///Account liquidity restrictions prevent withdrawal. + LiquidityRestrictions, + #[codec(index = 2)] + ///Balance too low to send value. + InsufficientBalance, + #[codec(index = 3)] + ///Value too low to create account due to existential deposit. + ExistentialDeposit, + #[codec(index = 4)] + ///Transfer/payment would kill account. + Expendability, + #[codec(index = 5)] + ///A vesting schedule already exists for this account. + ExistingVestingSchedule, + #[codec(index = 6)] + ///Beneficiary account must pre-exist. + DeadAccount, + #[codec(index = 7)] + ///Number of named reserves exceed `MaxReserves`. + TooManyReserves, + #[codec(index = 8)] + ///Number of holds exceed `MaxHolds`. + TooManyHolds, + #[codec(index = 9)] + ///Number of freezes exceed `MaxFreezes`. + TooManyFreezes, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///An account was created with some free balance. + Endowed { + account: ::subxt::utils::AccountId32, + free_balance: ::core::primitive::u128, + }, + #[codec(index = 1)] + ///An account was removed whose balance was non-zero but below + /// ExistentialDeposit, resulting in an outright loss. + DustLost { + account: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 2)] + ///Transfer succeeded. + Transfer { + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 3)] + ///A balance was set by root. + BalanceSet { who: ::subxt::utils::AccountId32, free: ::core::primitive::u128 }, + #[codec(index = 4)] + ///Some balance was reserved (moved from free to reserved). + Reserved { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + #[codec(index = 5)] + ///Some balance was unreserved (moved from reserved to free). + Unreserved { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + #[codec(index = 6)] + ///Some balance was moved from the reserve of the first account to the second + /// account. Final argument indicates the destination balance type. + ReserveRepatriated { + from: ::subxt::utils::AccountId32, + to: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + destination_status: + runtime_types::frame_support::traits::tokens::misc::BalanceStatus, + }, + #[codec(index = 7)] + ///Some amount was deposited (e.g. for transaction fees). + Deposit { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + #[codec(index = 8)] + ///Some amount was withdrawn from the account (e.g. for transaction fees). + Withdraw { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + #[codec(index = 9)] + ///Some amount was removed from the account (e.g. for misbehavior). + Slashed { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + #[codec(index = 10)] + ///Some amount was minted into an account. + Minted { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + #[codec(index = 11)] + ///Some amount was burned from an account. + Burned { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + #[codec(index = 12)] + ///Some amount was suspended from an account (it can be restored later). + Suspended { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + #[codec(index = 13)] + ///Some amount was restored into an account. + Restored { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + #[codec(index = 14)] + ///An account was upgraded. + Upgraded { who: ::subxt::utils::AccountId32 }, + #[codec(index = 15)] + ///Total issuance was increased by `amount`, creating a credit to be balanced. + Issued { amount: ::core::primitive::u128 }, + #[codec(index = 16)] + ///Total issuance was decreased by `amount`, creating a debt to be balanced. + Rescinded { amount: ::core::primitive::u128 }, + #[codec(index = 17)] + ///Some balance was locked. + Locked { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + #[codec(index = 18)] + ///Some balance was unlocked. + Unlocked { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + #[codec(index = 19)] + ///Some balance was frozen. + Frozen { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + #[codec(index = 20)] + ///Some balance was thawed. + Thawed { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountData<_0> { + pub free: _0, + pub reserved: _0, + pub frozen: _0, + pub flags: runtime_types::pallet_balances::types::ExtraFlags, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BalanceLock<_0> { + pub id: [::core::primitive::u8; 8usize], + pub amount: _0, + pub reasons: runtime_types::pallet_balances::types::Reasons, + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExtraFlags(pub ::core::primitive::u128); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct IdAmount<_0, _1> { + pub id: _0, + pub amount: _1, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Reasons { + #[codec(index = 0)] + Fee, + #[codec(index = 1)] + Misc, + #[codec(index = 2)] + All, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReserveData<_0, _1> { + pub id: _0, + pub amount: _1, + } + } + } + pub mod pallet_base_fee { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::set_base_fee_per_gas`]. + set_base_fee_per_gas { fee: runtime_types::primitive_types::U256 }, + #[codec(index = 1)] + ///See [`Pallet::set_elasticity`]. + set_elasticity { elasticity: runtime_types::sp_arithmetic::per_things::Permill }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + NewBaseFeePerGas { fee: runtime_types::primitive_types::U256 }, + #[codec(index = 1)] + BaseFeeOverflow, + #[codec(index = 2)] + NewElasticity { elasticity: runtime_types::sp_arithmetic::per_things::Permill }, + } + } + } + pub mod pallet_bounties { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::propose_bounty`]. + propose_bounty { + #[codec(compact)] + value: ::core::primitive::u128, + description: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 1)] + ///See [`Pallet::approve_bounty`]. + approve_bounty { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, + #[codec(index = 2)] + ///See [`Pallet::propose_curator`]. + propose_curator { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + fee: ::core::primitive::u128, + }, + #[codec(index = 3)] + ///See [`Pallet::unassign_curator`]. + unassign_curator { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, + #[codec(index = 4)] + ///See [`Pallet::accept_curator`]. + accept_curator { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, + #[codec(index = 5)] + ///See [`Pallet::award_bounty`]. + award_bounty { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 6)] + ///See [`Pallet::claim_bounty`]. + claim_bounty { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, + #[codec(index = 7)] + ///See [`Pallet::close_bounty`]. + close_bounty { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + }, + #[codec(index = 8)] + ///See [`Pallet::extend_bounty_expiry`]. + extend_bounty_expiry { + #[codec(compact)] + bounty_id: ::core::primitive::u32, + remark: ::std::vec::Vec<::core::primitive::u8>, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Proposer's balance is too low. + InsufficientProposersBalance, + #[codec(index = 1)] + ///No proposal or bounty at that index. + InvalidIndex, + #[codec(index = 2)] + ///The reason given is just too big. + ReasonTooBig, + #[codec(index = 3)] + ///The bounty status is unexpected. + UnexpectedStatus, + #[codec(index = 4)] + ///Require bounty curator. + RequireCurator, + #[codec(index = 5)] + ///Invalid bounty value. + InvalidValue, + #[codec(index = 6)] + ///Invalid bounty fee. + InvalidFee, + #[codec(index = 7)] + ///A bounty payout is pending. + ///To cancel the bounty, you must unassign and slash the curator. + PendingPayout, + #[codec(index = 8)] + ///The bounties cannot be claimed/closed because it's still in the countdown + /// period. + Premature, + #[codec(index = 9)] + ///The bounty cannot be closed because it has active child bounties. + HasActiveChildBounty, + #[codec(index = 10)] + ///Too many approvals are already queued. + TooManyQueued, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///New bounty proposal. + BountyProposed { index: ::core::primitive::u32 }, + #[codec(index = 1)] + ///A bounty proposal was rejected; funds were slashed. + BountyRejected { index: ::core::primitive::u32, bond: ::core::primitive::u128 }, + #[codec(index = 2)] + ///A bounty proposal is funded and became active. + BountyBecameActive { index: ::core::primitive::u32 }, + #[codec(index = 3)] + ///A bounty is awarded to a beneficiary. + BountyAwarded { + index: ::core::primitive::u32, + beneficiary: ::subxt::utils::AccountId32, + }, + #[codec(index = 4)] + ///A bounty is claimed by beneficiary. + BountyClaimed { + index: ::core::primitive::u32, + payout: ::core::primitive::u128, + beneficiary: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + ///A bounty is cancelled. + BountyCanceled { index: ::core::primitive::u32 }, + #[codec(index = 6)] + ///A bounty expiry is extended. + BountyExtended { index: ::core::primitive::u32 }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Bounty<_0, _1, _2> { + pub proposer: _0, + pub value: _1, + pub fee: _1, + pub curator_deposit: _1, + pub bond: _1, + pub status: runtime_types::pallet_bounties::BountyStatus<_0, _2>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum BountyStatus<_0, _1> { + #[codec(index = 0)] + Proposed, + #[codec(index = 1)] + Approved, + #[codec(index = 2)] + Funded, + #[codec(index = 3)] + CuratorProposed { curator: _0 }, + #[codec(index = 4)] + Active { curator: _0, update_due: _1 }, + #[codec(index = 5)] + PendingPayout { curator: _0, beneficiary: _0, unlock_at: _1 }, + } + } + pub mod pallet_child_bounties { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::add_child_bounty`]. + add_child_bounty { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + value: ::core::primitive::u128, + description: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 1)] + ///See [`Pallet::propose_curator`]. + propose_curator { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + curator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + fee: ::core::primitive::u128, + }, + #[codec(index = 2)] + ///See [`Pallet::accept_curator`]. + accept_curator { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + }, + #[codec(index = 3)] + ///See [`Pallet::unassign_curator`]. + unassign_curator { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + }, + #[codec(index = 4)] + ///See [`Pallet::award_child_bounty`]. + award_child_bounty { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 5)] + ///See [`Pallet::claim_child_bounty`]. + claim_child_bounty { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + }, + #[codec(index = 6)] + ///See [`Pallet::close_child_bounty`]. + close_child_bounty { + #[codec(compact)] + parent_bounty_id: ::core::primitive::u32, + #[codec(compact)] + child_bounty_id: ::core::primitive::u32, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///The parent bounty is not in active state. + ParentBountyNotActive, + #[codec(index = 1)] + ///The bounty balance is not enough to add new child-bounty. + InsufficientBountyBalance, + #[codec(index = 2)] + ///Number of child bounties exceeds limit `MaxActiveChildBountyCount`. + TooManyChildBounties, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A child-bounty is added. + Added { index: ::core::primitive::u32, child_index: ::core::primitive::u32 }, + #[codec(index = 1)] + ///A child-bounty is awarded to a beneficiary. + Awarded { + index: ::core::primitive::u32, + child_index: ::core::primitive::u32, + beneficiary: ::subxt::utils::AccountId32, + }, + #[codec(index = 2)] + ///A child-bounty is claimed by beneficiary. + Claimed { + index: ::core::primitive::u32, + child_index: ::core::primitive::u32, + payout: ::core::primitive::u128, + beneficiary: ::subxt::utils::AccountId32, + }, + #[codec(index = 3)] + ///A child-bounty is cancelled. + Canceled { index: ::core::primitive::u32, child_index: ::core::primitive::u32 }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChildBounty<_0, _1, _2> { + pub parent_bounty: ::core::primitive::u32, + pub value: _1, + pub fee: _1, + pub curator_deposit: _1, + pub status: runtime_types::pallet_child_bounties::ChildBountyStatus<_0, _2>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ChildBountyStatus<_0, _1> { + #[codec(index = 0)] + Added, + #[codec(index = 1)] + CuratorProposed { curator: _0 }, + #[codec(index = 2)] + Active { curator: _0 }, + #[codec(index = 3)] + PendingPayout { curator: _0, beneficiary: _0, unlock_at: _1 }, + } + } + pub mod pallet_collective { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::set_members`]. + set_members { + new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, + prime: ::core::option::Option<::subxt::utils::AccountId32>, + old_count: ::core::primitive::u32, + }, + #[codec(index = 1)] + ///See [`Pallet::execute`]. + execute { + proposal: + ::std::boxed::Box, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 2)] + ///See [`Pallet::propose`]. + propose { + #[codec(compact)] + threshold: ::core::primitive::u32, + proposal: + ::std::boxed::Box, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + #[codec(index = 3)] + ///See [`Pallet::vote`]. + vote { + proposal: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + approve: ::core::primitive::bool, + }, + #[codec(index = 5)] + ///See [`Pallet::disapprove_proposal`]. + disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 6)] + ///See [`Pallet::close`]. + close { + proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + proposal_weight_bound: runtime_types::sp_weights::weight_v2::Weight, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Account is not a member + NotMember, + #[codec(index = 1)] + ///Duplicate proposals not allowed + DuplicateProposal, + #[codec(index = 2)] + ///Proposal must exist + ProposalMissing, + #[codec(index = 3)] + ///Mismatched index + WrongIndex, + #[codec(index = 4)] + ///Duplicate vote ignored + DuplicateVote, + #[codec(index = 5)] + ///Members are already initialized! + AlreadyInitialized, + #[codec(index = 6)] + ///The close call was made too early, before the end of the voting. + TooEarly, + #[codec(index = 7)] + ///There can only be a maximum of `MaxProposals` active proposals. + TooManyProposals, + #[codec(index = 8)] + ///The given weight bound for the proposal was too low. + WrongProposalWeight, + #[codec(index = 9)] + ///The given length bound for the proposal was too low. + WrongProposalLength, + #[codec(index = 10)] + ///Prime account is not a member + PrimeAccountNotMember, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A motion (given hash) has been proposed (by given account) with a threshold + /// (given `MemberCount`). + Proposed { + account: ::subxt::utils::AccountId32, + proposal_index: ::core::primitive::u32, + proposal_hash: ::subxt::utils::H256, + threshold: ::core::primitive::u32, + }, + #[codec(index = 1)] + ///A motion (given hash) has been voted on by given account, leaving + ///a tally (yes votes and no votes given respectively as `MemberCount`). + Voted { + account: ::subxt::utils::AccountId32, + proposal_hash: ::subxt::utils::H256, + voted: ::core::primitive::bool, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, + }, + #[codec(index = 2)] + ///A motion was approved by the required threshold. + Approved { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 3)] + ///A motion was not approved by the required threshold. + Disapproved { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 4)] + ///A motion was executed; result will be `Ok` if it returned without error. + Executed { + proposal_hash: ::subxt::utils::H256, + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 5)] + ///A single member did some action; result will be `Ok` if it returned without + /// error. + MemberExecuted { + proposal_hash: ::subxt::utils::H256, + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 6)] + ///A proposal was closed because its threshold was reached or after its + /// duration was up. + Closed { + proposal_hash: ::subxt::utils::H256, + yes: ::core::primitive::u32, + no: ::core::primitive::u32, + }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RawOrigin<_0> { + #[codec(index = 0)] + Members(::core::primitive::u32, ::core::primitive::u32), + #[codec(index = 1)] + Member(_0), + #[codec(index = 2)] + _Phantom, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Votes<_0, _1> { + pub index: ::core::primitive::u32, + pub threshold: ::core::primitive::u32, + pub ayes: ::std::vec::Vec<_0>, + pub nays: ::std::vec::Vec<_0>, + pub end: _1, + } + } + pub mod pallet_democracy { + use super::runtime_types; + pub mod conviction { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Conviction { + #[codec(index = 0)] + None, + #[codec(index = 1)] + Locked1x, + #[codec(index = 2)] + Locked2x, + #[codec(index = 3)] + Locked3x, + #[codec(index = 4)] + Locked4x, + #[codec(index = 5)] + Locked5x, + #[codec(index = 6)] + Locked6x, + } + } + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::propose`]. + propose { + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 1)] + ///See [`Pallet::second`]. + second { + #[codec(compact)] + proposal: ::core::primitive::u32, + }, + #[codec(index = 2)] + ///See [`Pallet::vote`]. + vote { + #[codec(compact)] + ref_index: ::core::primitive::u32, + vote: runtime_types::pallet_democracy::vote::AccountVote< + ::core::primitive::u128, + >, + }, + #[codec(index = 3)] + ///See [`Pallet::emergency_cancel`]. + emergency_cancel { ref_index: ::core::primitive::u32 }, + #[codec(index = 4)] + ///See [`Pallet::external_propose`]. + external_propose { + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + }, + #[codec(index = 5)] + ///See [`Pallet::external_propose_majority`]. + external_propose_majority { + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + }, + #[codec(index = 6)] + ///See [`Pallet::external_propose_default`]. + external_propose_default { + proposal: runtime_types::frame_support::traits::preimages::Bounded< + runtime_types::tangle_testnet_runtime::RuntimeCall, + >, + }, + #[codec(index = 7)] + ///See [`Pallet::fast_track`]. + fast_track { + proposal_hash: ::subxt::utils::H256, + voting_period: ::core::primitive::u64, + delay: ::core::primitive::u64, + }, + #[codec(index = 8)] + ///See [`Pallet::veto_external`]. + veto_external { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 9)] + ///See [`Pallet::cancel_referendum`]. + cancel_referendum { + #[codec(compact)] + ref_index: ::core::primitive::u32, + }, + #[codec(index = 10)] + ///See [`Pallet::delegate`]. + delegate { + to: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + conviction: runtime_types::pallet_democracy::conviction::Conviction, + balance: ::core::primitive::u128, + }, + #[codec(index = 11)] + ///See [`Pallet::undelegate`]. + undelegate, + #[codec(index = 12)] + ///See [`Pallet::clear_public_proposals`]. + clear_public_proposals, + #[codec(index = 13)] + ///See [`Pallet::unlock`]. + unlock { + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 14)] + ///See [`Pallet::remove_vote`]. + remove_vote { index: ::core::primitive::u32 }, + #[codec(index = 15)] + ///See [`Pallet::remove_other_vote`]. + remove_other_vote { + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + }, + #[codec(index = 16)] + ///See [`Pallet::blacklist`]. + blacklist { + proposal_hash: ::subxt::utils::H256, + maybe_ref_index: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 17)] + ///See [`Pallet::cancel_proposal`]. + cancel_proposal { + #[codec(compact)] + prop_index: ::core::primitive::u32, + }, + #[codec(index = 18)] + ///See [`Pallet::set_metadata`]. + set_metadata { + owner: runtime_types::pallet_democracy::types::MetadataOwner, + maybe_hash: ::core::option::Option<::subxt::utils::H256>, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Value too low + ValueLow, + #[codec(index = 1)] + ///Proposal does not exist + ProposalMissing, + #[codec(index = 2)] + ///Cannot cancel the same proposal twice + AlreadyCanceled, + #[codec(index = 3)] + ///Proposal already made + DuplicateProposal, + #[codec(index = 4)] + ///Proposal still blacklisted + ProposalBlacklisted, + #[codec(index = 5)] + ///Next external proposal not simple majority + NotSimpleMajority, + #[codec(index = 6)] + ///Invalid hash + InvalidHash, + #[codec(index = 7)] + ///No external proposal + NoProposal, + #[codec(index = 8)] + ///Identity may not veto a proposal twice + AlreadyVetoed, + #[codec(index = 9)] + ///Vote given for invalid referendum + ReferendumInvalid, + #[codec(index = 10)] + ///No proposals waiting + NoneWaiting, + #[codec(index = 11)] + ///The given account did not vote on the referendum. + NotVoter, + #[codec(index = 12)] + ///The actor has no permission to conduct the action. + NoPermission, + #[codec(index = 13)] + ///The account is already delegating. + AlreadyDelegating, + #[codec(index = 14)] + ///Too high a balance was provided that the account cannot afford. + InsufficientFunds, + #[codec(index = 15)] + ///The account is not currently delegating. + NotDelegating, + #[codec(index = 16)] + ///The account currently has votes attached to it and the operation cannot + /// succeed until these are removed, either through `unvote` or `reap_vote`. + VotesExist, + #[codec(index = 17)] + ///The instant referendum origin is currently disallowed. + InstantNotAllowed, + #[codec(index = 18)] + ///Delegation to oneself makes no sense. + Nonsense, + #[codec(index = 19)] + ///Invalid upper bound. + WrongUpperBound, + #[codec(index = 20)] + ///Maximum number of votes reached. + MaxVotesReached, + #[codec(index = 21)] + ///Maximum number of items reached. + TooMany, + #[codec(index = 22)] + ///Voting period too low + VotingPeriodLow, + #[codec(index = 23)] + ///The preimage does not exist. + PreimageNotExist, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A motion has been proposed by a public account. + Proposed { + proposal_index: ::core::primitive::u32, + deposit: ::core::primitive::u128, + }, + #[codec(index = 1)] + ///A public proposal has been tabled for referendum vote. + Tabled { + proposal_index: ::core::primitive::u32, + deposit: ::core::primitive::u128, + }, + #[codec(index = 2)] + ///An external proposal has been tabled. + ExternalTabled, + #[codec(index = 3)] + ///A referendum has begun. + Started { + ref_index: ::core::primitive::u32, + threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, + }, + #[codec(index = 4)] + ///A proposal has been approved by referendum. + Passed { ref_index: ::core::primitive::u32 }, + #[codec(index = 5)] + ///A proposal has been rejected by referendum. + NotPassed { ref_index: ::core::primitive::u32 }, + #[codec(index = 6)] + ///A referendum has been cancelled. + Cancelled { ref_index: ::core::primitive::u32 }, + #[codec(index = 7)] + ///An account has delegated their vote to another account. + Delegated { + who: ::subxt::utils::AccountId32, + target: ::subxt::utils::AccountId32, + }, + #[codec(index = 8)] + ///An account has cancelled a previous delegation operation. + Undelegated { account: ::subxt::utils::AccountId32 }, + #[codec(index = 9)] + ///An external proposal has been vetoed. + Vetoed { + who: ::subxt::utils::AccountId32, + proposal_hash: ::subxt::utils::H256, + until: ::core::primitive::u64, + }, + #[codec(index = 10)] + ///A proposal_hash has been blacklisted permanently. + Blacklisted { proposal_hash: ::subxt::utils::H256 }, + #[codec(index = 11)] + ///An account has voted in a referendum + Voted { + voter: ::subxt::utils::AccountId32, + ref_index: ::core::primitive::u32, + vote: runtime_types::pallet_democracy::vote::AccountVote< + ::core::primitive::u128, + >, + }, + #[codec(index = 12)] + ///An account has secconded a proposal + Seconded { + seconder: ::subxt::utils::AccountId32, + prop_index: ::core::primitive::u32, + }, + #[codec(index = 13)] + ///A proposal got canceled. + ProposalCanceled { prop_index: ::core::primitive::u32 }, + #[codec(index = 14)] + ///Metadata for a proposal or a referendum has been set. + MetadataSet { + owner: runtime_types::pallet_democracy::types::MetadataOwner, + hash: ::subxt::utils::H256, + }, + #[codec(index = 15)] + ///Metadata for a proposal or a referendum has been cleared. + MetadataCleared { + owner: runtime_types::pallet_democracy::types::MetadataOwner, + hash: ::subxt::utils::H256, + }, + #[codec(index = 16)] + ///Metadata has been transferred to new owner. + MetadataTransferred { + prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, + owner: runtime_types::pallet_democracy::types::MetadataOwner, + hash: ::subxt::utils::H256, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Delegations<_0> { + pub votes: _0, + pub capital: _0, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MetadataOwner { + #[codec(index = 0)] + External, + #[codec(index = 1)] + Proposal(::core::primitive::u32), + #[codec(index = 2)] + Referendum(::core::primitive::u32), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ReferendumInfo<_0, _1, _2> { + #[codec(index = 0)] + Ongoing(runtime_types::pallet_democracy::types::ReferendumStatus<_0, _1, _2>), + #[codec(index = 1)] + Finished { approved: ::core::primitive::bool, end: _0 }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReferendumStatus<_0, _1, _2> { + pub end: _0, + pub proposal: _1, + pub threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, + pub delay: _0, + pub tally: runtime_types::pallet_democracy::types::Tally<_2>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Tally<_0> { + pub ayes: _0, + pub nays: _0, + pub turnout: _0, + } + } + pub mod vote { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum AccountVote<_0> { + #[codec(index = 0)] + Standard { vote: runtime_types::pallet_democracy::vote::Vote, balance: _0 }, + #[codec(index = 1)] + Split { aye: _0, nay: _0 }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PriorLock<_0, _1>(pub _0, pub _1); + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Vote(pub ::core::primitive::u8); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Voting<_0, _1, _2> { + #[codec(index = 0)] + Direct { + votes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + runtime_types::pallet_democracy::vote::AccountVote<_0>, + )>, + delegations: runtime_types::pallet_democracy::types::Delegations<_0>, + prior: runtime_types::pallet_democracy::vote::PriorLock<_2, _0>, + }, + #[codec(index = 1)] + Delegating { + balance: _0, + target: _1, + conviction: runtime_types::pallet_democracy::conviction::Conviction, + delegations: runtime_types::pallet_democracy::types::Delegations<_0>, + prior: runtime_types::pallet_democracy::vote::PriorLock<_2, _0>, + }, + } + } + pub mod vote_threshold { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum VoteThreshold { + #[codec(index = 0)] + SuperMajorityApprove, + #[codec(index = 1)] + SuperMajorityAgainst, + #[codec(index = 2)] + SimpleMajority, + } + } + } + pub mod pallet_dkg { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::set_fee`]. + set_fee { + fee_info: + runtime_types::pallet_dkg::types::FeeInfo<::core::primitive::u128>, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Cannot retreive signers from the signature + CannotRetreiveSigner, + #[codec(index = 1)] + ///Not enough signers for threshold + NotEnoughSigners, + #[codec(index = 2)] + ///The signers have signed different data + InvalidSignatureData, + #[codec(index = 3)] + ///No participants found + NoParticipantsFound, + #[codec(index = 4)] + ///No signatures found + NoSignaturesFound, + #[codec(index = 5)] + ///Unexpected job type + InvalidJobType, + #[codec(index = 6)] + ///Duplicate signature found in submission + DuplicateSignature, + #[codec(index = 7)] + ///Invalid signature submitted + InvalidSignature, + #[codec(index = 8)] + ///Invalid signature scheme + InvalidSignatureScheme, + #[codec(index = 9)] + ///Invalid signature deserialization + InvalidSignatureDeserialization, + #[codec(index = 10)] + ///Invalid verifying key submitted + InvalidVerifyingKey, + #[codec(index = 11)] + ///Invalid verifying key deserialization + InvalidVerifyingKeyDeserialization, + #[codec(index = 12)] + ///Signed with a different key + SigningKeyMismatch, + #[codec(index = 13)] + ///Invalid participant public key + InvalidParticipantPublicKey, + #[codec(index = 14)] + ///Invalid BLS public key + InvalidBlsPublicKey, + #[codec(index = 15)] + ///Invalid Misbehavior Role type. + InvalidRoleType, + #[codec(index = 16)] + ///Invalid Justification type. + InvalidJustification, + #[codec(index = 17)] + ///Could not deserialize the round message. + MalformedRoundMessage, + #[codec(index = 18)] + ///Signed Round Message not signed by the offender. + NotSignedByOffender, + #[codec(index = 19)] + ///The submitted decommitment is valid. + /// + ///This error is returned when the decommitment is valid + ///but the caller claims it is invalid! + ValidDecommitment, + #[codec(index = 20)] + ///The submitted decommitment data size is valid. + /// + ///This error is returned when the decommitment data size is valid + ///but the caller claims it is invalid! + ValidDataSize, + #[codec(index = 21)] + ///The submitted messages passed Feldman verification. + /// + ///This error is returned when the messages passed Feldman verification + ///but the caller claims it is invalid! + ValidFeldmanVerification, + #[codec(index = 22)] + ///The submitted Schnorr Proof is valid. + /// + ///This error is returned when the decommitment and its + ///Schnorr are valid. but the caller + ///claims it is invalid. + ValidSchnorrProof, + #[codec(index = 23)] + ///The submitted ring pedersen parameters are valid. + /// + ///This error is returned when the ring pedersen parameters are valid + ///but the caller claims it is invalid. + ValidRingPedersenParameters, + #[codec(index = 24)] + ///The submitted Mod Proof is valid. + /// + ///This error is returned when the Mod Proof is valid + ///but the caller claims it is invalid. + ValidModProof, + #[codec(index = 25)] + ///------------------------------------------------------------ /// + /// FROST ERRORS /// + ///------------------------------------------------------------ /// + ///Valid FROST signature share + ValidFrostSignatureShare, + #[codec(index = 26)] + ///Invalid FROST message serialization + InvalidFrostMessageSerialization, + #[codec(index = 27)] + ///Invalid FROST message deserialization + InvalidFrostMessageDeserialization, + #[codec(index = 28)] + ///Invalid identifier deserialization + InvalidIdentifierDeserialization, + #[codec(index = 29)] + ///Valid FROST signature error for a misbehavior report + ValidFrostSignature, + #[codec(index = 30)] + ///Unknown identifier + UnknownIdentifier, + #[codec(index = 31)] + ///Duplicate identifier + DuplicateIdentifier, + #[codec(index = 32)] + ///Incorrect number of identifiers + IncorrectNumberOfIdentifiers, + #[codec(index = 33)] + ///Identifier derivation not supported + IdentifierDerivationNotSupported, + #[codec(index = 34)] + ///Malformed signature + MalformedFrostSignature, + #[codec(index = 35)] + ///Invalid FROST signature + InvalidFrostSignature, + #[codec(index = 36)] + ///Invalid FROST signature share + InvalidFrostSignatureShare, + #[codec(index = 37)] + ///Invalid FROST signature scheme + InvalidFrostSignatureScheme, + #[codec(index = 38)] + ///Malformed FROST verifying key + MalformedFrostVerifyingKey, + #[codec(index = 39)] + ///Malformed FROST signing key + MalformedFrostSigningKey, + #[codec(index = 40)] + ///Missing FROST commitment + MissingFrostCommitment, + #[codec(index = 41)] + ///Invalid FROST commitment + IdentityCommitment, + #[codec(index = 42)] + ///FROST Field scalar error + FrostFieldError, + #[codec(index = 43)] + ///FROST Group element error + FrostGroupError, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///Fee has been updated to the new value + FeeUpdated(runtime_types::pallet_dkg::types::FeeInfo<::core::primitive::u128>), + #[codec(index = 1)] + ///A DKG has been rotated. + KeyRotated { + from_job_id: ::core::primitive::u64, + to_job_id: ::core::primitive::u64, + signature: ::std::vec::Vec<::core::primitive::u8>, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct FeeInfo<_0> { + pub base_fee: _0, + pub dkg_validator_fee: _0, + pub sig_validator_fee: _0, + pub refresh_validator_fee: _0, + pub storage_fee_per_byte: _0, + } + } + } + pub mod pallet_dynamic_fee { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::note_min_gas_price_target`]. + note_min_gas_price_target { target: runtime_types::primitive_types::U256 }, + } + } + } + pub mod pallet_election_provider_multi_phase { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::submit_unsigned`]. + submit_unsigned { + raw_solution: ::std::boxed::Box< + runtime_types::pallet_election_provider_multi_phase::RawSolution< + runtime_types::tangle_testnet_runtime::NposSolution16, + >, + >, + witness: runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, + }, + #[codec(index = 1)] + ///See [`Pallet::set_minimum_untrusted_score`]. + set_minimum_untrusted_score { + maybe_next_score: ::core::option::Option< + runtime_types::sp_npos_elections::ElectionScore, + >, + }, + #[codec(index = 2)] + ///See [`Pallet::set_emergency_election_result`]. + set_emergency_election_result { + supports: ::std::vec::Vec< + ( + ::subxt::utils::AccountId32, + runtime_types::sp_npos_elections::Support< + ::subxt::utils::AccountId32, + >, + ), + >, + }, + #[codec(index = 3)] + ///See [`Pallet::submit`]. + submit { + raw_solution: ::std::boxed::Box< + runtime_types::pallet_election_provider_multi_phase::RawSolution< + runtime_types::tangle_testnet_runtime::NposSolution16, + >, + >, + }, + #[codec(index = 4)] + ///See [`Pallet::governance_fallback`]. + 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, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Error of the pallet that can be returned in response to dispatches. + pub enum Error { + #[codec(index = 0)] + ///Submission was too early. + PreDispatchEarlySubmission, + #[codec(index = 1)] + ///Wrong number of winners presented. + PreDispatchWrongWinnerCount, + #[codec(index = 2)] + ///Submission was too weak, score-wise. + PreDispatchWeakSubmission, + #[codec(index = 3)] + ///The queue was full, and the solution was not better than any of the + /// existing ones. + SignedQueueFull, + #[codec(index = 4)] + ///The origin failed to pay the deposit. + SignedCannotPayDeposit, + #[codec(index = 5)] + ///Witness data to dispatchable is invalid. + SignedInvalidWitness, + #[codec(index = 6)] + ///The signed submission consumes too much weight + SignedTooMuchWeight, + #[codec(index = 7)] + ///OCW submitted solution for wrong round + OcwCallWrongEra, + #[codec(index = 8)] + ///Snapshot metadata should exist but didn't. + MissingSnapshotMetadata, + #[codec(index = 9)] + ///`Self::insert_submission` returned an invalid index. + InvalidSubmissionIndex, + #[codec(index = 10)] + ///The call is not allowed at this point. + CallNotAllowed, + #[codec(index = 11)] + ///The fallback failed + FallbackFailed, + #[codec(index = 12)] + ///Some bound not met + BoundNotMet, + #[codec(index = 13)] + ///Submitted solution has too many winners + TooManyWinners, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A solution was stored with the given compute. + /// + ///The `origin` indicates the origin of the solution. If `origin` is + /// `Some(AccountId)`, the stored solution was submited in the signed phase by + /// a miner with the `AccountId`. Otherwise, the solution was stored either + /// during the unsigned phase or by `T::ForceOrigin`. The `bool` is `true` when + /// a previous solution was ejected to make room for this one. + SolutionStored { + compute: + runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + origin: ::core::option::Option<::subxt::utils::AccountId32>, + prev_ejected: ::core::primitive::bool, + }, + #[codec(index = 1)] + ///The election has been finalized, with the given computation and score. + ElectionFinalized { + compute: + runtime_types::pallet_election_provider_multi_phase::ElectionCompute, + score: runtime_types::sp_npos_elections::ElectionScore, + }, + #[codec(index = 2)] + ///An election failed. + /// + ///Not much can be said about which computes failed in the process. + ElectionFailed, + #[codec(index = 3)] + ///An account has been rewarded for their signed submission being finalized. + Rewarded { + account: ::subxt::utils::AccountId32, + value: ::core::primitive::u128, + }, + #[codec(index = 4)] + ///An account has been slashed for submitting an invalid signed submission. + Slashed { account: ::subxt::utils::AccountId32, value: ::core::primitive::u128 }, + #[codec(index = 5)] + ///There was a phase transition in a given round. + PhaseTransitioned { + from: runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u64, + >, + to: runtime_types::pallet_election_provider_multi_phase::Phase< + ::core::primitive::u64, + >, + round: ::core::primitive::u32, + }, + } + } + pub mod signed { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SignedSubmission<_0, _1, _2> { + pub who: _0, + pub deposit: _1, + pub raw_solution: + runtime_types::pallet_election_provider_multi_phase::RawSolution<_2>, + pub call_fee: _1, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ElectionCompute { + #[codec(index = 0)] + OnChain, + #[codec(index = 1)] + Signed, + #[codec(index = 2)] + Unsigned, + #[codec(index = 3)] + Fallback, + #[codec(index = 4)] + Emergency, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Phase<_0> { + #[codec(index = 0)] + Off, + #[codec(index = 1)] + Signed, + #[codec(index = 2)] + Unsigned((::core::primitive::bool, _0)), + #[codec(index = 3)] + Emergency, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RawSolution<_0> { + pub solution: _0, + pub score: runtime_types::sp_npos_elections::ElectionScore, + pub round: ::core::primitive::u32, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReadySolution { + pub supports: runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::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, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RoundSnapshot<_0, _1> { + pub voters: ::std::vec::Vec<_1>, + pub targets: ::std::vec::Vec<_0>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SolutionOrSnapshotSize { + #[codec(compact)] + pub voters: ::core::primitive::u32, + #[codec(compact)] + pub targets: ::core::primitive::u32, + } + } + pub mod pallet_elections_phragmen { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::vote`]. + vote { + votes: ::std::vec::Vec<::subxt::utils::AccountId32>, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 1)] + ///See [`Pallet::remove_voter`]. + remove_voter, + #[codec(index = 2)] + ///See [`Pallet::submit_candidacy`]. + submit_candidacy { + #[codec(compact)] + candidate_count: ::core::primitive::u32, + }, + #[codec(index = 3)] + ///See [`Pallet::renounce_candidacy`]. + renounce_candidacy { + renouncing: runtime_types::pallet_elections_phragmen::Renouncing, + }, + #[codec(index = 4)] + ///See [`Pallet::remove_member`]. + remove_member { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + slash_bond: ::core::primitive::bool, + rerun_election: ::core::primitive::bool, + }, + #[codec(index = 5)] + ///See [`Pallet::clean_defunct_voters`]. + clean_defunct_voters { + num_voters: ::core::primitive::u32, + num_defunct: ::core::primitive::u32, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Cannot vote when no candidates or members exist. + UnableToVote, + #[codec(index = 1)] + ///Must vote for at least one candidate. + NoVotes, + #[codec(index = 2)] + ///Cannot vote more than candidates. + TooManyVotes, + #[codec(index = 3)] + ///Cannot vote more than maximum allowed. + MaximumVotesExceeded, + #[codec(index = 4)] + ///Cannot vote with stake less than minimum balance. + LowBalance, + #[codec(index = 5)] + ///Voter can not pay voting bond. + UnableToPayBond, + #[codec(index = 6)] + ///Must be a voter. + MustBeVoter, + #[codec(index = 7)] + ///Duplicated candidate submission. + DuplicatedCandidate, + #[codec(index = 8)] + ///Too many candidates have been created. + TooManyCandidates, + #[codec(index = 9)] + ///Member cannot re-submit candidacy. + MemberSubmit, + #[codec(index = 10)] + ///Runner cannot re-submit candidacy. + RunnerUpSubmit, + #[codec(index = 11)] + ///Candidate does not have enough funds. + InsufficientCandidateFunds, + #[codec(index = 12)] + ///Not a member. + NotMember, + #[codec(index = 13)] + ///The provided count of number of candidates is incorrect. + InvalidWitnessData, + #[codec(index = 14)] + ///The provided count of number of votes is incorrect. + InvalidVoteCount, + #[codec(index = 15)] + ///The renouncing origin presented a wrong `Renouncing` parameter. + InvalidRenouncing, + #[codec(index = 16)] + ///Prediction regarding replacement after member removal is wrong. + InvalidReplacement, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A new term with new_members. This indicates that enough candidates existed + /// to run the election, not that enough have has been elected. The inner value + /// must be examined for this purpose. A `NewTerm(\[\])` indicates that some + /// candidates got their bond slashed and none were elected, whilst `EmptyTerm` + /// means that no candidates existed to begin with. + NewTerm { + new_members: + ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, + }, + #[codec(index = 1)] + ///No (or not enough) candidates existed for this round. This is different + /// from `NewTerm(\[\])`. See the description of `NewTerm`. + EmptyTerm, + #[codec(index = 2)] + ///Internal error happened while trying to perform election. + ElectionError, + #[codec(index = 3)] + ///A member has been removed. This should always be followed by either + /// `NewTerm` or `EmptyTerm`. + MemberKicked { member: ::subxt::utils::AccountId32 }, + #[codec(index = 4)] + ///Someone has renounced their candidacy. + Renounced { candidate: ::subxt::utils::AccountId32 }, + #[codec(index = 5)] + ///A candidate was slashed by amount due to failing to obtain a seat as member + /// or runner-up. + /// + ///Note that old members and runners-up are also candidates. + CandidateSlashed { + candidate: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 6)] + ///A seat holder was slashed by amount by being forcefully removed from the + /// set. + SeatHolderSlashed { + seat_holder: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Renouncing { + #[codec(index = 0)] + Member, + #[codec(index = 1)] + RunnerUp, + #[codec(index = 2)] + Candidate(#[codec(compact)] ::core::primitive::u32), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SeatHolder<_0, _1> { + pub who: _0, + pub stake: _1, + pub deposit: _1, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Voter<_0, _1> { + pub votes: ::std::vec::Vec<_0>, + pub stake: _1, + pub deposit: _1, + } + } + pub mod pallet_eth2_light_client { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::init`]. + init { + typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + args: ::std::boxed::Box< + runtime_types::eth_types::pallet::InitInput< + ::subxt::utils::AccountId32, + >, + >, + }, + #[codec(index = 2)] + ///See [`Pallet::submit_beacon_chain_light_client_update`]. + submit_beacon_chain_light_client_update { + typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + light_client_update: runtime_types::eth_types::eth2::LightClientUpdate, + }, + #[codec(index = 4)] + ///See [`Pallet::submit_execution_header`]. + submit_execution_header { + typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + block_header: runtime_types::eth_types::BlockHeader, + }, + #[codec(index = 5)] + ///See [`Pallet::update_trusted_signer`]. + update_trusted_signer { trusted_signer: ::subxt::utils::AccountId32 }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///The light client is already initialized for the typed chain ID + AlreadyInitialized, + #[codec(index = 1)] + ///For attempting to update the light client + LightClientUpdateNotAllowed, + #[codec(index = 2)] + ///Block already submitted + BlockAlreadySubmitted, + #[codec(index = 3)] + ///Unknown parent block header hash + UnknownParentHeader, + #[codec(index = 4)] + ///Self-explanatory + NotTrustedSigner, + #[codec(index = 5)] + ///The updates validation can't be disabled for mainnet + ValidateUpdatesParameterError, + #[codec(index = 6)] + ///The client can't be executed in the trustless mode without BLS sigs + /// verification on Mainnet + TrustlessModeError, + #[codec(index = 7)] + InvalidSyncCommitteeBitsSum, + #[codec(index = 8)] + SyncCommitteeBitsSumLessThanThreshold, + #[codec(index = 9)] + InvalidNetworkConfig, + #[codec(index = 10)] + ///Failed to verify the bls signature + InvalidBlsSignature, + #[codec(index = 11)] + InvalidExecutionBlock, + #[codec(index = 12)] + ///The active header slot number should be higher than the finalized slot + ActiveHeaderSlotLessThanFinalizedSlot, + #[codec(index = 13)] + ///The attested header slot should be equal to or higher than the finalized + /// header slot + UpdateHeaderSlotLessThanFinalizedHeaderSlot, + #[codec(index = 14)] + ///The signature slot should be higher than the attested header slot + UpdateSignatureSlotLessThanAttestedHeaderSlot, + #[codec(index = 15)] + ///The acceptable update periods are not met. + InvalidUpdatePeriod, + #[codec(index = 16)] + ///Invalid finality proof + InvalidFinalityProof, + #[codec(index = 17)] + ///Invalid execution block hash proof + InvalidExecutionBlockHashProof, + #[codec(index = 18)] + NextSyncCommitteeNotPresent, + #[codec(index = 19)] + InvalidNextSyncCommitteeProof, + #[codec(index = 20)] + FinalizedExecutionHeaderNotPresent, + #[codec(index = 21)] + FinalizedBeaconHeaderNotPresent, + #[codec(index = 22)] + UnfinalizedHeaderNotPresent, + #[codec(index = 23)] + SyncCommitteeUpdateNotPresent, + #[codec(index = 24)] + HeaderHashDoesNotExist, + #[codec(index = 25)] + ///The block hash does not match the expected block hash + BlockHashesDoNotMatch, + #[codec(index = 26)] + InvalidSignaturePeriod, + #[codec(index = 27)] + CurrentSyncCommitteeNotSet, + #[codec(index = 28)] + NextSyncCommitteeNotSet, + #[codec(index = 29)] + ///The current client mode is invalid for the action. + InvalidClientMode, + #[codec(index = 30)] + ///"The `hashes_gc_threshold` is not enough to be able to apply gc correctly" + HashesGcThresholdInsufficient, + #[codec(index = 31)] + ///The chain cannot be closed + ChainCannotBeClosed, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + Init { + typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + header_info: runtime_types::eth_types::pallet::ExecutionHeaderInfo< + ::subxt::utils::AccountId32, + >, + }, + #[codec(index = 1)] + SubmitBeaconChainLightClientUpdate { + typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + submitter: ::subxt::utils::AccountId32, + beacon_block_header: runtime_types::eth_types::eth2::BeaconBlockHeader, + }, + #[codec(index = 2)] + SubmitExecutionHeader { + typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, + header_info: ::std::boxed::Box, + }, + #[codec(index = 3)] + UpdateTrustedSigner { trusted_signer: ::subxt::utils::AccountId32 }, + } + } + } + pub mod pallet_ethereum { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::transact`]. + transact { transaction: runtime_types::ethereum::transaction::TransactionV2 }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Signature is invalid. + InvalidSignature, + #[codec(index = 1)] + ///Pre-log is present, therefore transact is not allowed. + PreLogExists, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///An ethereum transaction was successfully executed. + Executed { + from: ::subxt::utils::H160, + to: ::subxt::utils::H160, + transaction_hash: ::subxt::utils::H256, + exit_reason: runtime_types::evm_core::error::ExitReason, + extra_data: ::std::vec::Vec<::core::primitive::u8>, + }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RawOrigin { + #[codec(index = 0)] + EthereumTransaction(::subxt::utils::H160), + } + } + pub mod pallet_evm { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::withdraw`]. + withdraw { address: ::subxt::utils::H160, value: ::core::primitive::u128 }, + #[codec(index = 1)] + ///See [`Pallet::call`]. + call { + source: ::subxt::utils::H160, + target: ::subxt::utils::H160, + input: ::std::vec::Vec<::core::primitive::u8>, + value: runtime_types::primitive_types::U256, + gas_limit: ::core::primitive::u64, + max_fee_per_gas: runtime_types::primitive_types::U256, + max_priority_fee_per_gas: + ::core::option::Option, + nonce: ::core::option::Option, + access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + }, + #[codec(index = 2)] + ///See [`Pallet::create`]. + create { + source: ::subxt::utils::H160, + init: ::std::vec::Vec<::core::primitive::u8>, + value: runtime_types::primitive_types::U256, + gas_limit: ::core::primitive::u64, + max_fee_per_gas: runtime_types::primitive_types::U256, + max_priority_fee_per_gas: + ::core::option::Option, + nonce: ::core::option::Option, + access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + }, + #[codec(index = 3)] + ///See [`Pallet::create2`]. + create2 { + source: ::subxt::utils::H160, + init: ::std::vec::Vec<::core::primitive::u8>, + salt: ::subxt::utils::H256, + value: runtime_types::primitive_types::U256, + gas_limit: ::core::primitive::u64, + max_fee_per_gas: runtime_types::primitive_types::U256, + max_priority_fee_per_gas: + ::core::option::Option, + nonce: ::core::option::Option, + access_list: ::std::vec::Vec<( + ::subxt::utils::H160, + ::std::vec::Vec<::subxt::utils::H256>, + )>, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Not enough balance to perform action + BalanceLow, + #[codec(index = 1)] + ///Calculating total fee overflowed + FeeOverflow, + #[codec(index = 2)] + ///Calculating total payment overflowed + PaymentOverflow, + #[codec(index = 3)] + ///Withdraw fee failed + WithdrawFailed, + #[codec(index = 4)] + ///Gas price is too low. + GasPriceTooLow, + #[codec(index = 5)] + ///Nonce is invalid + InvalidNonce, + #[codec(index = 6)] + ///Gas limit is too low. + GasLimitTooLow, + #[codec(index = 7)] + ///Gas limit is too high. + GasLimitTooHigh, + #[codec(index = 8)] + ///Undefined error. + Undefined, + #[codec(index = 9)] + ///EVM reentrancy + Reentrancy, + #[codec(index = 10)] + ///EIP-3607, + TransactionMustComeFromEOA, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///Ethereum events from contracts. + Log { log: runtime_types::ethereum::log::Log }, + #[codec(index = 1)] + ///A contract has been created at given address. + Created { address: ::subxt::utils::H160 }, + #[codec(index = 2)] + ///A contract was attempted to be created, but the execution failed. + CreatedFailed { address: ::subxt::utils::H160 }, + #[codec(index = 3)] + ///A contract has been executed successfully with states applied. + Executed { address: ::subxt::utils::H160 }, + #[codec(index = 4)] + ///A contract has been executed with errors. States are reverted with only gas + /// fees applied. + ExecutedFailed { address: ::subxt::utils::H160 }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CodeMetadata { + pub size: ::core::primitive::u64, + pub hash: ::subxt::utils::H256, + } + } + pub mod pallet_grandpa { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::report_equivocation`]. + report_equivocation { + equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u64, + >, + >, + key_owner_proof: runtime_types::sp_core::Void, + }, + #[codec(index = 1)] + ///See [`Pallet::report_equivocation_unsigned`]. + report_equivocation_unsigned { + equivocation_proof: ::std::boxed::Box< + runtime_types::sp_consensus_grandpa::EquivocationProof< + ::subxt::utils::H256, + ::core::primitive::u64, + >, + >, + key_owner_proof: runtime_types::sp_core::Void, + }, + #[codec(index = 2)] + ///See [`Pallet::note_stalled`]. + note_stalled { + delay: ::core::primitive::u64, + best_finalized_block_number: ::core::primitive::u64, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Attempt to signal GRANDPA pause when the authority set isn't live + ///(either paused or already pending pause). + PauseFailed, + #[codec(index = 1)] + ///Attempt to signal GRANDPA resume when the authority set isn't paused + ///(either live or already pending resume). + ResumeFailed, + #[codec(index = 2)] + ///Attempt to signal GRANDPA change with one already pending. + ChangePending, + #[codec(index = 3)] + ///Cannot signal forced change so soon after last. + TooSoon, + #[codec(index = 4)] + ///A key ownership proof provided as part of an equivocation report is + /// invalid. + InvalidKeyOwnershipProof, + #[codec(index = 5)] + ///An equivocation proof provided as part of an equivocation report is + /// invalid. + InvalidEquivocationProof, + #[codec(index = 6)] + ///A given equivocation report is valid but already previously reported. + DuplicateOffenceReport, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///New authority set has been applied. + NewAuthorities { + authority_set: ::std::vec::Vec<( + runtime_types::sp_consensus_grandpa::app::Public, + ::core::primitive::u64, + )>, + }, + #[codec(index = 1)] + ///Current authority set has been paused. + Paused, + #[codec(index = 2)] + ///Current authority set has been resumed. + Resumed, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct StoredPendingChange<_0> { + pub scheduled_at: _0, + pub delay: _0, + pub next_authorities: + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( + runtime_types::sp_consensus_grandpa::app::Public, + _0, + )>, + pub forced: ::core::option::Option<_0>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum StoredState<_0> { + #[codec(index = 0)] + Live, + #[codec(index = 1)] + PendingPause { scheduled_at: _0, delay: _0 }, + #[codec(index = 2)] + Paused, + #[codec(index = 3)] + PendingResume { scheduled_at: _0, delay: _0 }, + } + } + pub mod pallet_hotfix_sufficients { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::hotfix_inc_account_sufficients`]. + hotfix_inc_account_sufficients { + addresses: ::std::vec::Vec<::subxt::utils::H160>, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Maximum address count exceeded + MaxAddressCountExceeded, + } + } + } + pub mod pallet_identity { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Identity pallet declaration. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::add_registrar`]. + add_registrar { + account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + ///See [`Pallet::set_identity`]. + set_identity { + info: + ::std::boxed::Box, + }, + #[codec(index = 2)] + ///See [`Pallet::set_subs`]. + set_subs { + subs: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_identity::types::Data, + )>, + }, + #[codec(index = 3)] + ///See [`Pallet::clear_identity`]. + clear_identity, + #[codec(index = 4)] + ///See [`Pallet::request_judgement`]. + request_judgement { + #[codec(compact)] + reg_index: ::core::primitive::u32, + #[codec(compact)] + max_fee: ::core::primitive::u128, + }, + #[codec(index = 5)] + ///See [`Pallet::cancel_request`]. + cancel_request { reg_index: ::core::primitive::u32 }, + #[codec(index = 6)] + ///See [`Pallet::set_fee`]. + set_fee { + #[codec(compact)] + index: ::core::primitive::u32, + #[codec(compact)] + fee: ::core::primitive::u128, + }, + #[codec(index = 7)] + ///See [`Pallet::set_account_id`]. + set_account_id { + #[codec(compact)] + index: ::core::primitive::u32, + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 8)] + ///See [`Pallet::set_fields`]. + set_fields { + #[codec(compact)] + index: ::core::primitive::u32, + fields: runtime_types::pallet_identity::types::BitFlags< + runtime_types::pallet_identity::types::IdentityField, + >, + }, + #[codec(index = 9)] + ///See [`Pallet::provide_judgement`]. + provide_judgement { + #[codec(compact)] + reg_index: ::core::primitive::u32, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + judgement: runtime_types::pallet_identity::types::Judgement< + ::core::primitive::u128, + >, + identity: ::subxt::utils::H256, + }, + #[codec(index = 10)] + ///See [`Pallet::kill_identity`]. + kill_identity { + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 11)] + ///See [`Pallet::add_sub`]. + add_sub { + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + data: runtime_types::pallet_identity::types::Data, + }, + #[codec(index = 12)] + ///See [`Pallet::rename_sub`]. + rename_sub { + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + data: runtime_types::pallet_identity::types::Data, + }, + #[codec(index = 13)] + ///See [`Pallet::remove_sub`]. + remove_sub { + sub: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 14)] + ///See [`Pallet::quit_sub`]. + quit_sub, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Too many subs-accounts. + TooManySubAccounts, + #[codec(index = 1)] + ///Account isn't found. + NotFound, + #[codec(index = 2)] + ///Account isn't named. + NotNamed, + #[codec(index = 3)] + ///Empty index. + EmptyIndex, + #[codec(index = 4)] + ///Fee is changed. + FeeChanged, + #[codec(index = 5)] + ///No identity found. + NoIdentity, + #[codec(index = 6)] + ///Sticky judgement. + StickyJudgement, + #[codec(index = 7)] + ///Judgement given. + JudgementGiven, + #[codec(index = 8)] + ///Invalid judgement. + InvalidJudgement, + #[codec(index = 9)] + ///The index is invalid. + InvalidIndex, + #[codec(index = 10)] + ///The target is invalid. + InvalidTarget, + #[codec(index = 11)] + ///Too many additional fields. + TooManyFields, + #[codec(index = 12)] + ///Maximum amount of registrars reached. Cannot add any more. + TooManyRegistrars, + #[codec(index = 13)] + ///Account ID is already named. + AlreadyClaimed, + #[codec(index = 14)] + ///Sender is not a sub-account. + NotSub, + #[codec(index = 15)] + ///Sub-account isn't owned by sender. + NotOwned, + #[codec(index = 16)] + ///The provided judgement was for a different identity. + JudgementForDifferentIdentity, + #[codec(index = 17)] + ///Error that occurs when there is an issue paying for judgement. + JudgementPaymentFailed, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A name was set or reset (which will remove all judgements). + IdentitySet { who: ::subxt::utils::AccountId32 }, + #[codec(index = 1)] + ///A name was cleared, and the given balance returned. + IdentityCleared { + who: ::subxt::utils::AccountId32, + deposit: ::core::primitive::u128, + }, + #[codec(index = 2)] + ///A name was removed and the given balance slashed. + IdentityKilled { + who: ::subxt::utils::AccountId32, + deposit: ::core::primitive::u128, + }, + #[codec(index = 3)] + ///A judgement was asked from a registrar. + JudgementRequested { + who: ::subxt::utils::AccountId32, + registrar_index: ::core::primitive::u32, + }, + #[codec(index = 4)] + ///A judgement request was retracted. + JudgementUnrequested { + who: ::subxt::utils::AccountId32, + registrar_index: ::core::primitive::u32, + }, + #[codec(index = 5)] + ///A judgement was given by a registrar. + JudgementGiven { + target: ::subxt::utils::AccountId32, + registrar_index: ::core::primitive::u32, + }, + #[codec(index = 6)] + ///A registrar was added. + RegistrarAdded { registrar_index: ::core::primitive::u32 }, + #[codec(index = 7)] + ///A sub-identity was added to an identity and the deposit paid. + SubIdentityAdded { + sub: ::subxt::utils::AccountId32, + main: ::subxt::utils::AccountId32, + deposit: ::core::primitive::u128, + }, + #[codec(index = 8)] + ///A sub-identity was removed from an identity and the deposit freed. + SubIdentityRemoved { + sub: ::subxt::utils::AccountId32, + main: ::subxt::utils::AccountId32, + deposit: ::core::primitive::u128, + }, + #[codec(index = 9)] + ///A sub-identity was cleared, and the given deposit repatriated from the + ///main identity account to the sub-identity account. + SubIdentityRevoked { + sub: ::subxt::utils::AccountId32, + main: ::subxt::utils::AccountId32, + deposit: ::core::primitive::u128, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BitFlags<_0>( + pub ::core::primitive::u64, + #[codec(skip)] pub ::core::marker::PhantomData<_0>, + ); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Data { + #[codec(index = 0)] + None, + #[codec(index = 1)] + Raw0([::core::primitive::u8; 0usize]), + #[codec(index = 2)] + Raw1([::core::primitive::u8; 1usize]), + #[codec(index = 3)] + Raw2([::core::primitive::u8; 2usize]), + #[codec(index = 4)] + Raw3([::core::primitive::u8; 3usize]), + #[codec(index = 5)] + Raw4([::core::primitive::u8; 4usize]), + #[codec(index = 6)] + Raw5([::core::primitive::u8; 5usize]), + #[codec(index = 7)] + Raw6([::core::primitive::u8; 6usize]), + #[codec(index = 8)] + Raw7([::core::primitive::u8; 7usize]), + #[codec(index = 9)] + Raw8([::core::primitive::u8; 8usize]), + #[codec(index = 10)] + Raw9([::core::primitive::u8; 9usize]), + #[codec(index = 11)] + Raw10([::core::primitive::u8; 10usize]), + #[codec(index = 12)] + Raw11([::core::primitive::u8; 11usize]), + #[codec(index = 13)] + Raw12([::core::primitive::u8; 12usize]), + #[codec(index = 14)] + Raw13([::core::primitive::u8; 13usize]), + #[codec(index = 15)] + Raw14([::core::primitive::u8; 14usize]), + #[codec(index = 16)] + Raw15([::core::primitive::u8; 15usize]), + #[codec(index = 17)] + Raw16([::core::primitive::u8; 16usize]), + #[codec(index = 18)] + Raw17([::core::primitive::u8; 17usize]), + #[codec(index = 19)] + Raw18([::core::primitive::u8; 18usize]), + #[codec(index = 20)] + Raw19([::core::primitive::u8; 19usize]), + #[codec(index = 21)] + Raw20([::core::primitive::u8; 20usize]), + #[codec(index = 22)] + Raw21([::core::primitive::u8; 21usize]), + #[codec(index = 23)] + Raw22([::core::primitive::u8; 22usize]), + #[codec(index = 24)] + Raw23([::core::primitive::u8; 23usize]), + #[codec(index = 25)] + Raw24([::core::primitive::u8; 24usize]), + #[codec(index = 26)] + Raw25([::core::primitive::u8; 25usize]), + #[codec(index = 27)] + Raw26([::core::primitive::u8; 26usize]), + #[codec(index = 28)] + Raw27([::core::primitive::u8; 27usize]), + #[codec(index = 29)] + Raw28([::core::primitive::u8; 28usize]), + #[codec(index = 30)] + Raw29([::core::primitive::u8; 29usize]), + #[codec(index = 31)] + Raw30([::core::primitive::u8; 30usize]), + #[codec(index = 32)] + Raw31([::core::primitive::u8; 31usize]), + #[codec(index = 33)] + Raw32([::core::primitive::u8; 32usize]), + #[codec(index = 34)] + BlakeTwo256([::core::primitive::u8; 32usize]), + #[codec(index = 35)] + Sha256([::core::primitive::u8; 32usize]), + #[codec(index = 36)] + Keccak256([::core::primitive::u8; 32usize]), + #[codec(index = 37)] + ShaThree256([::core::primitive::u8; 32usize]), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum IdentityField { + #[codec(index = 1)] + Display, + #[codec(index = 2)] + Legal, + #[codec(index = 4)] + Web, + #[codec(index = 8)] + Riot, + #[codec(index = 16)] + Email, + #[codec(index = 32)] + PgpFingerprint, + #[codec(index = 64)] + Image, + #[codec(index = 128)] + Twitter, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct IdentityInfo { + pub additional: runtime_types::bounded_collections::bounded_vec::BoundedVec<( + runtime_types::pallet_identity::types::Data, + runtime_types::pallet_identity::types::Data, + )>, + pub display: runtime_types::pallet_identity::types::Data, + pub legal: runtime_types::pallet_identity::types::Data, + pub web: runtime_types::pallet_identity::types::Data, + pub riot: runtime_types::pallet_identity::types::Data, + pub email: runtime_types::pallet_identity::types::Data, + pub pgp_fingerprint: ::core::option::Option<[::core::primitive::u8; 20usize]>, + pub image: runtime_types::pallet_identity::types::Data, + pub twitter: runtime_types::pallet_identity::types::Data, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Judgement<_0> { + #[codec(index = 0)] + Unknown, + #[codec(index = 1)] + FeePaid(_0), + #[codec(index = 2)] + Reasonable, + #[codec(index = 3)] + KnownGood, + #[codec(index = 4)] + OutOfDate, + #[codec(index = 5)] + LowQuality, + #[codec(index = 6)] + Erroneous, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RegistrarInfo<_0, _1> { + pub account: _1, + pub fee: _0, + pub fields: runtime_types::pallet_identity::types::BitFlags< + runtime_types::pallet_identity::types::IdentityField, + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Registration<_0> { + pub judgements: runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u32, + runtime_types::pallet_identity::types::Judgement<_0>, + )>, + pub deposit: _0, + pub info: runtime_types::pallet_identity::types::IdentityInfo, + } + } + } + pub mod pallet_im_online { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::heartbeat`]. + heartbeat { + heartbeat: + runtime_types::pallet_im_online::Heartbeat<::core::primitive::u64>, + signature: runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Non existent public key. + InvalidKey, + #[codec(index = 1)] + ///Duplicated heartbeat. + DuplicatedHeartbeat, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A new heartbeat was received from `AuthorityId`. + HeartbeatReceived { + authority_id: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + }, + #[codec(index = 1)] + ///At the end of the session, no offence was committed. + AllGood, + #[codec(index = 2)] + ///At the end of the session, at least one validator was found to be offline. + SomeOffline { + offline: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + runtime_types::pallet_staking::Exposure< + ::subxt::utils::AccountId32, + ::core::primitive::u128, + >, + )>, + }, + } + } + pub mod sr25519 { + use super::runtime_types; + pub mod app_sr25519 { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Public(pub runtime_types::sp_core::sr25519::Public); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Heartbeat<_0> { + pub block_number: _0, + pub session_index: ::core::primitive::u32, + pub authority_index: ::core::primitive::u32, + pub validators_len: ::core::primitive::u32, + } + } + pub mod pallet_indices { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::claim`]. + claim { index: ::core::primitive::u32 }, + #[codec(index = 1)] + ///See [`Pallet::transfer`]. + transfer { + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + }, + #[codec(index = 2)] + ///See [`Pallet::free`]. + free { index: ::core::primitive::u32 }, + #[codec(index = 3)] + ///See [`Pallet::force_transfer`]. + force_transfer { + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + index: ::core::primitive::u32, + freeze: ::core::primitive::bool, + }, + #[codec(index = 4)] + ///See [`Pallet::freeze`]. + freeze { index: ::core::primitive::u32 }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///The index was not already assigned. + NotAssigned, + #[codec(index = 1)] + ///The index is assigned to another account. + NotOwner, + #[codec(index = 2)] + ///The index was not available. + InUse, + #[codec(index = 3)] + ///The source and destination accounts are identical. + NotTransfer, + #[codec(index = 4)] + ///The index is permanent and may not be freed/changed. + Permanent, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A account index was assigned. + IndexAssigned { + who: ::subxt::utils::AccountId32, + index: ::core::primitive::u32, + }, + #[codec(index = 1)] + ///A account index has been freed up (unassigned). + IndexFreed { index: ::core::primitive::u32 }, + #[codec(index = 2)] + ///A account index has been frozen to its current account ID. + IndexFrozen { index: ::core::primitive::u32, who: ::subxt::utils::AccountId32 }, + } + } + } + pub mod pallet_jobs { + use super::runtime_types; + pub mod module { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::submit_job`]. + submit_job { + job: runtime_types::tangle_primitives::jobs::JobSubmission< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxSubmissionLen, + >, + }, + #[codec(index = 1)] + ///See [`Pallet::submit_job_result`]. + submit_job_result { + role_type: runtime_types::tangle_primitives::roles::RoleType, + job_id: ::core::primitive::u64, + result: runtime_types::tangle_primitives::jobs::JobResult< + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxKeyLen, + runtime_types::tangle_primitives::jobs::MaxSignatureLen, + runtime_types::tangle_primitives::jobs::MaxDataLen, + runtime_types::tangle_primitives::jobs::MaxProofLen, + >, + }, + #[codec(index = 2)] + ///See [`Pallet::withdraw_rewards`]. + withdraw_rewards, + #[codec(index = 3)] + ///See [`Pallet::report_inactive_validator`]. + report_inactive_validator { + role_type: runtime_types::tangle_primitives::roles::RoleType, + job_id: ::core::primitive::u64, + validator: ::subxt::utils::AccountId32, + offence: runtime_types::tangle_primitives::jobs::ValidatorOffenceType, + signatures: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + }, + #[codec(index = 4)] + ///See [`Pallet::set_permitted_caller`]. + set_permitted_caller { + role_type: runtime_types::tangle_primitives::roles::RoleType, + job_id: ::core::primitive::u64, + new_permitted_caller: ::subxt::utils::AccountId32, + }, + #[codec(index = 5)] + ///See [`Pallet::set_time_fee`]. + set_time_fee { new_fee: ::core::primitive::u128 }, + #[codec(index = 6)] + ///See [`Pallet::submit_misbehavior`]. + submit_misbehavior { + misbehavior: + runtime_types::tangle_primitives::misbehavior::MisbehaviorSubmission, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///invalid phase provided + InvalidJobPhase, + #[codec(index = 1)] + ///Given validator not valid for job type + InvalidValidator, + #[codec(index = 2)] + ///invalid params, cannot execute jobs + InvalidJobParams, + #[codec(index = 3)] + ///cannot find phase 1 result + PreviousResultNotFound, + #[codec(index = 4)] + ///The previous result expired + ResultExpired, + #[codec(index = 5)] + ///Invalid job expiry input + JobAlreadyExpired, + #[codec(index = 6)] + ///The requested job was not found + JobNotFound, + #[codec(index = 7)] + ///P1 result not found + PhaseOneResultNotFound, + #[codec(index = 8)] + ///no rewards found for validator + NoRewards, + #[codec(index = 9)] + ///Not enough validators to exit + NotEnoughValidators, + #[codec(index = 10)] + ///empty result + EmptyResult, + #[codec(index = 11)] + ///empty job + EmptyJob, + #[codec(index = 12)] + ///Validator role key not found. + ValidatorRoleKeyNotFound, + #[codec(index = 13)] + ///Unexpected result provided + ResultNotExpectedType, + #[codec(index = 14)] + ///No permission to change permitted caller + NoPermission, + #[codec(index = 15)] + ///Exceeds max participant limits + TooManyParticipants, + #[codec(index = 16)] + ///Invalid Key size + ExceedsMaxKeySize, + #[codec(index = 17)] + ///Validator exceeds limit of max active jobs + TooManyJobsForValidator, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A new job has been submitted + JobSubmitted { + job_id: ::core::primitive::u64, + role_type: runtime_types::tangle_primitives::roles::RoleType, + details: runtime_types::tangle_primitives::jobs::JobSubmission< + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::tangle_primitives::jobs::MaxParticipants, + runtime_types::tangle_primitives::jobs::MaxSubmissionLen, + >, + }, + #[codec(index = 1)] + ///A new job result has been submitted + JobResultSubmitted { + job_id: ::core::primitive::u64, + role_type: runtime_types::tangle_primitives::roles::RoleType, + }, + #[codec(index = 2)] + ///validator has earned reward + ValidatorRewarded { + id: ::subxt::utils::AccountId32, + reward: ::core::primitive::u128, + }, + } + } + } + pub mod pallet_multisig { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::as_multi_threshold_1`]. + as_multi_threshold_1 { + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + call: ::std::boxed::Box, + }, + #[codec(index = 1)] + ///See [`Pallet::as_multi`]. + as_multi { + threshold: ::core::primitive::u16, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + >, + call: ::std::boxed::Box, + max_weight: runtime_types::sp_weights::weight_v2::Weight, + }, + #[codec(index = 2)] + ///See [`Pallet::approve_as_multi`]. + approve_as_multi { + threshold: ::core::primitive::u16, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + maybe_timepoint: ::core::option::Option< + runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + >, + call_hash: [::core::primitive::u8; 32usize], + max_weight: runtime_types::sp_weights::weight_v2::Weight, + }, + #[codec(index = 3)] + ///See [`Pallet::cancel_as_multi`]. + cancel_as_multi { + threshold: ::core::primitive::u16, + other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, + timepoint: + runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + call_hash: [::core::primitive::u8; 32usize], + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Threshold must be 2 or greater. + MinimumThreshold, + #[codec(index = 1)] + ///Call is already approved by this signatory. + AlreadyApproved, + #[codec(index = 2)] + ///Call doesn't need any (more) approvals. + NoApprovalsNeeded, + #[codec(index = 3)] + ///There are too few signatories in the list. + TooFewSignatories, + #[codec(index = 4)] + ///There are too many signatories in the list. + TooManySignatories, + #[codec(index = 5)] + ///The signatories were provided out of order; they should be ordered. + SignatoriesOutOfOrder, + #[codec(index = 6)] + ///The sender was contained in the other signatories; it shouldn't be. + SenderInSignatories, + #[codec(index = 7)] + ///Multisig operation not found when attempting to cancel. + NotFound, + #[codec(index = 8)] + ///Only the account that originally created the multisig is able to cancel it. + NotOwner, + #[codec(index = 9)] + ///No timepoint was given, yet the multisig operation is already underway. + NoTimepoint, + #[codec(index = 10)] + ///A different timepoint was given to the multisig operation that is underway. + WrongTimepoint, + #[codec(index = 11)] + ///A timepoint was given, yet no multisig operation is underway. + UnexpectedTimepoint, + #[codec(index = 12)] + ///The maximum weight information provided was too low. + MaxWeightTooLow, + #[codec(index = 13)] + ///The data to be stored is already stored. + AlreadyStored, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A new multisig operation has begun. + NewMultisig { + approving: ::subxt::utils::AccountId32, + multisig: ::subxt::utils::AccountId32, + call_hash: [::core::primitive::u8; 32usize], + }, + #[codec(index = 1)] + ///A multisig operation has been approved by someone. + MultisigApproval { + approving: ::subxt::utils::AccountId32, + timepoint: + runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + multisig: ::subxt::utils::AccountId32, + call_hash: [::core::primitive::u8; 32usize], + }, + #[codec(index = 2)] + ///A multisig operation has been executed. + MultisigExecuted { + approving: ::subxt::utils::AccountId32, + timepoint: + runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + multisig: ::subxt::utils::AccountId32, + call_hash: [::core::primitive::u8; 32usize], + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 3)] + ///A multisig operation has been cancelled. + MultisigCancelled { + cancelling: ::subxt::utils::AccountId32, + timepoint: + runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, + multisig: ::subxt::utils::AccountId32, + call_hash: [::core::primitive::u8; 32usize], + }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Multisig<_0, _1, _2> { + pub when: runtime_types::pallet_multisig::Timepoint<_0>, + pub deposit: _1, + pub depositor: _2, + pub approvals: runtime_types::bounded_collections::bounded_vec::BoundedVec<_2>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Timepoint<_0> { + pub height: _0, + pub index: ::core::primitive::u32, + } + } + pub mod pallet_nomination_pools { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::join`]. + join { + #[codec(compact)] + amount: ::core::primitive::u128, + pool_id: ::core::primitive::u32, + }, + #[codec(index = 1)] + ///See [`Pallet::bond_extra`]. + bond_extra { + extra: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + }, + #[codec(index = 2)] + ///See [`Pallet::claim_payout`]. + claim_payout, + #[codec(index = 3)] + ///See [`Pallet::unbond`]. + unbond { + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + unbonding_points: ::core::primitive::u128, + }, + #[codec(index = 4)] + ///See [`Pallet::pool_withdraw_unbonded`]. + pool_withdraw_unbonded { + pool_id: ::core::primitive::u32, + num_slashing_spans: ::core::primitive::u32, + }, + #[codec(index = 5)] + ///See [`Pallet::withdraw_unbonded`]. + withdraw_unbonded { + member_account: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + num_slashing_spans: ::core::primitive::u32, + }, + #[codec(index = 6)] + ///See [`Pallet::create`]. + create { + #[codec(compact)] + amount: ::core::primitive::u128, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 7)] + ///See [`Pallet::create_with_pool_id`]. + create_with_pool_id { + #[codec(compact)] + amount: ::core::primitive::u128, + root: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + nominator: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + bouncer: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pool_id: ::core::primitive::u32, + }, + #[codec(index = 8)] + ///See [`Pallet::nominate`]. + nominate { + pool_id: ::core::primitive::u32, + validators: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 9)] + ///See [`Pallet::set_state`]. + set_state { + pool_id: ::core::primitive::u32, + state: runtime_types::pallet_nomination_pools::PoolState, + }, + #[codec(index = 10)] + ///See [`Pallet::set_metadata`]. + set_metadata { + pool_id: ::core::primitive::u32, + metadata: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 11)] + ///See [`Pallet::set_configs`]. + set_configs { + min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + min_create_bond: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u128, + >, + max_pools: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + max_members: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp< + ::core::primitive::u32, + >, + global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, + }, + #[codec(index = 12)] + ///See [`Pallet::update_roles`]. + update_roles { + pool_id: ::core::primitive::u32, + new_root: runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< + ::subxt::utils::AccountId32, + >, + }, + #[codec(index = 13)] + ///See [`Pallet::chill`]. + chill { pool_id: ::core::primitive::u32 }, + #[codec(index = 14)] + ///See [`Pallet::bond_extra_other`]. + bond_extra_other { + member: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + extra: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + }, + #[codec(index = 15)] + ///See [`Pallet::set_claim_permission`]. + set_claim_permission { + permission: runtime_types::pallet_nomination_pools::ClaimPermission, + }, + #[codec(index = 16)] + ///See [`Pallet::claim_payout_other`]. + claim_payout_other { other: ::subxt::utils::AccountId32 }, + #[codec(index = 17)] + ///See [`Pallet::set_commission`]. + set_commission { + pool_id: ::core::primitive::u32, + new_commission: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + }, + #[codec(index = 18)] + ///See [`Pallet::set_commission_max`]. + set_commission_max { + pool_id: ::core::primitive::u32, + max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + }, + #[codec(index = 19)] + ///See [`Pallet::set_commission_change_rate`]. + set_commission_change_rate { + pool_id: ::core::primitive::u32, + change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u64, + >, + }, + #[codec(index = 20)] + ///See [`Pallet::claim_commission`]. + claim_commission { pool_id: ::core::primitive::u32 }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum DefensiveError { + #[codec(index = 0)] + NotEnoughSpaceInUnbondPool, + #[codec(index = 1)] + PoolNotFound, + #[codec(index = 2)] + RewardPoolNotFound, + #[codec(index = 3)] + SubPoolsNotFound, + #[codec(index = 4)] + BondedStashKilledPrematurely, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///A (bonded) pool id does not exist. + PoolNotFound, + #[codec(index = 1)] + ///An account is not a member. + PoolMemberNotFound, + #[codec(index = 2)] + ///A reward pool does not exist. In all cases this is a system logic error. + RewardPoolNotFound, + #[codec(index = 3)] + ///A sub pool does not exist. + SubPoolsNotFound, + #[codec(index = 4)] + ///An account is already delegating in another pool. An account may only + /// belong to one pool at a time. + AccountBelongsToOtherPool, + #[codec(index = 5)] + ///The member is fully unbonded (and thus cannot access the bonded and reward + /// pool anymore to, for example, collect rewards). + FullyUnbonding, + #[codec(index = 6)] + ///The member cannot unbond further chunks due to reaching the limit. + MaxUnbondingLimit, + #[codec(index = 7)] + ///None of the funds can be withdrawn yet because the bonding duration has not + /// passed. + CannotWithdrawAny, + #[codec(index = 8)] + ///The amount does not meet the minimum bond to either join or create a pool. + /// + ///The depositor can never unbond to a value less than + ///`Pallet::depositor_min_bond`. The caller does not have nominating + ///permissions for the pool. Members can never unbond to a value below + /// `MinJoinBond`. + MinimumBondNotMet, + #[codec(index = 9)] + ///The transaction could not be executed due to overflow risk for the pool. + OverflowRisk, + #[codec(index = 10)] + ///A pool must be in [`PoolState::Destroying`] in order for the depositor to + /// unbond or for other members to be permissionlessly unbonded. + NotDestroying, + #[codec(index = 11)] + ///The caller does not have nominating permissions for the pool. + NotNominator, + #[codec(index = 12)] + ///Either a) the caller cannot make a valid kick or b) the pool is not + /// destroying. + NotKickerOrDestroying, + #[codec(index = 13)] + ///The pool is not open to join + NotOpen, + #[codec(index = 14)] + ///The system is maxed out on pools. + MaxPools, + #[codec(index = 15)] + ///Too many members in the pool or system. + MaxPoolMembers, + #[codec(index = 16)] + ///The pools state cannot be changed. + CanNotChangeState, + #[codec(index = 17)] + ///The caller does not have adequate permissions. + DoesNotHavePermission, + #[codec(index = 18)] + ///Metadata exceeds [`Config::MaxMetadataLen`] + MetadataExceedsMaxLen, + #[codec(index = 19)] + ///Some error occurred that should never happen. This should be reported to + /// the maintainers. + Defensive(runtime_types::pallet_nomination_pools::pallet::DefensiveError), + #[codec(index = 20)] + ///Partial unbonding now allowed permissionlessly. + PartialUnbondNotAllowedPermissionlessly, + #[codec(index = 21)] + ///The pool's max commission cannot be set higher than the existing value. + MaxCommissionRestricted, + #[codec(index = 22)] + ///The supplied commission exceeds the max allowed commission. + CommissionExceedsMaximum, + #[codec(index = 23)] + ///The supplied commission exceeds global maximum commission. + CommissionExceedsGlobalMaximum, + #[codec(index = 24)] + ///Not enough blocks have surpassed since the last commission update. + CommissionChangeThrottled, + #[codec(index = 25)] + ///The submitted changes to commission change rate are not allowed. + CommissionChangeRateNotAllowed, + #[codec(index = 26)] + ///There is no pending commission to claim. + NoPendingCommission, + #[codec(index = 27)] + ///No commission current has been set. + NoCommissionCurrentSet, + #[codec(index = 28)] + ///Pool id currently in use. + PoolIdInUse, + #[codec(index = 29)] + ///Pool id provided is not correct/usable. + InvalidPoolId, + #[codec(index = 30)] + ///Bonding extra is restricted to the exact pending reward amount. + BondExtraRestricted, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Events of this pallet. + pub enum Event { + #[codec(index = 0)] + ///A pool has been created. + Created { + depositor: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + }, + #[codec(index = 1)] + ///A member has became bonded in a pool. + Bonded { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + bonded: ::core::primitive::u128, + joined: ::core::primitive::bool, + }, + #[codec(index = 2)] + ///A payout has been made to a member. + PaidOut { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + payout: ::core::primitive::u128, + }, + #[codec(index = 3)] + ///A member has unbonded from their pool. + /// + /// - `balance` is the corresponding balance of the number of points that has + /// been + /// requested to be unbonded (the argument of the `unbond` transaction) from + /// the bonded pool. + /// - `points` is the number of points that are issued as a result of `balance` + /// being + ///dissolved into the corresponding unbonding pool. + /// - `era` is the era in which the balance will be unbonded. + ///In the absence of slashing, these values will match. In the presence of + /// slashing, the number of points that are issued in the unbonding pool will + /// be less than the amount requested to be unbonded. + Unbonded { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + balance: ::core::primitive::u128, + points: ::core::primitive::u128, + era: ::core::primitive::u32, + }, + #[codec(index = 4)] + ///A member has withdrawn from their pool. + /// + ///The given number of `points` have been dissolved in return of `balance`. + /// + ///Similar to `Unbonded` event, in the absence of slashing, the ratio of point + /// to balance will be 1. + Withdrawn { + member: ::subxt::utils::AccountId32, + pool_id: ::core::primitive::u32, + balance: ::core::primitive::u128, + points: ::core::primitive::u128, + }, + #[codec(index = 5)] + ///A pool has been destroyed. + Destroyed { pool_id: ::core::primitive::u32 }, + #[codec(index = 6)] + ///The state of a pool has changed + StateChanged { + pool_id: ::core::primitive::u32, + new_state: runtime_types::pallet_nomination_pools::PoolState, + }, + #[codec(index = 7)] + ///A member has been removed from a pool. + /// + ///The removal can be voluntary (withdrawn all unbonded funds) or involuntary + /// (kicked). + MemberRemoved { + pool_id: ::core::primitive::u32, + member: ::subxt::utils::AccountId32, + }, + #[codec(index = 8)] + ///The roles of a pool have been updated to the given new roles. Note that the + /// depositor can never change. + RolesUpdated { + root: ::core::option::Option<::subxt::utils::AccountId32>, + bouncer: ::core::option::Option<::subxt::utils::AccountId32>, + nominator: ::core::option::Option<::subxt::utils::AccountId32>, + }, + #[codec(index = 9)] + ///The active balance of pool `pool_id` has been slashed to `balance`. + PoolSlashed { + pool_id: ::core::primitive::u32, + balance: ::core::primitive::u128, + }, + #[codec(index = 10)] + ///The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. + UnbondingPoolSlashed { + pool_id: ::core::primitive::u32, + era: ::core::primitive::u32, + balance: ::core::primitive::u128, + }, + #[codec(index = 11)] + ///A pool's commission setting has been changed. + PoolCommissionUpdated { + pool_id: ::core::primitive::u32, + current: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + }, + #[codec(index = 12)] + ///A pool's maximum commission setting has been changed. + PoolMaxCommissionUpdated { + pool_id: ::core::primitive::u32, + max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + }, + #[codec(index = 13)] + ///A pool's commission `change_rate` has been changed. + PoolCommissionChangeRateUpdated { + pool_id: ::core::primitive::u32, + change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u64, + >, + }, + #[codec(index = 14)] + ///Pool commission has been claimed. + PoolCommissionClaimed { + pool_id: ::core::primitive::u32, + commission: ::core::primitive::u128, + }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum BondExtra<_0> { + #[codec(index = 0)] + FreeBalance(_0), + #[codec(index = 1)] + Rewards, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BondedPoolInner { + pub commission: runtime_types::pallet_nomination_pools::Commission, + pub member_counter: ::core::primitive::u32, + pub points: ::core::primitive::u128, + pub roles: + runtime_types::pallet_nomination_pools::PoolRoles<::subxt::utils::AccountId32>, + pub state: runtime_types::pallet_nomination_pools::PoolState, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ClaimPermission { + #[codec(index = 0)] + Permissioned, + #[codec(index = 1)] + PermissionlessCompound, + #[codec(index = 2)] + PermissionlessWithdraw, + #[codec(index = 3)] + PermissionlessAll, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Commission { + pub current: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + pub max: ::core::option::Option, + pub change_rate: ::core::option::Option< + runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u64, + >, + >, + pub throttle_from: ::core::option::Option<::core::primitive::u64>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CommissionChangeRate<_0> { + pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill, + pub min_delay: _0, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ConfigOp<_0> { + #[codec(index = 0)] + Noop, + #[codec(index = 1)] + Set(_0), + #[codec(index = 2)] + Remove, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PoolMember { + pub pool_id: ::core::primitive::u32, + pub points: ::core::primitive::u128, + pub last_recorded_reward_counter: + runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub unbonding_eras: + runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< + ::core::primitive::u32, + ::core::primitive::u128, + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PoolRoles<_0> { + pub depositor: _0, + pub root: ::core::option::Option<_0>, + pub nominator: ::core::option::Option<_0>, + pub bouncer: ::core::option::Option<_0>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum PoolState { + #[codec(index = 0)] + Open, + #[codec(index = 1)] + Blocked, + #[codec(index = 2)] + Destroying, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RewardPool { + pub last_recorded_reward_counter: + runtime_types::sp_arithmetic::fixed_point::FixedU128, + pub last_recorded_total_payouts: ::core::primitive::u128, + pub total_rewards_claimed: ::core::primitive::u128, + pub total_commission_pending: ::core::primitive::u128, + pub total_commission_claimed: ::core::primitive::u128, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SubPools { + pub no_era: runtime_types::pallet_nomination_pools::UnbondPool, + pub with_era: + runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< + ::core::primitive::u32, + runtime_types::pallet_nomination_pools::UnbondPool, + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnbondPool { + pub points: ::core::primitive::u128, + pub balance: ::core::primitive::u128, + } + } + pub mod pallet_offences { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Events type. + pub enum Event { + #[codec(index = 0)] + ///There is an offence reported of the given `kind` happened at the + /// `session_index` and (kind-specific) time slot. This event is not deposited + /// for duplicate slashes. \[kind, timeslot\]. + Offence { + kind: [::core::primitive::u8; 16usize], + timeslot: ::std::vec::Vec<::core::primitive::u8>, + }, + } + } + } + pub mod pallet_preimage { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::note_preimage`]. + note_preimage { bytes: ::std::vec::Vec<::core::primitive::u8> }, + #[codec(index = 1)] + ///See [`Pallet::unnote_preimage`]. + unnote_preimage { hash: ::subxt::utils::H256 }, + #[codec(index = 2)] + ///See [`Pallet::request_preimage`]. + request_preimage { hash: ::subxt::utils::H256 }, + #[codec(index = 3)] + ///See [`Pallet::unrequest_preimage`]. + unrequest_preimage { hash: ::subxt::utils::H256 }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Preimage is too large to store on-chain. + TooBig, + #[codec(index = 1)] + ///Preimage has already been noted on-chain. + AlreadyNoted, + #[codec(index = 2)] + ///The user is not authorized to perform this action. + NotAuthorized, + #[codec(index = 3)] + ///The preimage cannot be removed since it has not yet been noted. + NotNoted, + #[codec(index = 4)] + ///A preimage may not be removed when there are outstanding requests. + Requested, + #[codec(index = 5)] + ///The preimage request cannot be removed since no outstanding requests exist. + NotRequested, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A preimage has been noted. + Noted { hash: ::subxt::utils::H256 }, + #[codec(index = 1)] + ///A preimage has been requested. + Requested { hash: ::subxt::utils::H256 }, + #[codec(index = 2)] + ///A preimage has ben cleared. + Cleared { hash: ::subxt::utils::H256 }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RequestStatus<_0, _1> { + #[codec(index = 0)] + Unrequested { deposit: (_0, _1), len: ::core::primitive::u32 }, + #[codec(index = 1)] + Requested { + deposit: ::core::option::Option<(_0, _1)>, + count: ::core::primitive::u32, + len: ::core::option::Option<::core::primitive::u32>, + }, + } + } + pub mod pallet_roles { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::create_profile`]. + create_profile { + profile: runtime_types::pallet_roles::profile::Profile, + max_active_services: ::core::option::Option<::core::primitive::u32>, + }, + #[codec(index = 1)] + ///See [`Pallet::update_profile`]. + update_profile { + updated_profile: runtime_types::pallet_roles::profile::Profile, + }, + #[codec(index = 2)] + ///See [`Pallet::delete_profile`]. + delete_profile, + #[codec(index = 3)] + ///See [`Pallet::chill`]. + chill, + #[codec(index = 4)] + ///See [`Pallet::unbond_funds`]. + unbond_funds { + #[codec(compact)] + amount: ::core::primitive::u128, + }, + #[codec(index = 5)] + ///See [`Pallet::withdraw_unbonded`]. + withdraw_unbonded, + #[codec(index = 6)] + ///See [`Pallet::payout_stakers`]. + payout_stakers { + validator_stash: ::subxt::utils::AccountId32, + era: ::core::primitive::u32, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Not a validator. + NotValidator, + #[codec(index = 1)] + ///Validator has active role assigned. + HasRoleAssigned, + #[codec(index = 2)] + ///Given role is not assigned to the validator. + RoleNotAssigned, + #[codec(index = 3)] + ///Max role limit reached for the account. + MaxRoles, + #[codec(index = 4)] + ///Role cannot due to pending jobs, which can't be opted out at the moment. + RoleCannotBeRemoved, + #[codec(index = 5)] + ///Restaking amount cannot be lowered if there are any pending jobs. You can + /// only add more + RestakingAmountCannotBeUpdated, + #[codec(index = 6)] + ///Invalid Restaking amount, should not exceed total staked amount. + ExceedsMaxRestakeValue, + #[codec(index = 7)] + ///Re staking amount should be greater than minimum Restaking bond + /// requirement. + InsufficientRestakingBond, + #[codec(index = 8)] + ///Profile Update failed. + ProfileUpdateFailed, + #[codec(index = 9)] + ///Profile already exists for given validator account. + ProfileAlreadyExists, + #[codec(index = 10)] + ///Stash controller account not found in Roles Ledger. + NoProfileFound, + #[codec(index = 11)] + ///Profile delete request failed due to pending jobs, which can't be opted out + /// at the moment. + ProfileDeleteRequestFailed, + #[codec(index = 12)] + ///SessionKeys not provided + SessionKeysNotProvided, + #[codec(index = 13)] + ///Key size exceeded + KeySizeExceeded, + #[codec(index = 14)] + ///Cannot find Current era + CannotGetCurrentEra, + #[codec(index = 15)] + ///Invalid era info + InvalidEraToReward, + #[codec(index = 16)] + ///Out of bounds input + BoundNotMet, + #[codec(index = 17)] + ///Rewards already claimed + AlreadyClaimed, + #[codec(index = 18)] + ///Unlock chunks already filled + NoMoreChunks, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///Role assigned to the validator. + RoleAssigned { + account: ::subxt::utils::AccountId32, + role: runtime_types::tangle_primitives::roles::RoleType, + }, + #[codec(index = 1)] + ///Removed validator from role. + RoleRemoved { + account: ::subxt::utils::AccountId32, + role: runtime_types::tangle_primitives::roles::RoleType, + }, + #[codec(index = 2)] + ///Slashed validator. + Slashed { + account: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 3)] + ///New profile created. + ProfileCreated { + account: ::subxt::utils::AccountId32, + total_profile_restake: ::core::primitive::u128, + roles: ::std::vec::Vec, + }, + #[codec(index = 4)] + ///Profile updated. + ProfileUpdated { + account: ::subxt::utils::AccountId32, + total_profile_restake: ::core::primitive::u128, + roles: ::std::vec::Vec, + }, + #[codec(index = 5)] + ///Profile deleted. + ProfileDeleted { account: ::subxt::utils::AccountId32 }, + #[codec(index = 6)] + ///Pending jobs,that cannot be opted out at the moment. + PendingJobs { + pending_jobs: ::std::vec::Vec<( + runtime_types::tangle_primitives::roles::RoleType, + ::core::primitive::u64, + )>, + }, + #[codec(index = 7)] + ///Roles inflation reward paid for era + RolesRewardSet { total_rewards: ::core::primitive::u128 }, + #[codec(index = 8)] + ///The re-stakers' rewards are getting paid. + PayoutStarted { + era_index: ::core::primitive::u32, + validator_stash: ::subxt::utils::AccountId32, + }, + #[codec(index = 9)] + ///The re-staker has been rewarded by this amount. + Rewarded { stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, + } + } + pub mod profile { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct IndependentRestakeProfile { + pub records: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_roles::profile::Record, + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Profile { + #[codec(index = 0)] + Independent(runtime_types::pallet_roles::profile::IndependentRestakeProfile), + #[codec(index = 1)] + Shared(runtime_types::pallet_roles::profile::SharedRestakeProfile), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Record { + pub role: runtime_types::tangle_primitives::roles::RoleType, + pub amount: ::core::option::Option<::core::primitive::u128>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SharedRestakeProfile { + pub records: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_roles::profile::Record, + >, + pub amount: ::core::primitive::u128, + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RestakingLedger { + pub stash: ::subxt::utils::AccountId32, + #[codec(compact)] + pub total: ::core::primitive::u128, + pub profile: runtime_types::pallet_roles::profile::Profile, + pub roles: + runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< + runtime_types::tangle_primitives::roles::RoleType, + runtime_types::pallet_roles::profile::Record, + >, + pub role_key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub unlocking: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_roles::types::UnlockChunk<::core::primitive::u128>, + >, + pub claimed_rewards: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, + pub max_active_services: ::core::primitive::u32, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnlockChunk<_0> { + #[codec(compact)] + pub value: _0, + #[codec(compact)] + pub era: ::core::primitive::u32, + } + } + } + pub mod pallet_scheduler { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::schedule`]. + schedule { + when: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: ::std::boxed::Box, + }, + #[codec(index = 1)] + ///See [`Pallet::cancel`]. + cancel { when: ::core::primitive::u64, index: ::core::primitive::u32 }, + #[codec(index = 2)] + ///See [`Pallet::schedule_named`]. + schedule_named { + id: [::core::primitive::u8; 32usize], + when: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: ::std::boxed::Box, + }, + #[codec(index = 3)] + ///See [`Pallet::cancel_named`]. + cancel_named { id: [::core::primitive::u8; 32usize] }, + #[codec(index = 4)] + ///See [`Pallet::schedule_after`]. + schedule_after { + after: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: ::std::boxed::Box, + }, + #[codec(index = 5)] + ///See [`Pallet::schedule_named_after`]. + schedule_named_after { + id: [::core::primitive::u8; 32usize], + after: ::core::primitive::u64, + maybe_periodic: ::core::option::Option<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + priority: ::core::primitive::u8, + call: ::std::boxed::Box, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Failed to schedule a call + FailedToSchedule, + #[codec(index = 1)] + ///Cannot find the scheduled call. + NotFound, + #[codec(index = 2)] + ///Given target block number is in the past. + TargetBlockNumberInPast, + #[codec(index = 3)] + ///Reschedule failed because it does not change scheduled time. + RescheduleNoChange, + #[codec(index = 4)] + ///Attempt to use a non-named function on a named task. + Named, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Events type. + pub enum Event { + #[codec(index = 0)] + ///Scheduled some task. + Scheduled { when: ::core::primitive::u64, index: ::core::primitive::u32 }, + #[codec(index = 1)] + ///Canceled some task. + Canceled { when: ::core::primitive::u64, index: ::core::primitive::u32 }, + #[codec(index = 2)] + ///Dispatched some task. + Dispatched { + task: (::core::primitive::u64, ::core::primitive::u32), + id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 3)] + ///The call for the provided hash was not found so the task has been aborted. + CallUnavailable { + task: (::core::primitive::u64, ::core::primitive::u32), + id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + }, + #[codec(index = 4)] + ///The given task was unable to be renewed since the agenda is full at that + /// block. + PeriodicFailed { + task: (::core::primitive::u64, ::core::primitive::u32), + id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + }, + #[codec(index = 5)] + ///The given task can never be executed since it is overweight. + PermanentlyOverweight { + task: (::core::primitive::u64, ::core::primitive::u32), + id: ::core::option::Option<[::core::primitive::u8; 32usize]>, + }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Scheduled<_0, _1, _2, _3, _4> { + pub maybe_id: ::core::option::Option<_0>, + pub priority: ::core::primitive::u8, + pub call: _1, + pub maybe_periodic: ::core::option::Option<(_2, ::core::primitive::u32)>, + pub origin: _3, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<_4>, + } + } + pub mod pallet_session { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::set_keys`]. + set_keys { + keys: runtime_types::tangle_testnet_runtime::opaque::SessionKeys, + proof: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 1)] + ///See [`Pallet::purge_keys`]. + purge_keys, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Error for the session pallet. + pub enum Error { + #[codec(index = 0)] + ///Invalid ownership proof. + InvalidProof, + #[codec(index = 1)] + ///No associated validator ID for account. + NoAssociatedValidatorId, + #[codec(index = 2)] + ///Registered duplicate key. + DuplicatedKey, + #[codec(index = 3)] + ///No keys are associated with this account. + NoKeys, + #[codec(index = 4)] + ///Key setting account is not live, so it's impossible to associate keys. + NoAccount, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///New session has happened. Note that the argument is the session index, not + /// the block number as the type might suggest. + NewSession { session_index: ::core::primitive::u32 }, + } + } + } + pub mod pallet_staking { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::bond`]. + bond { + #[codec(compact)] + value: ::core::primitive::u128, + payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + }, + #[codec(index = 1)] + ///See [`Pallet::bond_extra`]. + bond_extra { + #[codec(compact)] + max_additional: ::core::primitive::u128, + }, + #[codec(index = 2)] + ///See [`Pallet::unbond`]. + unbond { + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 3)] + ///See [`Pallet::withdraw_unbonded`]. + withdraw_unbonded { num_slashing_spans: ::core::primitive::u32 }, + #[codec(index = 4)] + ///See [`Pallet::validate`]. + validate { prefs: runtime_types::pallet_staking::ValidatorPrefs }, + #[codec(index = 5)] + ///See [`Pallet::nominate`]. + nominate { + targets: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + }, + #[codec(index = 6)] + ///See [`Pallet::chill`]. + chill, + #[codec(index = 7)] + ///See [`Pallet::set_payee`]. + set_payee { + payee: runtime_types::pallet_staking::RewardDestination< + ::subxt::utils::AccountId32, + >, + }, + #[codec(index = 8)] + ///See [`Pallet::set_controller`]. + set_controller, + #[codec(index = 9)] + ///See [`Pallet::set_validator_count`]. + set_validator_count { + #[codec(compact)] + new: ::core::primitive::u32, + }, + #[codec(index = 10)] + ///See [`Pallet::increase_validator_count`]. + increase_validator_count { + #[codec(compact)] + additional: ::core::primitive::u32, + }, + #[codec(index = 11)] + ///See [`Pallet::scale_validator_count`]. + scale_validator_count { + factor: runtime_types::sp_arithmetic::per_things::Percent, + }, + #[codec(index = 12)] + ///See [`Pallet::force_no_eras`]. + force_no_eras, + #[codec(index = 13)] + ///See [`Pallet::force_new_era`]. + force_new_era, + #[codec(index = 14)] + ///See [`Pallet::set_invulnerables`]. + set_invulnerables { + invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 15)] + ///See [`Pallet::force_unstake`]. + force_unstake { + stash: ::subxt::utils::AccountId32, + num_slashing_spans: ::core::primitive::u32, + }, + #[codec(index = 16)] + ///See [`Pallet::force_new_era_always`]. + force_new_era_always, + #[codec(index = 17)] + ///See [`Pallet::cancel_deferred_slash`]. + cancel_deferred_slash { + era: ::core::primitive::u32, + slash_indices: ::std::vec::Vec<::core::primitive::u32>, + }, + #[codec(index = 18)] + ///See [`Pallet::payout_stakers`]. + payout_stakers { + validator_stash: ::subxt::utils::AccountId32, + era: ::core::primitive::u32, + }, + #[codec(index = 19)] + ///See [`Pallet::rebond`]. + rebond { + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 20)] + ///See [`Pallet::reap_stash`]. + reap_stash { + stash: ::subxt::utils::AccountId32, + num_slashing_spans: ::core::primitive::u32, + }, + #[codec(index = 21)] + ///See [`Pallet::kick`]. + kick { + who: ::std::vec::Vec< + ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + >, + }, + #[codec(index = 22)] + ///See [`Pallet::set_staking_configs`]. + set_staking_configs { + min_nominator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + min_validator_bond: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u128, + >, + max_nominator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + max_validator_count: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + ::core::primitive::u32, + >, + chill_threshold: + runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Percent, + >, + min_commission: runtime_types::pallet_staking::pallet::pallet::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, + }, + #[codec(index = 23)] + ///See [`Pallet::chill_other`]. + chill_other { controller: ::subxt::utils::AccountId32 }, + #[codec(index = 24)] + ///See [`Pallet::force_apply_min_commission`]. + force_apply_min_commission { validator_stash: ::subxt::utils::AccountId32 }, + #[codec(index = 25)] + ///See [`Pallet::set_min_commission`]. + set_min_commission { + new: runtime_types::sp_arithmetic::per_things::Perbill, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ConfigOp<_0> { + #[codec(index = 0)] + Noop, + #[codec(index = 1)] + Set(_0), + #[codec(index = 2)] + Remove, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Not a controller account. + NotController, + #[codec(index = 1)] + ///Not a stash account. + NotStash, + #[codec(index = 2)] + ///Stash is already bonded. + AlreadyBonded, + #[codec(index = 3)] + ///Controller is already paired. + AlreadyPaired, + #[codec(index = 4)] + ///Targets cannot be empty. + EmptyTargets, + #[codec(index = 5)] + ///Duplicate index. + DuplicateIndex, + #[codec(index = 6)] + ///Slash record index out of bounds. + InvalidSlashIndex, + #[codec(index = 7)] + ///Cannot have a validator or nominator role, with value less than the + /// minimum defined by governance (see `MinValidatorBond` and + /// `MinNominatorBond`). If unbonding is the intention, `chill` first to + /// remove one's role as validator/nominator. + InsufficientBond, + #[codec(index = 8)] + ///Can not schedule more unlock chunks. + NoMoreChunks, + #[codec(index = 9)] + ///Can not rebond without unlocking chunks. + NoUnlockChunk, + #[codec(index = 10)] + ///Attempting to target a stash that still has funds. + FundedTarget, + #[codec(index = 11)] + ///Invalid era to reward. + InvalidEraToReward, + #[codec(index = 12)] + ///Invalid number of nominations. + InvalidNumberOfNominations, + #[codec(index = 13)] + ///Items are not sorted and unique. + NotSortedAndUnique, + #[codec(index = 14)] + ///Rewards for this era have already been claimed for this validator. + AlreadyClaimed, + #[codec(index = 15)] + ///Incorrect previous history depth input provided. + IncorrectHistoryDepth, + #[codec(index = 16)] + ///Incorrect number of slashing spans provided. + IncorrectSlashingSpans, + #[codec(index = 17)] + ///Internal state has become somehow corrupted and the operation cannot + /// continue. + BadState, + #[codec(index = 18)] + ///Too many nomination targets supplied. + TooManyTargets, + #[codec(index = 19)] + ///A nomination target was supplied that was blocked or otherwise not a + /// validator. + BadTarget, + #[codec(index = 20)] + ///The user has enough bond and thus cannot be chilled forcefully by an + /// external person. + CannotChillOther, + #[codec(index = 21)] + ///There are too many nominators in the system. Governance needs to adjust + /// the staking settings to keep things safe for the runtime. + TooManyNominators, + #[codec(index = 22)] + ///There are too many validator candidates in the system. Governance needs + /// to adjust the staking settings to keep things safe for the runtime. + TooManyValidators, + #[codec(index = 23)] + ///Commission is too low. Must be at least `MinCommission`. + CommissionTooLow, + #[codec(index = 24)] + ///Some bound is not met. + BoundNotMet, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///The era payout has been set; the first balance is the validator-payout; + /// the second is the remainder from the maximum amount of reward. + EraPaid { + era_index: ::core::primitive::u32, + validator_payout: ::core::primitive::u128, + remainder: ::core::primitive::u128, + }, + #[codec(index = 1)] + ///The nominator has been rewarded by this amount. + Rewarded { + stash: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 2)] + ///A staker (validator or nominator) has been slashed by the given amount. + Slashed { + staker: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 3)] + ///A slash for the given validator, for the given percentage of their + /// stake, at the given era as been reported. + SlashReported { + validator: ::subxt::utils::AccountId32, + fraction: runtime_types::sp_arithmetic::per_things::Perbill, + slash_era: ::core::primitive::u32, + }, + #[codec(index = 4)] + ///An old slashing report from a prior era was discarded because it could + ///not be processed. + OldSlashingReportDiscarded { session_index: ::core::primitive::u32 }, + #[codec(index = 5)] + ///A new set of stakers was elected. + StakersElected, + #[codec(index = 6)] + ///An account has bonded this amount. \[stash, amount\] + /// + ///NOTE: This event is only emitted when funds are bonded via a + /// dispatchable. Notably, it will not be emitted for staking rewards when + /// they are added to stake. + Bonded { + stash: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 7)] + ///An account has unbonded this amount. + Unbonded { + stash: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 8)] + ///An account has called `withdraw_unbonded` and removed unbonding chunks + /// worth `Balance` from the unlocking queue. + Withdrawn { + stash: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 9)] + ///A nominator has been kicked from a validator. + Kicked { + nominator: ::subxt::utils::AccountId32, + stash: ::subxt::utils::AccountId32, + }, + #[codec(index = 10)] + ///The election failed. No new era is planned. + StakingElectionFailed, + #[codec(index = 11)] + ///An account has stopped participating as either a validator or + /// nominator. + Chilled { stash: ::subxt::utils::AccountId32 }, + #[codec(index = 12)] + ///The stakers' rewards are getting paid. + PayoutStarted { + era_index: ::core::primitive::u32, + validator_stash: ::subxt::utils::AccountId32, + }, + #[codec(index = 13)] + ///A validator has set their preferences. + ValidatorPrefsSet { + stash: ::subxt::utils::AccountId32, + prefs: runtime_types::pallet_staking::ValidatorPrefs, + }, + #[codec(index = 14)] + ///Voters size limit reached. + SnapshotVotersSizeExceeded { size: ::core::primitive::u32 }, + #[codec(index = 15)] + ///Targets size limit reached. + SnapshotTargetsSizeExceeded { size: ::core::primitive::u32 }, + #[codec(index = 16)] + ///A new force era mode was set. + ForceEra { mode: runtime_types::pallet_staking::Forcing }, + } + } + } + pub mod slashing { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SlashingSpans { + pub span_index: ::core::primitive::u32, + pub last_start: ::core::primitive::u32, + pub last_nonzero_slash: ::core::primitive::u32, + pub prior: ::std::vec::Vec<::core::primitive::u32>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SpanRecord<_0> { + pub slashed: _0, + pub paid_out: _0, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ActiveEraInfo { + pub index: ::core::primitive::u32, + pub start: ::core::option::Option<::core::primitive::u64>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EraRewardPoints<_0> { + pub total: ::core::primitive::u32, + pub individual: ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Exposure<_0, _1> { + #[codec(compact)] + pub total: _1, + #[codec(compact)] + pub own: _1, + pub others: + ::std::vec::Vec>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Forcing { + #[codec(index = 0)] + NotForcing, + #[codec(index = 1)] + ForceNew, + #[codec(index = 2)] + ForceNone, + #[codec(index = 3)] + ForceAlways, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct IndividualExposure<_0, _1> { + pub who: _0, + #[codec(compact)] + pub value: _1, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Nominations { + pub targets: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + pub submitted_in: ::core::primitive::u32, + pub suppressed: ::core::primitive::bool, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RewardDestination<_0> { + #[codec(index = 0)] + Staked, + #[codec(index = 1)] + Stash, + #[codec(index = 2)] + Controller, + #[codec(index = 3)] + Account(_0), + #[codec(index = 4)] + None, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct StakingLedger { + pub stash: ::subxt::utils::AccountId32, + #[codec(compact)] + pub total: ::core::primitive::u128, + #[codec(compact)] + pub active: ::core::primitive::u128, + pub unlocking: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_staking::UnlockChunk<::core::primitive::u128>, + >, + pub claimed_rewards: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u32, + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnappliedSlash<_0, _1> { + pub validator: _0, + pub own: _1, + pub others: ::std::vec::Vec<(_0, _1)>, + pub reporters: ::std::vec::Vec<_0>, + pub payout: _1, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UnlockChunk<_0> { + #[codec(compact)] + pub value: _0, + #[codec(compact)] + pub era: ::core::primitive::u32, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ValidatorPrefs { + #[codec(compact)] + pub commission: runtime_types::sp_arithmetic::per_things::Perbill, + pub blocked: ::core::primitive::bool, + } + } + pub mod pallet_sudo { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::sudo`]. + sudo { + call: ::std::boxed::Box, + }, + #[codec(index = 1)] + ///See [`Pallet::sudo_unchecked_weight`]. + sudo_unchecked_weight { + call: ::std::boxed::Box, + weight: runtime_types::sp_weights::weight_v2::Weight, + }, + #[codec(index = 2)] + ///See [`Pallet::set_key`]. + set_key { + new: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 3)] + ///See [`Pallet::sudo_as`]. + sudo_as { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + call: ::std::boxed::Box, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Error for the Sudo pallet + pub enum Error { + #[codec(index = 0)] + ///Sender must be the Sudo account + RequireSudo, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A sudo just took place. \[result\] + Sudid { + sudo_result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + #[codec(index = 1)] + ///The \[sudoer\] just switched identity; the old key is supplied if one + /// existed. + KeyChanged { old_sudoer: ::core::option::Option<::subxt::utils::AccountId32> }, + #[codec(index = 2)] + ///A sudo just took place. \[result\] + SudoAsDone { + sudo_result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + } + } + } + pub mod pallet_timestamp { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::set`]. + set { + #[codec(compact)] + now: ::core::primitive::u64, + }, + } + } + } + pub mod pallet_transaction_pause { + use super::runtime_types; + pub mod module { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::pause_transaction`]. + pause_transaction { + pallet_name: ::std::vec::Vec<::core::primitive::u8>, + function_name: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 1)] + ///See [`Pallet::unpause_transaction`]. + unpause_transaction { + pallet_name: ::std::vec::Vec<::core::primitive::u8>, + function_name: ::std::vec::Vec<::core::primitive::u8>, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///can not pause + CannotPause, + #[codec(index = 1)] + ///invalid character encoding + InvalidCharacter, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///Paused transaction + TransactionPaused { + pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + }, + #[codec(index = 1)] + ///Unpaused transaction + TransactionUnpaused { + pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, + }, + } + } + } + pub mod pallet_transaction_payment { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///A transaction fee `actual_fee`, of which `tip` was added to the minimum + /// inclusion fee, has been paid by `who`. + TransactionFeePaid { + who: ::subxt::utils::AccountId32, + actual_fee: ::core::primitive::u128, + tip: ::core::primitive::u128, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct FeeDetails<_0> { + pub inclusion_fee: ::core::option::Option< + runtime_types::pallet_transaction_payment::types::InclusionFee<_0>, + >, + pub tip: _0, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct InclusionFee<_0> { + pub base_fee: _0, + pub len_fee: _0, + pub adjusted_weight_fee: _0, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RuntimeDispatchInfo<_0, _1> { + pub weight: _1, + pub class: runtime_types::frame_support::dispatch::DispatchClass, + pub partial_fee: _0, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ChargeTransactionPayment(#[codec(compact)] pub ::core::primitive::u128); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Releases { + #[codec(index = 0)] + V1Ancient, + #[codec(index = 1)] + V2, + } + } + pub mod pallet_treasury { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::propose_spend`]. + propose_spend { + #[codec(compact)] + value: ::core::primitive::u128, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 1)] + ///See [`Pallet::reject_proposal`]. + reject_proposal { + #[codec(compact)] + proposal_id: ::core::primitive::u32, + }, + #[codec(index = 2)] + ///See [`Pallet::approve_proposal`]. + approve_proposal { + #[codec(compact)] + proposal_id: ::core::primitive::u32, + }, + #[codec(index = 3)] + ///See [`Pallet::spend`]. + spend { + #[codec(compact)] + amount: ::core::primitive::u128, + beneficiary: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 4)] + ///See [`Pallet::remove_approval`]. + remove_approval { + #[codec(compact)] + proposal_id: ::core::primitive::u32, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Error for the treasury pallet. + pub enum Error { + #[codec(index = 0)] + ///Proposer's balance is too low. + InsufficientProposersBalance, + #[codec(index = 1)] + ///No proposal or bounty at that index. + InvalidIndex, + #[codec(index = 2)] + ///Too many approvals in the queue. + TooManyApprovals, + #[codec(index = 3)] + ///The spend origin is valid but the amount it is allowed to spend is lower + /// than the amount to be spent. + InsufficientPermission, + #[codec(index = 4)] + ///Proposal has not been approved. + ProposalNotApproved, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///New proposal. + Proposed { proposal_index: ::core::primitive::u32 }, + #[codec(index = 1)] + ///We have ended a spend period and will now allocate funds. + Spending { budget_remaining: ::core::primitive::u128 }, + #[codec(index = 2)] + ///Some funds have been allocated. + Awarded { + proposal_index: ::core::primitive::u32, + award: ::core::primitive::u128, + account: ::subxt::utils::AccountId32, + }, + #[codec(index = 3)] + ///A proposal was rejected; funds were slashed. + Rejected { + proposal_index: ::core::primitive::u32, + slashed: ::core::primitive::u128, + }, + #[codec(index = 4)] + ///Some of our funds have been burnt. + Burnt { burnt_funds: ::core::primitive::u128 }, + #[codec(index = 5)] + ///Spending has finished; this is the amount that rolls over until next spend. + Rollover { rollover_balance: ::core::primitive::u128 }, + #[codec(index = 6)] + ///Some funds have been deposited. + Deposit { value: ::core::primitive::u128 }, + #[codec(index = 7)] + ///A new spend proposal has been approved. + SpendApproved { + proposal_index: ::core::primitive::u32, + amount: ::core::primitive::u128, + beneficiary: ::subxt::utils::AccountId32, + }, + #[codec(index = 8)] + ///The inactive funds of the pallet have been updated. + UpdatedInactive { + reactivated: ::core::primitive::u128, + deactivated: ::core::primitive::u128, + }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Proposal<_0, _1> { + pub proposer: _0, + pub value: _1, + pub beneficiary: _0, + pub bond: _1, + } + } + pub mod pallet_utility { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::batch`]. + batch { + calls: ::std::vec::Vec, + }, + #[codec(index = 1)] + ///See [`Pallet::as_derivative`]. + as_derivative { + index: ::core::primitive::u16, + call: ::std::boxed::Box, + }, + #[codec(index = 2)] + ///See [`Pallet::batch_all`]. + batch_all { + calls: ::std::vec::Vec, + }, + #[codec(index = 3)] + ///See [`Pallet::dispatch_as`]. + dispatch_as { + as_origin: + ::std::boxed::Box, + call: ::std::boxed::Box, + }, + #[codec(index = 4)] + ///See [`Pallet::force_batch`]. + force_batch { + calls: ::std::vec::Vec, + }, + #[codec(index = 5)] + ///See [`Pallet::with_weight`]. + with_weight { + call: ::std::boxed::Box, + weight: runtime_types::sp_weights::weight_v2::Weight, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Too many calls batched. + TooManyCalls, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///Batch of dispatches did not complete fully. Index of first failing dispatch + /// given, as well as the error. + BatchInterrupted { + index: ::core::primitive::u32, + error: runtime_types::sp_runtime::DispatchError, + }, + #[codec(index = 1)] + ///Batch of dispatches completed fully with no error. + BatchCompleted, + #[codec(index = 2)] + ///Batch of dispatches completed but has errors. + BatchCompletedWithErrors, + #[codec(index = 3)] + ///A single item within a Batch of dispatches has completed with no error. + ItemCompleted, + #[codec(index = 4)] + ///A single item within a Batch of dispatches has completed with error. + ItemFailed { error: runtime_types::sp_runtime::DispatchError }, + #[codec(index = 5)] + ///A call was dispatched. + DispatchedAs { + result: + ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, + }, + } + } + } + pub mod pallet_vesting { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::vest`]. + vest, + #[codec(index = 1)] + ///See [`Pallet::vest_other`]. + vest_other { + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, + #[codec(index = 2)] + ///See [`Pallet::vested_transfer`]. + vested_transfer { + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u64, + >, + }, + #[codec(index = 3)] + ///See [`Pallet::force_vested_transfer`]. + force_vested_transfer { + source: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + target: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + schedule: runtime_types::pallet_vesting::vesting_info::VestingInfo< + ::core::primitive::u128, + ::core::primitive::u64, + >, + }, + #[codec(index = 4)] + ///See [`Pallet::merge_schedules`]. + merge_schedules { + schedule1_index: ::core::primitive::u32, + schedule2_index: ::core::primitive::u32, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Error for the vesting pallet. + pub enum Error { + #[codec(index = 0)] + ///The account given is not vesting. + NotVesting, + #[codec(index = 1)] + ///The account already has `MaxVestingSchedules` count of schedules and thus + ///cannot add another one. Consider merging existing schedules in order to add + /// another. + AtMaxVestingSchedules, + #[codec(index = 2)] + ///Amount being transferred is too low to create a vesting schedule. + AmountLow, + #[codec(index = 3)] + ///An index was out of bounds of the vesting schedules. + ScheduleIndexOutOfBounds, + #[codec(index = 4)] + ///Failed to create a new schedule because some parameter was invalid. + InvalidScheduleParams, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///The amount vested has been updated. This could indicate a change in funds + /// available. The balance given is the amount which is left unvested (and thus + /// locked). + VestingUpdated { + account: ::subxt::utils::AccountId32, + unvested: ::core::primitive::u128, + }, + #[codec(index = 1)] + ///An \[account\] has become fully vested. + VestingCompleted { account: ::subxt::utils::AccountId32 }, + } + } + pub mod vesting_info { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct VestingInfo<_0, _1> { + pub locked: _0, + pub per_block: _0, + pub starting_block: _1, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Releases { + #[codec(index = 0)] + V0, + #[codec(index = 1)] + V1, + } + } + pub mod pallet_zksaas { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///Contains a variant per dispatchable extrinsic that this pallet has. + pub enum Call { + #[codec(index = 0)] + ///See [`Pallet::set_fee`]. + set_fee { + fee_info: + runtime_types::pallet_zksaas::types::FeeInfo<::core::primitive::u128>, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Error` enum of this pallet. + pub enum Error { + #[codec(index = 0)] + ///Unexpected job type + InvalidJobType, + #[codec(index = 1)] + ///Invalid proof + InvalidProof, + #[codec(index = 2)] + ///Malformed Proof + ///if the proof bytes is not correct. + MalformedProof, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + ///The `Event` enum of this pallet + pub enum Event { + #[codec(index = 0)] + ///Fee has been updated to the new value + FeeUpdated( + runtime_types::pallet_zksaas::types::FeeInfo<::core::primitive::u128>, + ), + } + } + pub mod types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct FeeInfo<_0> { + pub base_fee: _0, + pub circuit_fee: _0, + pub prove_fee: _0, + pub storage_fee_per_byte: _0, + } + } + } + pub mod primitive_types { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct U256(pub [::core::primitive::u64; 4usize]); + } + pub mod rpc_primitives_txpool { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TxPoolResponse { + pub ready: ::std::vec::Vec, + pub future: ::std::vec::Vec, + } + } + pub mod sp_arithmetic { + use super::runtime_types; + pub mod fixed_point { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct FixedU128(pub ::core::primitive::u128); + } + pub mod per_things { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PerU16(pub ::core::primitive::u16); + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Perbill(pub ::core::primitive::u32); + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Percent(pub ::core::primitive::u8); + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Permill(pub ::core::primitive::u32); + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ArithmeticError { + #[codec(index = 0)] + Underflow, + #[codec(index = 1)] + Overflow, + #[codec(index = 2)] + DivisionByZero, + } + } + pub mod sp_consensus_babe { + use super::runtime_types; + pub mod app { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Public(pub runtime_types::sp_core::sr25519::Public); + } + pub mod digests { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum NextConfigDescriptor { + #[codec(index = 1)] + V1 { + c: (::core::primitive::u64, ::core::primitive::u64), + allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum PreDigest { + #[codec(index = 1)] + Primary(runtime_types::sp_consensus_babe::digests::PrimaryPreDigest), + #[codec(index = 2)] + SecondaryPlain( + runtime_types::sp_consensus_babe::digests::SecondaryPlainPreDigest, + ), + #[codec(index = 3)] + SecondaryVRF(runtime_types::sp_consensus_babe::digests::SecondaryVRFPreDigest), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PrimaryPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + pub vrf_signature: runtime_types::sp_core::sr25519::vrf::VrfSignature, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SecondaryPlainPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SecondaryVRFPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + pub vrf_signature: runtime_types::sp_core::sr25519::vrf::VrfSignature, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum AllowedSlots { + #[codec(index = 0)] + PrimarySlots, + #[codec(index = 1)] + PrimaryAndSecondaryPlainSlots, + #[codec(index = 2)] + PrimaryAndSecondaryVRFSlots, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BabeConfiguration { + pub slot_duration: ::core::primitive::u64, + pub epoch_length: ::core::primitive::u64, + pub c: (::core::primitive::u64, ::core::primitive::u64), + pub authorities: ::std::vec::Vec<( + runtime_types::sp_consensus_babe::app::Public, + ::core::primitive::u64, + )>, + pub randomness: [::core::primitive::u8; 32usize], + pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BabeEpochConfiguration { + pub c: (::core::primitive::u64, ::core::primitive::u64), + pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Epoch { + pub epoch_index: ::core::primitive::u64, + pub start_slot: runtime_types::sp_consensus_slots::Slot, + pub duration: ::core::primitive::u64, + pub authorities: ::std::vec::Vec<( + runtime_types::sp_consensus_babe::app::Public, + ::core::primitive::u64, + )>, + pub randomness: [::core::primitive::u8; 32usize], + pub config: runtime_types::sp_consensus_babe::BabeEpochConfiguration, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OpaqueKeyOwnershipProof(pub ::std::vec::Vec<::core::primitive::u8>); + } + pub mod sp_consensus_grandpa { + use super::runtime_types; + pub mod app { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Public(pub runtime_types::sp_core::ed25519::Public); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Equivocation<_0, _1> { + #[codec(index = 0)] + Prevote( + runtime_types::finality_grandpa::Equivocation< + runtime_types::sp_consensus_grandpa::app::Public, + runtime_types::finality_grandpa::Prevote<_0, _1>, + runtime_types::sp_consensus_grandpa::app::Signature, + >, + ), + #[codec(index = 1)] + Precommit( + runtime_types::finality_grandpa::Equivocation< + runtime_types::sp_consensus_grandpa::app::Public, + runtime_types::finality_grandpa::Precommit<_0, _1>, + runtime_types::sp_consensus_grandpa::app::Signature, + >, + ), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EquivocationProof<_0, _1> { + pub set_id: ::core::primitive::u64, + pub equivocation: runtime_types::sp_consensus_grandpa::Equivocation<_0, _1>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OpaqueKeyOwnershipProof(pub ::std::vec::Vec<::core::primitive::u8>); + } + pub mod sp_consensus_slots { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EquivocationProof<_0, _1> { + pub offender: _1, + pub slot: runtime_types::sp_consensus_slots::Slot, + pub first_header: _0, + pub second_header: _0, + } + #[derive( + ::subxt::ext::codec::CompactAs, + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Slot(pub ::core::primitive::u64); + } + pub mod sp_core { + use super::runtime_types; + pub mod crypto { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); + } + pub mod ecdsa { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Public(pub [::core::primitive::u8; 33usize]); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Signature(pub [::core::primitive::u8; 65usize]); + } + pub mod ed25519 { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Public(pub [::core::primitive::u8; 32usize]); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Signature(pub [::core::primitive::u8; 64usize]); + } + pub mod sr25519 { + use super::runtime_types; + pub mod vrf { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct VrfSignature { + pub output: [::core::primitive::u8; 32usize], + pub proof: [::core::primitive::u8; 64usize], + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Public(pub [::core::primitive::u8; 32usize]); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Signature(pub [::core::primitive::u8; 64usize]); + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OpaqueMetadata(pub ::std::vec::Vec<::core::primitive::u8>); + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Void {} + } + pub mod sp_inherents { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckInherentsResult { + pub okay: ::core::primitive::bool, + pub fatal_error: ::core::primitive::bool, + pub errors: runtime_types::sp_inherents::InherentData, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct InherentData { + pub data: ::subxt::utils::KeyedVec< + [::core::primitive::u8; 8usize], + ::std::vec::Vec<::core::primitive::u8>, + >, + } + } + pub mod sp_npos_elections { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ElectionScore { + pub minimal_stake: ::core::primitive::u128, + pub sum_stake: ::core::primitive::u128, + pub sum_stake_squared: ::core::primitive::u128, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Support<_0> { + pub total: ::core::primitive::u128, + pub voters: ::std::vec::Vec<(_0, ::core::primitive::u128)>, + } + } + pub mod sp_runtime { + use super::runtime_types; + pub mod generic { + use super::runtime_types; + pub mod block { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Block<_0, _1> { + pub header: _0, + pub extrinsics: ::std::vec::Vec<_1>, + } + } + pub mod digest { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Digest { + pub logs: + ::std::vec::Vec, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum DigestItem { + #[codec(index = 6)] + PreRuntime( + [::core::primitive::u8; 4usize], + ::std::vec::Vec<::core::primitive::u8>, + ), + #[codec(index = 4)] + Consensus( + [::core::primitive::u8; 4usize], + ::std::vec::Vec<::core::primitive::u8>, + ), + #[codec(index = 5)] + Seal( + [::core::primitive::u8; 4usize], + ::std::vec::Vec<::core::primitive::u8>, + ), + #[codec(index = 0)] + Other(::std::vec::Vec<::core::primitive::u8>), + #[codec(index = 8)] + RuntimeEnvironmentUpdated, + } + } + pub mod era { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Era { + #[codec(index = 0)] + Immortal, + #[codec(index = 1)] + Mortal1(::core::primitive::u8), + #[codec(index = 2)] + Mortal2(::core::primitive::u8), + #[codec(index = 3)] + Mortal3(::core::primitive::u8), + #[codec(index = 4)] + Mortal4(::core::primitive::u8), + #[codec(index = 5)] + Mortal5(::core::primitive::u8), + #[codec(index = 6)] + Mortal6(::core::primitive::u8), + #[codec(index = 7)] + Mortal7(::core::primitive::u8), + #[codec(index = 8)] + Mortal8(::core::primitive::u8), + #[codec(index = 9)] + Mortal9(::core::primitive::u8), + #[codec(index = 10)] + Mortal10(::core::primitive::u8), + #[codec(index = 11)] + Mortal11(::core::primitive::u8), + #[codec(index = 12)] + Mortal12(::core::primitive::u8), + #[codec(index = 13)] + Mortal13(::core::primitive::u8), + #[codec(index = 14)] + Mortal14(::core::primitive::u8), + #[codec(index = 15)] + Mortal15(::core::primitive::u8), + #[codec(index = 16)] + Mortal16(::core::primitive::u8), + #[codec(index = 17)] + Mortal17(::core::primitive::u8), + #[codec(index = 18)] + Mortal18(::core::primitive::u8), + #[codec(index = 19)] + Mortal19(::core::primitive::u8), + #[codec(index = 20)] + Mortal20(::core::primitive::u8), + #[codec(index = 21)] + Mortal21(::core::primitive::u8), + #[codec(index = 22)] + Mortal22(::core::primitive::u8), + #[codec(index = 23)] + Mortal23(::core::primitive::u8), + #[codec(index = 24)] + Mortal24(::core::primitive::u8), + #[codec(index = 25)] + Mortal25(::core::primitive::u8), + #[codec(index = 26)] + Mortal26(::core::primitive::u8), + #[codec(index = 27)] + Mortal27(::core::primitive::u8), + #[codec(index = 28)] + Mortal28(::core::primitive::u8), + #[codec(index = 29)] + Mortal29(::core::primitive::u8), + #[codec(index = 30)] + Mortal30(::core::primitive::u8), + #[codec(index = 31)] + Mortal31(::core::primitive::u8), + #[codec(index = 32)] + Mortal32(::core::primitive::u8), + #[codec(index = 33)] + Mortal33(::core::primitive::u8), + #[codec(index = 34)] + Mortal34(::core::primitive::u8), + #[codec(index = 35)] + Mortal35(::core::primitive::u8), + #[codec(index = 36)] + Mortal36(::core::primitive::u8), + #[codec(index = 37)] + Mortal37(::core::primitive::u8), + #[codec(index = 38)] + Mortal38(::core::primitive::u8), + #[codec(index = 39)] + Mortal39(::core::primitive::u8), + #[codec(index = 40)] + Mortal40(::core::primitive::u8), + #[codec(index = 41)] + Mortal41(::core::primitive::u8), + #[codec(index = 42)] + Mortal42(::core::primitive::u8), + #[codec(index = 43)] + Mortal43(::core::primitive::u8), + #[codec(index = 44)] + Mortal44(::core::primitive::u8), + #[codec(index = 45)] + Mortal45(::core::primitive::u8), + #[codec(index = 46)] + Mortal46(::core::primitive::u8), + #[codec(index = 47)] + Mortal47(::core::primitive::u8), + #[codec(index = 48)] + Mortal48(::core::primitive::u8), + #[codec(index = 49)] + Mortal49(::core::primitive::u8), + #[codec(index = 50)] + Mortal50(::core::primitive::u8), + #[codec(index = 51)] + Mortal51(::core::primitive::u8), + #[codec(index = 52)] + Mortal52(::core::primitive::u8), + #[codec(index = 53)] + Mortal53(::core::primitive::u8), + #[codec(index = 54)] + Mortal54(::core::primitive::u8), + #[codec(index = 55)] + Mortal55(::core::primitive::u8), + #[codec(index = 56)] + Mortal56(::core::primitive::u8), + #[codec(index = 57)] + Mortal57(::core::primitive::u8), + #[codec(index = 58)] + Mortal58(::core::primitive::u8), + #[codec(index = 59)] + Mortal59(::core::primitive::u8), + #[codec(index = 60)] + Mortal60(::core::primitive::u8), + #[codec(index = 61)] + Mortal61(::core::primitive::u8), + #[codec(index = 62)] + Mortal62(::core::primitive::u8), + #[codec(index = 63)] + Mortal63(::core::primitive::u8), + #[codec(index = 64)] + Mortal64(::core::primitive::u8), + #[codec(index = 65)] + Mortal65(::core::primitive::u8), + #[codec(index = 66)] + Mortal66(::core::primitive::u8), + #[codec(index = 67)] + Mortal67(::core::primitive::u8), + #[codec(index = 68)] + Mortal68(::core::primitive::u8), + #[codec(index = 69)] + Mortal69(::core::primitive::u8), + #[codec(index = 70)] + Mortal70(::core::primitive::u8), + #[codec(index = 71)] + Mortal71(::core::primitive::u8), + #[codec(index = 72)] + Mortal72(::core::primitive::u8), + #[codec(index = 73)] + Mortal73(::core::primitive::u8), + #[codec(index = 74)] + Mortal74(::core::primitive::u8), + #[codec(index = 75)] + Mortal75(::core::primitive::u8), + #[codec(index = 76)] + Mortal76(::core::primitive::u8), + #[codec(index = 77)] + Mortal77(::core::primitive::u8), + #[codec(index = 78)] + Mortal78(::core::primitive::u8), + #[codec(index = 79)] + Mortal79(::core::primitive::u8), + #[codec(index = 80)] + Mortal80(::core::primitive::u8), + #[codec(index = 81)] + Mortal81(::core::primitive::u8), + #[codec(index = 82)] + Mortal82(::core::primitive::u8), + #[codec(index = 83)] + Mortal83(::core::primitive::u8), + #[codec(index = 84)] + Mortal84(::core::primitive::u8), + #[codec(index = 85)] + Mortal85(::core::primitive::u8), + #[codec(index = 86)] + Mortal86(::core::primitive::u8), + #[codec(index = 87)] + Mortal87(::core::primitive::u8), + #[codec(index = 88)] + Mortal88(::core::primitive::u8), + #[codec(index = 89)] + Mortal89(::core::primitive::u8), + #[codec(index = 90)] + Mortal90(::core::primitive::u8), + #[codec(index = 91)] + Mortal91(::core::primitive::u8), + #[codec(index = 92)] + Mortal92(::core::primitive::u8), + #[codec(index = 93)] + Mortal93(::core::primitive::u8), + #[codec(index = 94)] + Mortal94(::core::primitive::u8), + #[codec(index = 95)] + Mortal95(::core::primitive::u8), + #[codec(index = 96)] + Mortal96(::core::primitive::u8), + #[codec(index = 97)] + Mortal97(::core::primitive::u8), + #[codec(index = 98)] + Mortal98(::core::primitive::u8), + #[codec(index = 99)] + Mortal99(::core::primitive::u8), + #[codec(index = 100)] + Mortal100(::core::primitive::u8), + #[codec(index = 101)] + Mortal101(::core::primitive::u8), + #[codec(index = 102)] + Mortal102(::core::primitive::u8), + #[codec(index = 103)] + Mortal103(::core::primitive::u8), + #[codec(index = 104)] + Mortal104(::core::primitive::u8), + #[codec(index = 105)] + Mortal105(::core::primitive::u8), + #[codec(index = 106)] + Mortal106(::core::primitive::u8), + #[codec(index = 107)] + Mortal107(::core::primitive::u8), + #[codec(index = 108)] + Mortal108(::core::primitive::u8), + #[codec(index = 109)] + Mortal109(::core::primitive::u8), + #[codec(index = 110)] + Mortal110(::core::primitive::u8), + #[codec(index = 111)] + Mortal111(::core::primitive::u8), + #[codec(index = 112)] + Mortal112(::core::primitive::u8), + #[codec(index = 113)] + Mortal113(::core::primitive::u8), + #[codec(index = 114)] + Mortal114(::core::primitive::u8), + #[codec(index = 115)] + Mortal115(::core::primitive::u8), + #[codec(index = 116)] + Mortal116(::core::primitive::u8), + #[codec(index = 117)] + Mortal117(::core::primitive::u8), + #[codec(index = 118)] + Mortal118(::core::primitive::u8), + #[codec(index = 119)] + Mortal119(::core::primitive::u8), + #[codec(index = 120)] + Mortal120(::core::primitive::u8), + #[codec(index = 121)] + Mortal121(::core::primitive::u8), + #[codec(index = 122)] + Mortal122(::core::primitive::u8), + #[codec(index = 123)] + Mortal123(::core::primitive::u8), + #[codec(index = 124)] + Mortal124(::core::primitive::u8), + #[codec(index = 125)] + Mortal125(::core::primitive::u8), + #[codec(index = 126)] + Mortal126(::core::primitive::u8), + #[codec(index = 127)] + Mortal127(::core::primitive::u8), + #[codec(index = 128)] + Mortal128(::core::primitive::u8), + #[codec(index = 129)] + Mortal129(::core::primitive::u8), + #[codec(index = 130)] + Mortal130(::core::primitive::u8), + #[codec(index = 131)] + Mortal131(::core::primitive::u8), + #[codec(index = 132)] + Mortal132(::core::primitive::u8), + #[codec(index = 133)] + Mortal133(::core::primitive::u8), + #[codec(index = 134)] + Mortal134(::core::primitive::u8), + #[codec(index = 135)] + Mortal135(::core::primitive::u8), + #[codec(index = 136)] + Mortal136(::core::primitive::u8), + #[codec(index = 137)] + Mortal137(::core::primitive::u8), + #[codec(index = 138)] + Mortal138(::core::primitive::u8), + #[codec(index = 139)] + Mortal139(::core::primitive::u8), + #[codec(index = 140)] + Mortal140(::core::primitive::u8), + #[codec(index = 141)] + Mortal141(::core::primitive::u8), + #[codec(index = 142)] + Mortal142(::core::primitive::u8), + #[codec(index = 143)] + Mortal143(::core::primitive::u8), + #[codec(index = 144)] + Mortal144(::core::primitive::u8), + #[codec(index = 145)] + Mortal145(::core::primitive::u8), + #[codec(index = 146)] + Mortal146(::core::primitive::u8), + #[codec(index = 147)] + Mortal147(::core::primitive::u8), + #[codec(index = 148)] + Mortal148(::core::primitive::u8), + #[codec(index = 149)] + Mortal149(::core::primitive::u8), + #[codec(index = 150)] + Mortal150(::core::primitive::u8), + #[codec(index = 151)] + Mortal151(::core::primitive::u8), + #[codec(index = 152)] + Mortal152(::core::primitive::u8), + #[codec(index = 153)] + Mortal153(::core::primitive::u8), + #[codec(index = 154)] + Mortal154(::core::primitive::u8), + #[codec(index = 155)] + Mortal155(::core::primitive::u8), + #[codec(index = 156)] + Mortal156(::core::primitive::u8), + #[codec(index = 157)] + Mortal157(::core::primitive::u8), + #[codec(index = 158)] + Mortal158(::core::primitive::u8), + #[codec(index = 159)] + Mortal159(::core::primitive::u8), + #[codec(index = 160)] + Mortal160(::core::primitive::u8), + #[codec(index = 161)] + Mortal161(::core::primitive::u8), + #[codec(index = 162)] + Mortal162(::core::primitive::u8), + #[codec(index = 163)] + Mortal163(::core::primitive::u8), + #[codec(index = 164)] + Mortal164(::core::primitive::u8), + #[codec(index = 165)] + Mortal165(::core::primitive::u8), + #[codec(index = 166)] + Mortal166(::core::primitive::u8), + #[codec(index = 167)] + Mortal167(::core::primitive::u8), + #[codec(index = 168)] + Mortal168(::core::primitive::u8), + #[codec(index = 169)] + Mortal169(::core::primitive::u8), + #[codec(index = 170)] + Mortal170(::core::primitive::u8), + #[codec(index = 171)] + Mortal171(::core::primitive::u8), + #[codec(index = 172)] + Mortal172(::core::primitive::u8), + #[codec(index = 173)] + Mortal173(::core::primitive::u8), + #[codec(index = 174)] + Mortal174(::core::primitive::u8), + #[codec(index = 175)] + Mortal175(::core::primitive::u8), + #[codec(index = 176)] + Mortal176(::core::primitive::u8), + #[codec(index = 177)] + Mortal177(::core::primitive::u8), + #[codec(index = 178)] + Mortal178(::core::primitive::u8), + #[codec(index = 179)] + Mortal179(::core::primitive::u8), + #[codec(index = 180)] + Mortal180(::core::primitive::u8), + #[codec(index = 181)] + Mortal181(::core::primitive::u8), + #[codec(index = 182)] + Mortal182(::core::primitive::u8), + #[codec(index = 183)] + Mortal183(::core::primitive::u8), + #[codec(index = 184)] + Mortal184(::core::primitive::u8), + #[codec(index = 185)] + Mortal185(::core::primitive::u8), + #[codec(index = 186)] + Mortal186(::core::primitive::u8), + #[codec(index = 187)] + Mortal187(::core::primitive::u8), + #[codec(index = 188)] + Mortal188(::core::primitive::u8), + #[codec(index = 189)] + Mortal189(::core::primitive::u8), + #[codec(index = 190)] + Mortal190(::core::primitive::u8), + #[codec(index = 191)] + Mortal191(::core::primitive::u8), + #[codec(index = 192)] + Mortal192(::core::primitive::u8), + #[codec(index = 193)] + Mortal193(::core::primitive::u8), + #[codec(index = 194)] + Mortal194(::core::primitive::u8), + #[codec(index = 195)] + Mortal195(::core::primitive::u8), + #[codec(index = 196)] + Mortal196(::core::primitive::u8), + #[codec(index = 197)] + Mortal197(::core::primitive::u8), + #[codec(index = 198)] + Mortal198(::core::primitive::u8), + #[codec(index = 199)] + Mortal199(::core::primitive::u8), + #[codec(index = 200)] + Mortal200(::core::primitive::u8), + #[codec(index = 201)] + Mortal201(::core::primitive::u8), + #[codec(index = 202)] + Mortal202(::core::primitive::u8), + #[codec(index = 203)] + Mortal203(::core::primitive::u8), + #[codec(index = 204)] + Mortal204(::core::primitive::u8), + #[codec(index = 205)] + Mortal205(::core::primitive::u8), + #[codec(index = 206)] + Mortal206(::core::primitive::u8), + #[codec(index = 207)] + Mortal207(::core::primitive::u8), + #[codec(index = 208)] + Mortal208(::core::primitive::u8), + #[codec(index = 209)] + Mortal209(::core::primitive::u8), + #[codec(index = 210)] + Mortal210(::core::primitive::u8), + #[codec(index = 211)] + Mortal211(::core::primitive::u8), + #[codec(index = 212)] + Mortal212(::core::primitive::u8), + #[codec(index = 213)] + Mortal213(::core::primitive::u8), + #[codec(index = 214)] + Mortal214(::core::primitive::u8), + #[codec(index = 215)] + Mortal215(::core::primitive::u8), + #[codec(index = 216)] + Mortal216(::core::primitive::u8), + #[codec(index = 217)] + Mortal217(::core::primitive::u8), + #[codec(index = 218)] + Mortal218(::core::primitive::u8), + #[codec(index = 219)] + Mortal219(::core::primitive::u8), + #[codec(index = 220)] + Mortal220(::core::primitive::u8), + #[codec(index = 221)] + Mortal221(::core::primitive::u8), + #[codec(index = 222)] + Mortal222(::core::primitive::u8), + #[codec(index = 223)] + Mortal223(::core::primitive::u8), + #[codec(index = 224)] + Mortal224(::core::primitive::u8), + #[codec(index = 225)] + Mortal225(::core::primitive::u8), + #[codec(index = 226)] + Mortal226(::core::primitive::u8), + #[codec(index = 227)] + Mortal227(::core::primitive::u8), + #[codec(index = 228)] + Mortal228(::core::primitive::u8), + #[codec(index = 229)] + Mortal229(::core::primitive::u8), + #[codec(index = 230)] + Mortal230(::core::primitive::u8), + #[codec(index = 231)] + Mortal231(::core::primitive::u8), + #[codec(index = 232)] + Mortal232(::core::primitive::u8), + #[codec(index = 233)] + Mortal233(::core::primitive::u8), + #[codec(index = 234)] + Mortal234(::core::primitive::u8), + #[codec(index = 235)] + Mortal235(::core::primitive::u8), + #[codec(index = 236)] + Mortal236(::core::primitive::u8), + #[codec(index = 237)] + Mortal237(::core::primitive::u8), + #[codec(index = 238)] + Mortal238(::core::primitive::u8), + #[codec(index = 239)] + Mortal239(::core::primitive::u8), + #[codec(index = 240)] + Mortal240(::core::primitive::u8), + #[codec(index = 241)] + Mortal241(::core::primitive::u8), + #[codec(index = 242)] + Mortal242(::core::primitive::u8), + #[codec(index = 243)] + Mortal243(::core::primitive::u8), + #[codec(index = 244)] + Mortal244(::core::primitive::u8), + #[codec(index = 245)] + Mortal245(::core::primitive::u8), + #[codec(index = 246)] + Mortal246(::core::primitive::u8), + #[codec(index = 247)] + Mortal247(::core::primitive::u8), + #[codec(index = 248)] + Mortal248(::core::primitive::u8), + #[codec(index = 249)] + Mortal249(::core::primitive::u8), + #[codec(index = 250)] + Mortal250(::core::primitive::u8), + #[codec(index = 251)] + Mortal251(::core::primitive::u8), + #[codec(index = 252)] + Mortal252(::core::primitive::u8), + #[codec(index = 253)] + Mortal253(::core::primitive::u8), + #[codec(index = 254)] + Mortal254(::core::primitive::u8), + #[codec(index = 255)] + Mortal255(::core::primitive::u8), + } + } + pub mod header { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Header<_0> { + pub parent_hash: ::subxt::utils::H256, + #[codec(compact)] + pub number: _0, + pub state_root: ::subxt::utils::H256, + pub extrinsics_root: ::subxt::utils::H256, + pub digest: runtime_types::sp_runtime::generic::digest::Digest, + } + } + } + pub mod transaction_validity { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum InvalidTransaction { + #[codec(index = 0)] + Call, + #[codec(index = 1)] + Payment, + #[codec(index = 2)] + Future, + #[codec(index = 3)] + Stale, + #[codec(index = 4)] + BadProof, + #[codec(index = 5)] + AncientBirthBlock, + #[codec(index = 6)] + ExhaustsResources, + #[codec(index = 7)] + Custom(::core::primitive::u8), + #[codec(index = 8)] + BadMandatory, + #[codec(index = 9)] + MandatoryValidation, + #[codec(index = 10)] + BadSigner, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum TransactionSource { + #[codec(index = 0)] + InBlock, + #[codec(index = 1)] + Local, + #[codec(index = 2)] + External, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum TransactionValidityError { + #[codec(index = 0)] + Invalid(runtime_types::sp_runtime::transaction_validity::InvalidTransaction), + #[codec(index = 1)] + Unknown(runtime_types::sp_runtime::transaction_validity::UnknownTransaction), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum UnknownTransaction { + #[codec(index = 0)] + CannotLookup, + #[codec(index = 1)] + NoUnsignedValidator, + #[codec(index = 2)] + Custom(::core::primitive::u8), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ValidTransaction { + pub priority: ::core::primitive::u64, + pub requires: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + pub provides: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + pub longevity: ::core::primitive::u64, + pub propagate: ::core::primitive::bool, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum DispatchError { + #[codec(index = 0)] + Other, + #[codec(index = 1)] + CannotLookup, + #[codec(index = 2)] + BadOrigin, + #[codec(index = 3)] + Module(runtime_types::sp_runtime::ModuleError), + #[codec(index = 4)] + ConsumerRemaining, + #[codec(index = 5)] + NoProviders, + #[codec(index = 6)] + TooManyConsumers, + #[codec(index = 7)] + Token(runtime_types::sp_runtime::TokenError), + #[codec(index = 8)] + Arithmetic(runtime_types::sp_arithmetic::ArithmeticError), + #[codec(index = 9)] + Transactional(runtime_types::sp_runtime::TransactionalError), + #[codec(index = 10)] + Exhausted, + #[codec(index = 11)] + Corruption, + #[codec(index = 12)] + Unavailable, + #[codec(index = 13)] + RootNotAllowed, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ModuleError { + pub index: ::core::primitive::u8, + pub error: [::core::primitive::u8; 4usize], + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MultiSignature { + #[codec(index = 0)] + Ed25519(runtime_types::sp_core::ed25519::Signature), + #[codec(index = 1)] + Sr25519(runtime_types::sp_core::sr25519::Signature), + #[codec(index = 2)] + Ecdsa(runtime_types::sp_core::ecdsa::Signature), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum TokenError { + #[codec(index = 0)] + FundsUnavailable, + #[codec(index = 1)] + OnlyProvider, + #[codec(index = 2)] + BelowMinimum, + #[codec(index = 3)] + CannotCreate, + #[codec(index = 4)] + UnknownAsset, + #[codec(index = 5)] + Frozen, + #[codec(index = 6)] + Unsupported, + #[codec(index = 7)] + CannotCreateHold, + #[codec(index = 8)] + NotExpendable, + #[codec(index = 9)] + Blocked, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum TransactionalError { + #[codec(index = 0)] + LimitReached, + #[codec(index = 1)] + NoLayer, + } + } + pub mod sp_session { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MembershipProof { + pub session: ::core::primitive::u32, + pub trie_nodes: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, + pub validator_count: ::core::primitive::u32, + } + } + pub mod sp_staking { + use super::runtime_types; + pub mod offence { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OffenceDetails<_0, _1> { + pub offender: _1, + pub reporters: ::std::vec::Vec<_0>, + } + } + } + pub mod sp_version { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RuntimeVersion { + pub spec_name: ::std::string::String, + pub impl_name: ::std::string::String, + pub authoring_version: ::core::primitive::u32, + pub spec_version: ::core::primitive::u32, + pub impl_version: ::core::primitive::u32, + pub apis: + ::std::vec::Vec<([::core::primitive::u8; 8usize], ::core::primitive::u32)>, + pub transaction_version: ::core::primitive::u32, + pub state_version: ::core::primitive::u8, + } + } + pub mod sp_weights { + use super::runtime_types; + pub mod weight_v2 { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Weight { + #[codec(compact)] + pub ref_time: ::core::primitive::u64, + #[codec(compact)] + pub proof_size: ::core::primitive::u64, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RuntimeDbWeight { + pub read: ::core::primitive::u64, + pub write: ::core::primitive::u64, + } + } + pub mod tangle_crypto_primitives { + use super::runtime_types; + pub mod crypto { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Public(pub runtime_types::sp_core::ecdsa::Public); + } + } + pub mod tangle_primitives { + use super::runtime_types; + pub mod jobs { + use super::runtime_types; + pub mod tss { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DKGTSSKeyRefreshResult { + pub signature_scheme: + runtime_types::tangle_primitives::jobs::tss::DigitalSignatureScheme, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DKGTSSKeyRotationResult<_0, _1> { + pub phase_one_id: ::core::primitive::u64, + pub new_phase_one_id: ::core::primitive::u64, + pub new_key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub signature: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub signature_scheme: + runtime_types::tangle_primitives::jobs::tss::DigitalSignatureScheme, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<(_0, _1)>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DKGTSSKeySubmissionResult<_0, _1, _2> { + pub signature_scheme: + runtime_types::tangle_primitives::jobs::tss::DigitalSignatureScheme, + pub key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub participants: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + pub signatures: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + >, + pub threshold: ::core::primitive::u8, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<(_1, _0, _2)>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DKGTSSPhaseFourJobType { + pub phase_one_id: ::core::primitive::u64, + pub new_phase_one_id: ::core::primitive::u64, + pub role_type: runtime_types::tangle_primitives::roles::tss::ThresholdSignatureRoleType, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DKGTSSPhaseOneJobType<_0, _1> { + pub participants: runtime_types::bounded_collections::bounded_vec::BoundedVec< + _0, + >, + pub threshold: ::core::primitive::u8, + pub permitted_caller: ::core::option::Option<_0>, + pub role_type: runtime_types::tangle_primitives::roles::tss::ThresholdSignatureRoleType, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<_1>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DKGTSSPhaseThreeJobType { + pub phase_one_id: ::core::primitive::u64, + pub role_type: runtime_types::tangle_primitives::roles::tss::ThresholdSignatureRoleType, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DKGTSSPhaseTwoJobType<_0> { + pub phase_one_id: ::core::primitive::u64, + pub submission: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub role_type: runtime_types::tangle_primitives::roles::tss::ThresholdSignatureRoleType, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<_0>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct DKGTSSSignatureResult<_0, _1, _2> { + pub signature_scheme: + runtime_types::tangle_primitives::jobs::tss::DigitalSignatureScheme, + pub data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub signature: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub verifying_key: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<(_1, _2, _0)>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum DigitalSignatureScheme { + #[codec(index = 0)] + Ecdsa, + #[codec(index = 1)] + SchnorrP256, + #[codec(index = 2)] + SchnorrP384, + #[codec(index = 3)] + SchnorrSecp256k1, + #[codec(index = 4)] + SchnorrSr25519, + #[codec(index = 5)] + SchnorrRistretto255, + #[codec(index = 6)] + SchnorrRedJubJub, + #[codec(index = 7)] + SchnorrEd25519, + #[codec(index = 8)] + SchnorrEd448, + #[codec(index = 9)] + Bls381, + } + } + pub mod zksaas { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ArkworksProofResult<_0> { + pub proof: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<_0>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CircomProofResult<_0> { + pub proof: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<_0>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Groth16ProveRequest<_0> { + pub public_input: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub a_shares: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::tangle_primitives::jobs::zksaas::HyperData<_0>, + >, + pub ax_shares: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::tangle_primitives::jobs::zksaas::HyperData<_0>, + >, + pub qap_shares: runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::tangle_primitives::jobs::zksaas::QAPShare<_0>, + >, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Groth16System<_0> { + pub circuit: runtime_types::tangle_primitives::jobs::zksaas::HyperData<_0>, + pub num_inputs: ::core::primitive::u64, + pub num_constraints: ::core::primitive::u64, + pub proving_key: + runtime_types::tangle_primitives::jobs::zksaas::HyperData<_0>, + pub verifying_key: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + pub wasm: runtime_types::tangle_primitives::jobs::zksaas::HyperData<_0>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum HyperData<_0> { + #[codec(index = 0)] + Raw( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ), + #[codec(index = 1)] + IPFS( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ), + #[codec(index = 2)] + HTTP( + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, + ), + __Ignore(::core::marker::PhantomData<_0>), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QAPShare<_0> { + pub a: runtime_types::tangle_primitives::jobs::zksaas::HyperData<_0>, + pub b: runtime_types::tangle_primitives::jobs::zksaas::HyperData<_0>, + pub c: runtime_types::tangle_primitives::jobs::zksaas::HyperData<_0>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ZkSaaSCircuitResult<_0> { + pub job_id: ::core::primitive::u64, + pub participants: + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::sp_core::ecdsa::Public, + >, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<_0>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ZkSaaSPhaseOneJobType<_0, _1, _2> { + pub participants: + runtime_types::bounded_collections::bounded_vec::BoundedVec<_0>, + pub permitted_caller: ::core::option::Option<_0>, + pub system: + runtime_types::tangle_primitives::jobs::zksaas::ZkSaaSSystem<_2>, + pub role_type: + runtime_types::tangle_primitives::roles::zksaas::ZeroKnowledgeRoleType, + #[codec(skip)] + pub __subxt_unused_type_params: ::core::marker::PhantomData<_1>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ZkSaaSPhaseTwoJobType<_0> { + pub phase_one_id: ::core::primitive::u64, + pub request: + runtime_types::tangle_primitives::jobs::zksaas::ZkSaaSPhaseTwoRequest< + _0, + >, + pub role_type: + runtime_types::tangle_primitives::roles::zksaas::ZeroKnowledgeRoleType, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ZkSaaSPhaseTwoRequest<_0> { + #[codec(index = 0)] + Groth16( + runtime_types::tangle_primitives::jobs::zksaas::Groth16ProveRequest<_0>, + ), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ZkSaaSProofResult<_0> { + #[codec(index = 0)] + Arkworks( + runtime_types::tangle_primitives::jobs::zksaas::ArkworksProofResult<_0>, + ), + #[codec(index = 1)] + Circom( + runtime_types::tangle_primitives::jobs::zksaas::CircomProofResult<_0>, + ), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ZkSaaSSystem<_0> { + #[codec(index = 0)] + Groth16(runtime_types::tangle_primitives::jobs::zksaas::Groth16System<_0>), + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct JobInfo<_0, _1, _2, _3, _4> { + pub owner: _0, + pub expiry: _1, + pub ttl: _1, + pub job_type: runtime_types::tangle_primitives::jobs::JobType<_0, _3, _4>, + pub fee: _2, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum JobResult<_0, _1, _2, _3, _4> { + #[codec(index = 0)] + DKGPhaseOne( + runtime_types::tangle_primitives::jobs::tss::DKGTSSKeySubmissionResult< + _1, + _0, + _2, + >, + ), + #[codec(index = 1)] + DKGPhaseTwo( + runtime_types::tangle_primitives::jobs::tss::DKGTSSSignatureResult< + _3, + _1, + _2, + >, + ), + #[codec(index = 2)] + DKGPhaseThree( + runtime_types::tangle_primitives::jobs::tss::DKGTSSKeyRefreshResult, + ), + #[codec(index = 3)] + DKGPhaseFour( + runtime_types::tangle_primitives::jobs::tss::DKGTSSKeyRotationResult< + _1, + _2, + >, + ), + #[codec(index = 4)] + ZkSaaSPhaseOne( + runtime_types::tangle_primitives::jobs::zksaas::ZkSaaSCircuitResult<_0>, + ), + #[codec(index = 5)] + ZkSaaSPhaseTwo( + runtime_types::tangle_primitives::jobs::zksaas::ZkSaaSProofResult<_4>, + ), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct JobSubmission<_0, _1, _2, _3> { + pub expiry: _1, + pub ttl: _1, + pub job_type: runtime_types::tangle_primitives::jobs::JobType<_0, _2, _3>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum JobType<_0, _1, _2> { + #[codec(index = 0)] + DKGTSSPhaseOne( + runtime_types::tangle_primitives::jobs::tss::DKGTSSPhaseOneJobType<_0, _1>, + ), + #[codec(index = 1)] + DKGTSSPhaseTwo( + runtime_types::tangle_primitives::jobs::tss::DKGTSSPhaseTwoJobType<_2>, + ), + #[codec(index = 2)] + DKGTSSPhaseThree( + runtime_types::tangle_primitives::jobs::tss::DKGTSSPhaseThreeJobType, + ), + #[codec(index = 3)] + DKGTSSPhaseFour( + runtime_types::tangle_primitives::jobs::tss::DKGTSSPhaseFourJobType, + ), + #[codec(index = 4)] + ZkSaaSPhaseOne( + runtime_types::tangle_primitives::jobs::zksaas::ZkSaaSPhaseOneJobType< + _0, + _1, + _2, + >, + ), + #[codec(index = 5)] + ZkSaaSPhaseTwo( + runtime_types::tangle_primitives::jobs::zksaas::ZkSaaSPhaseTwoJobType<_2>, + ), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MaxDataLen; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MaxKeyLen; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MaxParticipants; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MaxProofLen; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MaxSignatureLen; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MaxSubmissionLen; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PhaseResult<_0, _1, _2, _3, _4, _5, _6, _7> { + pub owner: _0, + pub result: + runtime_types::tangle_primitives::jobs::JobResult<_2, _3, _5, _4, _7>, + pub ttl: _1, + pub permitted_caller: ::core::option::Option<_0>, + pub job_type: runtime_types::tangle_primitives::jobs::JobType<_0, _2, _6>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct RpcResponseJobsData<_0, _1, _2, _3> { + pub job_id: ::core::primitive::u64, + pub job_type: runtime_types::tangle_primitives::jobs::JobType<_0, _2, _3>, + pub expiry: _1, + pub ttl: _1, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ValidatorOffenceType { + #[codec(index = 0)] + Inactivity, + #[codec(index = 1)] + InvalidSignatureSubmitted, + #[codec(index = 2)] + RejectedValidAction, + #[codec(index = 3)] + ApprovedInvalidAction, + } + } + pub mod misbehavior { + use super::runtime_types; + pub mod dfns_cggmp21 { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum DfnsCGGMP21Justification { + #[codec(index = 0)] + Keygen { + participants: ::std::vec::Vec< + [::core::primitive::u8; 33usize], + >, + t: ::core::primitive::u16, + reason: runtime_types::tangle_primitives::misbehavior::dfns_cggmp21::KeygenAborted, + }, + #[codec(index = 1)] + KeyRefresh { + participants: ::std::vec::Vec< + [::core::primitive::u8; 33usize], + >, + t: ::core::primitive::u16, + reason: runtime_types::tangle_primitives::misbehavior::dfns_cggmp21::KeyRefreshAborted, + }, + #[codec(index = 2)] + Signing { + participants: ::std::vec::Vec< + [::core::primitive::u8; 33usize], + >, + t: ::core::primitive::u16, + reason: runtime_types::tangle_primitives::misbehavior::dfns_cggmp21::SigningAborted, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum InvalidProofReason { + #[codec(index = 0)] + EqualityCheck(::core::primitive::u8), + #[codec(index = 1)] + RangeCheck(::core::primitive::u8), + #[codec(index = 2)] + Encryption, + #[codec(index = 3)] + PaillierEnc, + #[codec(index = 4)] + PaillierOp, + #[codec(index = 5)] + ModPow, + #[codec(index = 6)] + ModulusIsPrime, + #[codec(index = 7)] + ModulusIsEven, + #[codec(index = 8)] + IncorrectNthRoot(::core::primitive::u8), + #[codec(index = 9)] + IncorrectFourthRoot(::core::primitive::u8), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum KeyRefreshAborted { + #[codec(index = 0)] + InvalidDecommitment { + round1: runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + round2: runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + }, + #[codec(index = 1)] + InvalidSchnorrProof, + #[codec(index = 2)] + InvalidModProof { + reason: runtime_types::tangle_primitives::misbehavior::dfns_cggmp21::InvalidProofReason, + round2: ::std::vec::Vec< + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + >, + round3: runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + }, + #[codec(index = 3)] + InvalidFacProof, + #[codec(index = 4)] + InvalidRingPedersenParameters { + round2: runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + }, + #[codec(index = 5)] + InvalidX, + #[codec(index = 6)] + InvalidXShare, + #[codec(index = 7)] + InvalidDataSize, + #[codec(index = 8)] + PaillierDec, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum KeygenAborted { + #[codec(index = 0)] + InvalidDecommitment { + round1: + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + round2a: + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + }, + #[codec(index = 1)] + InvalidSchnorrProof { + round2a: ::std::vec::Vec< + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + >, + round3: + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + }, + #[codec(index = 2)] + FeldmanVerificationFailed { + round2a: + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + round2b: + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + }, + #[codec(index = 3)] + InvalidDataSize { + round2a: + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum SigningAborted { + #[codec(index = 0)] + EncProofOfK, + #[codec(index = 1)] + InvalidPsi, + #[codec(index = 2)] + InvalidPsiPrimePrime, + #[codec(index = 3)] + MismatchedDelta, + } + } + pub mod zcash_frost { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum KeygenAborted { + #[codec(index = 0)] + InvalidProofOfKnowledge { + round1: + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + }, + #[codec(index = 1)] + InvalidSecretShare { + round1: + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + round2: + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum SigningAborted { + #[codec(index = 0)] + InvalidSignatureShare { + round1: ::std::vec::Vec< + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + >, + round2: ::std::vec::Vec< + runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, + >, + }, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ZCashFrostJustification { + #[codec(index = 0)] + Keygen { + participants: ::std::vec::Vec< + [::core::primitive::u8; 33usize], + >, + t: ::core::primitive::u16, + reason: runtime_types::tangle_primitives::misbehavior::zcash_frost::KeygenAborted, + }, + #[codec(index = 1)] + Signing { + participants: ::std::vec::Vec< + [::core::primitive::u8; 33usize], + >, + t: ::core::primitive::u16, + reason: runtime_types::tangle_primitives::misbehavior::zcash_frost::SigningAborted, + }, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum DKGTSSJustification { + #[codec(index = 0)] + DfnsCGGMP21( + runtime_types::tangle_primitives::misbehavior::dfns_cggmp21::DfnsCGGMP21Justification, + ), + #[codec(index = 1)] + ZCashFrost( + runtime_types::tangle_primitives::misbehavior::zcash_frost::ZCashFrostJustification, + ), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MisbehaviorJustification { + #[codec(index = 0)] + DKGTSS(runtime_types::tangle_primitives::misbehavior::DKGTSSJustification), + #[codec(index = 1)] + ZkSaaS(runtime_types::tangle_primitives::misbehavior::ZkSaaSJustification), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct MisbehaviorSubmission { + pub role_type: runtime_types::tangle_primitives::roles::RoleType, + pub offender: [::core::primitive::u8; 33usize], + pub job_id: ::core::primitive::u64, + pub justification: + runtime_types::tangle_primitives::misbehavior::MisbehaviorJustification, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SignedRoundMessage { + pub sender: ::core::primitive::u16, + pub message: ::std::vec::Vec<::core::primitive::u8>, + pub signature: ::std::vec::Vec<::core::primitive::u8>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ZkSaaSJustification {} + } + pub mod roles { + use super::runtime_types; + pub mod tss { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ThresholdSignatureRoleType { + #[codec(index = 0)] + ZengoGG20Secp256k1, + #[codec(index = 1)] + DfnsCGGMP21Secp256k1, + #[codec(index = 2)] + DfnsCGGMP21Secp256r1, + #[codec(index = 3)] + DfnsCGGMP21Stark, + #[codec(index = 4)] + ZcashFrostP256, + #[codec(index = 5)] + ZcashFrostP384, + #[codec(index = 6)] + ZcashFrostSecp256k1, + #[codec(index = 7)] + ZcashFrostRistretto255, + #[codec(index = 8)] + ZcashFrostEd25519, + #[codec(index = 9)] + ZcashFrostEd448, + #[codec(index = 10)] + GennaroDKGBls381, + } + } + pub mod zksaas { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ZeroKnowledgeRoleType { + #[codec(index = 0)] + ZkSaaSGroth16, + #[codec(index = 1)] + ZkSaaSMarlin, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RoleType { + #[codec(index = 0)] + Tss(runtime_types::tangle_primitives::roles::tss::ThresholdSignatureRoleType), + #[codec(index = 1)] + ZkSaaS(runtime_types::tangle_primitives::roles::zksaas::ZeroKnowledgeRoleType), + #[codec(index = 2)] + LightClientRelaying, + } + } + } + pub mod tangle_testnet_runtime { + use super::runtime_types; + pub mod opaque { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SessionKeys { + pub babe: runtime_types::sp_consensus_babe::app::Public, + pub grandpa: runtime_types::sp_consensus_grandpa::app::Public, + pub im_online: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, + pub role: runtime_types::tangle_crypto_primitives::crypto::Public, + } + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NposSolution16 { + pub votes1: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes2: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + ( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ), + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes3: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 2usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes4: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 3usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes5: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 4usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes6: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 5usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes7: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 6usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes8: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 7usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes9: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 8usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes10: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 9usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes11: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 10usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes12: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 11usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes13: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 12usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes14: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 13usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes15: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 14usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + pub votes16: ::std::vec::Vec<( + ::subxt::ext::codec::Compact<::core::primitive::u32>, + [( + ::subxt::ext::codec::Compact<::core::primitive::u16>, + ::subxt::ext::codec::Compact< + runtime_types::sp_arithmetic::per_things::PerU16, + >, + ); 15usize], + ::subxt::ext::codec::Compact<::core::primitive::u16>, + )>, + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum OriginCaller { + #[codec(index = 0)] + system( + runtime_types::frame_support::dispatch::RawOrigin<::subxt::utils::AccountId32>, + ), + #[codec(index = 11)] + Council(runtime_types::pallet_collective::RawOrigin<::subxt::utils::AccountId32>), + #[codec(index = 31)] + Ethereum(runtime_types::pallet_ethereum::RawOrigin), + #[codec(index = 3)] + Void(runtime_types::sp_core::Void), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Runtime; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeCall { + #[codec(index = 0)] + System(runtime_types::frame_system::pallet::Call), + #[codec(index = 1)] + Timestamp(runtime_types::pallet_timestamp::pallet::Call), + #[codec(index = 2)] + Sudo(runtime_types::pallet_sudo::pallet::Call), + #[codec(index = 4)] + Balances(runtime_types::pallet_balances::pallet::Call), + #[codec(index = 7)] + Babe(runtime_types::pallet_babe::pallet::Call), + #[codec(index = 8)] + Grandpa(runtime_types::pallet_grandpa::pallet::Call), + #[codec(index = 9)] + Indices(runtime_types::pallet_indices::pallet::Call), + #[codec(index = 10)] + Democracy(runtime_types::pallet_democracy::pallet::Call), + #[codec(index = 11)] + Council(runtime_types::pallet_collective::pallet::Call), + #[codec(index = 12)] + Vesting(runtime_types::pallet_vesting::pallet::Call), + #[codec(index = 13)] + Elections(runtime_types::pallet_elections_phragmen::pallet::Call), + #[codec(index = 14)] + ElectionProviderMultiPhase( + runtime_types::pallet_election_provider_multi_phase::pallet::Call, + ), + #[codec(index = 15)] + Staking(runtime_types::pallet_staking::pallet::pallet::Call), + #[codec(index = 16)] + Session(runtime_types::pallet_session::pallet::Call), + #[codec(index = 18)] + Treasury(runtime_types::pallet_treasury::pallet::Call), + #[codec(index = 19)] + Bounties(runtime_types::pallet_bounties::pallet::Call), + #[codec(index = 20)] + ChildBounties(runtime_types::pallet_child_bounties::pallet::Call), + #[codec(index = 21)] + BagsList(runtime_types::pallet_bags_list::pallet::Call), + #[codec(index = 22)] + NominationPools(runtime_types::pallet_nomination_pools::pallet::Call), + #[codec(index = 23)] + Scheduler(runtime_types::pallet_scheduler::pallet::Call), + #[codec(index = 24)] + Preimage(runtime_types::pallet_preimage::pallet::Call), + #[codec(index = 26)] + TransactionPause(runtime_types::pallet_transaction_pause::module::Call), + #[codec(index = 27)] + ImOnline(runtime_types::pallet_im_online::pallet::Call), + #[codec(index = 28)] + Identity(runtime_types::pallet_identity::pallet::Call), + #[codec(index = 29)] + Utility(runtime_types::pallet_utility::pallet::Call), + #[codec(index = 30)] + Multisig(runtime_types::pallet_multisig::pallet::Call), + #[codec(index = 31)] + Ethereum(runtime_types::pallet_ethereum::pallet::Call), + #[codec(index = 32)] + EVM(runtime_types::pallet_evm::pallet::Call), + #[codec(index = 34)] + DynamicFee(runtime_types::pallet_dynamic_fee::pallet::Call), + #[codec(index = 35)] + BaseFee(runtime_types::pallet_base_fee::pallet::Call), + #[codec(index = 36)] + HotfixSufficients(runtime_types::pallet_hotfix_sufficients::pallet::Call), + #[codec(index = 37)] + Claims(runtime_types::pallet_airdrop_claims::pallet::Call), + #[codec(index = 38)] + Eth2Client(runtime_types::pallet_eth2_light_client::pallet::Call), + #[codec(index = 39)] + Roles(runtime_types::pallet_roles::pallet::Call), + #[codec(index = 40)] + Jobs(runtime_types::pallet_jobs::module::Call), + #[codec(index = 41)] + Dkg(runtime_types::pallet_dkg::pallet::Call), + #[codec(index = 42)] + ZkSaaS(runtime_types::pallet_zksaas::pallet::Call), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeError { + #[codec(index = 0)] + System(runtime_types::frame_system::pallet::Error), + #[codec(index = 2)] + Sudo(runtime_types::pallet_sudo::pallet::Error), + #[codec(index = 4)] + Balances(runtime_types::pallet_balances::pallet::Error), + #[codec(index = 7)] + Babe(runtime_types::pallet_babe::pallet::Error), + #[codec(index = 8)] + Grandpa(runtime_types::pallet_grandpa::pallet::Error), + #[codec(index = 9)] + Indices(runtime_types::pallet_indices::pallet::Error), + #[codec(index = 10)] + Democracy(runtime_types::pallet_democracy::pallet::Error), + #[codec(index = 11)] + Council(runtime_types::pallet_collective::pallet::Error), + #[codec(index = 12)] + Vesting(runtime_types::pallet_vesting::pallet::Error), + #[codec(index = 13)] + Elections(runtime_types::pallet_elections_phragmen::pallet::Error), + #[codec(index = 14)] + ElectionProviderMultiPhase( + runtime_types::pallet_election_provider_multi_phase::pallet::Error, + ), + #[codec(index = 15)] + Staking(runtime_types::pallet_staking::pallet::pallet::Error), + #[codec(index = 16)] + Session(runtime_types::pallet_session::pallet::Error), + #[codec(index = 18)] + Treasury(runtime_types::pallet_treasury::pallet::Error), + #[codec(index = 19)] + Bounties(runtime_types::pallet_bounties::pallet::Error), + #[codec(index = 20)] + ChildBounties(runtime_types::pallet_child_bounties::pallet::Error), + #[codec(index = 21)] + BagsList(runtime_types::pallet_bags_list::pallet::Error), + #[codec(index = 22)] + NominationPools(runtime_types::pallet_nomination_pools::pallet::Error), + #[codec(index = 23)] + Scheduler(runtime_types::pallet_scheduler::pallet::Error), + #[codec(index = 24)] + Preimage(runtime_types::pallet_preimage::pallet::Error), + #[codec(index = 26)] + TransactionPause(runtime_types::pallet_transaction_pause::module::Error), + #[codec(index = 27)] + ImOnline(runtime_types::pallet_im_online::pallet::Error), + #[codec(index = 28)] + Identity(runtime_types::pallet_identity::pallet::Error), + #[codec(index = 29)] + Utility(runtime_types::pallet_utility::pallet::Error), + #[codec(index = 30)] + Multisig(runtime_types::pallet_multisig::pallet::Error), + #[codec(index = 31)] + Ethereum(runtime_types::pallet_ethereum::pallet::Error), + #[codec(index = 32)] + EVM(runtime_types::pallet_evm::pallet::Error), + #[codec(index = 36)] + HotfixSufficients(runtime_types::pallet_hotfix_sufficients::pallet::Error), + #[codec(index = 37)] + Claims(runtime_types::pallet_airdrop_claims::pallet::Error), + #[codec(index = 38)] + Eth2Client(runtime_types::pallet_eth2_light_client::pallet::Error), + #[codec(index = 39)] + Roles(runtime_types::pallet_roles::pallet::Error), + #[codec(index = 40)] + Jobs(runtime_types::pallet_jobs::module::Error), + #[codec(index = 41)] + Dkg(runtime_types::pallet_dkg::pallet::Error), + #[codec(index = 42)] + ZkSaaS(runtime_types::pallet_zksaas::pallet::Error), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeEvent { + #[codec(index = 0)] + System(runtime_types::frame_system::pallet::Event), + #[codec(index = 2)] + Sudo(runtime_types::pallet_sudo::pallet::Event), + #[codec(index = 4)] + Balances(runtime_types::pallet_balances::pallet::Event), + #[codec(index = 5)] + TransactionPayment(runtime_types::pallet_transaction_payment::pallet::Event), + #[codec(index = 8)] + Grandpa(runtime_types::pallet_grandpa::pallet::Event), + #[codec(index = 9)] + Indices(runtime_types::pallet_indices::pallet::Event), + #[codec(index = 10)] + Democracy(runtime_types::pallet_democracy::pallet::Event), + #[codec(index = 11)] + Council(runtime_types::pallet_collective::pallet::Event), + #[codec(index = 12)] + Vesting(runtime_types::pallet_vesting::pallet::Event), + #[codec(index = 13)] + Elections(runtime_types::pallet_elections_phragmen::pallet::Event), + #[codec(index = 14)] + ElectionProviderMultiPhase( + runtime_types::pallet_election_provider_multi_phase::pallet::Event, + ), + #[codec(index = 15)] + Staking(runtime_types::pallet_staking::pallet::pallet::Event), + #[codec(index = 16)] + Session(runtime_types::pallet_session::pallet::Event), + #[codec(index = 18)] + Treasury(runtime_types::pallet_treasury::pallet::Event), + #[codec(index = 19)] + Bounties(runtime_types::pallet_bounties::pallet::Event), + #[codec(index = 20)] + ChildBounties(runtime_types::pallet_child_bounties::pallet::Event), + #[codec(index = 21)] + BagsList(runtime_types::pallet_bags_list::pallet::Event), + #[codec(index = 22)] + NominationPools(runtime_types::pallet_nomination_pools::pallet::Event), + #[codec(index = 23)] + Scheduler(runtime_types::pallet_scheduler::pallet::Event), + #[codec(index = 24)] + Preimage(runtime_types::pallet_preimage::pallet::Event), + #[codec(index = 25)] + Offences(runtime_types::pallet_offences::pallet::Event), + #[codec(index = 26)] + TransactionPause(runtime_types::pallet_transaction_pause::module::Event), + #[codec(index = 27)] + ImOnline(runtime_types::pallet_im_online::pallet::Event), + #[codec(index = 28)] + Identity(runtime_types::pallet_identity::pallet::Event), + #[codec(index = 29)] + Utility(runtime_types::pallet_utility::pallet::Event), + #[codec(index = 30)] + Multisig(runtime_types::pallet_multisig::pallet::Event), + #[codec(index = 31)] + Ethereum(runtime_types::pallet_ethereum::pallet::Event), + #[codec(index = 32)] + EVM(runtime_types::pallet_evm::pallet::Event), + #[codec(index = 35)] + BaseFee(runtime_types::pallet_base_fee::pallet::Event), + #[codec(index = 37)] + Claims(runtime_types::pallet_airdrop_claims::pallet::Event), + #[codec(index = 38)] + Eth2Client(runtime_types::pallet_eth2_light_client::pallet::Event), + #[codec(index = 39)] + Roles(runtime_types::pallet_roles::pallet::Event), + #[codec(index = 40)] + Jobs(runtime_types::pallet_jobs::module::Event), + #[codec(index = 41)] + Dkg(runtime_types::pallet_dkg::pallet::Event), + #[codec(index = 42)] + ZkSaaS(runtime_types::pallet_zksaas::pallet::Event), + } + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeHoldReason {} + } + pub mod webb_consensus_types { + use super::runtime_types; + pub mod network_config { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct NetworkConfig { + pub genesis_validators_root: [::core::primitive::u8; 32usize], + pub bellatrix_fork_version: [::core::primitive::u8; 4usize], + pub bellatrix_fork_epoch: ::core::primitive::u64, + pub capella_fork_version: [::core::primitive::u8; 4usize], + pub capella_fork_epoch: ::core::primitive::u64, + } + } + } + pub mod webb_proposals { + use super::runtime_types; + pub mod header { + use super::runtime_types; + #[derive( + ::subxt::ext::codec::Decode, + ::subxt::ext::codec::Encode, + ::subxt::ext::scale_decode::DecodeAsType, + ::subxt::ext::scale_encode::EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + #[codec(crate = ::subxt::ext::codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum TypedChainId { + #[codec(index = 0)] + None, + #[codec(index = 1)] + Evm(::core::primitive::u32), + #[codec(index = 2)] + Substrate(::core::primitive::u32), + #[codec(index = 3)] + PolkadotParachain(::core::primitive::u32), + #[codec(index = 4)] + KusamaParachain(::core::primitive::u32), + #[codec(index = 5)] + RococoParachain(::core::primitive::u32), + #[codec(index = 6)] + Cosmos(::core::primitive::u32), + #[codec(index = 7)] + Solana(::core::primitive::u32), + #[codec(index = 8)] + Ink(::core::primitive::u32), + } + } + } + } +} From 2897b5cf5d21489e150f061028252cc323128832 Mon Sep 17 00:00:00 2001 From: salman01zp Date: Fri, 1 Mar 2024 14:33:31 +0530 Subject: [PATCH 2/4] clippy fix --- tangle-subxt/build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tangle-subxt/build.rs b/tangle-subxt/build.rs index 093e17751..cc8971d31 100644 --- a/tangle-subxt/build.rs +++ b/tangle-subxt/build.rs @@ -24,8 +24,7 @@ mod substrate { subxt_codegen::DerivesRegistry::with_default_derives(&crate_path); generated_type_derives.extend_for_all( - [syn::parse_quote!(Eq), syn::parse_quote!(PartialEq), syn::parse_quote!(Clone)] - .into_iter(), + [syn::parse_quote!(Eq), syn::parse_quote!(PartialEq), syn::parse_quote!(Clone)], [], ); From 994f80f1891eb12215c1206d49977c6cf9f686ca Mon Sep 17 00:00:00 2001 From: salman01zp Date: Fri, 1 Mar 2024 15:27:25 +0530 Subject: [PATCH 3/4] export subxt and scale code package --- tangle-subxt/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tangle-subxt/src/lib.rs b/tangle-subxt/src/lib.rs index 597a62d9a..38464183c 100644 --- a/tangle-subxt/src/lib.rs +++ b/tangle-subxt/src/lib.rs @@ -7,5 +7,8 @@ unsafe_code, clippy::exhaustive_enums )] - +#![allow(clippy::all, clippy::exhaustive_enums)] pub mod tangle_runtime; +pub use parity_scale_codec; +pub use scale_info; +pub use subxt; From 1f9f38f167e5dfe500e0e286d8dcb65aa6b9857f Mon Sep 17 00:00:00 2001 From: salman01zp Date: Fri, 1 Mar 2024 17:31:53 +0530 Subject: [PATCH 4/4] remove build script --- Cargo.lock | 360 - tangle-subxt/Cargo.toml | 13 - tangle-subxt/README.md | 5 +- tangle-subxt/build.rs | 56 - tangle-subxt/src/tangle_runtime.rs | 17971 +++++++++++---------------- 5 files changed, 7281 insertions(+), 11124 deletions(-) delete mode 100644 tangle-subxt/build.rs diff --git a/Cargo.lock b/Cargo.lock index ebada939b..bda80f334 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12920,15 +12920,6 @@ dependencies = [ "secp256k1-sys 0.6.1", ] -[[package]] -name = "secp256k1" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25996b82292a7a57ed3508f052cfff8640d38d32018784acd714758b43da9c8f" -dependencies = [ - "secp256k1-sys 0.8.1", -] - [[package]] name = "secp256k1-sys" version = "0.4.2" @@ -12947,15 +12938,6 @@ dependencies = [ "cc", ] -[[package]] -name = "secp256k1-sys" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70a129b9e9efbfb223753b9163c4ab3b13cff7fd9c7f010fbac25ab4099fa07e" -dependencies = [ - "cc", -] - [[package]] name = "secrecy" version = "0.8.0" @@ -13669,20 +13651,6 @@ dependencies = [ "sp-std 8.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0)", ] -[[package]] -name = "sp-application-crypto" -version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fa730e4f3a2aec3f4ee777410599a86eb17067ee5410c58ab496e88d7bb840c" -dependencies = [ - "parity-scale-codec 3.6.9", - "scale-info", - "serde", - "sp-core 23.0.0", - "sp-io 25.0.0", - "sp-std 10.0.0", -] - [[package]] name = "sp-arithmetic" version = "16.0.0" @@ -13712,21 +13680,6 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "sp-arithmetic" -version = "18.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d3d3ff6d6d717d7563659e9e47e958d33ebd2d0b3d8b1a9961cf9832944375e" -dependencies = [ - "integer-sqrt", - "num-traits", - "parity-scale-codec 3.6.9", - "scale-info", - "serde", - "sp-std 10.0.0", - "static_assertions", -] - [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" @@ -13942,53 +13895,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "sp-core" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "412e2ec53b1bc63778e2d70c347224e6cd2e25c4bacb509585db85f0788747b7" -dependencies = [ - "array-bytes 6.2.2", - "arrayvec 0.7.4", - "bitflags 1.3.2", - "blake2", - "bounded-collections", - "bs58 0.5.0", - "dyn-clonable", - "ed25519-zebra", - "futures 0.3.30", - "hash-db 0.16.0", - "hash256-std-hasher", - "impl-serde", - "lazy_static", - "libsecp256k1", - "log", - "merlin 2.0.1", - "parity-scale-codec 3.6.9", - "parking_lot 0.12.1", - "paste", - "primitive-types 0.12.2", - "rand 0.8.5", - "regex", - "scale-info", - "schnorrkel 0.9.1", - "secp256k1 0.24.3", - "secrecy", - "serde", - "sp-core-hashing 11.0.0", - "sp-debug-derive 10.0.0", - "sp-externalities 0.21.0", - "sp-runtime-interface 19.0.0", - "sp-std 10.0.0", - "sp-storage 15.0.0", - "ss58-registry", - "substrate-bip39", - "thiserror", - "tiny-bip39", - "tracing", - "zeroize", -] - [[package]] name = "sp-core-hashing" version = "9.0.0" @@ -14017,20 +13923,6 @@ dependencies = [ "twox-hash", ] -[[package]] -name = "sp-core-hashing" -version = "11.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "558116d02341b6f28b033c19a2a5fa555afa3c52628639170087e7685d51e743" -dependencies = [ - "blake2b_simd", - "byteorder", - "digest 0.10.7", - "sha2 0.10.8", - "sha3 0.10.8", - "twox-hash", -] - [[package]] name = "sp-core-hashing-proc-macro" version = "9.0.0" @@ -14071,17 +13963,6 @@ dependencies = [ "syn 2.0.51", ] -[[package]] -name = "sp-debug-derive" -version = "10.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4b235a0ad7124d58e6f0a728c8354da5b185b77bcf18b131b3a480cdaa23d95" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.51", -] - [[package]] name = "sp-externalities" version = "0.19.0" @@ -14105,18 +13986,6 @@ dependencies = [ "sp-storage 13.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0)", ] -[[package]] -name = "sp-externalities" -version = "0.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "588cf40c36de918f545d712ad1a70631ae71653e4a321506dfcd8fa6fd26453c" -dependencies = [ - "environmental", - "parity-scale-codec 3.6.9", - "sp-std 10.0.0", - "sp-storage 15.0.0", -] - [[package]] name = "sp-genesis-builder" version = "0.1.0" @@ -14193,31 +14062,6 @@ dependencies = [ "tracing-core", ] -[[package]] -name = "sp-io" -version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9926dba7d67d87e40f49e18ff6cfc01373d5be13e3d373f02182bb5ec8ab37b" -dependencies = [ - "bytes", - "ed25519-dalek 2.1.1", - "libsecp256k1", - "log", - "parity-scale-codec 3.6.9", - "rustversion", - "secp256k1 0.24.3", - "sp-core 23.0.0", - "sp-externalities 0.21.0", - "sp-keystore 0.29.0", - "sp-runtime-interface 19.0.0", - "sp-state-machine 0.30.0", - "sp-std 10.0.0", - "sp-tracing 12.0.0", - "sp-trie 24.0.0", - "tracing", - "tracing-core", -] - [[package]] name = "sp-keyring" version = "24.0.0" @@ -14241,18 +14085,6 @@ dependencies = [ "strum 0.24.1", ] -[[package]] -name = "sp-keyring" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dfcca2fad349d5fd197a56b4deef229b872c9172a8267d77c81a9f45a38f18a" -dependencies = [ - "lazy_static", - "sp-core 23.0.0", - "sp-runtime 26.0.0", - "strum 0.24.1", -] - [[package]] name = "sp-keystore" version = "0.27.0" @@ -14279,19 +14111,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "sp-keystore" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44f0f9546dd151881c60e75355806f1cbbc893f64aa465fc5bf87a47de59467b" -dependencies = [ - "parity-scale-codec 3.6.9", - "parking_lot 0.12.1", - "sp-core 23.0.0", - "sp-externalities 0.21.0", - "thiserror", -] - [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" @@ -14375,17 +14194,6 @@ dependencies = [ "regex", ] -[[package]] -name = "sp-panic-handler" -version = "10.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "261572cc0db4b41cf7587b4f7bdc15b8f83f748f17ae1c3c2f56a3e8e62ee913" -dependencies = [ - "backtrace", - "lazy_static", - "regex", -] - [[package]] name = "sp-rpc" version = "6.0.0" @@ -14441,29 +14249,6 @@ dependencies = [ "sp-weights 20.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0)", ] -[[package]] -name = "sp-runtime" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f645e9e2c82d052ea48ed987a8789daca1c03f9b5ed1aa49cd080092eda85330" -dependencies = [ - "either", - "hash256-std-hasher", - "impl-trait-for-tuples", - "log", - "parity-scale-codec 3.6.9", - "paste", - "rand 0.8.5", - "scale-info", - "serde", - "sp-application-crypto 25.0.0", - "sp-arithmetic 18.0.0", - "sp-core 23.0.0", - "sp-io 25.0.0", - "sp-std 10.0.0", - "sp-weights 22.0.0", -] - [[package]] name = "sp-runtime-interface" version = "17.0.0" @@ -14501,25 +14286,6 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "sp-runtime-interface" -version = "19.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ef767d6e400ee54a420bcbc570030741420c2d938a6e379d21cab9875a339c5" -dependencies = [ - "bytes", - "impl-trait-for-tuples", - "parity-scale-codec 3.6.9", - "primitive-types 0.12.2", - "sp-externalities 0.21.0", - "sp-runtime-interface-proc-macro 13.0.0", - "sp-std 10.0.0", - "sp-storage 15.0.0", - "sp-tracing 12.0.0", - "sp-wasm-interface 16.0.0", - "static_assertions", -] - [[package]] name = "sp-runtime-interface-proc-macro" version = "11.0.0" @@ -14545,19 +14311,6 @@ dependencies = [ "syn 2.0.51", ] -[[package]] -name = "sp-runtime-interface-proc-macro" -version = "13.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdd795a4a2205b64d95da897f85b7c83a0044f30df22b0ea282f8387dc6ca428" -dependencies = [ - "Inflector", - "proc-macro-crate 1.1.3", - "proc-macro2", - "quote", - "syn 2.0.51", -] - [[package]] name = "sp-session" version = "4.0.0-dev" @@ -14629,28 +14382,6 @@ dependencies = [ "trie-db", ] -[[package]] -name = "sp-state-machine" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "771dce7d78335718ab8475984b6dbc1f374777049ed1c308186679e611333be2" -dependencies = [ - "hash-db 0.16.0", - "log", - "parity-scale-codec 3.6.9", - "parking_lot 0.12.1", - "rand 0.8.5", - "smallvec", - "sp-core 23.0.0", - "sp-externalities 0.21.0", - "sp-panic-handler 10.0.0", - "sp-std 10.0.0", - "sp-trie 24.0.0", - "thiserror", - "tracing", - "trie-db", -] - [[package]] name = "sp-statement-store" version = "4.0.0-dev" @@ -14686,12 +14417,6 @@ name = "sp-std" version = "8.0.0" source = "git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0#c8d2251cafadc108ba2f1f8a3208dc547ff38901" -[[package]] -name = "sp-std" -version = "10.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ed09ef1760e8be9b64b7f739f1cf9a94528130be475d8e4f2d1be1e690c9f9c" - [[package]] name = "sp-storage" version = "13.0.0" @@ -14719,20 +14444,6 @@ dependencies = [ "sp-std 8.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0)", ] -[[package]] -name = "sp-storage" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c20f503280c004d94033a32cb84274ede30ef0b4b634770b1e7d595f8245bda4" -dependencies = [ - "impl-serde", - "parity-scale-codec 3.6.9", - "ref-cast", - "serde", - "sp-debug-derive 10.0.0", - "sp-std 10.0.0", -] - [[package]] name = "sp-timestamp" version = "4.0.0-dev" @@ -14771,19 +14482,6 @@ dependencies = [ "tracing-subscriber 0.2.25", ] -[[package]] -name = "sp-tracing" -version = "12.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebabec43485ebdb2fdb5c6f9b388590d4797a3888024d74724ada2f16b2113b8" -dependencies = [ - "parity-scale-codec 3.6.9", - "sp-std 10.0.0", - "tracing", - "tracing-core", - "tracing-subscriber 0.2.25", -] - [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" @@ -14855,30 +14553,6 @@ dependencies = [ "trie-root", ] -[[package]] -name = "sp-trie" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e78585a84d02d1c71e8eb8c00ed586c22a46ad4e773d9ff65c8ed3b8e98b9f51" -dependencies = [ - "ahash 0.8.10", - "hash-db 0.16.0", - "hashbrown 0.13.2", - "lazy_static", - "memory-db", - "nohash-hasher", - "parity-scale-codec 3.6.9", - "parking_lot 0.12.1", - "scale-info", - "schnellru", - "sp-core 23.0.0", - "sp-std 10.0.0", - "thiserror", - "tracing", - "trie-db", - "trie-root", -] - [[package]] name = "sp-version" version = "22.0.0" @@ -14934,20 +14608,6 @@ dependencies = [ "wasmtime", ] -[[package]] -name = "sp-wasm-interface" -version = "16.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee009ac79098027f5990984e0c5ee2fd4883b16bbd6ab97931f28c2148aaa3ea" -dependencies = [ - "anyhow", - "impl-trait-for-tuples", - "log", - "parity-scale-codec 3.6.9", - "sp-std 10.0.0", - "wasmtime", -] - [[package]] name = "sp-weights" version = "20.0.0" @@ -14979,22 +14639,6 @@ dependencies = [ "sp-std 8.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.1.0)", ] -[[package]] -name = "sp-weights" -version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86566cae93412e40bea0db9e6b110a7379105412a9aed1af73b5d2fb69cb7000" -dependencies = [ - "parity-scale-codec 3.6.9", - "scale-info", - "serde", - "smallvec", - "sp-arithmetic 18.0.0", - "sp-core 23.0.0", - "sp-debug-derive 10.0.0", - "sp-std 10.0.0", -] - [[package]] name = "spin" version = "0.5.2" @@ -15704,7 +15348,6 @@ dependencies = [ "pbkdf2 0.12.2", "regex", "schnorrkel 0.10.2", - "secp256k1 0.27.0", "secrecy", "sha2 0.10.8", "sp-core-hashing 9.0.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -16107,14 +15750,11 @@ name = "tangle-subxt" version = "0.6.1" dependencies = [ "parity-scale-codec 3.6.9", - "prettyplease 0.2.16", "scale-info", "serde_json", - "sp-keyring 26.0.0", "subxt 0.31.0", "subxt-codegen 0.31.0", "subxt-metadata 0.31.0", - "subxt-signer", "syn 2.0.51", ] diff --git a/tangle-subxt/Cargo.toml b/tangle-subxt/Cargo.toml index 3aba41be0..f11c37a60 100644 --- a/tangle-subxt/Cargo.toml +++ b/tangle-subxt/Cargo.toml @@ -17,19 +17,6 @@ serde_json = "1" syn = { version = "2", features = ["full", "parsing"], optional = true } -[dev-dependencies] -sp-keyring = "26.0.0" -subxt-signer = { version = "0.31.0", features = ["subxt"] } - -[build-dependencies] -prettyplease = "0.2" -parity-scale-codec = { workspace = true, optional = true } -syn = { version = "2", features = ["full", "parsing"], optional = true } -serde_json = "1" -subxt = { version = "0.31.0", optional = true } -subxt-metadata = { version = "0.31.0", optional = true } -subxt-codegen = { version = "0.31.0", optional = true } - [features] default = [ "subxt", diff --git a/tangle-subxt/README.md b/tangle-subxt/README.md index c96471843..370b737cd 100644 --- a/tangle-subxt/README.md +++ b/tangle-subxt/README.md @@ -23,12 +23,11 @@ Run the release build of the `tangle` node, then on another terminal run: subxt metadata -f bytes > ./metadata/tangle-runtime.scale ``` -3. Generating the rust code from the metadata: +3. Generating the subxt code from the metadata: ```bash -cargo build +subxt codegen --file metadata/tangle-runtime.scale > src/tangle_runtime.rs ``` -> Tip: See the [build.rs](./build.rs) file to see how everything is being generated. diff --git a/tangle-subxt/build.rs b/tangle-subxt/build.rs deleted file mode 100644 index cc8971d31..000000000 --- a/tangle-subxt/build.rs +++ /dev/null @@ -1,56 +0,0 @@ -use std::error::Error; -use subxt_codegen::TypeSubstitutes; - -mod substrate { - use super::*; - use parity_scale_codec::Decode; - use subxt_codegen::CratePath; - - fn parse_and_generate_runtime(path: &str, out: &str) -> Result<(), Box> { - println!("cargo:rerun-if-changed=./{}", path); - let bytes = std::fs::read(path)?; - - let metadata = ::decode(&mut &bytes[..])?; - let crate_path = CratePath::default(); - // Module under which the API is generated. - let item_mod = syn::parse_quote!( - pub mod api {} - ); - // Default type substitutes. - let substs = TypeSubstitutes::with_default_substitutes(&crate_path); - // Generate the Runtime API. - let generator = subxt_codegen::RuntimeGenerator::new(metadata); - let mut generated_type_derives = - subxt_codegen::DerivesRegistry::with_default_derives(&crate_path); - - generated_type_derives.extend_for_all( - [syn::parse_quote!(Eq), syn::parse_quote!(PartialEq), syn::parse_quote!(Clone)], - [], - ); - - // Include metadata documentation in the Runtime API. - let generate_docs = true; - let runtime_api = generator.generate_runtime( - item_mod, - generated_type_derives, - substs, - crate_path, - generate_docs, - )?; - let syntax_tree = syn::parse_file(&runtime_api.to_string()).unwrap(); - let formatted = prettyplease::unparse(&syntax_tree); - std::fs::write(out, formatted)?; - Ok(()) - } - - pub fn generate_tangle_runtime() -> Result<(), Box> { - parse_and_generate_runtime("metadata/tangle-runtime.scale", "src/tangle_runtime.rs") - } -} - -fn main() -> Result<(), Box> { - { - substrate::generate_tangle_runtime()?; - } - Ok(()) -} diff --git a/tangle-subxt/src/tangle_runtime.rs b/tangle-subxt/src/tangle_runtime.rs index 89e74efd0..428966580 100644 --- a/tangle-subxt/src/tangle_runtime.rs +++ b/tangle-subxt/src/tangle_runtime.rs @@ -68,13 +68,13 @@ pub mod api { "DebugRuntimeApi", "TxPoolRuntimeApi", ]; - /// The error type returned when there is a runtime issue. + #[doc = r" The error type returned when there is a runtime issue."] pub type DispatchError = runtime_types::sp_runtime::DispatchError; - /// The outer event enum. + #[doc = r" The outer event enum."] pub type Event = runtime_types::tangle_testnet_runtime::RuntimeEvent; - /// The outer extrinsic enum. + #[doc = r" The outer extrinsic enum."] pub type Call = runtime_types::tangle_testnet_runtime::RuntimeCall; - /// The outer error enum representing the DispatchError's Module variant. + #[doc = r" The outer error enum representing the DispatchError's Module variant."] pub type Error = runtime_types::tangle_testnet_runtime::RuntimeError; pub fn constants() -> ConstantsApi { ConstantsApi @@ -149,10 +149,10 @@ pub mod api { } pub mod core { use super::{root_mod, runtime_types}; - /// The `Core` runtime api that every Substrate runtime needs to implement. + #[doc = " The `Core` runtime api that every Substrate runtime needs to implement."] pub struct Core; impl Core { - /// Returns the version of the runtime. + #[doc = " Returns the version of the runtime."] pub fn version( &self, ) -> ::subxt::runtime_api::Payload< @@ -171,32 +171,10 @@ pub mod api { ], ) } - /// Execute the given block. + #[doc = " Execute the given block."] pub fn execute_block( &self, - block: runtime_types::sp_runtime::generic::block::Block< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - >, - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, + block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 > , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >, ) -> ::subxt::runtime_api::Payload { ::subxt::runtime_api::Payload::new_static( "Core", @@ -210,7 +188,7 @@ pub mod api { ], ) } - /// Initialize a block with the given header. + #[doc = " Initialize a block with the given header."] pub fn initialize_block( &self, header: runtime_types::sp_runtime::generic::header::Header< @@ -232,68 +210,35 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Version {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExecuteBlock { - pub block: runtime_types::sp_runtime::generic::block::Block< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - >, - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, - } - #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExecuteBlock { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 > , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InitializeBlock { @@ -304,10 +249,10 @@ pub mod api { } pub mod metadata { use super::{root_mod, runtime_types}; - /// The `Metadata` api trait that returns metadata for the runtime. + #[doc = " The `Metadata` api trait that returns metadata for the runtime."] pub struct Metadata; impl Metadata { - /// Returns the metadata of a runtime. + #[doc = " Returns the metadata of a runtime."] pub fn metadata( &self, ) -> ::subxt::runtime_api::Payload< @@ -325,11 +270,10 @@ pub mod api { ], ) } - /// Returns the metadata at a given version. - /// - /// If the given `version` isn't supported, this will return `None`. - /// Use [`Self::metadata_versions`] to find out about supported metadata version of - /// the runtime. + #[doc = " Returns the metadata at a given version."] + #[doc = ""] + #[doc = " If the given `version` isn't supported, this will return `None`."] + #[doc = " Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime."] pub fn metadata_at_version( &self, version: ::core::primitive::u32, @@ -349,9 +293,9 @@ pub mod api { ], ) } - /// Returns the supported metadata versions. - /// - /// This can be used to call `metadata_at_version`. + #[doc = " Returns the supported metadata versions."] + #[doc = ""] + #[doc = " This can be used to call `metadata_at_version`."] pub fn metadata_versions( &self, ) -> ::subxt::runtime_api::Payload< @@ -374,46 +318,37 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Metadata {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MetadataAtVersion { pub version: ::core::primitive::u32, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MetadataVersions {} @@ -421,34 +356,16 @@ pub mod api { } pub mod block_builder { use super::{root_mod, runtime_types}; - /// The `BlockBuilder` api trait that provides the required functionality for building a - /// block. + #[doc = " The `BlockBuilder` api trait that provides the required functionality for building a block."] pub struct BlockBuilder; impl BlockBuilder { - /// Apply the given extrinsic. - /// - /// Returns an inclusion outcome which specifies if this extrinsic is included in - /// this block or not. + #[doc = " Apply the given extrinsic."] + #[doc = ""] + #[doc = " Returns an inclusion outcome which specifies if this extrinsic is included in"] + #[doc = " this block or not."] pub fn apply_extrinsic( &self, - extrinsic: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, + extrinsic : runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >, ) -> ::subxt::runtime_api::Payload< types::ApplyExtrinsic, ::core::result::Result< @@ -467,7 +384,7 @@ pub mod api { ], ) } - /// Finish the current block. + #[doc = " Finish the current block."] pub fn finalize_block( &self, ) -> ::subxt::runtime_api::Payload< @@ -485,33 +402,7 @@ pub mod api { ], ) } - /// Generate inherent extrinsics. The inherent data will vary from chain to chain. - pub fn inherent_extrinsics( - &self, - inherent: runtime_types::sp_inherents::InherentData, - ) -> ::subxt::runtime_api::Payload< - types::InherentExtrinsics, - ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, - >{ + #[doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."] pub fn inherent_extrinsics (& self , inherent : runtime_types :: sp_inherents :: InherentData ,) -> :: subxt :: runtime_api :: Payload < types :: InherentExtrinsics , :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > >{ ::subxt::runtime_api::Payload::new_static( "BlockBuilder", "inherent_extrinsics", @@ -524,33 +415,10 @@ pub mod api { ], ) } - /// Check that the inherents are valid. The inherent data will vary from chain to - /// chain. + #[doc = " Check that the inherents are valid. The inherent data will vary from chain to chain."] pub fn check_inherents( &self, - block: runtime_types::sp_runtime::generic::block::Block< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - >, - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, + block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 > , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >, data: runtime_types::sp_inherents::InherentData, ) -> ::subxt::runtime_api::Payload< types::CheckInherents, @@ -571,127 +439,71 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ApplyExtrinsic { - pub extrinsic: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - } - #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ApplyExtrinsic { pub extrinsic : runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FinalizeBlock {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InherentExtrinsics { pub inherent: runtime_types::sp_inherents::InherentData, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CheckInherents { - pub block: runtime_types::sp_runtime::generic::block::Block< - runtime_types::sp_runtime::generic::header::Header< - ::core::primitive::u64, - >, - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, - pub data: runtime_types::sp_inherents::InherentData, - } + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CheckInherents { pub block : runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u64 > , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , pub data : runtime_types :: sp_inherents :: InherentData , } } } pub mod jobs_api { use super::{root_mod, runtime_types}; pub struct JobsApi; impl JobsApi { - /// Query jobs associated with a specific validator. - /// - /// This function takes a `validator` parameter of type `AccountId` and attempts - /// to retrieve a list of jobs associated with the provided validator. If - /// successful, it constructs a vector of `RpcResponseJobsData` containing - /// information about the jobs and returns it as a `Result`. - /// - /// # Arguments - /// - /// * `validator` - The account ID of the validator whose jobs are to be queried. - /// - /// # Returns - /// - /// An optional vec of `RpcResponseJobsData` of jobs assigned to validator + #[doc = " Query jobs associated with a specific validator."] + #[doc = ""] + #[doc = " This function takes a `validator` parameter of type `AccountId` and attempts"] + #[doc = " to retrieve a list of jobs associated with the provided validator. If successful,"] + #[doc = " it constructs a vector of `RpcResponseJobsData` containing information"] + #[doc = " about the jobs and returns it as a `Result`."] + #[doc = ""] + #[doc = " # Arguments"] + #[doc = ""] + #[doc = " * `validator` - The account ID of the validator whose jobs are to be queried."] + #[doc = ""] + #[doc = " # Returns"] + #[doc = ""] + #[doc = " An optional vec of `RpcResponseJobsData` of jobs assigned to validator"] pub fn query_jobs_by_validator( &self, validator: ::subxt::utils::AccountId32, @@ -719,16 +531,16 @@ pub mod api { ], ) } - /// Queries a job by its key and ID. - /// - /// # Arguments - /// - /// * `role_type` - The role of the job. - /// * `job_id` - The ID of the job. - /// - /// # Returns - /// - /// An optional `RpcResponseJobsData` containing the account ID of the job. + #[doc = " Queries a job by its key and ID."] + #[doc = ""] + #[doc = " # Arguments"] + #[doc = ""] + #[doc = " * `role_type` - The role of the job."] + #[doc = " * `job_id` - The ID of the job."] + #[doc = ""] + #[doc = " # Returns"] + #[doc = ""] + #[doc = " An optional `RpcResponseJobsData` containing the account ID of the job."] pub fn query_job_by_id( &self, role_type: runtime_types::tangle_primitives::roles::RoleType, @@ -756,17 +568,16 @@ pub mod api { ], ) } - /// Queries the result of a job by its role_type and ID. - /// - /// # Arguments - /// - /// * `role_type` - The role of the job. - /// * `job_id` - The ID of the job. - /// - /// # Returns - /// - /// An `Option` containing the phase one result of the job, wrapped in an - /// `PhaseResult`. + #[doc = " Queries the result of a job by its role_type and ID."] + #[doc = ""] + #[doc = " # Arguments"] + #[doc = ""] + #[doc = " * `role_type` - The role of the job."] + #[doc = " * `job_id` - The ID of the job."] + #[doc = ""] + #[doc = " # Returns"] + #[doc = ""] + #[doc = " An `Option` containing the phase one result of the job, wrapped in an `PhaseResult`."] pub fn query_job_result( &self, role_type: runtime_types::tangle_primitives::roles::RoleType, @@ -797,10 +608,10 @@ pub mod api { ], ) } - /// Queries next job ID. - /// - /// # Returns - /// Next job ID. + #[doc = " Queries next job ID."] + #[doc = ""] + #[doc = " # Returns"] + #[doc = " Next job ID."] pub fn query_next_job_id( &self, ) -> ::subxt::runtime_api::Payload { @@ -816,10 +627,10 @@ pub mod api { ], ) } - /// Queries restaker's role key - /// - /// # Returns - /// Role key + #[doc = " Queries restaker's role key"] + #[doc = ""] + #[doc = " # Returns"] + #[doc = " Role key"] pub fn query_restaker_role_key( &self, address: ::subxt::utils::AccountId32, @@ -843,32 +654,26 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryJobsByValidator { pub validator: ::subxt::utils::AccountId32, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryJobById { @@ -876,16 +681,13 @@ pub mod api { pub job_id: ::core::primitive::u64, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryJobResult { @@ -893,30 +695,24 @@ pub mod api { pub job_id: ::core::primitive::u64, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryNextJobId {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryRestakerRoleKey { @@ -926,10 +722,10 @@ pub mod api { } pub mod ethereum_runtime_rpc_api { use super::{root_mod, runtime_types}; - /// API necessary for Ethereum-compatibility layer. + #[doc = " API necessary for Ethereum-compatibility layer."] pub struct EthereumRuntimeRPCApi; impl EthereumRuntimeRPCApi { - /// Returns runtime defined pallet_evm::ChainId. + #[doc = " Returns runtime defined pallet_evm::ChainId."] pub fn chain_id( &self, ) -> ::subxt::runtime_api::Payload { @@ -945,7 +741,7 @@ pub mod api { ], ) } - /// Returns pallet_evm::Accounts by address. + #[doc = " Returns pallet_evm::Accounts by address."] pub fn account_basic( &self, address: ::subxt::utils::H160, @@ -965,7 +761,7 @@ pub mod api { ], ) } - /// Returns FixedGasPrice::min_gas_price + #[doc = " Returns FixedGasPrice::min_gas_price"] pub fn gas_price( &self, ) -> ::subxt::runtime_api::Payload< @@ -984,7 +780,7 @@ pub mod api { ], ) } - /// For a given account address, returns pallet_evm::AccountCodes. + #[doc = " For a given account address, returns pallet_evm::AccountCodes."] pub fn account_code_at( &self, address: ::subxt::utils::H160, @@ -1004,7 +800,7 @@ pub mod api { ], ) } - /// Returns the converted FindAuthor::find_author authority id. + #[doc = " Returns the converted FindAuthor::find_author authority id."] pub fn author( &self, ) -> ::subxt::runtime_api::Payload { @@ -1020,7 +816,7 @@ pub mod api { ], ) } - /// For a given account address and index, returns pallet_evm::AccountStorages. + #[doc = " For a given account address and index, returns pallet_evm::AccountStorages."] pub fn storage_at( &self, address: ::subxt::utils::H160, @@ -1133,7 +929,7 @@ pub mod api { ], ) } - /// Return the current block. + #[doc = " Return the current block."] pub fn current_block( &self, ) -> ::subxt::runtime_api::Payload< @@ -1156,7 +952,7 @@ pub mod api { ], ) } - /// Return the current receipt. + #[doc = " Return the current receipt."] pub fn current_receipts( &self, ) -> ::subxt::runtime_api::Payload< @@ -1177,7 +973,7 @@ pub mod api { ], ) } - /// Return the current transaction status. + #[doc = " Return the current transaction status."] pub fn current_transaction_statuses( &self, ) -> ::subxt::runtime_api::Payload< @@ -1227,29 +1023,10 @@ pub mod api { ], ) } - /// Receives a `Vec` and filters all the ethereum transactions. + #[doc = " Receives a `Vec` and filters all the ethereum transactions."] pub fn extrinsic_filter( &self, - xts: ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, + xts : :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >, ) -> ::subxt::runtime_api::Payload< types::ExtrinsicFilter, ::std::vec::Vec, @@ -1266,7 +1043,7 @@ pub mod api { ], ) } - /// Return the elasticity multiplier. + #[doc = " Return the elasticity multiplier."] pub fn elasticity( &self, ) -> ::subxt::runtime_api::Payload< @@ -1284,8 +1061,8 @@ pub mod api { ], ) } - /// Used to determine if gas limit multiplier for non-transactional calls - /// (eth_call/estimateGas) is supported. + #[doc = " Used to determine if gas limit multiplier for non-transactional calls (eth_call/estimateGas)"] + #[doc = " is supported."] pub fn gas_limit_multiplier_support( &self, ) -> ::subxt::runtime_api::Payload { @@ -1301,29 +1078,10 @@ pub mod api { ], ) } - /// Return the pending block. + #[doc = " Return the pending block."] pub fn pending_block( &self, - xts: ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, + xts : :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >, ) -> ::subxt::runtime_api::Payload< types::PendingBlock, ( @@ -1353,90 +1111,72 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChainId {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountBasic { pub address: ::subxt::utils::H160, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GasPrice {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountCodeAt { pub address: ::subxt::utils::H160, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Author {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct StorageAt { @@ -1444,16 +1184,13 @@ pub mod api { pub index: runtime_types::primitive_types::U256, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Call { @@ -1476,16 +1213,13 @@ pub mod api { >, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Create { @@ -1507,189 +1241,100 @@ pub mod api { >, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentBlock {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentReceipts {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentTransactionStatuses {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentAll {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExtrinsicFilter { - pub xts: ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, - } - #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExtrinsicFilter { pub xts : :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Elasticity {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GasLimitMultiplierSupport {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PendingBlock { - pub xts: ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, - } + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct PendingBlock { pub xts : :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , } } } pub mod convert_transaction_runtime_api { use super::{root_mod, runtime_types}; pub struct ConvertTransactionRuntimeApi; impl ConvertTransactionRuntimeApi { - pub fn convert_transaction( - &self, - transaction: runtime_types::ethereum::transaction::TransactionV2, - ) -> ::subxt::runtime_api::Payload< - types::ConvertTransaction, - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >{ + pub fn convert_transaction (& self , transaction : runtime_types :: ethereum :: transaction :: TransactionV2 ,) -> :: subxt :: runtime_api :: Payload < types :: ConvertTransaction , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >{ ::subxt::runtime_api::Payload::new_static( "ConvertTransactionRuntimeApi", "convert_transaction", @@ -1705,16 +1350,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ConvertTransaction { @@ -1724,39 +1366,22 @@ pub mod api { } pub mod tagged_transaction_queue { use super::{root_mod, runtime_types}; - /// The `TaggedTransactionQueue` api trait for interfering with the transaction queue. + #[doc = " The `TaggedTransactionQueue` api trait for interfering with the transaction queue."] pub struct TaggedTransactionQueue; impl TaggedTransactionQueue { - /// Validate the transaction. - /// - /// This method is invoked by the transaction pool to learn details about given - /// transaction. The implementation should make sure to verify the correctness of - /// the transaction against current state. The given `block_hash` corresponds to the - /// hash of the block that is used as current state. - /// - /// Note that this call may be performed by the pool multiple times and transactions - /// might be verified in any possible order. + #[doc = " Validate the transaction."] + #[doc = ""] + #[doc = " This method is invoked by the transaction pool to learn details about given transaction."] + #[doc = " The implementation should make sure to verify the correctness of the transaction"] + #[doc = " against current state. The given `block_hash` corresponds to the hash of the block"] + #[doc = " that is used as current state."] + #[doc = ""] + #[doc = " Note that this call may be performed by the pool multiple times and transactions"] + #[doc = " might be verified in any possible order."] pub fn validate_transaction( &self, source: runtime_types::sp_runtime::transaction_validity::TransactionSource, - tx: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, + tx : runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >, block_hash: ::subxt::utils::H256, ) -> ::subxt::runtime_api::Payload< types::ValidateTransaction, @@ -1780,48 +1405,24 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ValidateTransaction { - pub source: runtime_types::sp_runtime::transaction_validity::TransactionSource, - pub tx: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - pub block_hash: ::subxt::utils::H256, - } + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ValidateTransaction { pub source : runtime_types :: sp_runtime :: transaction_validity :: TransactionSource , pub tx : runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub block_hash : :: subxt :: utils :: H256 , } } } pub mod offchain_worker_api { use super::{root_mod, runtime_types}; - /// The offchain worker api. + #[doc = " The offchain worker api."] pub struct OffchainWorkerApi; impl OffchainWorkerApi { - /// Starts the off-chain task for given block header. + #[doc = " Starts the off-chain task for given block header."] pub fn offchain_worker( &self, header: runtime_types::sp_runtime::generic::header::Header< @@ -1843,16 +1444,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OffchainWorker { @@ -1863,16 +1461,16 @@ pub mod api { } pub mod session_keys { use super::{root_mod, runtime_types}; - /// Session keys runtime api. + #[doc = " Session keys runtime api."] pub struct SessionKeys; impl SessionKeys { - /// Generate a set of session keys with optionally using the given seed. - /// The keys should be stored within the keystore exposed via runtime - /// externalities. - /// - /// The seed needs to be a valid `utf8` string. - /// - /// Returns the concatenated SCALE encoded public keys. + #[doc = " Generate a set of session keys with optionally using the given seed."] + #[doc = " The keys should be stored within the keystore exposed via runtime"] + #[doc = " externalities."] + #[doc = ""] + #[doc = " The seed needs to be a valid `utf8` string."] + #[doc = ""] + #[doc = " Returns the concatenated SCALE encoded public keys."] pub fn generate_session_keys( &self, seed: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, @@ -1891,9 +1489,9 @@ pub mod api { ], ) } - /// Decode the given public session keys. - /// - /// Returns the list of public raw public keys + key type. + #[doc = " Decode the given public session keys."] + #[doc = ""] + #[doc = " Returns the list of public raw public keys + key type."] pub fn decode_session_keys( &self, encoded: ::std::vec::Vec<::core::primitive::u8>, @@ -1922,32 +1520,26 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateSessionKeys { pub seed: ::core::option::Option<::std::vec::Vec<::core::primitive::u8>>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DecodeSessionKeys { @@ -1957,10 +1549,10 @@ pub mod api { } pub mod babe_api { use super::{root_mod, runtime_types}; - /// API necessary for block authorship with BABE. + #[doc = " API necessary for block authorship with BABE."] pub struct BabeApi; impl BabeApi { - /// Return the configuration for BABE. + #[doc = " Return the configuration for BABE."] pub fn configuration( &self, ) -> ::subxt::runtime_api::Payload< @@ -1978,7 +1570,7 @@ pub mod api { ], ) } - /// Returns the slot that started the current epoch. + #[doc = " Returns the slot that started the current epoch."] pub fn current_epoch_start( &self, ) -> ::subxt::runtime_api::Payload< @@ -1997,7 +1589,7 @@ pub mod api { ], ) } - /// Returns information regarding the current epoch. + #[doc = " Returns information regarding the current epoch."] pub fn current_epoch( &self, ) -> ::subxt::runtime_api::Payload< @@ -2015,8 +1607,8 @@ pub mod api { ], ) } - /// Returns information regarding the next epoch (which was already - /// previously announced). + #[doc = " Returns information regarding the next epoch (which was already"] + #[doc = " previously announced)."] pub fn next_epoch( &self, ) -> ::subxt::runtime_api::Payload< @@ -2035,17 +1627,17 @@ pub mod api { ], ) } - /// Generates a proof of key ownership for the given authority in the - /// current epoch. An example usage of this module is coupled with the - /// session historical module to prove that a given authority key is - /// tied to a given staking identity during a specific session. Proofs - /// of key ownership are necessary for submitting equivocation reports. - /// NOTE: even though the API takes a `slot` as parameter the current - /// implementations ignores this parameter and instead relies on this - /// method being called at the correct block height, i.e. any point at - /// which the epoch for the given slot is live on-chain. Future - /// implementations will instead use indexed data through an offchain - /// worker, not requiring older states to be available. + #[doc = " Generates a proof of key ownership for the given authority in the"] + #[doc = " current epoch. An example usage of this module is coupled with the"] + #[doc = " session historical module to prove that a given authority key is"] + #[doc = " tied to a given staking identity during a specific session. Proofs"] + #[doc = " of key ownership are necessary for submitting equivocation reports."] + #[doc = " NOTE: even though the API takes a `slot` as parameter the current"] + #[doc = " implementations ignores this parameter and instead relies on this"] + #[doc = " method being called at the correct block height, i.e. any point at"] + #[doc = " which the epoch for the given slot is live on-chain. Future"] + #[doc = " implementations will instead use indexed data through an offchain"] + #[doc = " worker, not requiring older states to be available."] pub fn generate_key_ownership_proof( &self, slot: runtime_types::sp_consensus_slots::Slot, @@ -2068,14 +1660,14 @@ pub mod api { ], ) } - /// Submits an unsigned extrinsic to report an equivocation. The caller - /// must provide the equivocation proof and a key ownership proof - /// (should be obtained using `generate_key_ownership_proof`). The - /// extrinsic will be unsigned and should only be accepted for local - /// authorship (not to be broadcast to the network). This method returns - /// `None` when creation of the extrinsic fails, e.g. if equivocation - /// reporting is disabled for the given runtime (i.e. this method is - /// hardcoded to return `None`). Only useful in an offchain context. + #[doc = " Submits an unsigned extrinsic to report an equivocation. The caller"] + #[doc = " must provide the equivocation proof and a key ownership proof"] + #[doc = " (should be obtained using `generate_key_ownership_proof`). The"] + #[doc = " extrinsic will be unsigned and should only be accepted for local"] + #[doc = " authorship (not to be broadcast to the network). This method returns"] + #[doc = " `None` when creation of the extrinsic fails, e.g. if equivocation"] + #[doc = " reporting is disabled for the given runtime (i.e. this method is"] + #[doc = " hardcoded to return `None`). Only useful in an offchain context."] pub fn submit_report_equivocation_unsigned_extrinsic( &self, equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< @@ -2106,72 +1698,57 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Configuration {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentEpochStart {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentEpoch {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NextEpoch {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { @@ -2179,16 +1756,13 @@ pub mod api { pub authority_id: runtime_types::sp_consensus_babe::app::Public, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { @@ -2202,10 +1776,10 @@ pub mod api { } pub mod account_nonce_api { use super::{root_mod, runtime_types}; - /// The API to query account nonce. + #[doc = " The API to query account nonce."] pub struct AccountNonceApi; impl AccountNonceApi { - /// Get current account nonce of given `AccountId`. + #[doc = " Get current account nonce of given `AccountId`."] pub fn account_nonce( &self, account: ::subxt::utils::AccountId32, @@ -2226,16 +1800,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountNonce { @@ -2249,24 +1820,7 @@ pub mod api { impl TransactionPaymentApi { pub fn query_info( &self, - uxt: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, + uxt : runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >, len: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::QueryInfo, @@ -2288,24 +1842,7 @@ pub mod api { } pub fn query_fee_details( &self, - uxt: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, + uxt : runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) >, len: ::core::primitive::u32, ) -> ::subxt::runtime_api::Payload< types::QueryFeeDetails, @@ -2361,100 +1898,48 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryInfo { - pub uxt: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - pub len: ::core::primitive::u32, - } - #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct QueryFeeDetails { - pub uxt: runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - pub len: ::core::primitive::u32, - } - #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryInfo { pub uxt : runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub len : :: core :: primitive :: u32 , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct QueryFeeDetails { pub uxt : runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > , pub len : :: core :: primitive :: u32 , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryWeightToFee { pub weight: runtime_types::sp_weights::weight_v2::Weight, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QueryLengthToFee { @@ -2464,23 +1949,23 @@ pub mod api { } pub mod grandpa_api { use super::{root_mod, runtime_types}; - /// APIs for integrating the GRANDPA finality gadget into runtimes. - /// This should be implemented on the runtime side. - /// - /// This is primarily used for negotiating authority-set changes for the - /// gadget. GRANDPA uses a signaling model of changing authority sets: - /// changes should be signaled with a delay of N blocks, and then automatically - /// applied in the runtime after those N blocks have passed. - /// - /// The consensus protocol will coordinate the handoff externally. + #[doc = " APIs for integrating the GRANDPA finality gadget into runtimes."] + #[doc = " This should be implemented on the runtime side."] + #[doc = ""] + #[doc = " This is primarily used for negotiating authority-set changes for the"] + #[doc = " gadget. GRANDPA uses a signaling model of changing authority sets:"] + #[doc = " changes should be signaled with a delay of N blocks, and then automatically"] + #[doc = " applied in the runtime after those N blocks have passed."] + #[doc = ""] + #[doc = " The consensus protocol will coordinate the handoff externally."] pub struct GrandpaApi; impl GrandpaApi { - /// Get the current GRANDPA authorities and weights. This should not change except - /// for when changes are scheduled and the corresponding delay has passed. - /// - /// When called at block B, it will return the set of authorities that should be - /// used to finalize descendants of this block (B+1, B+2, ...). The block B itself - /// is finalized by the authorities from block B-1. + #[doc = " Get the current GRANDPA authorities and weights. This should not change except"] + #[doc = " for when changes are scheduled and the corresponding delay has passed."] + #[doc = ""] + #[doc = " When called at block B, it will return the set of authorities that should be"] + #[doc = " used to finalize descendants of this block (B+1, B+2, ...). The block B itself"] + #[doc = " is finalized by the authorities from block B-1."] pub fn grandpa_authorities( &self, ) -> ::subxt::runtime_api::Payload< @@ -2502,14 +1987,14 @@ pub mod api { ], ) } - /// Submits an unsigned extrinsic to report an equivocation. The caller - /// must provide the equivocation proof and a key ownership proof - /// (should be obtained using `generate_key_ownership_proof`). The - /// extrinsic will be unsigned and should only be accepted for local - /// authorship (not to be broadcast to the network). This method returns - /// `None` when creation of the extrinsic fails, e.g. if equivocation - /// reporting is disabled for the given runtime (i.e. this method is - /// hardcoded to return `None`). Only useful in an offchain context. + #[doc = " Submits an unsigned extrinsic to report an equivocation. The caller"] + #[doc = " must provide the equivocation proof and a key ownership proof"] + #[doc = " (should be obtained using `generate_key_ownership_proof`). The"] + #[doc = " extrinsic will be unsigned and should only be accepted for local"] + #[doc = " authorship (not to be broadcast to the network). This method returns"] + #[doc = " `None` when creation of the extrinsic fails, e.g. if equivocation"] + #[doc = " reporting is disabled for the given runtime (i.e. this method is"] + #[doc = " hardcoded to return `None`). Only useful in an offchain context."] pub fn submit_report_equivocation_unsigned_extrinsic( &self, equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -2536,17 +2021,17 @@ pub mod api { ], ) } - /// Generates a proof of key ownership for the given authority in the - /// given set. An example usage of this module is coupled with the - /// session historical module to prove that a given authority key is - /// tied to a given staking identity during a specific session. Proofs - /// of key ownership are necessary for submitting equivocation reports. - /// NOTE: even though the API takes a `set_id` as parameter the current - /// implementations ignore this parameter and instead rely on this - /// method being called at the correct block height, i.e. any point at - /// which the given set id is live on-chain. Future implementations will - /// instead use indexed data through an offchain worker, not requiring - /// older states to be available. + #[doc = " Generates a proof of key ownership for the given authority in the"] + #[doc = " given set. An example usage of this module is coupled with the"] + #[doc = " session historical module to prove that a given authority key is"] + #[doc = " tied to a given staking identity during a specific session. Proofs"] + #[doc = " of key ownership are necessary for submitting equivocation reports."] + #[doc = " NOTE: even though the API takes a `set_id` as parameter the current"] + #[doc = " implementations ignore this parameter and instead rely on this"] + #[doc = " method being called at the correct block height, i.e. any point at"] + #[doc = " which the given set id is live on-chain. Future implementations will"] + #[doc = " instead use indexed data through an offchain worker, not requiring"] + #[doc = " older states to be available."] pub fn generate_key_ownership_proof( &self, set_id: ::core::primitive::u64, @@ -2569,7 +2054,7 @@ pub mod api { ], ) } - /// Get current GRANDPA authority set id. + #[doc = " Get current GRANDPA authority set id."] pub fn current_set_id( &self, ) -> ::subxt::runtime_api::Payload { @@ -2589,30 +2074,24 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GrandpaAuthorities {} #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { @@ -2624,16 +2103,13 @@ pub mod api { runtime_types::sp_consensus_grandpa::OpaqueKeyOwnershipProof, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { @@ -2641,16 +2117,13 @@ pub mod api { pub authority_id: runtime_types::sp_consensus_grandpa::app::Public, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CurrentSetId {} @@ -2662,26 +2135,7 @@ pub mod api { impl DebugRuntimeApi { pub fn trace_transaction( &self, - extrinsics: ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, + extrinsics : :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >, transaction: runtime_types::ethereum::transaction::TransactionV2, ) -> ::subxt::runtime_api::Payload< types::TraceTransaction, @@ -2700,26 +2154,7 @@ pub mod api { } pub fn trace_block( &self, - extrinsics: ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, + extrinsics : :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >, known_transactions: ::std::vec::Vec<::subxt::utils::H256>, ) -> ::subxt::runtime_api::Payload< types::TraceBlock, @@ -2740,77 +2175,27 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct TraceTransaction { - pub extrinsics: ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, - pub transaction: runtime_types::ethereum::transaction::TransactionV2, - } - #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct TraceBlock { - pub extrinsics: ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, - pub known_transactions: ::std::vec::Vec<::subxt::utils::H256>, - } + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TraceTransaction { pub extrinsics : :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , pub transaction : runtime_types :: ethereum :: transaction :: TransactionV2 , } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct TraceBlock { pub extrinsics : :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , pub known_transactions : :: std :: vec :: Vec < :: subxt :: utils :: H256 > , } } } pub mod tx_pool_runtime_api { @@ -2819,46 +2204,8 @@ pub mod api { impl TxPoolRuntimeApi { pub fn extrinsic_filter( &self, - xt_ready: ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, - xt_future: ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, + xt_ready : :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >, + xt_future : :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > >, ) -> ::subxt::runtime_api::Payload< types::ExtrinsicFilter, runtime_types::rpc_primitives_txpool::TxPoolResponse, @@ -2878,60 +2225,16 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExtrinsicFilter { - pub xt_ready: ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, - pub xt_future: ::std::vec::Vec< - runtime_types::fp_self_contained::unchecked_extrinsic::UncheckedExtrinsic< - ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - runtime_types::tangle_testnet_runtime::RuntimeCall, - runtime_types::sp_runtime::MultiSignature, - ( - runtime_types::frame_system::extensions::check_non_zero_sender::CheckNonZeroSender, - runtime_types::frame_system::extensions::check_spec_version::CheckSpecVersion, - runtime_types::frame_system::extensions::check_tx_version::CheckTxVersion, - runtime_types::frame_system::extensions::check_genesis::CheckGenesis, - runtime_types::frame_system::extensions::check_mortality::CheckMortality, - runtime_types::frame_system::extensions::check_nonce::CheckNonce, - runtime_types::frame_system::extensions::check_weight::CheckWeight, - runtime_types::pallet_transaction_payment::ChargeTransactionPayment, - ), - >, - >, - } + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExtrinsicFilter { pub xt_ready : :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , pub xt_future : :: std :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: utils :: MultiAddress < :: subxt :: utils :: AccountId32 , :: core :: primitive :: u32 > , runtime_types :: tangle_testnet_runtime :: RuntimeCall , runtime_types :: sp_runtime :: MultiSignature , (runtime_types :: frame_system :: extensions :: check_non_zero_sender :: CheckNonZeroSender , runtime_types :: frame_system :: extensions :: check_spec_version :: CheckSpecVersion , runtime_types :: frame_system :: extensions :: check_tx_version :: CheckTxVersion , runtime_types :: frame_system :: extensions :: check_genesis :: CheckGenesis , runtime_types :: frame_system :: extensions :: check_mortality :: CheckMortality , runtime_types :: frame_system :: extensions :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment ,) > > , } } } } @@ -3267,7 +2570,7 @@ pub mod api { zk_saa_s::calls::TransactionApi } } - /// check whether the metadata provided is aligned with this statically generated code. + #[doc = r" check whether the metadata provided is aligned with this statically generated code."] pub fn is_codegen_valid_for(metadata: &::subxt::Metadata) -> bool { let runtime_metadata_hash = metadata .hasher() @@ -3283,9 +2586,9 @@ pub mod api { } pub mod system { use super::{root_mod, runtime_types}; - ///Error for the System pallet + #[doc = "Error for the System pallet"] pub type Error = runtime_types::frame_system::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::frame_system::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -3293,16 +2596,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Remark { @@ -3313,17 +2613,14 @@ pub mod api { const CALL: &'static str = "remark"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetHeapPages { @@ -3334,16 +2631,13 @@ pub mod api { const CALL: &'static str = "set_heap_pages"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCode { @@ -3354,16 +2648,13 @@ pub mod api { const CALL: &'static str = "set_code"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCodeWithoutChecks { @@ -3374,16 +2665,13 @@ pub mod api { const CALL: &'static str = "set_code_without_checks"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetStorage { @@ -3397,16 +2685,13 @@ pub mod api { const CALL: &'static str = "set_storage"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillStorage { @@ -3417,16 +2702,13 @@ pub mod api { const CALL: &'static str = "kill_storage"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillPrefix { @@ -3438,16 +2720,13 @@ pub mod api { const CALL: &'static str = "kill_prefix"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemarkWithEvent { @@ -3460,7 +2739,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::remark`]. + #[doc = "See [`Pallet::remark`]."] pub fn remark( &self, remark: ::std::vec::Vec<::core::primitive::u8>, @@ -3477,7 +2756,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_heap_pages`]. + #[doc = "See [`Pallet::set_heap_pages`]."] pub fn set_heap_pages( &self, pages: ::core::primitive::u64, @@ -3494,7 +2773,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_code`]. + #[doc = "See [`Pallet::set_code`]."] pub fn set_code( &self, code: ::std::vec::Vec<::core::primitive::u8>, @@ -3510,7 +2789,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_code_without_checks`]. + #[doc = "See [`Pallet::set_code_without_checks`]."] pub fn set_code_without_checks( &self, code: ::std::vec::Vec<::core::primitive::u8>, @@ -3527,7 +2806,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_storage`]. + #[doc = "See [`Pallet::set_storage`]."] pub fn set_storage( &self, items: ::std::vec::Vec<( @@ -3547,7 +2826,7 @@ pub mod api { ], ) } - ///See [`Pallet::kill_storage`]. + #[doc = "See [`Pallet::kill_storage`]."] pub fn kill_storage( &self, keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, @@ -3564,7 +2843,7 @@ pub mod api { ], ) } - ///See [`Pallet::kill_prefix`]. + #[doc = "See [`Pallet::kill_prefix`]."] pub fn kill_prefix( &self, prefix: ::std::vec::Vec<::core::primitive::u8>, @@ -3582,7 +2861,7 @@ pub mod api { ], ) } - ///See [`Pallet::remark_with_event`]. + #[doc = "See [`Pallet::remark_with_event`]."] pub fn remark_with_event( &self, remark: ::std::vec::Vec<::core::primitive::u8>, @@ -3600,24 +2879,21 @@ pub mod api { } } } - ///Event for the System pallet. + #[doc = "Event for the System pallet."] pub type Event = runtime_types::frame_system::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An extrinsic completed successfully. + #[doc = "An extrinsic completed successfully."] pub struct ExtrinsicSuccess { pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, } @@ -3626,19 +2902,16 @@ pub mod api { const EVENT: &'static str = "ExtrinsicSuccess"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An extrinsic failed. + #[doc = "An extrinsic failed."] pub struct ExtrinsicFailed { pub dispatch_error: runtime_types::sp_runtime::DispatchError, pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, @@ -3648,38 +2921,32 @@ pub mod api { const EVENT: &'static str = "ExtrinsicFailed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///`:code` was updated. + #[doc = "`:code` was updated."] pub struct CodeUpdated; impl ::subxt::events::StaticEvent for CodeUpdated { const PALLET: &'static str = "System"; const EVENT: &'static str = "CodeUpdated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A new account was created. + #[doc = "A new account was created."] pub struct NewAccount { pub account: ::subxt::utils::AccountId32, } @@ -3688,19 +2955,16 @@ pub mod api { const EVENT: &'static str = "NewAccount"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account was reaped. + #[doc = "An account was reaped."] pub struct KilledAccount { pub account: ::subxt::utils::AccountId32, } @@ -3709,19 +2973,16 @@ pub mod api { const EVENT: &'static str = "KilledAccount"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///On on-chain remark happened. + #[doc = "On on-chain remark happened."] pub struct Remarked { pub sender: ::subxt::utils::AccountId32, pub hash: ::subxt::utils::H256, @@ -3735,7 +2996,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The full account information for a particular account ID. + #[doc = " The full account information for a particular account ID."] pub fn account( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -3760,7 +3021,7 @@ pub mod api { ], ) } - /// The full account information for a particular account ID. + #[doc = " The full account information for a particular account ID."] pub fn account_root( &self, ) -> ::subxt::storage::address::Address< @@ -3784,7 +3045,7 @@ pub mod api { ], ) } - /// Total extrinsics count for the current block. + #[doc = " Total extrinsics count for the current block."] pub fn extrinsic_count( &self, ) -> ::subxt::storage::address::Address< @@ -3806,7 +3067,7 @@ pub mod api { ], ) } - /// The current weight for the block. + #[doc = " The current weight for the block."] pub fn block_weight( &self, ) -> ::subxt::storage::address::Address< @@ -3829,7 +3090,7 @@ pub mod api { ], ) } - /// Total length (in bytes) for all extrinsics put together, for the current block. + #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len( &self, ) -> ::subxt::storage::address::Address< @@ -3851,7 +3112,7 @@ pub mod api { ], ) } - /// Map of block numbers to block hashes. + #[doc = " Map of block numbers to block hashes."] pub fn block_hash( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u64>, @@ -3873,7 +3134,7 @@ pub mod api { ], ) } - /// Map of block numbers to block hashes. + #[doc = " Map of block numbers to block hashes."] pub fn block_hash_root( &self, ) -> ::subxt::storage::address::Address< @@ -3894,7 +3155,7 @@ pub mod api { ], ) } - /// Extrinsics data for the current block (maps an extrinsic's index to its data). + #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -3916,7 +3177,7 @@ pub mod api { ], ) } - /// Extrinsics data for the current block (maps an extrinsic's index to its data). + #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_root( &self, ) -> ::subxt::storage::address::Address< @@ -3937,7 +3198,7 @@ pub mod api { ], ) } - /// The current block number being processed. Set by `execute_block`. + #[doc = " The current block number being processed. Set by `execute_block`."] pub fn number( &self, ) -> ::subxt::storage::address::Address< @@ -3958,7 +3219,7 @@ pub mod api { ], ) } - /// Hash of the previous block. + #[doc = " Hash of the previous block."] pub fn parent_hash( &self, ) -> ::subxt::storage::address::Address< @@ -3979,7 +3240,7 @@ pub mod api { ], ) } - /// Digest of the current block, also part of the block header. + #[doc = " Digest of the current block, also part of the block header."] pub fn digest( &self, ) -> ::subxt::storage::address::Address< @@ -4000,13 +3261,13 @@ pub mod api { ], ) } - /// Events deposited for the current block. - /// - /// NOTE: The item is unbound and should therefore never be read on chain. - /// It could otherwise inflate the PoV size of a block. - /// - /// Events have a large in-memory size. Box the events to not go out-of-memory - /// just in case someone still reads them from within the runtime. + #[doc = " Events deposited for the current block."] + #[doc = ""] + #[doc = " NOTE: The item is unbound and should therefore never be read on chain."] + #[doc = " It could otherwise inflate the PoV size of a block."] + #[doc = ""] + #[doc = " Events have a large in-memory size. Box the events to not go out-of-memory"] + #[doc = " just in case someone still reads them from within the runtime."] pub fn events( &self, ) -> ::subxt::storage::address::Address< @@ -4033,7 +3294,7 @@ pub mod api { ], ) } - /// The number of events in the `Events` list. + #[doc = " The number of events in the `Events` list."] pub fn event_count( &self, ) -> ::subxt::storage::address::Address< @@ -4055,16 +3316,16 @@ pub mod api { ], ) } - /// Mapping between a topic (represented by T::Hash) and a vector of indexes - /// of events in the `>` list. - /// - /// All topic vectors have deterministic storage locations depending on the topic. - /// This allows light-clients to leverage the changes trie storage tracking - /// mechanism and in case of changes fetch the list of events of interest. - /// - /// The value has the type `(BlockNumberFor, EventIndex)` because if we used only - /// just the `EventIndex` then in case if the topic has the same contents on the - /// next block no notification will be triggered thus the event might be lost. + #[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] + #[doc = " of events in the `>` list."] + #[doc = ""] + #[doc = " All topic vectors have deterministic storage locations depending on the topic. This"] + #[doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"] + #[doc = " in case of changes fetch the list of events of interest."] + #[doc = ""] + #[doc = " The value has the type `(BlockNumberFor, EventIndex)` because if we used only just"] + #[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"] + #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, @@ -4086,16 +3347,16 @@ pub mod api { ], ) } - /// Mapping between a topic (represented by T::Hash) and a vector of indexes - /// of events in the `>` list. - /// - /// All topic vectors have deterministic storage locations depending on the topic. - /// This allows light-clients to leverage the changes trie storage tracking - /// mechanism and in case of changes fetch the list of events of interest. - /// - /// The value has the type `(BlockNumberFor, EventIndex)` because if we used only - /// just the `EventIndex` then in case if the topic has the same contents on the - /// next block no notification will be triggered thus the event might be lost. + #[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] + #[doc = " of events in the `>` list."] + #[doc = ""] + #[doc = " All topic vectors have deterministic storage locations depending on the topic. This"] + #[doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"] + #[doc = " in case of changes fetch the list of events of interest."] + #[doc = ""] + #[doc = " The value has the type `(BlockNumberFor, EventIndex)` because if we used only just"] + #[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"] + #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics_root( &self, ) -> ::subxt::storage::address::Address< @@ -4116,8 +3377,7 @@ pub mod api { ], ) } - /// Stores the `spec_version` and `spec_name` of when the last runtime upgrade - /// happened. + #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade( &self, ) -> ::subxt::storage::address::Address< @@ -4138,8 +3398,7 @@ pub mod api { ], ) } - /// True if we have upgraded so that `type RefCount` is `u32`. False (default) if - /// not. + #[doc = " True if we have upgraded so that `type RefCount` is `u32`. False (default) if not."] pub fn upgraded_to_u32_ref_count( &self, ) -> ::subxt::storage::address::Address< @@ -4160,8 +3419,8 @@ pub mod api { ], ) } - /// True if we have upgraded so that AccountInfo contains three types of `RefCount`. - /// False (default) if not. + #[doc = " True if we have upgraded so that AccountInfo contains three types of `RefCount`. False"] + #[doc = " (default) if not."] pub fn upgraded_to_triple_ref_count( &self, ) -> ::subxt::storage::address::Address< @@ -4183,7 +3442,7 @@ pub mod api { ], ) } - /// The execution phase of the block. + #[doc = " The execution phase of the block."] pub fn execution_phase( &self, ) -> ::subxt::storage::address::Address< @@ -4210,7 +3469,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// Block & extrinsics weights: base values and limits. + #[doc = " Block & extrinsics weights: base values and limits."] pub fn block_weights( &self, ) -> ::subxt::constants::Address @@ -4225,7 +3484,7 @@ pub mod api { ], ) } - /// The maximum length of a block (in bytes). + #[doc = " The maximum length of a block (in bytes)."] pub fn block_length( &self, ) -> ::subxt::constants::Address { @@ -4239,8 +3498,7 @@ pub mod api { ], ) } - /// Maximum number of block number to block hash mappings to keep (oldest pruned - /// first). + #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -4255,7 +3513,7 @@ pub mod api { ], ) } - /// The weight of runtime database operations the runtime can invoke. + #[doc = " The weight of runtime database operations the runtime can invoke."] pub fn db_weight( &self, ) -> ::subxt::constants::Address { @@ -4270,7 +3528,7 @@ pub mod api { ], ) } - /// Get the chain's current version. + #[doc = " Get the chain's current version."] pub fn version( &self, ) -> ::subxt::constants::Address { @@ -4285,11 +3543,11 @@ pub mod api { ], ) } - /// The designated SS58 prefix of this chain. - /// - /// This replaces the "ss58Format" property declared in the chain spec. Reason is - /// that the runtime should know about the prefix in order to make use of it as - /// an identifier of the chain. + #[doc = " The designated SS58 prefix of this chain."] + #[doc = ""] + #[doc = " This replaces the \"ss58Format\" property declared in the chain spec. Reason is"] + #[doc = " that the runtime should know about the prefix in order to make use of it as"] + #[doc = " an identifier of the chain."] pub fn ss58_prefix(&self) -> ::subxt::constants::Address<::core::primitive::u16> { ::subxt::constants::Address::new_static( "System", @@ -4306,7 +3564,7 @@ pub mod api { } pub mod timestamp { use super::{root_mod, runtime_types}; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_timestamp::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -4314,16 +3572,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Set { @@ -4337,7 +3592,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::set`]. + #[doc = "See [`Pallet::set`]."] pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Timestamp", @@ -4356,7 +3611,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Current time for the current block. + #[doc = " Current time for the current block."] pub fn now( &self, ) -> ::subxt::storage::address::Address< @@ -4377,7 +3632,7 @@ pub mod api { ], ) } - /// Did the timestamp get updated in this block? + #[doc = " Did the timestamp get updated in this block?"] pub fn did_update( &self, ) -> ::subxt::storage::address::Address< @@ -4405,10 +3660,10 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The minimum period between blocks. Beware that this is different to the - /// *expected* period that the block production apparatus provides. Your chosen - /// consensus system will generally work with this to determine a sensible block - /// time. e.g. For Aura, it will be double this period on default settings. + #[doc = " The minimum period between blocks. Beware that this is different to the *expected*"] + #[doc = " period that the block production apparatus provides. Your chosen consensus system will"] + #[doc = " generally work with this to determine a sensible block time. e.g. For Aura, it will be"] + #[doc = " double this period on default settings."] pub fn minimum_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -4428,9 +3683,9 @@ pub mod api { } pub mod sudo { use super::{root_mod, runtime_types}; - ///Error for the Sudo pallet + #[doc = "Error for the Sudo pallet"] pub type Error = runtime_types::pallet_sudo::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_sudo::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -4438,16 +3693,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Sudo { @@ -4458,16 +3710,13 @@ pub mod api { const CALL: &'static str = "sudo"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoUncheckedWeight { @@ -4479,16 +3728,13 @@ pub mod api { const CALL: &'static str = "sudo_unchecked_weight"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetKey { @@ -4502,16 +3748,13 @@ pub mod api { const CALL: &'static str = "set_key"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SudoAs { @@ -4528,7 +3771,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::sudo`]. + #[doc = "See [`Pallet::sudo`]."] pub fn sudo( &self, call: runtime_types::tangle_testnet_runtime::RuntimeCall, @@ -4545,7 +3788,7 @@ pub mod api { ], ) } - ///See [`Pallet::sudo_unchecked_weight`]. + #[doc = "See [`Pallet::sudo_unchecked_weight`]."] pub fn sudo_unchecked_weight( &self, call: runtime_types::tangle_testnet_runtime::RuntimeCall, @@ -4562,7 +3805,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_key`]. + #[doc = "See [`Pallet::set_key`]."] pub fn set_key( &self, new: ::subxt::utils::MultiAddress< @@ -4582,7 +3825,7 @@ pub mod api { ], ) } - ///See [`Pallet::sudo_as`]. + #[doc = "See [`Pallet::sudo_as`]."] pub fn sudo_as( &self, who: ::subxt::utils::MultiAddress< @@ -4605,24 +3848,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_sudo::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A sudo just took place. \[result\] + #[doc = "A sudo just took place. \\[result\\]"] pub struct Sudid { pub sudo_result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, @@ -4632,19 +3872,16 @@ pub mod api { const EVENT: &'static str = "Sudid"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The \[sudoer\] just switched identity; the old key is supplied if one existed. + #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] pub struct KeyChanged { pub old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, } @@ -4653,19 +3890,16 @@ pub mod api { const EVENT: &'static str = "KeyChanged"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A sudo just took place. \[result\] + #[doc = "A sudo just took place. \\[result\\]"] pub struct SudoAsDone { pub sudo_result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, @@ -4679,7 +3913,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The `AccountId` of the sudo key. + #[doc = " The `AccountId` of the sudo key."] pub fn key( &self, ) -> ::subxt::storage::address::Address< @@ -4709,9 +3943,9 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Series of block headers from the last 81 blocks that acts as random seed - /// material. This is arranged as a ring buffer with `block_number % 81` being the - /// index into the `Vec` of the oldest hash. + #[doc = " Series of block headers from the last 81 blocks that acts as random seed material. This"] + #[doc = " is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of"] + #[doc = " the oldest hash."] pub fn random_material( &self, ) -> ::subxt::storage::address::Address< @@ -4740,9 +3974,9 @@ pub mod api { } pub mod balances { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_balances::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_balances::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -4750,16 +3984,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferAllowDeath { @@ -4775,16 +4006,13 @@ pub mod api { const CALL: &'static str = "transfer_allow_death"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetBalanceDeprecated { @@ -4802,16 +4030,13 @@ pub mod api { const CALL: &'static str = "set_balance_deprecated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceTransfer { @@ -4831,16 +4056,13 @@ pub mod api { const CALL: &'static str = "force_transfer"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferKeepAlive { @@ -4856,16 +4078,13 @@ pub mod api { const CALL: &'static str = "transfer_keep_alive"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransferAll { @@ -4880,16 +4099,13 @@ pub mod api { const CALL: &'static str = "transfer_all"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnreserve { @@ -4904,16 +4120,13 @@ pub mod api { const CALL: &'static str = "force_unreserve"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpgradeAccounts { @@ -4924,16 +4137,13 @@ pub mod api { const CALL: &'static str = "upgrade_accounts"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Transfer { @@ -4949,16 +4159,13 @@ pub mod api { const CALL: &'static str = "transfer"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetBalance { @@ -4976,7 +4183,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::transfer_allow_death`]. + #[doc = "See [`Pallet::transfer_allow_death`]."] pub fn transfer_allow_death( &self, dest: ::subxt::utils::MultiAddress< @@ -4997,7 +4204,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_balance_deprecated`]. + #[doc = "See [`Pallet::set_balance_deprecated`]."] pub fn set_balance_deprecated( &self, who: ::subxt::utils::MultiAddress< @@ -5019,7 +4226,7 @@ pub mod api { ], ) } - ///See [`Pallet::force_transfer`]. + #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, source: ::subxt::utils::MultiAddress< @@ -5043,7 +4250,7 @@ pub mod api { ], ) } - ///See [`Pallet::transfer_keep_alive`]. + #[doc = "See [`Pallet::transfer_keep_alive`]."] pub fn transfer_keep_alive( &self, dest: ::subxt::utils::MultiAddress< @@ -5064,7 +4271,7 @@ pub mod api { ], ) } - ///See [`Pallet::transfer_all`]. + #[doc = "See [`Pallet::transfer_all`]."] pub fn transfer_all( &self, dest: ::subxt::utils::MultiAddress< @@ -5085,7 +4292,7 @@ pub mod api { ], ) } - ///See [`Pallet::force_unreserve`]. + #[doc = "See [`Pallet::force_unreserve`]."] pub fn force_unreserve( &self, who: ::subxt::utils::MultiAddress< @@ -5105,7 +4312,7 @@ pub mod api { ], ) } - ///See [`Pallet::upgrade_accounts`]. + #[doc = "See [`Pallet::upgrade_accounts`]."] pub fn upgrade_accounts( &self, who: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -5121,7 +4328,7 @@ pub mod api { ], ) } - ///See [`Pallet::transfer`]. + #[doc = "See [`Pallet::transfer`]."] pub fn transfer( &self, dest: ::subxt::utils::MultiAddress< @@ -5142,7 +4349,7 @@ pub mod api { ], ) } - ///See [`Pallet::force_set_balance`]. + #[doc = "See [`Pallet::force_set_balance`]."] pub fn force_set_balance( &self, who: ::subxt::utils::MultiAddress< @@ -5165,24 +4372,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_balances::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account was created with some free balance. + #[doc = "An account was created with some free balance."] pub struct Endowed { pub account: ::subxt::utils::AccountId32, pub free_balance: ::core::primitive::u128, @@ -5192,20 +4396,17 @@ pub mod api { const EVENT: &'static str = "Endowed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account was removed whose balance was non-zero but below ExistentialDeposit, - ///resulting in an outright loss. + #[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::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5215,19 +4416,16 @@ pub mod api { const EVENT: &'static str = "DustLost"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Transfer succeeded. + #[doc = "Transfer succeeded."] pub struct Transfer { pub from: ::subxt::utils::AccountId32, pub to: ::subxt::utils::AccountId32, @@ -5238,19 +4436,16 @@ pub mod api { const EVENT: &'static str = "Transfer"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A balance was set by root. + #[doc = "A balance was set by root."] pub struct BalanceSet { pub who: ::subxt::utils::AccountId32, pub free: ::core::primitive::u128, @@ -5260,19 +4455,16 @@ pub mod api { const EVENT: &'static str = "BalanceSet"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some balance was reserved (moved from free to reserved). + #[doc = "Some balance was reserved (moved from free to reserved)."] pub struct Reserved { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5282,19 +4474,16 @@ pub mod api { const EVENT: &'static str = "Reserved"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some balance was unreserved (moved from reserved to free). + #[doc = "Some balance was unreserved (moved from reserved to free)."] pub struct Unreserved { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5304,20 +4493,17 @@ pub mod api { const EVENT: &'static str = "Unreserved"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some balance was moved from the reserve of the first account to the second account. - ///Final argument indicates the destination balance type. + #[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::utils::AccountId32, pub to: ::subxt::utils::AccountId32, @@ -5330,19 +4516,16 @@ pub mod api { const EVENT: &'static str = "ReserveRepatriated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some amount was deposited (e.g. for transaction fees). + #[doc = "Some amount was deposited (e.g. for transaction fees)."] pub struct Deposit { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5352,19 +4535,16 @@ pub mod api { const EVENT: &'static str = "Deposit"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some amount was withdrawn from the account (e.g. for transaction fees). + #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] pub struct Withdraw { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5374,19 +4554,16 @@ pub mod api { const EVENT: &'static str = "Withdraw"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some amount was removed from the account (e.g. for misbehavior). + #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] pub struct Slashed { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5396,19 +4573,16 @@ pub mod api { const EVENT: &'static str = "Slashed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some amount was minted into an account. + #[doc = "Some amount was minted into an account."] pub struct Minted { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5418,19 +4592,16 @@ pub mod api { const EVENT: &'static str = "Minted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some amount was burned from an account. + #[doc = "Some amount was burned from an account."] pub struct Burned { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5440,19 +4611,16 @@ pub mod api { const EVENT: &'static str = "Burned"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some amount was suspended from an account (it can be restored later). + #[doc = "Some amount was suspended from an account (it can be restored later)."] pub struct Suspended { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5462,19 +4630,16 @@ pub mod api { const EVENT: &'static str = "Suspended"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some amount was restored into an account. + #[doc = "Some amount was restored into an account."] pub struct Restored { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5484,19 +4649,16 @@ pub mod api { const EVENT: &'static str = "Restored"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account was upgraded. + #[doc = "An account was upgraded."] pub struct Upgraded { pub who: ::subxt::utils::AccountId32, } @@ -5505,20 +4667,17 @@ pub mod api { const EVENT: &'static str = "Upgraded"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Total issuance was increased by `amount`, creating a credit to be balanced. + #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] pub struct Issued { pub amount: ::core::primitive::u128, } @@ -5527,20 +4686,17 @@ pub mod api { const EVENT: &'static str = "Issued"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Total issuance was decreased by `amount`, creating a debt to be balanced. + #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] pub struct Rescinded { pub amount: ::core::primitive::u128, } @@ -5549,19 +4705,16 @@ pub mod api { const EVENT: &'static str = "Rescinded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some balance was locked. + #[doc = "Some balance was locked."] pub struct Locked { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5571,19 +4724,16 @@ pub mod api { const EVENT: &'static str = "Locked"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some balance was unlocked. + #[doc = "Some balance was unlocked."] pub struct Unlocked { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5593,19 +4743,16 @@ pub mod api { const EVENT: &'static str = "Unlocked"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some balance was frozen. + #[doc = "Some balance was frozen."] pub struct Frozen { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5615,19 +4762,16 @@ pub mod api { const EVENT: &'static str = "Frozen"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some balance was thawed. + #[doc = "Some balance was thawed."] pub struct Thawed { pub who: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -5641,7 +4785,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The total units issued in the system. + #[doc = " The total units issued in the system."] pub fn total_issuance( &self, ) -> ::subxt::storage::address::Address< @@ -5663,7 +4807,7 @@ pub mod api { ], ) } - /// The total units of outstanding deactivated balance in the system. + #[doc = " The total units of outstanding deactivated balance in the system."] pub fn inactive_issuance( &self, ) -> ::subxt::storage::address::Address< @@ -5684,31 +4828,30 @@ pub mod api { ], ) } - /// The Balances pallet example of storing the balance of an account. - /// - /// # Example - /// - /// ```nocompile - /// impl pallet_balances::Config for Runtime { - /// type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData> - /// } - /// ``` - /// - /// You can also store the balance of an account in the `System` pallet. - /// - /// # Example - /// - /// ```nocompile - /// impl pallet_balances::Config for Runtime { - /// type AccountStore = System - /// } - /// ``` - /// - /// But this comes with tradeoffs, storing account balances in the system pallet - /// stores `frame_system` data alongside the account data contrary to storing - /// account balances in the `Balances` pallet, which uses a `StorageMap` to store - /// balances data only. NOTE: This is only used in the case that this pallet is used - /// to store balances. + #[doc = " The Balances pallet example of storing the balance of an account."] + #[doc = ""] + #[doc = " # Example"] + #[doc = ""] + #[doc = " ```nocompile"] + #[doc = " impl pallet_balances::Config for Runtime {"] + #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] + #[doc = " }"] + #[doc = " ```"] + #[doc = ""] + #[doc = " You can also store the balance of an account in the `System` pallet."] + #[doc = ""] + #[doc = " # Example"] + #[doc = ""] + #[doc = " ```nocompile"] + #[doc = " impl pallet_balances::Config for Runtime {"] + #[doc = " type AccountStore = System"] + #[doc = " }"] + #[doc = " ```"] + #[doc = ""] + #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] + #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] + #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] + #[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::utils::AccountId32>, @@ -5730,31 +4873,30 @@ pub mod api { ], ) } - /// The Balances pallet example of storing the balance of an account. - /// - /// # Example - /// - /// ```nocompile - /// impl pallet_balances::Config for Runtime { - /// type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData> - /// } - /// ``` - /// - /// You can also store the balance of an account in the `System` pallet. - /// - /// # Example - /// - /// ```nocompile - /// impl pallet_balances::Config for Runtime { - /// type AccountStore = System - /// } - /// ``` - /// - /// But this comes with tradeoffs, storing account balances in the system pallet - /// stores `frame_system` data alongside the account data contrary to storing - /// account balances in the `Balances` pallet, which uses a `StorageMap` to store - /// balances data only. NOTE: This is only used in the case that this pallet is used - /// to store balances. + #[doc = " The Balances pallet example of storing the balance of an account."] + #[doc = ""] + #[doc = " # Example"] + #[doc = ""] + #[doc = " ```nocompile"] + #[doc = " impl pallet_balances::Config for Runtime {"] + #[doc = " type AccountStore = StorageMapShim, frame_system::Provider, AccountId, Self::AccountData>"] + #[doc = " }"] + #[doc = " ```"] + #[doc = ""] + #[doc = " You can also store the balance of an account in the `System` pallet."] + #[doc = ""] + #[doc = " # Example"] + #[doc = ""] + #[doc = " ```nocompile"] + #[doc = " impl pallet_balances::Config for Runtime {"] + #[doc = " type AccountStore = System"] + #[doc = " }"] + #[doc = " ```"] + #[doc = ""] + #[doc = " But this comes with tradeoffs, storing account balances in the system pallet stores"] + #[doc = " `frame_system` data alongside the account data contrary to storing account balances in the"] + #[doc = " `Balances` pallet, which uses a `StorageMap` to store balances data only."] + #[doc = " NOTE: This is only used in the case that this pallet is used to store balances."] pub fn account_root( &self, ) -> ::subxt::storage::address::Address< @@ -5775,8 +4917,8 @@ pub mod api { ], ) } - /// Any liquidity locks on some account balances. - /// NOTE: Should only be accessed when setting, changing and freeing a lock. + #[doc = " Any liquidity locks on some account balances."] + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -5800,8 +4942,8 @@ pub mod api { ], ) } - /// Any liquidity locks on some account balances. - /// NOTE: Should only be accessed when setting, changing and freeing a lock. + #[doc = " Any liquidity locks on some account balances."] + #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root( &self, ) -> ::subxt::storage::address::Address< @@ -5824,7 +4966,7 @@ pub mod api { ], ) } - /// Named reserves on some account balances. + #[doc = " Named reserves on some account balances."] pub fn reserves( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -5851,7 +4993,7 @@ pub mod api { ], ) } - /// Named reserves on some account balances. + #[doc = " Named reserves on some account balances."] pub fn reserves_root( &self, ) -> ::subxt::storage::address::Address< @@ -5877,7 +5019,7 @@ pub mod api { ], ) } - /// Holds on account balances. + #[doc = " Holds on account balances."] pub fn holds( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -5904,7 +5046,7 @@ pub mod api { ], ) } - /// Holds on account balances. + #[doc = " Holds on account balances."] pub fn holds_root( &self, ) -> ::subxt::storage::address::Address< @@ -5930,7 +5072,7 @@ pub mod api { ], ) } - /// Freeze locks on account balances. + #[doc = " Freeze locks on account balances."] pub fn freezes( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -5957,7 +5099,7 @@ pub mod api { ], ) } - /// Freeze locks on account balances. + #[doc = " Freeze locks on account balances."] pub fn freezes_root( &self, ) -> ::subxt::storage::address::Address< @@ -5989,14 +5131,14 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! - /// - /// If you *really* need it to be zero, you can enable the feature - /// `insecure_zero_ed` for this pallet. However, you do so at your own risk: this - /// will open up a major DoS vector. In case you have multiple sources of provider - /// references, you may also get unexpected behaviour if you set this to zero. - /// - /// Bottom line: Do yourself a favour and make it at least one! + #[doc = " The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!"] + #[doc = ""] + #[doc = " If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for"] + #[doc = " this pallet. However, you do so at your own risk: this will open up a major DoS vector."] + #[doc = " In case you have multiple sources of provider references, you may also get unexpected"] + #[doc = " behaviour if you set this to zero."] + #[doc = ""] + #[doc = " Bottom line: Do yourself a favour and make it at least one!"] pub fn existential_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -6010,8 +5152,8 @@ pub mod api { ], ) } - /// The maximum number of locks that should exist on an account. - /// Not strictly enforced, but used for weight estimation. + #[doc = " The maximum number of locks that should exist on an account."] + #[doc = " Not strictly enforced, but used for weight estimation."] pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Balances", @@ -6024,7 +5166,7 @@ pub mod api { ], ) } - /// The maximum number of named reserves that can exist on an account. + #[doc = " The maximum number of named reserves that can exist on an account."] pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Balances", @@ -6037,7 +5179,7 @@ pub mod api { ], ) } - /// The maximum number of holds that can exist on an account at any time. + #[doc = " The maximum number of holds that can exist on an account at any time."] pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Balances", @@ -6050,8 +5192,7 @@ pub mod api { ], ) } - /// The maximum number of individual freeze locks that can exist on an account at - /// any time. + #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."] pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Balances", @@ -6069,25 +5210,22 @@ pub mod api { } pub mod transaction_payment { use super::{root_mod, runtime_types}; - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_transaction_payment::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion - /// fee, has been paid by `who`. + #[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::utils::AccountId32, pub actual_fee: ::core::primitive::u128, @@ -6150,28 +5288,27 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost - /// their `priority` - /// - /// This value is multipled by the `final_fee` to obtain a "virtual tip" that is - /// later added to a tip component in regular `priority` calculations. - /// It means that a `Normal` transaction can front-run a similarly-sized - /// `Operational` extrinsic (with no tip), by including a tip value greater than the - /// virtual tip. - /// - /// ```rust,ignore - /// // For `Normal` - /// let priority = priority_calc(tip); - /// - /// // For `Operational` - /// let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier; - /// let priority = priority_calc(tip + virtual_tip); - /// ``` - /// - /// Note that since we use `final_fee` the multiplier applies also to the regular - /// `tip` sent with the transaction. So, not only does the transaction get a - /// priority bump based on the `inclusion_fee`, but we also amplify the impact of - /// tips applied to `Operational` transactions. + #[doc = " A fee mulitplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] + #[doc = " `priority`"] + #[doc = ""] + #[doc = " This value is multipled by the `final_fee` to obtain a \"virtual tip\" that is later"] + #[doc = " added to a tip component in regular `priority` calculations."] + #[doc = " It means that a `Normal` transaction can front-run a similarly-sized `Operational`"] + #[doc = " extrinsic (with no tip), by including a tip value greater than the virtual tip."] + #[doc = ""] + #[doc = " ```rust,ignore"] + #[doc = " // For `Normal`"] + #[doc = " let priority = priority_calc(tip);"] + #[doc = ""] + #[doc = " // For `Operational`"] + #[doc = " let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;"] + #[doc = " let priority = priority_calc(tip + virtual_tip);"] + #[doc = " ```"] + #[doc = ""] + #[doc = " Note that since we use `final_fee` the multiplier applies also to the regular `tip`"] + #[doc = " sent with the transaction. So, not only does the transaction get a priority bump based"] + #[doc = " on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`"] + #[doc = " transactions."] pub fn operational_fee_multiplier( &self, ) -> ::subxt::constants::Address<::core::primitive::u8> { @@ -6195,7 +5332,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Author of current block. + #[doc = " Author of current block."] pub fn author( &self, ) -> ::subxt::storage::address::Address< @@ -6222,9 +5359,9 @@ pub mod api { } pub mod babe { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_babe::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_babe::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -6232,16 +5369,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocation { @@ -6260,16 +5394,13 @@ pub mod api { const CALL: &'static str = "report_equivocation"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocationUnsigned { @@ -6288,16 +5419,13 @@ pub mod api { const CALL: &'static str = "report_equivocation_unsigned"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PlanConfigChange { @@ -6310,7 +5438,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::report_equivocation`]. + #[doc = "See [`Pallet::report_equivocation`]."] pub fn report_equivocation( &self, equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< @@ -6333,7 +5461,7 @@ pub mod api { ], ) } - ///See [`Pallet::report_equivocation_unsigned`]. + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< @@ -6357,7 +5485,7 @@ pub mod api { ], ) } - ///See [`Pallet::plan_config_change`]. + #[doc = "See [`Pallet::plan_config_change`]."] pub fn plan_config_change( &self, config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, @@ -6380,7 +5508,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Current epoch index. + #[doc = " Current epoch index."] pub fn epoch_index( &self, ) -> ::subxt::storage::address::Address< @@ -6402,7 +5530,7 @@ pub mod api { ], ) } - /// Current epoch authorities. + #[doc = " Current epoch authorities."] pub fn authorities( &self, ) -> ::subxt::storage::address::Address< @@ -6427,8 +5555,8 @@ pub mod api { ], ) } - /// The slot at which the first epoch actually started. This is 0 - /// until the first block of the chain. + #[doc = " The slot at which the first epoch actually started. This is 0"] + #[doc = " until the first block of the chain."] pub fn genesis_slot( &self, ) -> ::subxt::storage::address::Address< @@ -6450,7 +5578,7 @@ pub mod api { ], ) } - /// Current slot number. + #[doc = " Current slot number."] pub fn current_slot( &self, ) -> ::subxt::storage::address::Address< @@ -6472,16 +5600,16 @@ pub mod api { ], ) } - /// The epoch randomness for the *current* epoch. - /// - /// # Security - /// - /// This MUST NOT be used for gambling, as it can be influenced by a - /// malicious validator in the short term. It MAY be used in many - /// cryptographic protocols, however, so long as one remembers that this - /// (like everything else on-chain) it is public. For example, it can be - /// used where a number is needed that cannot have been chosen by an - /// adversary, for purposes such as public-coin zero-knowledge proofs. + #[doc = " The epoch randomness for the *current* epoch."] + #[doc = ""] + #[doc = " # Security"] + #[doc = ""] + #[doc = " This MUST NOT be used for gambling, as it can be influenced by a"] + #[doc = " malicious validator in the short term. It MAY be used in many"] + #[doc = " cryptographic protocols, however, so long as one remembers that this"] + #[doc = " (like everything else on-chain) it is public. For example, it can be"] + #[doc = " used where a number is needed that cannot have been chosen by an"] + #[doc = " adversary, for purposes such as public-coin zero-knowledge proofs."] pub fn randomness( &self, ) -> ::subxt::storage::address::Address< @@ -6503,8 +5631,7 @@ pub mod api { ], ) } - /// Pending epoch configuration change that will be applied when the next epoch is - /// enacted. + #[doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] pub fn pending_epoch_config_change( &self, ) -> ::subxt::storage::address::Address< @@ -6525,7 +5652,7 @@ pub mod api { ], ) } - /// Next epoch randomness. + #[doc = " Next epoch randomness."] pub fn next_randomness( &self, ) -> ::subxt::storage::address::Address< @@ -6546,7 +5673,7 @@ pub mod api { ], ) } - /// Next epoch authorities. + #[doc = " Next epoch authorities."] pub fn next_authorities( &self, ) -> ::subxt::storage::address::Address< @@ -6571,15 +5698,15 @@ pub mod api { ], ) } - /// Randomness under construction. - /// - /// We make a trade-off between storage accesses and list length. - /// We store the under-construction randomness in segments of up to - /// `UNDER_CONSTRUCTION_SEGMENT_LENGTH`. - /// - /// Once a segment reaches this length, we begin the next one. - /// We reset all segments and return to `0` at the beginning of every - /// epoch. + #[doc = " Randomness under construction."] + #[doc = ""] + #[doc = " We make a trade-off between storage accesses and list length."] + #[doc = " We store the under-construction randomness in segments of up to"] + #[doc = " `UNDER_CONSTRUCTION_SEGMENT_LENGTH`."] + #[doc = ""] + #[doc = " Once a segment reaches this length, we begin the next one."] + #[doc = " We reset all segments and return to `0` at the beginning of every"] + #[doc = " epoch."] pub fn segment_index( &self, ) -> ::subxt::storage::address::Address< @@ -6601,7 +5728,7 @@ pub mod api { ], ) } - /// TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay. + #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -6625,7 +5752,7 @@ pub mod api { ], ) } - /// TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay. + #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction_root( &self, ) -> ::subxt::storage::address::Address< @@ -6648,8 +5775,8 @@ pub mod api { ], ) } - /// Temporary value (cleared at block finalization) which is `Some` - /// if per-block initialization has already been called for current block. + #[doc = " Temporary value (cleared at block finalization) which is `Some`"] + #[doc = " if per-block initialization has already been called for current block."] pub fn initialized( &self, ) -> ::subxt::storage::address::Address< @@ -6670,11 +5797,10 @@ pub mod api { ], ) } - /// This field should always be populated during block processing unless - /// secondary plain slots are enabled (which don't contain a VRF output). - /// - /// It is set in `on_finalize`, before it will contain the value from the last - /// block. + #[doc = " This field should always be populated during block processing unless"] + #[doc = " secondary plain slots are enabled (which don't contain a VRF output)."] + #[doc = ""] + #[doc = " It is set in `on_finalize`, before it will contain the value from the last block."] pub fn author_vrf_randomness( &self, ) -> ::subxt::storage::address::Address< @@ -6696,12 +5822,11 @@ pub mod api { ], ) } - /// The block numbers when the last and current epoch have started, respectively - /// `N-1` and `N`. - /// NOTE: We track this is in order to annotate the block number when a given pool - /// of entropy was fixed (i.e. it was known to chain observers). Since epochs are - /// defined in slots, which may be skipped, the block numbers may not line up with - /// the slot numbers. + #[doc = " The block numbers when the last and current epoch have started, respectively `N-1` and"] + #[doc = " `N`."] + #[doc = " NOTE: We track this is in order to annotate the block number when a given pool of"] + #[doc = " entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in"] + #[doc = " slots, which may be skipped, the block numbers may not line up with the slot numbers."] pub fn epoch_start( &self, ) -> ::subxt::storage::address::Address< @@ -6722,11 +5847,11 @@ pub mod api { ], ) } - /// How late the current block is compared to its parent. - /// - /// This entry is populated as part of block execution and is cleaned up - /// on block finalization. Querying this storage entry outside of block - /// execution context should always yield zero. + #[doc = " How late the current block is compared to its parent."] + #[doc = ""] + #[doc = " This entry is populated as part of block execution and is cleaned up"] + #[doc = " on block finalization. Querying this storage entry outside of block"] + #[doc = " execution context should always yield zero."] pub fn lateness( &self, ) -> ::subxt::storage::address::Address< @@ -6747,8 +5872,8 @@ pub mod api { ], ) } - /// The configuration for the current epoch. Should never be `None` as it is - /// initialized in genesis. + #[doc = " The configuration for the current epoch. Should never be `None` as it is initialized in"] + #[doc = " genesis."] pub fn epoch_config( &self, ) -> ::subxt::storage::address::Address< @@ -6770,8 +5895,8 @@ pub mod api { ], ) } - /// The configuration for the next epoch, `None` if the config will not change - /// (you can fallback to `EpochConfig` instead in that case). + #[doc = " The configuration for the next epoch, `None` if the config will not change"] + #[doc = " (you can fallback to `EpochConfig` instead in that case)."] pub fn next_epoch_config( &self, ) -> ::subxt::storage::address::Address< @@ -6793,14 +5918,14 @@ pub mod api { ], ) } - /// A list of the last 100 skipped epochs and the corresponding session index - /// when the epoch was skipped. - /// - /// This is only used for validating equivocation proofs. An equivocation proof - /// must contains a key-ownership proof for a given session, therefore we need a - /// way to tie together sessions and epoch indices, i.e. we need to validate that - /// a validator was the owner of a given key on a given session, and what the - /// active epoch index was during that session. + #[doc = " A list of the last 100 skipped epochs and the corresponding session index"] + #[doc = " when the epoch was skipped."] + #[doc = ""] + #[doc = " This is only used for validating equivocation proofs. An equivocation proof"] + #[doc = " must contains a key-ownership proof for a given session, therefore we need a"] + #[doc = " way to tie together sessions and epoch indices, i.e. we need to validate that"] + #[doc = " a validator was the owner of a given key on a given session, and what the"] + #[doc = " active epoch index was during that session."] pub fn skipped_epochs( &self, ) -> ::subxt::storage::address::Address< @@ -6830,9 +5955,9 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The amount of time, in slots, that each epoch should last. - /// NOTE: Currently it is not possible to change the epoch duration after - /// the chain has started. Attempting to do so will brick block production. + #[doc = " The amount of time, in slots, that each epoch should last."] + #[doc = " NOTE: Currently it is not possible to change the epoch duration after"] + #[doc = " the chain has started. Attempting to do so will brick block production."] pub fn epoch_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -6847,11 +5972,11 @@ pub mod api { ], ) } - /// The expected average block time at which BABE should be creating - /// blocks. Since BABE is probabilistic it is not trivial to figure out - /// what the expected average block time should be based on the slot - /// duration and the security parameter `c` (where `1 - c` represents - /// the probability of a slot being empty). + #[doc = " The expected average block time at which BABE should be creating"] + #[doc = " blocks. Since BABE is probabilistic it is not trivial to figure out"] + #[doc = " what the expected average block time should be based on the slot"] + #[doc = " duration and the security parameter `c` (where `1 - c` represents"] + #[doc = " the probability of a slot being empty)."] pub fn expected_block_time( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -6866,7 +5991,7 @@ pub mod api { ], ) } - /// Max number of authorities allowed + #[doc = " Max number of authorities allowed"] pub fn max_authorities( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -6881,7 +6006,7 @@ pub mod api { ], ) } - /// The maximum number of nominators for each validator. + #[doc = " The maximum number of nominators for each validator."] pub fn max_nominators( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -6901,9 +6026,9 @@ pub mod api { } pub mod grandpa { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_grandpa::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_grandpa::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -6911,16 +6036,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocation { @@ -6937,16 +6059,13 @@ pub mod api { const CALL: &'static str = "report_equivocation"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocationUnsigned { @@ -6963,16 +6082,13 @@ pub mod api { const CALL: &'static str = "report_equivocation_unsigned"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NoteStalled { @@ -6986,7 +6102,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::report_equivocation`]. + #[doc = "See [`Pallet::report_equivocation`]."] pub fn report_equivocation( &self, equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -7009,7 +6125,7 @@ pub mod api { ], ) } - ///See [`Pallet::report_equivocation_unsigned`]. + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -7033,7 +6149,7 @@ pub mod api { ], ) } - ///See [`Pallet::note_stalled`]. + #[doc = "See [`Pallet::note_stalled`]."] pub fn note_stalled( &self, delay: ::core::primitive::u64, @@ -7053,24 +6169,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_grandpa::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///New authority set has been applied. + #[doc = "New authority set has been applied."] pub struct NewAuthorities { pub authority_set: ::std::vec::Vec<( runtime_types::sp_consensus_grandpa::app::Public, @@ -7082,38 +6195,32 @@ pub mod api { const EVENT: &'static str = "NewAuthorities"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Current authority set has been paused. + #[doc = "Current authority set has been paused."] pub struct Paused; impl ::subxt::events::StaticEvent for Paused { const PALLET: &'static str = "Grandpa"; const EVENT: &'static str = "Paused"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Current authority set has been resumed. + #[doc = "Current authority set has been resumed."] pub struct Resumed; impl ::subxt::events::StaticEvent for Resumed { const PALLET: &'static str = "Grandpa"; @@ -7124,7 +6231,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// State of the current authority set. + #[doc = " State of the current authority set."] pub fn state( &self, ) -> ::subxt::storage::address::Address< @@ -7145,7 +6252,7 @@ pub mod api { ], ) } - /// Pending change: (signaled at, scheduled change). + #[doc = " Pending change: (signaled at, scheduled change)."] pub fn pending_change( &self, ) -> ::subxt::storage::address::Address< @@ -7167,7 +6274,7 @@ pub mod api { ], ) } - /// next block number where we can force a change. + #[doc = " next block number where we can force a change."] pub fn next_forced( &self, ) -> ::subxt::storage::address::Address< @@ -7189,7 +6296,7 @@ pub mod api { ], ) } - /// `true` if we are currently stalled. + #[doc = " `true` if we are currently stalled."] pub fn stalled( &self, ) -> ::subxt::storage::address::Address< @@ -7210,8 +6317,8 @@ pub mod api { ], ) } - /// The number of changes (both in terms of keys and underlying economic - /// responsibilities) in the "set" of Grandpa validators from genesis. + #[doc = " The number of changes (both in terms of keys and underlying economic responsibilities)"] + #[doc = " in the \"set\" of Grandpa validators from genesis."] pub fn current_set_id( &self, ) -> ::subxt::storage::address::Address< @@ -7233,16 +6340,16 @@ pub mod api { ], ) } - /// A mapping from grandpa set ID to the index of the *most recent* session for - /// which its members were responsible. - /// - /// This is only used for validating equivocation proofs. An equivocation proof must - /// contains a key-ownership proof for a given session, therefore we need a way to - /// tie together sessions and GRANDPA set ids, i.e. we need to validate that a - /// validator was the owner of a given key on a given session, and what the active - /// set ID was during that session. - /// - /// TWOX-NOTE: `SetId` is not under user control. + #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] + #[doc = " members were responsible."] + #[doc = ""] + #[doc = " This is only used for validating equivocation proofs. An equivocation proof must"] + #[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] + #[doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"] + #[doc = " was the owner of a given key on a given session, and what the active set ID was"] + #[doc = " during that session."] + #[doc = ""] + #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u64>, @@ -7264,16 +6371,16 @@ pub mod api { ], ) } - /// A mapping from grandpa set ID to the index of the *most recent* session for - /// which its members were responsible. - /// - /// This is only used for validating equivocation proofs. An equivocation proof must - /// contains a key-ownership proof for a given session, therefore we need a way to - /// tie together sessions and GRANDPA set ids, i.e. we need to validate that a - /// validator was the owner of a given key on a given session, and what the active - /// set ID was during that session. - /// - /// TWOX-NOTE: `SetId` is not under user control. + #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] + #[doc = " members were responsible."] + #[doc = ""] + #[doc = " This is only used for validating equivocation proofs. An equivocation proof must"] + #[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] + #[doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"] + #[doc = " was the owner of a given key on a given session, and what the active set ID was"] + #[doc = " during that session."] + #[doc = ""] + #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session_root( &self, ) -> ::subxt::storage::address::Address< @@ -7300,7 +6407,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// Max Authorities in use + #[doc = " Max Authorities in use"] pub fn max_authorities( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -7315,7 +6422,7 @@ pub mod api { ], ) } - /// The maximum number of nominators for each validator. + #[doc = " The maximum number of nominators for each validator."] pub fn max_nominators( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -7330,12 +6437,12 @@ pub mod api { ], ) } - /// The maximum number of entries to keep in the set id to session index mapping. - /// - /// Since the `SetIdSession` map is only used for validating equivocations this - /// value should relate to the bonding duration of whatever staking system is - /// being used (if any). If equivocation handling is not enabled then this value - /// can be zero. + #[doc = " The maximum number of entries to keep in the set id to session index mapping."] + #[doc = ""] + #[doc = " Since the `SetIdSession` map is only used for validating equivocations this"] + #[doc = " value should relate to the bonding duration of whatever staking system is"] + #[doc = " being used (if any). If equivocation handling is not enabled then this value"] + #[doc = " can be zero."] pub fn max_set_id_session_entries( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -7355,9 +6462,9 @@ pub mod api { } pub mod indices { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_indices::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_indices::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -7365,17 +6472,14 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Claim { @@ -7386,16 +6490,13 @@ pub mod api { const CALL: &'static str = "claim"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Transfer { @@ -7410,17 +6511,14 @@ pub mod api { const CALL: &'static str = "transfer"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Free { @@ -7431,16 +6529,13 @@ pub mod api { const CALL: &'static str = "free"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceTransfer { @@ -7456,17 +6551,14 @@ pub mod api { const CALL: &'static str = "force_transfer"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Freeze { @@ -7479,7 +6571,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::claim`]. + #[doc = "See [`Pallet::claim`]."] pub fn claim( &self, index: ::core::primitive::u32, @@ -7495,7 +6587,7 @@ pub mod api { ], ) } - ///See [`Pallet::transfer`]. + #[doc = "See [`Pallet::transfer`]."] pub fn transfer( &self, new: ::subxt::utils::MultiAddress< @@ -7516,7 +6608,7 @@ pub mod api { ], ) } - ///See [`Pallet::free`]. + #[doc = "See [`Pallet::free`]."] pub fn free( &self, index: ::core::primitive::u32, @@ -7533,7 +6625,7 @@ pub mod api { ], ) } - ///See [`Pallet::force_transfer`]. + #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, new: ::subxt::utils::MultiAddress< @@ -7555,7 +6647,7 @@ pub mod api { ], ) } - ///See [`Pallet::freeze`]. + #[doc = "See [`Pallet::freeze`]."] pub fn freeze( &self, index: ::core::primitive::u32, @@ -7574,24 +6666,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_indices::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A account index was assigned. + #[doc = "A account index was assigned."] pub struct IndexAssigned { pub who: ::subxt::utils::AccountId32, pub index: ::core::primitive::u32, @@ -7601,20 +6690,17 @@ pub mod api { const EVENT: &'static str = "IndexAssigned"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A account index has been freed up (unassigned). + #[doc = "A account index has been freed up (unassigned)."] pub struct IndexFreed { pub index: ::core::primitive::u32, } @@ -7623,19 +6709,16 @@ pub mod api { const EVENT: &'static str = "IndexFreed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A account index has been frozen to its current account ID. + #[doc = "A account index has been frozen to its current account ID."] pub struct IndexFrozen { pub index: ::core::primitive::u32, pub who: ::subxt::utils::AccountId32, @@ -7649,7 +6732,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The lookup from index to account. + #[doc = " The lookup from index to account."] pub fn accounts( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -7672,7 +6755,7 @@ pub mod api { ], ) } - /// The lookup from index to account. + #[doc = " The lookup from index to account."] pub fn accounts_root( &self, ) -> ::subxt::storage::address::Address< @@ -7700,7 +6783,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The deposit needed for reserving an index. + #[doc = " The deposit needed for reserving an index."] pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Indices", @@ -7717,9 +6800,9 @@ pub mod api { } pub mod democracy { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_democracy::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_democracy::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -7727,16 +6810,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Propose { @@ -7751,16 +6831,13 @@ pub mod api { const CALL: &'static str = "propose"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Second { @@ -7772,16 +6849,13 @@ pub mod api { const CALL: &'static str = "second"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote { @@ -7795,17 +6869,14 @@ pub mod api { const CALL: &'static str = "vote"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EmergencyCancel { @@ -7816,16 +6887,13 @@ pub mod api { const CALL: &'static str = "emergency_cancel"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExternalPropose { @@ -7838,16 +6906,13 @@ pub mod api { const CALL: &'static str = "external_propose"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExternalProposeMajority { @@ -7860,16 +6925,13 @@ pub mod api { const CALL: &'static str = "external_propose_majority"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExternalProposeDefault { @@ -7882,16 +6944,13 @@ pub mod api { const CALL: &'static str = "external_propose_default"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FastTrack { @@ -7904,16 +6963,13 @@ pub mod api { const CALL: &'static str = "fast_track"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VetoExternal { @@ -7924,16 +6980,13 @@ pub mod api { const CALL: &'static str = "veto_external"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelReferendum { @@ -7945,16 +6998,13 @@ pub mod api { const CALL: &'static str = "cancel_referendum"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Delegate { @@ -7970,16 +7020,13 @@ pub mod api { const CALL: &'static str = "delegate"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Undelegate; @@ -7988,16 +7035,13 @@ pub mod api { const CALL: &'static str = "undelegate"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearPublicProposals; @@ -8006,16 +7050,13 @@ pub mod api { const CALL: &'static str = "clear_public_proposals"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Unlock { @@ -8029,17 +7070,14 @@ pub mod api { const CALL: &'static str = "unlock"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveVote { @@ -8050,16 +7088,13 @@ pub mod api { const CALL: &'static str = "remove_vote"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveOtherVote { @@ -8074,16 +7109,13 @@ pub mod api { const CALL: &'static str = "remove_other_vote"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Blacklist { @@ -8095,16 +7127,13 @@ pub mod api { const CALL: &'static str = "blacklist"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelProposal { @@ -8116,16 +7145,13 @@ pub mod api { const CALL: &'static str = "cancel_proposal"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMetadata { @@ -8139,7 +7165,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::propose`]. + #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< @@ -8159,7 +7185,7 @@ pub mod api { ], ) } - ///See [`Pallet::second`]. + #[doc = "See [`Pallet::second`]."] pub fn second( &self, proposal: ::core::primitive::u32, @@ -8176,7 +7202,7 @@ pub mod api { ], ) } - ///See [`Pallet::vote`]. + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, ref_index: ::core::primitive::u32, @@ -8195,7 +7221,7 @@ pub mod api { ], ) } - ///See [`Pallet::emergency_cancel`]. + #[doc = "See [`Pallet::emergency_cancel`]."] pub fn emergency_cancel( &self, ref_index: ::core::primitive::u32, @@ -8211,7 +7237,7 @@ pub mod api { ], ) } - ///See [`Pallet::external_propose`]. + #[doc = "See [`Pallet::external_propose`]."] pub fn external_propose( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< @@ -8229,7 +7255,7 @@ pub mod api { ], ) } - ///See [`Pallet::external_propose_majority`]. + #[doc = "See [`Pallet::external_propose_majority`]."] pub fn external_propose_majority( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< @@ -8247,7 +7273,7 @@ pub mod api { ], ) } - ///See [`Pallet::external_propose_default`]. + #[doc = "See [`Pallet::external_propose_default`]."] pub fn external_propose_default( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< @@ -8265,7 +7291,7 @@ pub mod api { ], ) } - ///See [`Pallet::fast_track`]. + #[doc = "See [`Pallet::fast_track`]."] pub fn fast_track( &self, proposal_hash: ::subxt::utils::H256, @@ -8283,7 +7309,7 @@ pub mod api { ], ) } - ///See [`Pallet::veto_external`]. + #[doc = "See [`Pallet::veto_external`]."] pub fn veto_external( &self, proposal_hash: ::subxt::utils::H256, @@ -8300,7 +7326,7 @@ pub mod api { ], ) } - ///See [`Pallet::cancel_referendum`]. + #[doc = "See [`Pallet::cancel_referendum`]."] pub fn cancel_referendum( &self, ref_index: ::core::primitive::u32, @@ -8317,7 +7343,7 @@ pub mod api { ], ) } - ///See [`Pallet::delegate`]. + #[doc = "See [`Pallet::delegate`]."] pub fn delegate( &self, to: ::subxt::utils::MultiAddress< @@ -8338,7 +7364,7 @@ pub mod api { ], ) } - ///See [`Pallet::undelegate`]. + #[doc = "See [`Pallet::undelegate`]."] pub fn undelegate(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -8352,7 +7378,7 @@ pub mod api { ], ) } - ///See [`Pallet::clear_public_proposals`]. + #[doc = "See [`Pallet::clear_public_proposals`]."] pub fn clear_public_proposals( &self, ) -> ::subxt::tx::Payload { @@ -8368,7 +7394,7 @@ pub mod api { ], ) } - ///See [`Pallet::unlock`]. + #[doc = "See [`Pallet::unlock`]."] pub fn unlock( &self, target: ::subxt::utils::MultiAddress< @@ -8388,7 +7414,7 @@ pub mod api { ], ) } - ///See [`Pallet::remove_vote`]. + #[doc = "See [`Pallet::remove_vote`]."] pub fn remove_vote( &self, index: ::core::primitive::u32, @@ -8405,7 +7431,7 @@ pub mod api { ], ) } - ///See [`Pallet::remove_other_vote`]. + #[doc = "See [`Pallet::remove_other_vote`]."] pub fn remove_other_vote( &self, target: ::subxt::utils::MultiAddress< @@ -8425,7 +7451,7 @@ pub mod api { ], ) } - ///See [`Pallet::blacklist`]. + #[doc = "See [`Pallet::blacklist`]."] pub fn blacklist( &self, proposal_hash: ::subxt::utils::H256, @@ -8443,7 +7469,7 @@ pub mod api { ], ) } - ///See [`Pallet::cancel_proposal`]. + #[doc = "See [`Pallet::cancel_proposal`]."] pub fn cancel_proposal( &self, prop_index: ::core::primitive::u32, @@ -8459,7 +7485,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_metadata`]. + #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, owner: runtime_types::pallet_democracy::types::MetadataOwner, @@ -8478,24 +7504,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_democracy::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A motion has been proposed by a public account. + #[doc = "A motion has been proposed by a public account."] pub struct Proposed { pub proposal_index: ::core::primitive::u32, pub deposit: ::core::primitive::u128, @@ -8505,19 +7528,16 @@ pub mod api { const EVENT: &'static str = "Proposed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A public proposal has been tabled for referendum vote. + #[doc = "A public proposal has been tabled for referendum vote."] pub struct Tabled { pub proposal_index: ::core::primitive::u32, pub deposit: ::core::primitive::u128, @@ -8527,38 +7547,32 @@ pub mod api { const EVENT: &'static str = "Tabled"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An external proposal has been tabled. + #[doc = "An external proposal has been tabled."] pub struct ExternalTabled; impl ::subxt::events::StaticEvent for ExternalTabled { const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "ExternalTabled"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A referendum has begun. + #[doc = "A referendum has begun."] pub struct Started { pub ref_index: ::core::primitive::u32, pub threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, @@ -8568,20 +7582,17 @@ pub mod api { const EVENT: &'static str = "Started"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A proposal has been approved by referendum. + #[doc = "A proposal has been approved by referendum."] pub struct Passed { pub ref_index: ::core::primitive::u32, } @@ -8590,20 +7601,17 @@ pub mod api { const EVENT: &'static str = "Passed"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A proposal has been rejected by referendum. + #[doc = "A proposal has been rejected by referendum."] pub struct NotPassed { pub ref_index: ::core::primitive::u32, } @@ -8612,20 +7620,17 @@ pub mod api { const EVENT: &'static str = "NotPassed"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A referendum has been cancelled. + #[doc = "A referendum has been cancelled."] pub struct Cancelled { pub ref_index: ::core::primitive::u32, } @@ -8634,19 +7639,16 @@ pub mod api { const EVENT: &'static str = "Cancelled"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account has delegated their vote to another account. + #[doc = "An account has delegated their vote to another account."] pub struct Delegated { pub who: ::subxt::utils::AccountId32, pub target: ::subxt::utils::AccountId32, @@ -8656,19 +7658,16 @@ pub mod api { const EVENT: &'static str = "Delegated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account has cancelled a previous delegation operation. + #[doc = "An account has cancelled a previous delegation operation."] pub struct Undelegated { pub account: ::subxt::utils::AccountId32, } @@ -8677,19 +7676,16 @@ pub mod api { const EVENT: &'static str = "Undelegated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An external proposal has been vetoed. + #[doc = "An external proposal has been vetoed."] pub struct Vetoed { pub who: ::subxt::utils::AccountId32, pub proposal_hash: ::subxt::utils::H256, @@ -8700,19 +7696,16 @@ pub mod api { const EVENT: &'static str = "Vetoed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A proposal_hash has been blacklisted permanently. + #[doc = "A proposal_hash has been blacklisted permanently."] pub struct Blacklisted { pub proposal_hash: ::subxt::utils::H256, } @@ -8721,19 +7714,16 @@ pub mod api { const EVENT: &'static str = "Blacklisted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account has voted in a referendum + #[doc = "An account has voted in a referendum"] pub struct Voted { pub voter: ::subxt::utils::AccountId32, pub ref_index: ::core::primitive::u32, @@ -8745,19 +7735,16 @@ pub mod api { const EVENT: &'static str = "Voted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account has secconded a proposal + #[doc = "An account has secconded a proposal"] pub struct Seconded { pub seconder: ::subxt::utils::AccountId32, pub prop_index: ::core::primitive::u32, @@ -8767,20 +7754,17 @@ pub mod api { const EVENT: &'static str = "Seconded"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A proposal got canceled. + #[doc = "A proposal got canceled."] pub struct ProposalCanceled { pub prop_index: ::core::primitive::u32, } @@ -8789,19 +7773,16 @@ pub mod api { const EVENT: &'static str = "ProposalCanceled"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Metadata for a proposal or a referendum has been set. + #[doc = "Metadata for a proposal or a referendum has been set."] pub struct MetadataSet { pub owner: runtime_types::pallet_democracy::types::MetadataOwner, pub hash: ::subxt::utils::H256, @@ -8811,19 +7792,16 @@ pub mod api { const EVENT: &'static str = "MetadataSet"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Metadata for a proposal or a referendum has been cleared. + #[doc = "Metadata for a proposal or a referendum has been cleared."] pub struct MetadataCleared { pub owner: runtime_types::pallet_democracy::types::MetadataOwner, pub hash: ::subxt::utils::H256, @@ -8833,19 +7811,16 @@ pub mod api { const EVENT: &'static str = "MetadataCleared"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Metadata has been transferred to new owner. + #[doc = "Metadata has been transferred to new owner."] pub struct MetadataTransferred { pub prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, pub owner: runtime_types::pallet_democracy::types::MetadataOwner, @@ -8860,7 +7835,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The number of (public) proposals that have been made so far. + #[doc = " The number of (public) proposals that have been made so far."] pub fn public_prop_count( &self, ) -> ::subxt::storage::address::Address< @@ -8882,7 +7857,7 @@ pub mod api { ], ) } - /// The public proposals. Unsorted. The second item is the proposal. + #[doc = " The public proposals. Unsorted. The second item is the proposal."] pub fn public_props( &self, ) -> ::subxt::storage::address::Address< @@ -8909,9 +7884,9 @@ pub mod api { ], ) } - /// Those who have locked a deposit. - /// - /// TWOX-NOTE: Safe, as increasing integer keys are safe. + #[doc = " Those who have locked a deposit."] + #[doc = ""] + #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -8938,9 +7913,9 @@ pub mod api { ], ) } - /// Those who have locked a deposit. - /// - /// TWOX-NOTE: Safe, as increasing integer keys are safe. + #[doc = " Those who have locked a deposit."] + #[doc = ""] + #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] pub fn deposit_of_root( &self, ) -> ::subxt::storage::address::Address< @@ -8966,7 +7941,7 @@ pub mod api { ], ) } - /// The next free referendum index, aka the number of referenda started so far. + #[doc = " The next free referendum index, aka the number of referenda started so far."] pub fn referendum_count( &self, ) -> ::subxt::storage::address::Address< @@ -8988,8 +7963,8 @@ pub mod api { ], ) } - /// The lowest referendum index representing an unbaked referendum. Equal to - /// `ReferendumCount` if there isn't a unbaked referendum. + #[doc = " The lowest referendum index representing an unbaked referendum. Equal to"] + #[doc = " `ReferendumCount` if there isn't a unbaked referendum."] pub fn lowest_unbaked( &self, ) -> ::subxt::storage::address::Address< @@ -9010,9 +7985,9 @@ pub mod api { ], ) } - /// Information concerning any given referendum. - /// - /// TWOX-NOTE: SAFE as indexes are not under an attacker’s control. + #[doc = " Information concerning any given referendum."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -9041,9 +8016,9 @@ pub mod api { ], ) } - /// Information concerning any given referendum. - /// - /// TWOX-NOTE: SAFE as indexes are not under an attacker’s control. + #[doc = " Information concerning any given referendum."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] pub fn referendum_info_of_root( &self, ) -> ::subxt::storage::address::Address< @@ -9071,11 +8046,10 @@ pub mod api { ], ) } - /// All votes for a particular voter. We store the balance for the number of votes - /// that we have recorded. The second item is the total amount of delegations, that - /// will be added. - /// - /// TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway. + #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] + #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] pub fn voting_of( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -9101,11 +8075,10 @@ pub mod api { ], ) } - /// All votes for a particular voter. We store the balance for the number of votes - /// that we have recorded. The second item is the total amount of delegations, that - /// will be added. - /// - /// TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway. + #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] + #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway."] pub fn voting_of_root( &self, ) -> ::subxt::storage::address::Address< @@ -9130,8 +8103,8 @@ pub mod api { ], ) } - /// True if the last referendum tabled was submitted externally. False if it was a - /// public proposal. + #[doc = " True if the last referendum tabled was submitted externally. False if it was a public"] + #[doc = " proposal."] pub fn last_tabled_was_external( &self, ) -> ::subxt::storage::address::Address< @@ -9152,11 +8125,10 @@ pub mod api { ], ) } - /// The referendum to be tabled whenever it would be valid to table an external - /// proposal. This happens when a referendum needs to be tabled and one of two - /// conditions are met: - /// - `LastTabledWasExternal` is `false`; or - /// - `PublicProps` is empty. + #[doc = " The referendum to be tabled whenever it would be valid to table an external proposal."] + #[doc = " This happens when a referendum needs to be tabled and one of two conditions are met:"] + #[doc = " - `LastTabledWasExternal` is `false`; or"] + #[doc = " - `PublicProps` is empty."] pub fn next_external( &self, ) -> ::subxt::storage::address::Address< @@ -9183,8 +8155,8 @@ pub mod api { ], ) } - /// A record of who vetoed what. Maps proposal hash to a possible existent block - /// number (until when it may not be resubmitted) and who vetoed it. + #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] + #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, @@ -9212,8 +8184,8 @@ pub mod api { ], ) } - /// A record of who vetoed what. Maps proposal hash to a possible existent block - /// number (until when it may not be resubmitted) and who vetoed it. + #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] + #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist_root( &self, ) -> ::subxt::storage::address::Address< @@ -9240,7 +8212,7 @@ pub mod api { ], ) } - /// Record of all proposals that have been subject to emergency cancellation. + #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, @@ -9263,7 +8235,7 @@ pub mod api { ], ) } - /// Record of all proposals that have been subject to emergency cancellation. + #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations_root( &self, ) -> ::subxt::storage::address::Address< @@ -9285,12 +8257,12 @@ pub mod api { ], ) } - /// General information concerning any proposal or referendum. - /// The `PreimageHash` refers to the preimage of the `Preimages` provider which can - /// be a JSON dump or IPFS hash of a JSON file. - /// - /// Consider a garbage collection for a metadata of finished referendums to - /// `unrequest` (remove) large preimages. + #[doc = " General information concerning any proposal or referendum."] + #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] pub fn metadata_of( &self, _0: impl ::std::borrow::Borrow< @@ -9315,12 +8287,12 @@ pub mod api { ], ) } - /// General information concerning any proposal or referendum. - /// The `PreimageHash` refers to the preimage of the `Preimages` provider which can - /// be a JSON dump or IPFS hash of a JSON file. - /// - /// Consider a garbage collection for a metadata of finished referendums to - /// `unrequest` (remove) large preimages. + #[doc = " General information concerning any proposal or referendum."] + #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] pub fn metadata_of_root( &self, ) -> ::subxt::storage::address::Address< @@ -9348,11 +8320,11 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The period between a proposal being approved and enacted. - /// - /// It should generally be a little more than the unstake period to ensure that - /// voting stakers have an opportunity to remove themselves from the system in the - /// case where they are on the losing side of a vote. + #[doc = " The period between a proposal being approved and enacted."] + #[doc = ""] + #[doc = " It should generally be a little more than the unstake period to ensure that"] + #[doc = " voting stakers have an opportunity to remove themselves from the system in the case"] + #[doc = " where they are on the losing side of a vote."] pub fn enactment_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -9367,7 +8339,7 @@ pub mod api { ], ) } - /// How often (in blocks) new public referenda are launched. + #[doc = " How often (in blocks) new public referenda are launched."] pub fn launch_period(&self) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( "Democracy", @@ -9380,7 +8352,7 @@ pub mod api { ], ) } - /// How often (in blocks) to check for new votes. + #[doc = " How often (in blocks) to check for new votes."] pub fn voting_period(&self) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( "Democracy", @@ -9393,11 +8365,10 @@ pub mod api { ], ) } - /// The minimum period of vote locking. - /// - /// It should be no shorter than enactment period to ensure that in the case of an - /// approval, those successful voters are locked into the consequences that their - /// votes entail. + #[doc = " The minimum period of vote locking."] + #[doc = ""] + #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] + #[doc = " those successful voters are locked into the consequences that their votes entail."] pub fn vote_locking_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -9412,7 +8383,7 @@ pub mod api { ], ) } - /// The minimum amount to be used as a deposit for a public referendum proposal. + #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] pub fn minimum_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -9426,9 +8397,9 @@ pub mod api { ], ) } - /// Indicator for whether an emergency origin is even allowed to happen. Some chains - /// may want to set this permanently to `false`, others may want to condition it on - /// things such as an upgrade having happened recently. + #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] + #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] + #[doc = " as an upgrade having happened recently."] pub fn instant_allowed( &self, ) -> ::subxt::constants::Address<::core::primitive::bool> { @@ -9442,7 +8413,7 @@ pub mod api { ], ) } - /// Minimum voting period allowed for a fast-track referendum. + #[doc = " Minimum voting period allowed for a fast-track referendum."] pub fn fast_track_voting_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -9457,8 +8428,7 @@ pub mod api { ], ) } - /// Period in blocks where an external proposal may not be re-submitted after being - /// vetoed. + #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] pub fn cooloff_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -9473,10 +8443,10 @@ pub mod api { ], ) } - /// The maximum number of votes for an account. - /// - /// Also used to compute weight, an overly big value can - /// lead to extrinsic with very big weight: see `delegate` for instance. + #[doc = " The maximum number of votes for an account."] + #[doc = ""] + #[doc = " Also used to compute weight, an overly big value can"] + #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", @@ -9489,7 +8459,7 @@ pub mod api { ], ) } - /// The maximum number of public proposals that can exist at any time. + #[doc = " The maximum number of public proposals that can exist at any time."] pub fn max_proposals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", @@ -9502,7 +8472,7 @@ pub mod api { ], ) } - /// The maximum number of deposits a public proposal may have at any time. + #[doc = " The maximum number of deposits a public proposal may have at any time."] pub fn max_deposits(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Democracy", @@ -9515,7 +8485,7 @@ pub mod api { ], ) } - /// The maximum number of items which can be blacklisted. + #[doc = " The maximum number of items which can be blacklisted."] pub fn max_blacklisted( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -9535,9 +8505,9 @@ pub mod api { } pub mod council { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_collective::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_collective::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -9545,16 +8515,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMembers { @@ -9567,16 +8534,13 @@ pub mod api { const CALL: &'static str = "set_members"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Execute { @@ -9590,16 +8554,13 @@ pub mod api { const CALL: &'static str = "execute"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Propose { @@ -9615,16 +8576,13 @@ pub mod api { const CALL: &'static str = "propose"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote { @@ -9638,16 +8596,13 @@ pub mod api { const CALL: &'static str = "vote"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DisapproveProposal { @@ -9658,16 +8613,13 @@ pub mod api { const CALL: &'static str = "disapprove_proposal"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Close { @@ -9685,7 +8637,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::set_members`]. + #[doc = "See [`Pallet::set_members`]."] pub fn set_members( &self, new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -9704,7 +8656,7 @@ pub mod api { ], ) } - ///See [`Pallet::execute`]. + #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, proposal: runtime_types::tangle_testnet_runtime::RuntimeCall, @@ -9722,7 +8674,7 @@ pub mod api { ], ) } - ///See [`Pallet::propose`]. + #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, threshold: ::core::primitive::u32, @@ -9745,7 +8697,7 @@ pub mod api { ], ) } - ///See [`Pallet::vote`]. + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, proposal: ::subxt::utils::H256, @@ -9764,7 +8716,7 @@ pub mod api { ], ) } - ///See [`Pallet::disapprove_proposal`]. + #[doc = "See [`Pallet::disapprove_proposal`]."] pub fn disapprove_proposal( &self, proposal_hash: ::subxt::utils::H256, @@ -9780,7 +8732,7 @@ pub mod api { ], ) } - ///See [`Pallet::close`]. + #[doc = "See [`Pallet::close`]."] pub fn close( &self, proposal_hash: ::subxt::utils::H256, @@ -9801,25 +8753,22 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_collective::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A motion (given hash) has been proposed (by given account) with a threshold (given - ///`MemberCount`). + #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] + #[doc = "`MemberCount`)."] pub struct Proposed { pub account: ::subxt::utils::AccountId32, pub proposal_index: ::core::primitive::u32, @@ -9831,20 +8780,17 @@ pub mod api { const EVENT: &'static str = "Proposed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A motion (given hash) has been voted on by given account, leaving - ///a tally (yes votes and no votes given respectively as `MemberCount`). + #[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::utils::AccountId32, pub proposal_hash: ::subxt::utils::H256, @@ -9857,19 +8803,16 @@ pub mod api { const EVENT: &'static str = "Voted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A motion was approved by the required threshold. + #[doc = "A motion was approved by the required threshold."] pub struct Approved { pub proposal_hash: ::subxt::utils::H256, } @@ -9878,19 +8821,16 @@ pub mod api { const EVENT: &'static str = "Approved"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A motion was not approved by the required threshold. + #[doc = "A motion was not approved by the required threshold."] pub struct Disapproved { pub proposal_hash: ::subxt::utils::H256, } @@ -9899,19 +8839,16 @@ pub mod api { const EVENT: &'static str = "Disapproved"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A motion was executed; result will be `Ok` if it returned without error. + #[doc = "A motion was executed; result will be `Ok` if it returned without error."] pub struct Executed { pub proposal_hash: ::subxt::utils::H256, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, @@ -9921,19 +8858,16 @@ pub mod api { const EVENT: &'static str = "Executed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A single member did some action; result will be `Ok` if it returned without error. + #[doc = "A single member did some action; result will be `Ok` if it returned without error."] pub struct MemberExecuted { pub proposal_hash: ::subxt::utils::H256, pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, @@ -9943,20 +8877,16 @@ pub mod api { const EVENT: &'static str = "MemberExecuted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A proposal was closed because its threshold was reached or after its duration was - /// up. + #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] pub struct Closed { pub proposal_hash: ::subxt::utils::H256, pub yes: ::core::primitive::u32, @@ -9971,7 +8901,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The hashes of the active proposals. + #[doc = " The hashes of the active proposals."] pub fn proposals( &self, ) -> ::subxt::storage::address::Address< @@ -9994,7 +8924,7 @@ pub mod api { ], ) } - /// Actual proposal for a given hash, if it's current. + #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, @@ -10017,7 +8947,7 @@ pub mod api { ], ) } - /// Actual proposal for a given hash, if it's current. + #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of_root( &self, ) -> ::subxt::storage::address::Address< @@ -10039,7 +8969,7 @@ pub mod api { ], ) } - /// Votes on a given proposal, if it is ongoing. + #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, @@ -10064,7 +8994,7 @@ pub mod api { ], ) } - /// Votes on a given proposal, if it is ongoing. + #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting_root( &self, ) -> ::subxt::storage::address::Address< @@ -10088,7 +9018,7 @@ pub mod api { ], ) } - /// Proposals so far. + #[doc = " Proposals so far."] pub fn proposal_count( &self, ) -> ::subxt::storage::address::Address< @@ -10109,7 +9039,7 @@ pub mod api { ], ) } - /// The current members of the collective. This is stored sorted (just by value). + #[doc = " The current members of the collective. This is stored sorted (just by value)."] pub fn members( &self, ) -> ::subxt::storage::address::Address< @@ -10130,8 +9060,7 @@ pub mod api { ], ) } - /// The prime member that helps determine the default vote behavior in case of - /// absentations. + #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] pub fn prime( &self, ) -> ::subxt::storage::address::Address< @@ -10158,7 +9087,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The maximum weight of a dispatch call that can be proposed and executed. + #[doc = " The maximum weight of a dispatch call that can be proposed and executed."] pub fn max_proposal_weight( &self, ) -> ::subxt::constants::Address { @@ -10178,9 +9107,9 @@ pub mod api { } pub mod vesting { use super::{root_mod, runtime_types}; - ///Error for the vesting pallet. + #[doc = "Error for the vesting pallet."] pub type Error = runtime_types::pallet_vesting::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_vesting::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -10188,16 +9117,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vest; @@ -10206,16 +9132,13 @@ pub mod api { const CALL: &'static str = "vest"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestOther { @@ -10229,16 +9152,13 @@ pub mod api { const CALL: &'static str = "vest_other"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestedTransfer { @@ -10256,16 +9176,13 @@ pub mod api { const CALL: &'static str = "vested_transfer"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceVestedTransfer { @@ -10287,16 +9204,13 @@ pub mod api { const CALL: &'static str = "force_vested_transfer"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MergeSchedules { @@ -10310,7 +9224,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::vest`]. + #[doc = "See [`Pallet::vest`]."] pub fn vest(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Vesting", @@ -10324,7 +9238,7 @@ pub mod api { ], ) } - ///See [`Pallet::vest_other`]. + #[doc = "See [`Pallet::vest_other`]."] pub fn vest_other( &self, target: ::subxt::utils::MultiAddress< @@ -10343,7 +9257,7 @@ pub mod api { ], ) } - ///See [`Pallet::vested_transfer`]. + #[doc = "See [`Pallet::vested_transfer`]."] pub fn vested_transfer( &self, target: ::subxt::utils::MultiAddress< @@ -10367,7 +9281,7 @@ pub mod api { ], ) } - ///See [`Pallet::force_vested_transfer`]. + #[doc = "See [`Pallet::force_vested_transfer`]."] pub fn force_vested_transfer( &self, source: ::subxt::utils::MultiAddress< @@ -10394,7 +9308,7 @@ pub mod api { ], ) } - ///See [`Pallet::merge_schedules`]. + #[doc = "See [`Pallet::merge_schedules`]."] pub fn merge_schedules( &self, schedule1_index: ::core::primitive::u32, @@ -10413,25 +9327,22 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_vesting::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The amount vested has been updated. This could indicate a change in funds available. - ///The balance given is the amount which is left unvested (and thus locked). + #[doc = "The amount vested has been updated. This could indicate a change in funds available."] + #[doc = "The balance given is the amount which is left unvested (and thus locked)."] pub struct VestingUpdated { pub account: ::subxt::utils::AccountId32, pub unvested: ::core::primitive::u128, @@ -10441,19 +9352,16 @@ pub mod api { const EVENT: &'static str = "VestingUpdated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An \[account\] has become fully vested. + #[doc = "An \\[account\\] has become fully vested."] pub struct VestingCompleted { pub account: ::subxt::utils::AccountId32, } @@ -10466,7 +9374,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Information regarding the vesting of a given account. + #[doc = " Information regarding the vesting of a given account."] pub fn vesting( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -10493,7 +9401,7 @@ pub mod api { ], ) } - /// Information regarding the vesting of a given account. + #[doc = " Information regarding the vesting of a given account."] pub fn vesting_root( &self, ) -> ::subxt::storage::address::Address< @@ -10519,9 +9427,9 @@ pub mod api { ], ) } - /// Storage version of the pallet. - /// - /// New networks start with latest version, as determined by the genesis build. + #[doc = " Storage version of the pallet."] + #[doc = ""] + #[doc = " New networks start with latest version, as determined by the genesis build."] pub fn storage_version( &self, ) -> ::subxt::storage::address::Address< @@ -10548,7 +9456,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The minimum amount transferred to call `vested_transfer`. + #[doc = " The minimum amount transferred to call `vested_transfer`."] pub fn min_vested_transfer( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -10581,9 +9489,9 @@ pub mod api { } pub mod elections { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_elections_phragmen::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -10591,16 +9499,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote { @@ -10613,16 +9518,13 @@ pub mod api { const CALL: &'static str = "vote"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveVoter; @@ -10631,16 +9533,13 @@ pub mod api { const CALL: &'static str = "remove_voter"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitCandidacy { @@ -10652,16 +9551,13 @@ pub mod api { const CALL: &'static str = "submit_candidacy"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RenounceCandidacy { @@ -10672,16 +9568,13 @@ pub mod api { const CALL: &'static str = "renounce_candidacy"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveMember { @@ -10697,16 +9590,13 @@ pub mod api { const CALL: &'static str = "remove_member"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CleanDefunctVoters { @@ -10720,7 +9610,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::vote`]. + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, votes: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -10737,7 +9627,7 @@ pub mod api { ], ) } - ///See [`Pallet::remove_voter`]. + #[doc = "See [`Pallet::remove_voter`]."] pub fn remove_voter(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Elections", @@ -10751,7 +9641,7 @@ pub mod api { ], ) } - ///See [`Pallet::submit_candidacy`]. + #[doc = "See [`Pallet::submit_candidacy`]."] pub fn submit_candidacy( &self, candidate_count: ::core::primitive::u32, @@ -10768,7 +9658,7 @@ pub mod api { ], ) } - ///See [`Pallet::renounce_candidacy`]. + #[doc = "See [`Pallet::renounce_candidacy`]."] pub fn renounce_candidacy( &self, renouncing: runtime_types::pallet_elections_phragmen::Renouncing, @@ -10785,7 +9675,7 @@ pub mod api { ], ) } - ///See [`Pallet::remove_member`]. + #[doc = "See [`Pallet::remove_member`]."] pub fn remove_member( &self, who: ::subxt::utils::MultiAddress< @@ -10807,7 +9697,7 @@ pub mod api { ], ) } - ///See [`Pallet::clean_defunct_voters`]. + #[doc = "See [`Pallet::clean_defunct_voters`]."] pub fn clean_defunct_voters( &self, num_voters: ::core::primitive::u32, @@ -10826,28 +9716,25 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_elections_phragmen::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A new term with new_members. This indicates that enough candidates existed to run - ///the election, not that enough have has been elected. The inner value must be - /// examined for this purpose. A `NewTerm(\[\])` indicates that some candidates got - /// their bond slashed and none were elected, whilst `EmptyTerm` means that no - /// candidates existed to begin with. + #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] + #[doc = "the election, not that enough have has been elected. The inner value must be examined"] + #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] + #[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::utils::AccountId32, ::core::primitive::u128)>, @@ -10857,59 +9744,50 @@ pub mod api { const EVENT: &'static str = "NewTerm"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///No (or not enough) candidates existed for this round. This is different from - ///`NewTerm(\[\])`. See the description of `NewTerm`. + #[doc = "No (or not enough) candidates existed for this round. This is different from"] + #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] pub struct EmptyTerm; impl ::subxt::events::StaticEvent for EmptyTerm { const PALLET: &'static str = "Elections"; const EVENT: &'static str = "EmptyTerm"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Internal error happened while trying to perform election. + #[doc = "Internal error happened while trying to perform election."] pub struct ElectionError; impl ::subxt::events::StaticEvent for ElectionError { const PALLET: &'static str = "Elections"; const EVENT: &'static str = "ElectionError"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A member has been removed. This should always be followed by either `NewTerm` or - ///`EmptyTerm`. + #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] + #[doc = "`EmptyTerm`."] pub struct MemberKicked { pub member: ::subxt::utils::AccountId32, } @@ -10918,19 +9796,16 @@ pub mod api { const EVENT: &'static str = "MemberKicked"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Someone has renounced their candidacy. + #[doc = "Someone has renounced their candidacy."] pub struct Renounced { pub candidate: ::subxt::utils::AccountId32, } @@ -10939,22 +9814,19 @@ pub mod api { const EVENT: &'static str = "Renounced"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A candidate was slashed by amount due to failing to obtain a seat as member or - ///runner-up. - /// - ///Note that old members and runners-up are also candidates. + #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] + #[doc = "runner-up."] + #[doc = ""] + #[doc = "Note that old members and runners-up are also candidates."] pub struct CandidateSlashed { pub candidate: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -10964,19 +9836,16 @@ pub mod api { const EVENT: &'static str = "CandidateSlashed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A seat holder was slashed by amount by being forcefully removed from the set. + #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] pub struct SeatHolderSlashed { pub seat_holder: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -10990,9 +9859,9 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The current elected members. - /// - /// Invariant: Always sorted based on account id. + #[doc = " The current elected members."] + #[doc = ""] + #[doc = " Invariant: Always sorted based on account id."] pub fn members( &self, ) -> ::subxt::storage::address::Address< @@ -11019,10 +9888,10 @@ pub mod api { ], ) } - /// The current reserved runners-up. - /// - /// Invariant: Always sorted based on rank (worse to best). Upon removal of a - /// member, the last (i.e. _best_) runner-up will be replaced. + #[doc = " The current reserved runners-up."] + #[doc = ""] + #[doc = " Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the"] + #[doc = " last (i.e. _best_) runner-up will be replaced."] pub fn runners_up( &self, ) -> ::subxt::storage::address::Address< @@ -11048,12 +9917,12 @@ pub mod api { ], ) } - /// The present candidate list. A current member or runner-up can never enter this - /// vector and is always implicitly assumed to be a candidate. - /// - /// Second element is the deposit. - /// - /// Invariant: Always sorted based on account id. + #[doc = " The present candidate list. A current member or runner-up can never enter this vector"] + #[doc = " and is always implicitly assumed to be a candidate."] + #[doc = ""] + #[doc = " Second element is the deposit."] + #[doc = ""] + #[doc = " Invariant: Always sorted based on account id."] pub fn candidates( &self, ) -> ::subxt::storage::address::Address< @@ -11074,7 +9943,7 @@ pub mod api { ], ) } - /// The total number of vote rounds that have happened, excluding the upcoming one. + #[doc = " The total number of vote rounds that have happened, excluding the upcoming one."] pub fn election_rounds( &self, ) -> ::subxt::storage::address::Address< @@ -11095,9 +9964,9 @@ pub mod api { ], ) } - /// Votes and locked stake of a particular voter. - /// - /// TWOX-NOTE: SAFE as `AccountId` is a crypto hash. + #[doc = " Votes and locked stake of a particular voter."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] pub fn voting( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -11122,9 +9991,9 @@ pub mod api { ], ) } - /// Votes and locked stake of a particular voter. - /// - /// TWOX-NOTE: SAFE as `AccountId` is a crypto hash. + #[doc = " Votes and locked stake of a particular voter."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] pub fn voting_root( &self, ) -> ::subxt::storage::address::Address< @@ -11154,7 +10023,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// Identifier for the elections-phragmen pallet's lock + #[doc = " Identifier for the elections-phragmen pallet's lock"] pub fn pallet_id( &self, ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> { @@ -11168,7 +10037,7 @@ pub mod api { ], ) } - /// How much should be locked up in order to submit one's candidacy. + #[doc = " How much should be locked up in order to submit one's candidacy."] pub fn candidacy_bond( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -11182,10 +10051,10 @@ pub mod api { ], ) } - /// Base deposit associated with voting. - /// - /// This should be sensibly high to economically ensure the pallet cannot be - /// attacked by creating a gigantic number of votes. + #[doc = " Base deposit associated with voting."] + #[doc = ""] + #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] + #[doc = " creating a gigantic number of votes."] pub fn voting_bond_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -11199,7 +10068,7 @@ pub mod api { ], ) } - /// The amount of bond that need to be locked for each vote (32 bytes). + #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] pub fn voting_bond_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -11213,7 +10082,7 @@ pub mod api { ], ) } - /// Number of members to elect. + #[doc = " Number of members to elect."] pub fn desired_members( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -11228,7 +10097,7 @@ pub mod api { ], ) } - /// Number of runners_up to keep. + #[doc = " Number of runners_up to keep."] pub fn desired_runners_up( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -11243,9 +10112,9 @@ pub mod api { ], ) } - /// How long each seat is kept. This defines the next block number at which an - /// election round will happen. If set to zero, no elections are ever triggered and - /// the module will be in passive mode. + #[doc = " How long each seat is kept. This defines the next block number at which an election"] + #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] + #[doc = " be in passive mode."] pub fn term_duration(&self) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( "Elections", @@ -11258,12 +10127,12 @@ pub mod api { ], ) } - /// The maximum number of candidates in a phragmen election. - /// - /// Warning: This impacts the size of the election which is run onchain. Chose - /// wisely, and consider how it will impact `T::WeightInfo::election_phragmen`. - /// - /// When this limit is reached no more candidates are accepted in the election. + #[doc = " The maximum number of candidates in a phragmen election."] + #[doc = ""] + #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] + #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] + #[doc = ""] + #[doc = " When this limit is reached no more candidates are accepted in the election."] pub fn max_candidates( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -11278,12 +10147,12 @@ pub mod api { ], ) } - /// The maximum number of voters to allow in a phragmen election. - /// - /// Warning: This impacts the size of the election which is run onchain. Chose - /// wisely, and consider how it will impact `T::WeightInfo::election_phragmen`. - /// - /// When the limit is reached the new voters are ignored. + #[doc = " The maximum number of voters to allow in a phragmen election."] + #[doc = ""] + #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] + #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] + #[doc = ""] + #[doc = " When the limit is reached the new voters are ignored."] pub fn max_voters(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Elections", @@ -11296,10 +10165,10 @@ pub mod api { ], ) } - /// Maximum numbers of votes per voter. - /// - /// Warning: This impacts the size of the election which is run onchain. Chose - /// wisely, and consider how it will impact `T::WeightInfo::election_phragmen`. + #[doc = " Maximum numbers of votes per voter."] + #[doc = ""] + #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] + #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] pub fn max_votes_per_voter( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -11319,9 +10188,9 @@ pub mod api { } pub mod election_provider_multi_phase { use super::{root_mod, runtime_types}; - ///Error of the pallet that can be returned in response to dispatches. + #[doc = "Error of the pallet that can be returned in response to dispatches."] pub type Error = runtime_types::pallet_election_provider_multi_phase::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_election_provider_multi_phase::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -11329,16 +10198,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitUnsigned { @@ -11355,16 +10221,13 @@ pub mod api { const CALL: &'static str = "submit_unsigned"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMinimumUntrustedScore { @@ -11376,16 +10239,13 @@ pub mod api { const CALL: &'static str = "set_minimum_untrusted_score"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetEmergencyElectionResult { @@ -11399,16 +10259,13 @@ pub mod api { const CALL: &'static str = "set_emergency_election_result"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Submit { @@ -11423,16 +10280,13 @@ pub mod api { const CALL: &'static str = "submit"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct GovernanceFallback { @@ -11446,13 +10300,13 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::submit_unsigned`]. + #[doc = "See [`Pallet::submit_unsigned`]."] pub fn submit_unsigned( &self, raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< runtime_types::tangle_testnet_runtime::NposSolution16, >, - witness: runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, + witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "ElectionProviderMultiPhase", @@ -11468,7 +10322,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_minimum_untrusted_score`]. + #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] pub fn set_minimum_untrusted_score( &self, maybe_next_score: ::core::option::Option< @@ -11487,7 +10341,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_emergency_election_result`]. + #[doc = "See [`Pallet::set_emergency_election_result`]."] pub fn set_emergency_election_result( &self, supports: ::std::vec::Vec<( @@ -11507,7 +10361,7 @@ pub mod api { ], ) } - ///See [`Pallet::submit`]. + #[doc = "See [`Pallet::submit`]."] pub fn submit( &self, raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< @@ -11525,7 +10379,7 @@ pub mod api { ], ) } - ///See [`Pallet::governance_fallback`]. + #[doc = "See [`Pallet::governance_fallback`]."] pub fn governance_fallback( &self, maybe_max_voters: ::core::option::Option<::core::primitive::u32>, @@ -11544,30 +10398,27 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_election_provider_multi_phase::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A solution was stored with the given compute. - /// - ///The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`, - ///the stored solution was submited in the signed phase by a miner with the - /// `AccountId`. Otherwise, the solution was stored either during the unsigned phase or - /// by `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to - /// make room for this one. + #[doc = "A solution was stored with the given compute."] + #[doc = ""] + #[doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] + #[doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] + #[doc = "Otherwise, the solution was stored either during the unsigned phase or by"] + #[doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] + #[doc = "room for this one."] pub struct SolutionStored { pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, pub origin: ::core::option::Option<::subxt::utils::AccountId32>, @@ -11578,19 +10429,16 @@ pub mod api { const EVENT: &'static str = "SolutionStored"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The election has been finalized, with the given computation and score. + #[doc = "The election has been finalized, with the given computation and score."] pub struct ElectionFinalized { pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, pub score: runtime_types::sp_npos_elections::ElectionScore, @@ -11600,40 +10448,34 @@ pub mod api { const EVENT: &'static str = "ElectionFinalized"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An election failed. - /// - ///Not much can be said about which computes failed in the process. + #[doc = "An election failed."] + #[doc = ""] + #[doc = "Not much can be said about which computes failed in the process."] pub struct ElectionFailed; impl ::subxt::events::StaticEvent for ElectionFailed { const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "ElectionFailed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account has been rewarded for their signed submission being finalized. + #[doc = "An account has been rewarded for their signed submission being finalized."] pub struct Rewarded { pub account: ::subxt::utils::AccountId32, pub value: ::core::primitive::u128, @@ -11643,19 +10485,16 @@ pub mod api { const EVENT: &'static str = "Rewarded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account has been slashed for submitting an invalid signed submission. + #[doc = "An account has been slashed for submitting an invalid signed submission."] pub struct Slashed { pub account: ::subxt::utils::AccountId32, pub value: ::core::primitive::u128, @@ -11665,19 +10504,16 @@ pub mod api { const EVENT: &'static str = "Slashed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///There was a phase transition in a given round. + #[doc = "There was a phase transition in a given round."] pub struct PhaseTransitioned { pub from: runtime_types::pallet_election_provider_multi_phase::Phase< ::core::primitive::u64, @@ -11696,13 +10532,12 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Internal counter for the number of rounds. - /// - /// This is useful for de-duplication of transactions submitted to the pool, and - /// general diagnostics of the pallet. - /// - /// This is merely incremented once per every time that an upstream `elect` is - /// called. + #[doc = " Internal counter for the number of rounds."] + #[doc = ""] + #[doc = " This is useful for de-duplication of transactions submitted to the pool, and general"] + #[doc = " diagnostics of the pallet."] + #[doc = ""] + #[doc = " This is merely incremented once per every time that an upstream `elect` is called."] pub fn round( &self, ) -> ::subxt::storage::address::Address< @@ -11723,7 +10558,7 @@ pub mod api { ], ) } - /// Current phase. + #[doc = " Current phase."] pub fn current_phase( &self, ) -> ::subxt::storage::address::Address< @@ -11747,9 +10582,9 @@ pub mod api { ], ) } - /// Current best solution, signed or unsigned, queued to be returned upon `elect`. - /// - /// Always sorted by score. + #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] + #[doc = ""] + #[doc = " Always sorted by score."] pub fn queued_solution( &self, ) -> ::subxt::storage::address::Address< @@ -11771,10 +10606,9 @@ pub mod api { ], ) } - /// Snapshot data of the round. - /// - /// This is created at the beginning of the signed phase and cleared upon calling - /// `elect`. + #[doc = " Snapshot data of the round."] + #[doc = ""] + #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] pub fn snapshot( &self, ) -> ::subxt::storage::address::Address< @@ -11804,9 +10638,9 @@ pub mod api { ], ) } - /// Desired number of targets to elect for this round. - /// - /// Only exists when [`Snapshot`] is present. + #[doc = " Desired number of targets to elect for this round."] + #[doc = ""] + #[doc = " Only exists when [`Snapshot`] is present."] pub fn desired_targets( &self, ) -> ::subxt::storage::address::Address< @@ -11827,9 +10661,9 @@ pub mod api { ], ) } - /// The metadata of the [`RoundSnapshot`] - /// - /// Only exists when [`Snapshot`] is present. + #[doc = " The metadata of the [`RoundSnapshot`]"] + #[doc = ""] + #[doc = " Only exists when [`Snapshot`] is present."] pub fn snapshot_metadata( &self, ) -> ::subxt::storage::address::Address< @@ -11850,16 +10684,15 @@ pub mod api { ], ) } - /// The next index to be assigned to an incoming signed submission. - /// - /// Every accepted submission is assigned a unique index; that index is bound to - /// that particular submission for the duration of the election. On election - /// finalization, the next index is reset to 0. - /// - /// We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; - /// past its capacity, it will simply saturate. We can't just iterate over - /// `SignedSubmissionsMap`, because iteration is slow. Instead, we store the value - /// here. + #[doc = " The next index to be assigned to an incoming signed submission."] + #[doc = ""] + #[doc = " Every accepted submission is assigned a unique index; that index is bound to that particular"] + #[doc = " submission for the duration of the election. On election finalization, the next index is"] + #[doc = " reset to 0."] + #[doc = ""] + #[doc = " We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its"] + #[doc = " capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,"] + #[doc = " because iteration is slow. Instead, we store the value here."] pub fn signed_submission_next_index( &self, ) -> ::subxt::storage::address::Address< @@ -11880,13 +10713,12 @@ pub mod api { ], ) } - /// A sorted, bounded vector of `(score, block_number, index)`, where each `index` - /// points to a value in `SignedSubmissions`. - /// - /// We never need to process more than a single signed submission at a time. Signed - /// submissions can be quite large, so we're willing to pay the cost of multiple - /// database accesses to access them one at a time instead of reading and decoding - /// all of them at once. + #[doc = " A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a"] + #[doc = " value in `SignedSubmissions`."] + #[doc = ""] + #[doc = " We never need to process more than a single signed submission at a time. Signed submissions"] + #[doc = " can be quite large, so we're willing to pay the cost of multiple database accesses to access"] + #[doc = " them one at a time instead of reading and decoding all of them at once."] pub fn signed_submission_indices( &self, ) -> ::subxt::storage::address::Address< @@ -11911,14 +10743,13 @@ pub mod api { ], ) } - /// Unchecked, signed solutions. - /// - /// Together with `SubmissionIndices`, this stores a bounded set of - /// `SignedSubmissions` while allowing us to keep only a single one in memory at a - /// time. - /// - /// Twox note: the key of the map is an auto-incrementing index which users cannot - /// inspect or affect; we shouldn't need a cryptographically secure hasher. + #[doc = " Unchecked, signed solutions."] + #[doc = ""] + #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] + #[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>, @@ -11944,14 +10775,13 @@ pub mod api { ], ) } - /// Unchecked, signed solutions. - /// - /// Together with `SubmissionIndices`, this stores a bounded set of - /// `SignedSubmissions` while allowing us to keep only a single one in memory at a - /// time. - /// - /// Twox note: the key of the map is an auto-incrementing index which users cannot - /// inspect or affect; we shouldn't need a cryptographically secure hasher. + #[doc = " Unchecked, signed solutions."] + #[doc = ""] + #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] + #[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::Address< @@ -11976,10 +10806,10 @@ pub mod api { ], ) } - /// The minimum score that each 'untrusted' solution must attain in order to be - /// considered feasible. - /// - /// Can be set via `set_minimum_untrusted_score`. + #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] + #[doc = " feasible."] + #[doc = ""] + #[doc = " Can be set via `set_minimum_untrusted_score`."] pub fn minimum_untrusted_score( &self, ) -> ::subxt::storage::address::Address< @@ -12006,7 +10836,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// Duration of the unsigned phase. + #[doc = " Duration of the unsigned phase."] pub fn unsigned_phase( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -12021,7 +10851,7 @@ pub mod api { ], ) } - /// Duration of the signed phase. + #[doc = " Duration of the signed phase."] pub fn signed_phase(&self) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", @@ -12034,8 +10864,8 @@ pub mod api { ], ) } - /// The minimum amount of improvement to the solution score that defines a solution - /// as "better" in the Signed phase. + #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] + #[doc = " \"better\" in the Signed phase."] pub fn better_signed_threshold( &self, ) -> ::subxt::constants::Address @@ -12050,8 +10880,8 @@ pub mod api { ], ) } - /// The minimum amount of improvement to the solution score that defines a solution - /// as "better" in the Unsigned phase. + #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] + #[doc = " \"better\" in the Unsigned phase."] pub fn better_unsigned_threshold( &self, ) -> ::subxt::constants::Address @@ -12066,10 +10896,10 @@ pub mod api { ], ) } - /// The repeat threshold of the offchain worker. - /// - /// For example, if it is 5, that means that at least 5 blocks will elapse between - /// attempts to submit the worker's solution. + #[doc = " The repeat threshold of the offchain worker."] + #[doc = ""] + #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] + #[doc = " to submit the worker's solution."] pub fn offchain_repeat( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -12084,7 +10914,7 @@ pub mod api { ], ) } - /// The priority of the unsigned transaction submitted in the unsigned-phase + #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] pub fn miner_tx_priority( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -12099,13 +10929,13 @@ pub mod api { ], ) } - /// Maximum number of signed submissions that can be queued. - /// - /// It is best to avoid adjusting this during an election, as it impacts downstream - /// data structures. In particular, `SignedSubmissionIndices` is bounded on this - /// value. If you update this value during an election, you _must_ ensure that - /// `SignedSubmissionIndices.len()` is less than or equal to the new value. - /// Otherwise, attempts to submit new solutions may cause a runtime panic. + #[doc = " Maximum number of signed submissions that can be queued."] + #[doc = ""] + #[doc = " It is best to avoid adjusting this during an election, as it impacts downstream data"] + #[doc = " structures. In particular, `SignedSubmissionIndices` is bounded on this value. If you"] + #[doc = " update this value during an election, you _must_ ensure that"] + #[doc = " `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,"] + #[doc = " attempts to submit new solutions may cause a runtime panic."] pub fn signed_max_submissions( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -12120,11 +10950,11 @@ pub mod api { ], ) } - /// Maximum weight of a signed solution. - /// - /// If [`Config::MinerConfig`] is being implemented to submit signed solutions - /// (outside of this pallet), then [`MinerConfig::solution_weight`] is used to - /// compare against this value. + #[doc = " Maximum weight of a signed solution."] + #[doc = ""] + #[doc = " If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of"] + #[doc = " this pallet), then [`MinerConfig::solution_weight`] is used to compare against"] + #[doc = " this value."] pub fn signed_max_weight( &self, ) -> ::subxt::constants::Address { @@ -12139,7 +10969,7 @@ pub mod api { ], ) } - /// The maximum amount of unchecked solutions to refund the call fee for. + #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] pub fn signed_max_refunds( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -12154,7 +10984,7 @@ pub mod api { ], ) } - /// Base reward for a signed solution + #[doc = " Base reward for a signed solution"] pub fn signed_reward_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -12168,7 +10998,7 @@ pub mod api { ], ) } - /// Base deposit for a signed solution. + #[doc = " Base deposit for a signed solution."] pub fn signed_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -12182,7 +11012,7 @@ pub mod api { ], ) } - /// Per-byte deposit for a signed solution. + #[doc = " Per-byte deposit for a signed solution."] pub fn signed_deposit_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -12196,7 +11026,7 @@ pub mod api { ], ) } - /// Per-weight deposit for a signed solution. + #[doc = " Per-weight deposit for a signed solution."] pub fn signed_deposit_weight( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -12210,11 +11040,10 @@ pub mod api { ], ) } - /// The maximum number of winners that can be elected by this `ElectionProvider` - /// implementation. - /// - /// Note: This must always be greater or equal to - /// `T::DataProvider::desired_targets()`. + #[doc = " The maximum number of winners that can be elected by this `ElectionProvider`"] + #[doc = " implementation."] + #[doc = ""] + #[doc = " Note: This must always be greater or equal to `T::DataProvider::desired_targets()`."] pub fn max_winners(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "ElectionProviderMultiPhase", @@ -12288,9 +11117,9 @@ pub mod api { } pub mod staking { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -12298,16 +11127,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bond { @@ -12322,16 +11148,13 @@ pub mod api { const CALL: &'static str = "bond"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondExtra { @@ -12343,16 +11166,13 @@ pub mod api { const CALL: &'static str = "bond_extra"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Unbond { @@ -12364,17 +11184,14 @@ pub mod api { const CALL: &'static str = "unbond"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithdrawUnbonded { @@ -12385,16 +11202,13 @@ pub mod api { const CALL: &'static str = "withdraw_unbonded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Validate { @@ -12405,16 +11219,13 @@ pub mod api { const CALL: &'static str = "validate"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominate { @@ -12430,16 +11241,13 @@ pub mod api { const CALL: &'static str = "nominate"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Chill; @@ -12448,16 +11256,13 @@ pub mod api { const CALL: &'static str = "chill"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetPayee { @@ -12470,16 +11275,13 @@ pub mod api { const CALL: &'static str = "set_payee"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetController; @@ -12488,16 +11290,13 @@ pub mod api { const CALL: &'static str = "set_controller"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetValidatorCount { @@ -12509,16 +11308,13 @@ pub mod api { const CALL: &'static str = "set_validator_count"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IncreaseValidatorCount { @@ -12530,16 +11326,13 @@ pub mod api { const CALL: &'static str = "increase_validator_count"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScaleValidatorCount { @@ -12550,16 +11343,13 @@ pub mod api { const CALL: &'static str = "scale_validator_count"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNoEras; @@ -12568,16 +11358,13 @@ pub mod api { const CALL: &'static str = "force_no_eras"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNewEra; @@ -12586,16 +11373,13 @@ pub mod api { const CALL: &'static str = "force_new_era"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetInvulnerables { @@ -12606,16 +11390,13 @@ pub mod api { const CALL: &'static str = "set_invulnerables"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceUnstake { @@ -12627,16 +11408,13 @@ pub mod api { const CALL: &'static str = "force_unstake"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNewEraAlways; @@ -12645,16 +11423,13 @@ pub mod api { const CALL: &'static str = "force_new_era_always"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelDeferredSlash { @@ -12666,16 +11441,13 @@ pub mod api { const CALL: &'static str = "cancel_deferred_slash"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PayoutStakers { @@ -12687,16 +11459,13 @@ pub mod api { const CALL: &'static str = "payout_stakers"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Rebond { @@ -12708,16 +11477,13 @@ pub mod api { const CALL: &'static str = "rebond"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReapStash { @@ -12729,16 +11495,13 @@ pub mod api { const CALL: &'static str = "reap_stash"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Kick { @@ -12754,16 +11517,13 @@ pub mod api { const CALL: &'static str = "kick"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetStakingConfigs { @@ -12793,16 +11553,13 @@ pub mod api { const CALL: &'static str = "set_staking_configs"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChillOther { @@ -12813,16 +11570,13 @@ pub mod api { const CALL: &'static str = "chill_other"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceApplyMinCommission { @@ -12833,16 +11587,13 @@ pub mod api { const CALL: &'static str = "force_apply_min_commission"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMinCommission { @@ -12855,7 +11606,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::bond`]. + #[doc = "See [`Pallet::bond`]."] pub fn bond( &self, value: ::core::primitive::u128, @@ -12874,7 +11625,7 @@ pub mod api { ], ) } - ///See [`Pallet::bond_extra`]. + #[doc = "See [`Pallet::bond_extra`]."] pub fn bond_extra( &self, max_additional: ::core::primitive::u128, @@ -12890,7 +11641,7 @@ pub mod api { ], ) } - ///See [`Pallet::unbond`]. + #[doc = "See [`Pallet::unbond`]."] pub fn unbond( &self, value: ::core::primitive::u128, @@ -12906,7 +11657,7 @@ pub mod api { ], ) } - ///See [`Pallet::withdraw_unbonded`]. + #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded( &self, num_slashing_spans: ::core::primitive::u32, @@ -12923,7 +11674,7 @@ pub mod api { ], ) } - ///See [`Pallet::validate`]. + #[doc = "See [`Pallet::validate`]."] pub fn validate( &self, prefs: runtime_types::pallet_staking::ValidatorPrefs, @@ -12939,7 +11690,7 @@ pub mod api { ], ) } - ///See [`Pallet::nominate`]. + #[doc = "See [`Pallet::nominate`]."] pub fn nominate( &self, targets: ::std::vec::Vec< @@ -12961,7 +11712,7 @@ pub mod api { ], ) } - ///See [`Pallet::chill`]. + #[doc = "See [`Pallet::chill`]."] pub fn chill(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -12974,7 +11725,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_payee`]. + #[doc = "See [`Pallet::set_payee`]."] pub fn set_payee( &self, payee: runtime_types::pallet_staking::RewardDestination< @@ -12993,7 +11744,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_controller`]. + #[doc = "See [`Pallet::set_controller`]."] pub fn set_controller(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -13007,7 +11758,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_validator_count`]. + #[doc = "See [`Pallet::set_validator_count`]."] pub fn set_validator_count( &self, new: ::core::primitive::u32, @@ -13024,7 +11775,7 @@ pub mod api { ], ) } - ///See [`Pallet::increase_validator_count`]. + #[doc = "See [`Pallet::increase_validator_count`]."] pub fn increase_validator_count( &self, additional: ::core::primitive::u32, @@ -13041,7 +11792,7 @@ pub mod api { ], ) } - ///See [`Pallet::scale_validator_count`]. + #[doc = "See [`Pallet::scale_validator_count`]."] pub fn scale_validator_count( &self, factor: runtime_types::sp_arithmetic::per_things::Percent, @@ -13058,7 +11809,7 @@ pub mod api { ], ) } - ///See [`Pallet::force_no_eras`]. + #[doc = "See [`Pallet::force_no_eras`]."] pub fn force_no_eras(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -13072,7 +11823,7 @@ pub mod api { ], ) } - ///See [`Pallet::force_new_era`]. + #[doc = "See [`Pallet::force_new_era`]."] pub fn force_new_era(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -13085,7 +11836,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_invulnerables`]. + #[doc = "See [`Pallet::set_invulnerables`]."] pub fn set_invulnerables( &self, invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -13101,7 +11852,7 @@ pub mod api { ], ) } - ///See [`Pallet::force_unstake`]. + #[doc = "See [`Pallet::force_unstake`]."] pub fn force_unstake( &self, stash: ::subxt::utils::AccountId32, @@ -13118,7 +11869,7 @@ pub mod api { ], ) } - ///See [`Pallet::force_new_era_always`]. + #[doc = "See [`Pallet::force_new_era_always`]."] pub fn force_new_era_always( &self, ) -> ::subxt::tx::Payload { @@ -13133,7 +11884,7 @@ pub mod api { ], ) } - ///See [`Pallet::cancel_deferred_slash`]. + #[doc = "See [`Pallet::cancel_deferred_slash`]."] pub fn cancel_deferred_slash( &self, era: ::core::primitive::u32, @@ -13151,7 +11902,7 @@ pub mod api { ], ) } - ///See [`Pallet::payout_stakers`]. + #[doc = "See [`Pallet::payout_stakers`]."] pub fn payout_stakers( &self, validator_stash: ::subxt::utils::AccountId32, @@ -13168,7 +11919,7 @@ pub mod api { ], ) } - ///See [`Pallet::rebond`]. + #[doc = "See [`Pallet::rebond`]."] pub fn rebond( &self, value: ::core::primitive::u128, @@ -13184,7 +11935,7 @@ pub mod api { ], ) } - ///See [`Pallet::reap_stash`]. + #[doc = "See [`Pallet::reap_stash`]."] pub fn reap_stash( &self, stash: ::subxt::utils::AccountId32, @@ -13201,7 +11952,7 @@ pub mod api { ], ) } - ///See [`Pallet::kick`]. + #[doc = "See [`Pallet::kick`]."] pub fn kick( &self, who: ::std::vec::Vec< @@ -13222,7 +11973,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_staking_configs`]. + #[doc = "See [`Pallet::set_staking_configs`]."] pub fn set_staking_configs( &self, min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< @@ -13262,7 +12013,7 @@ pub mod api { ], ) } - ///See [`Pallet::chill_other`]. + #[doc = "See [`Pallet::chill_other`]."] pub fn chill_other( &self, controller: ::subxt::utils::AccountId32, @@ -13278,7 +12029,7 @@ pub mod api { ], ) } - ///See [`Pallet::force_apply_min_commission`]. + #[doc = "See [`Pallet::force_apply_min_commission`]."] pub fn force_apply_min_commission( &self, validator_stash: ::subxt::utils::AccountId32, @@ -13294,7 +12045,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_min_commission`]. + #[doc = "See [`Pallet::set_min_commission`]."] pub fn set_min_commission( &self, new: runtime_types::sp_arithmetic::per_things::Perbill, @@ -13313,25 +12064,22 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The era payout has been set; the first balance is the validator-payout; the second - /// is the remainder from the maximum amount of reward. + #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] + #[doc = "the remainder from the maximum amount of reward."] pub struct EraPaid { pub era_index: ::core::primitive::u32, pub validator_payout: ::core::primitive::u128, @@ -13342,19 +12090,16 @@ pub mod api { const EVENT: &'static str = "EraPaid"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The nominator has been rewarded by this amount. + #[doc = "The nominator has been rewarded by this amount."] pub struct Rewarded { pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -13364,19 +12109,16 @@ pub mod api { const EVENT: &'static str = "Rewarded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A staker (validator or nominator) has been slashed by the given amount. + #[doc = "A staker (validator or nominator) has been slashed by the given amount."] pub struct Slashed { pub staker: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -13386,20 +12128,17 @@ pub mod api { const EVENT: &'static str = "Slashed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A slash for the given validator, for the given percentage of their stake, at the - /// given era as been reported. + #[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::utils::AccountId32, pub fraction: runtime_types::sp_arithmetic::per_things::Perbill, @@ -13410,21 +12149,18 @@ pub mod api { const EVENT: &'static str = "SlashReported"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An old slashing report from a prior era was discarded because it could - ///not be processed. + #[doc = "An old slashing report from a prior era was discarded because it could"] + #[doc = "not be processed."] pub struct OldSlashingReportDiscarded { pub session_index: ::core::primitive::u32, } @@ -13433,41 +12169,35 @@ pub mod api { const EVENT: &'static str = "OldSlashingReportDiscarded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A new set of stakers was elected. + #[doc = "A new set of stakers was elected."] pub struct StakersElected; impl ::subxt::events::StaticEvent for StakersElected { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "StakersElected"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account has bonded this amount. \[stash, amount\] - /// - ///NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably, - ///it will not be emitted for staking rewards when they are added to stake. + #[doc = "An account has bonded this amount. \\[stash, amount\\]"] + #[doc = ""] + #[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::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -13477,19 +12207,16 @@ pub mod api { const EVENT: &'static str = "Bonded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account has unbonded this amount. + #[doc = "An account has unbonded this amount."] pub struct Unbonded { pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -13499,20 +12226,17 @@ pub mod api { const EVENT: &'static str = "Unbonded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account has called `withdraw_unbonded` and removed unbonding chunks worth - /// `Balance` from the unlocking queue. + #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] + #[doc = "from the unlocking queue."] pub struct Withdrawn { pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -13522,19 +12246,16 @@ pub mod api { const EVENT: &'static str = "Withdrawn"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A nominator has been kicked from a validator. + #[doc = "A nominator has been kicked from a validator."] pub struct Kicked { pub nominator: ::subxt::utils::AccountId32, pub stash: ::subxt::utils::AccountId32, @@ -13544,38 +12265,32 @@ pub mod api { const EVENT: &'static str = "Kicked"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The election failed. No new era is planned. + #[doc = "The election failed. No new era is planned."] pub struct StakingElectionFailed; impl ::subxt::events::StaticEvent for StakingElectionFailed { const PALLET: &'static str = "Staking"; const EVENT: &'static str = "StakingElectionFailed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An account has stopped participating as either a validator or nominator. + #[doc = "An account has stopped participating as either a validator or nominator."] pub struct Chilled { pub stash: ::subxt::utils::AccountId32, } @@ -13584,19 +12299,16 @@ pub mod api { const EVENT: &'static str = "Chilled"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The stakers' rewards are getting paid. + #[doc = "The stakers' rewards are getting paid."] pub struct PayoutStarted { pub era_index: ::core::primitive::u32, pub validator_stash: ::subxt::utils::AccountId32, @@ -13606,19 +12318,16 @@ pub mod api { const EVENT: &'static str = "PayoutStarted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A validator has set their preferences. + #[doc = "A validator has set their preferences."] pub struct ValidatorPrefsSet { pub stash: ::subxt::utils::AccountId32, pub prefs: runtime_types::pallet_staking::ValidatorPrefs, @@ -13628,20 +12337,17 @@ pub mod api { const EVENT: &'static str = "ValidatorPrefsSet"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Voters size limit reached. + #[doc = "Voters size limit reached."] pub struct SnapshotVotersSizeExceeded { pub size: ::core::primitive::u32, } @@ -13650,20 +12356,17 @@ pub mod api { const EVENT: &'static str = "SnapshotVotersSizeExceeded"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Targets size limit reached. + #[doc = "Targets size limit reached."] pub struct SnapshotTargetsSizeExceeded { pub size: ::core::primitive::u32, } @@ -13672,19 +12375,16 @@ pub mod api { const EVENT: &'static str = "SnapshotTargetsSizeExceeded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A new force era mode was set. + #[doc = "A new force era mode was set."] pub struct ForceEra { pub mode: runtime_types::pallet_staking::Forcing, } @@ -13697,7 +12397,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The ideal number of active validators. + #[doc = " The ideal number of active validators."] pub fn validator_count( &self, ) -> ::subxt::storage::address::Address< @@ -13719,7 +12419,7 @@ pub mod api { ], ) } - /// Minimum number of staking participants before emergency conditions are imposed. + #[doc = " Minimum number of staking participants before emergency conditions are imposed."] pub fn minimum_validator_count( &self, ) -> ::subxt::storage::address::Address< @@ -13740,9 +12440,9 @@ pub mod api { ], ) } - /// Any validators that may never be slashed or forcibly kicked. It's a Vec since - /// they're easy to initialize and the performance hit is minimal (we expect no more - /// than four invulnerables) and restricted to testnets. + #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] + #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] + #[doc = " invulnerables) and restricted to testnets."] pub fn invulnerables( &self, ) -> ::subxt::storage::address::Address< @@ -13764,9 +12464,9 @@ pub mod api { ], ) } - /// Map from all locked "stash" accounts to the controller account. - /// - /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + #[doc = " Map from all locked \"stash\" accounts to the controller account."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn bonded( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -13789,9 +12489,9 @@ pub mod api { ], ) } - /// Map from all locked "stash" accounts to the controller account. - /// - /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + #[doc = " Map from all locked \"stash\" accounts to the controller account."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn bonded_root( &self, ) -> ::subxt::storage::address::Address< @@ -13813,7 +12513,7 @@ pub mod api { ], ) } - /// The minimum active bond to become and maintain the role of a nominator. + #[doc = " The minimum active bond to become and maintain the role of a nominator."] pub fn min_nominator_bond( &self, ) -> ::subxt::storage::address::Address< @@ -13835,7 +12535,7 @@ pub mod api { ], ) } - /// The minimum active bond to become and maintain the role of a validator. + #[doc = " The minimum active bond to become and maintain the role of a validator."] pub fn min_validator_bond( &self, ) -> ::subxt::storage::address::Address< @@ -13857,7 +12557,7 @@ pub mod api { ], ) } - /// The minimum active nominator stake of the last successful election. + #[doc = " The minimum active nominator stake of the last successful election."] pub fn minimum_active_stake( &self, ) -> ::subxt::storage::address::Address< @@ -13878,9 +12578,9 @@ pub mod api { ], ) } - /// The minimum amount of commission that validators can set. - /// - /// If set to `0`, no limit exists. + #[doc = " The minimum amount of commission that validators can set."] + #[doc = ""] + #[doc = " If set to `0`, no limit exists."] pub fn min_commission( &self, ) -> ::subxt::storage::address::Address< @@ -13901,7 +12601,7 @@ pub mod api { ], ) } - /// Map from all (unlocked) "controller" accounts to the info regarding the staking. + #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -13923,7 +12623,7 @@ pub mod api { ], ) } - /// Map from all (unlocked) "controller" accounts to the info regarding the staking. + #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger_root( &self, ) -> ::subxt::storage::address::Address< @@ -13944,9 +12644,9 @@ pub mod api { ], ) } - /// Where the reward payment should be made. Keyed by stash. - /// - /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + #[doc = " Where the reward payment should be made. Keyed by stash."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn payee( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -13969,9 +12669,9 @@ pub mod api { ], ) } - /// Where the reward payment should be made. Keyed by stash. - /// - /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + #[doc = " Where the reward payment should be made. Keyed by stash."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn payee_root( &self, ) -> ::subxt::storage::address::Address< @@ -13993,9 +12693,9 @@ pub mod api { ], ) } - /// The map from (wannabe) validator stash key to the preferences of that validator. - /// - /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn validators( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -14017,9 +12717,9 @@ pub mod api { ], ) } - /// The map from (wannabe) validator stash key to the preferences of that validator. - /// - /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn validators_root( &self, ) -> ::subxt::storage::address::Address< @@ -14040,7 +12740,7 @@ pub mod api { ], ) } - ///Counter for the related counted storage map + #[doc = "Counter for the related counted storage map"] pub fn counter_for_validators( &self, ) -> ::subxt::storage::address::Address< @@ -14062,9 +12762,9 @@ pub mod api { ], ) } - /// The maximum validator count before we stop allowing new validators to join. - /// - /// When this value is not set, no limits are enforced. + #[doc = " The maximum validator count before we stop allowing new validators to join."] + #[doc = ""] + #[doc = " When this value is not set, no limits are enforced."] pub fn max_validators_count( &self, ) -> ::subxt::storage::address::Address< @@ -14086,26 +12786,25 @@ pub mod api { ], ) } - /// The map from nominator stash key to their nomination preferences, namely the - /// validators that they wish to support. - /// - /// Note that the keys of this storage map might become non-decodable in case the - /// account's [`NominationsQuota::MaxNominations`] configuration is decreased. - /// In this rare case, these nominators - /// are still existent in storage, their key is correct and retrievable (i.e. - /// `contains_key` indicates that they exist), but their value cannot be decoded. - /// Therefore, the non-decodable nominators will effectively not-exist, until they - /// re-submit their preferences such that it is within the bounds of the newly set - /// `Config::MaxNominations`. - /// - /// This implies that `::iter_keys().count()` and `::iter().count()` might return - /// different values for this map. Moreover, the main `::count()` is aligned with - /// the former, namely the number of keys that exist. - /// - /// Lastly, if any of the nominators become non-decodable, they can be chilled - /// immediately via [`Call::chill_other`] dispatchable by anyone. - /// - /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] + #[doc = " they wish to support."] + #[doc = ""] + #[doc = " Note that the keys of this storage map might become non-decodable in case the"] + #[doc = " account's [`NominationsQuota::MaxNominations`] configuration is decreased."] + #[doc = " In this rare case, these nominators"] + #[doc = " are still existent in storage, their key is correct and retrievable (i.e. `contains_key`"] + #[doc = " indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable"] + #[doc = " nominators will effectively not-exist, until they re-submit their preferences such that it"] + #[doc = " is within the bounds of the newly set `Config::MaxNominations`."] + #[doc = ""] + #[doc = " This implies that `::iter_keys().count()` and `::iter().count()` might return different"] + #[doc = " values for this map. Moreover, the main `::count()` is aligned with the former, namely the"] + #[doc = " number of keys that exist."] + #[doc = ""] + #[doc = " Lastly, if any of the nominators become non-decodable, they can be chilled immediately via"] + #[doc = " [`Call::chill_other`] dispatchable by anyone."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn nominators( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -14127,26 +12826,25 @@ pub mod api { ], ) } - /// The map from nominator stash key to their nomination preferences, namely the - /// validators that they wish to support. - /// - /// Note that the keys of this storage map might become non-decodable in case the - /// account's [`NominationsQuota::MaxNominations`] configuration is decreased. - /// In this rare case, these nominators - /// are still existent in storage, their key is correct and retrievable (i.e. - /// `contains_key` indicates that they exist), but their value cannot be decoded. - /// Therefore, the non-decodable nominators will effectively not-exist, until they - /// re-submit their preferences such that it is within the bounds of the newly set - /// `Config::MaxNominations`. - /// - /// This implies that `::iter_keys().count()` and `::iter().count()` might return - /// different values for this map. Moreover, the main `::count()` is aligned with - /// the former, namely the number of keys that exist. - /// - /// Lastly, if any of the nominators become non-decodable, they can be chilled - /// immediately via [`Call::chill_other`] dispatchable by anyone. - /// - /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] + #[doc = " they wish to support."] + #[doc = ""] + #[doc = " Note that the keys of this storage map might become non-decodable in case the"] + #[doc = " account's [`NominationsQuota::MaxNominations`] configuration is decreased."] + #[doc = " In this rare case, these nominators"] + #[doc = " are still existent in storage, their key is correct and retrievable (i.e. `contains_key`"] + #[doc = " indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable"] + #[doc = " nominators will effectively not-exist, until they re-submit their preferences such that it"] + #[doc = " is within the bounds of the newly set `Config::MaxNominations`."] + #[doc = ""] + #[doc = " This implies that `::iter_keys().count()` and `::iter().count()` might return different"] + #[doc = " values for this map. Moreover, the main `::count()` is aligned with the former, namely the"] + #[doc = " number of keys that exist."] + #[doc = ""] + #[doc = " Lastly, if any of the nominators become non-decodable, they can be chilled immediately via"] + #[doc = " [`Call::chill_other`] dispatchable by anyone."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn nominators_root( &self, ) -> ::subxt::storage::address::Address< @@ -14167,7 +12865,7 @@ pub mod api { ], ) } - ///Counter for the related counted storage map + #[doc = "Counter for the related counted storage map"] pub fn counter_for_nominators( &self, ) -> ::subxt::storage::address::Address< @@ -14188,9 +12886,9 @@ pub mod api { ], ) } - /// The maximum nominator count before we stop allowing new validators to join. - /// - /// When this value is not set, no limits are enforced. + #[doc = " The maximum nominator count before we stop allowing new validators to join."] + #[doc = ""] + #[doc = " When this value is not set, no limits are enforced."] pub fn max_nominators_count( &self, ) -> ::subxt::storage::address::Address< @@ -14211,10 +12909,10 @@ pub mod api { ], ) } - /// The current era index. - /// - /// This is the latest planned era, depending on how the Session pallet queues the - /// validator set, it might be active or not. + #[doc = " The current era index."] + #[doc = ""] + #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] + #[doc = " set, it might be active or not."] pub fn current_era( &self, ) -> ::subxt::storage::address::Address< @@ -14236,10 +12934,10 @@ pub mod api { ], ) } - /// The active era information, it holds index and start. - /// - /// The active era is the era being currently rewarded. Validator set of this era - /// must be equal to [`SessionInterface::validators`]. + #[doc = " The active era information, it holds index and start."] + #[doc = ""] + #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] + #[doc = " equal to [`SessionInterface::validators`]."] pub fn active_era( &self, ) -> ::subxt::storage::address::Address< @@ -14261,10 +12959,10 @@ pub mod api { ], ) } - /// The session index at which the era start for the last `HISTORY_DEPTH` eras. - /// - /// Note: This tracks the starting session (i.e. session index when era start being - /// active) for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`. + #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] + #[doc = ""] + #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] + #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] pub fn eras_start_session_index( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -14286,10 +12984,10 @@ pub mod api { ], ) } - /// The session index at which the era start for the last `HISTORY_DEPTH` eras. - /// - /// Note: This tracks the starting session (i.e. session index when era start being - /// active) for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`. + #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] + #[doc = ""] + #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] + #[doc = " for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`."] pub fn eras_start_session_index_root( &self, ) -> ::subxt::storage::address::Address< @@ -14310,13 +13008,12 @@ pub mod api { ], ) } - /// Exposure of validator at era. - /// - /// This is keyed first by the era index to allow bulk deletion and then the stash - /// account. - /// - /// Is it removed after `HISTORY_DEPTH` eras. - /// If stakers hasn't been set or has been removed then empty exposure is returned. + #[doc = " Exposure of validator at era."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " Is it removed after `HISTORY_DEPTH` eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -14346,13 +13043,12 @@ pub mod api { ], ) } - /// Exposure of validator at era. - /// - /// This is keyed first by the era index to allow bulk deletion and then the stash - /// account. - /// - /// Is it removed after `HISTORY_DEPTH` eras. - /// If stakers hasn't been set or has been removed then empty exposure is returned. + #[doc = " Exposure of validator at era."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " Is it removed after `HISTORY_DEPTH` eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_root( &self, ) -> ::subxt::storage::address::Address< @@ -14377,18 +13073,17 @@ pub mod api { ], ) } - /// Clipped Exposure of validator at era. - /// - /// This is similar to [`ErasStakers`] but number of nominators exposed is reduced - /// to the `T::MaxNominatorRewardedPerValidator` biggest stakers. - /// (Note: the field `total` and `own` of the exposure remains unchanged). - /// This is used to limit the i/o cost for the nominator payout. - /// - /// This is keyed fist by the era index to allow bulk deletion and then the stash - /// account. - /// - /// Is it removed after `HISTORY_DEPTH` eras. - /// If stakers hasn't been set or has been removed then empty exposure is returned. + #[doc = " Clipped Exposure of validator at era."] + #[doc = ""] + #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] + #[doc = " `T::MaxNominatorRewardedPerValidator` biggest stakers."] + #[doc = " (Note: the field `total` and `own` of the exposure remains unchanged)."] + #[doc = " This is used to limit the i/o cost for the nominator payout."] + #[doc = ""] + #[doc = " This is keyed fist by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " Is it removed after `HISTORY_DEPTH` eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_clipped( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -14418,18 +13113,17 @@ pub mod api { ], ) } - /// Clipped Exposure of validator at era. - /// - /// This is similar to [`ErasStakers`] but number of nominators exposed is reduced - /// to the `T::MaxNominatorRewardedPerValidator` biggest stakers. - /// (Note: the field `total` and `own` of the exposure remains unchanged). - /// This is used to limit the i/o cost for the nominator payout. - /// - /// This is keyed fist by the era index to allow bulk deletion and then the stash - /// account. - /// - /// Is it removed after `HISTORY_DEPTH` eras. - /// If stakers hasn't been set or has been removed then empty exposure is returned. + #[doc = " Clipped Exposure of validator at era."] + #[doc = ""] + #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] + #[doc = " `T::MaxNominatorRewardedPerValidator` biggest stakers."] + #[doc = " (Note: the field `total` and `own` of the exposure remains unchanged)."] + #[doc = " This is used to limit the i/o cost for the nominator payout."] + #[doc = ""] + #[doc = " This is keyed fist by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " Is it removed after `HISTORY_DEPTH` eras."] + #[doc = " If stakers hasn't been set or has been removed then empty exposure is returned."] pub fn eras_stakers_clipped_root( &self, ) -> ::subxt::storage::address::Address< @@ -14454,12 +13148,11 @@ pub mod api { ], ) } - /// Similar to `ErasStakers`, this holds the preferences of validators. - /// - /// This is keyed first by the era index to allow bulk deletion and then the stash - /// account. - /// - /// Is it removed after `HISTORY_DEPTH` eras. + #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " Is it removed after `HISTORY_DEPTH` eras."] pub fn eras_validator_prefs( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -14485,12 +13178,11 @@ pub mod api { ], ) } - /// Similar to `ErasStakers`, this holds the preferences of validators. - /// - /// This is keyed first by the era index to allow bulk deletion and then the stash - /// account. - /// - /// Is it removed after `HISTORY_DEPTH` eras. + #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] + #[doc = ""] + #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] + #[doc = ""] + #[doc = " Is it removed after `HISTORY_DEPTH` eras."] pub fn eras_validator_prefs_root( &self, ) -> ::subxt::storage::address::Address< @@ -14511,9 +13203,9 @@ pub mod api { ], ) } - /// The total validator era payout for the last `HISTORY_DEPTH` eras. - /// - /// Eras that haven't finished yet or has been removed doesn't have reward. + #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] + #[doc = ""] + #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -14535,9 +13227,9 @@ pub mod api { ], ) } - /// The total validator era payout for the last `HISTORY_DEPTH` eras. - /// - /// Eras that haven't finished yet or has been removed doesn't have reward. + #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] + #[doc = ""] + #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] pub fn eras_validator_reward_root( &self, ) -> ::subxt::storage::address::Address< @@ -14558,8 +13250,8 @@ pub mod api { ], ) } - /// Rewards for the last `HISTORY_DEPTH` eras. - /// If reward hasn't been set or has been removed then 0 reward is returned. + #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] + #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -14581,8 +13273,8 @@ pub mod api { ], ) } - /// Rewards for the last `HISTORY_DEPTH` eras. - /// If reward hasn't been set or has been removed then 0 reward is returned. + #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] + #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points_root( &self, ) -> ::subxt::storage::address::Address< @@ -14603,8 +13295,8 @@ pub mod api { ], ) } - /// The total amount staked for the last `HISTORY_DEPTH` eras. - /// If total hasn't been set or has been removed then 0 stake is returned. + #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] + #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -14627,8 +13319,8 @@ pub mod api { ], ) } - /// The total amount staked for the last `HISTORY_DEPTH` eras. - /// If total hasn't been set or has been removed then 0 stake is returned. + #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] + #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake_root( &self, ) -> ::subxt::storage::address::Address< @@ -14650,7 +13342,7 @@ pub mod api { ], ) } - /// Mode of era forcing. + #[doc = " Mode of era forcing."] pub fn force_era( &self, ) -> ::subxt::storage::address::Address< @@ -14672,9 +13364,9 @@ pub mod api { ], ) } - /// The percentage of the slash that is distributed to reporters. - /// - /// The rest of the slashed value is handled by the `Slash`. + #[doc = " The percentage of the slash that is distributed to reporters."] + #[doc = ""] + #[doc = " The rest of the slashed value is handled by the `Slash`."] pub fn slash_reward_fraction( &self, ) -> ::subxt::storage::address::Address< @@ -14696,8 +13388,8 @@ pub mod api { ], ) } - /// The amount of currency given to reporters of a slash event which was - /// canceled by extraordinary circumstances (e.g. governance). + #[doc = " The amount of currency given to reporters of a slash event which was"] + #[doc = " canceled by extraordinary circumstances (e.g. governance)."] pub fn canceled_slash_payout( &self, ) -> ::subxt::storage::address::Address< @@ -14719,7 +13411,7 @@ pub mod api { ], ) } - /// All unapplied slashes that are queued for later. + #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -14747,7 +13439,7 @@ pub mod api { ], ) } - /// All unapplied slashes that are queued for later. + #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes_root( &self, ) -> ::subxt::storage::address::Address< @@ -14774,10 +13466,10 @@ pub mod api { ], ) } - /// A mapping from still-bonded eras to the first session index of that era. - /// - /// Must contains information for eras for the range: - /// `[active_era - bounding_duration; active_era]` + #[doc = " A mapping from still-bonded eras to the first session index of that era."] + #[doc = ""] + #[doc = " Must contains information for eras for the range:"] + #[doc = " `[active_era - bounding_duration; active_era]`"] pub fn bonded_eras( &self, ) -> ::subxt::storage::address::Address< @@ -14799,8 +13491,8 @@ pub mod api { ], ) } - /// All slashing events on validators, mapped by era to the highest slash proportion - /// and slash value of the era. + #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] + #[doc = " and slash value of the era."] pub fn validator_slash_in_era( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -14826,8 +13518,8 @@ pub mod api { ], ) } - /// All slashing events on validators, mapped by era to the highest slash proportion - /// and slash value of the era. + #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] + #[doc = " and slash value of the era."] pub fn validator_slash_in_era_root( &self, ) -> ::subxt::storage::address::Address< @@ -14848,8 +13540,7 @@ pub mod api { ], ) } - /// All slashing events on nominators, mapped by era to the highest slash value of - /// the era. + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -14875,8 +13566,7 @@ pub mod api { ], ) } - /// All slashing events on nominators, mapped by era to the highest slash value of - /// the era. + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era_root( &self, ) -> ::subxt::storage::address::Address< @@ -14897,7 +13587,7 @@ pub mod api { ], ) } - /// Slashing spans for stash accounts. + #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -14920,7 +13610,7 @@ pub mod api { ], ) } - /// Slashing spans for stash accounts. + #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans_root( &self, ) -> ::subxt::storage::address::Address< @@ -14942,8 +13632,8 @@ pub mod api { ], ) } - /// Records information about the maximum slash of a stash within a slashing span, - /// as well as how much reward has been paid out. + #[doc = " Records information about the maximum slash of a stash within a slashing span,"] + #[doc = " as well as how much reward has been paid out."] pub fn span_slash( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -14969,8 +13659,8 @@ pub mod api { ], ) } - /// Records information about the maximum slash of a stash within a slashing span, - /// as well as how much reward has been paid out. + #[doc = " Records information about the maximum slash of a stash within a slashing span,"] + #[doc = " as well as how much reward has been paid out."] pub fn span_slash_root( &self, ) -> ::subxt::storage::address::Address< @@ -14991,10 +13681,9 @@ pub mod api { ], ) } - /// The last planned session scheduled by the session pallet. - /// - /// This is basically in sync with the call to - /// [`pallet_session::SessionManager::new_session`]. + #[doc = " The last planned session scheduled by the session pallet."] + #[doc = ""] + #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] pub fn current_planned_session( &self, ) -> ::subxt::storage::address::Address< @@ -15015,15 +13704,15 @@ pub mod api { ], ) } - /// Indices of validators that have offended in the active era and whether they are - /// currently disabled. - /// - /// This value should be a superset of disabled validators since not all offences - /// lead to the validator being disabled (if there was no slash). This is needed to - /// track the percentage of validators that have offended in the current era, - /// ensuring a new era is forced if `OffendingValidatorsThreshold` is reached. The - /// vec is always kept sorted so that we can find whether a given validator has - /// previously offended using binary search. It gets cleared when the era ends. + #[doc = " Indices of validators that have offended in the active era and whether they are currently"] + #[doc = " disabled."] + #[doc = ""] + #[doc = " This value should be a superset of disabled validators since not all offences lead to the"] + #[doc = " validator being disabled (if there was no slash). This is needed to track the percentage of"] + #[doc = " validators that have offended in the current era, ensuring a new era is forced if"] + #[doc = " `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find"] + #[doc = " whether a given validator has previously offended using binary search. It gets cleared when"] + #[doc = " the era ends."] pub fn offending_validators( &self, ) -> ::subxt::storage::address::Address< @@ -15045,10 +13734,9 @@ pub mod api { ], ) } - /// The threshold for when users can start calling `chill_other` for other - /// validators / nominators. The threshold is compared to the actual number of - /// validators / nominators (`CountFor*`) in the system compared to the configured - /// max (`Max*Count`). + #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] + #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] + #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] pub fn chill_threshold( &self, ) -> ::subxt::storage::address::Address< @@ -15075,26 +13763,26 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// Number of eras to keep in history. - /// - /// Following information is kept for eras in `[current_era - - /// HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`, - /// `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`, - /// `ErasTotalStake`, `ErasStartSessionIndex`, - /// `StakingLedger.claimed_rewards`. - /// - /// Must be more than the number of eras delayed by session. - /// I.e. active era must always be in history. I.e. `active_era > - /// current_era - history_depth` must be guaranteed. - /// - /// If migrating an existing pallet from storage value to config value, - /// this should be set to same value or greater as in storage. - /// - /// Note: `HistoryDepth` is used as the upper bound for the `BoundedVec` - /// item `StakingLedger.claimed_rewards`. Setting this value lower than - /// the existing value can lead to inconsistencies in the - /// `StakingLedger` and will need to be handled properly in a migration. - /// The test `reducing_history_depth_abrupt` shows this effect. + #[doc = " Number of eras to keep in history."] + #[doc = ""] + #[doc = " Following information is kept for eras in `[current_era -"] + #[doc = " HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,"] + #[doc = " `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,"] + #[doc = " `ErasTotalStake`, `ErasStartSessionIndex`,"] + #[doc = " `StakingLedger.claimed_rewards`."] + #[doc = ""] + #[doc = " Must be more than the number of eras delayed by session."] + #[doc = " I.e. active era must always be in history. I.e. `active_era >"] + #[doc = " current_era - history_depth` must be guaranteed."] + #[doc = ""] + #[doc = " If migrating an existing pallet from storage value to config value,"] + #[doc = " this should be set to same value or greater as in storage."] + #[doc = ""] + #[doc = " Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`"] + #[doc = " item `StakingLedger.claimed_rewards`. Setting this value lower than"] + #[doc = " the existing value can lead to inconsistencies in the"] + #[doc = " `StakingLedger` and will need to be handled properly in a migration."] + #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] pub fn history_depth(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Staking", @@ -15107,7 +13795,7 @@ pub mod api { ], ) } - /// Number of sessions per era. + #[doc = " Number of sessions per era."] pub fn sessions_per_era( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -15122,7 +13810,7 @@ pub mod api { ], ) } - /// Number of eras that staked funds must remain bonded for. + #[doc = " Number of eras that staked funds must remain bonded for."] pub fn bonding_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -15137,10 +13825,10 @@ pub mod api { ], ) } - /// Number of eras that slashes are deferred by, after computation. - /// - /// This should be less than the bonding duration. Set to 0 if slashes - /// should be applied immediately, without opportunity for intervention. + #[doc = " Number of eras that slashes are deferred by, after computation."] + #[doc = ""] + #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] + #[doc = " should be applied immediately, without opportunity for intervention."] pub fn slash_defer_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -15155,11 +13843,10 @@ pub mod api { ], ) } - /// The maximum number of nominators rewarded for each validator. - /// - /// For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers - /// can claim their reward. This used to limit the i/o cost for the nominator - /// payout. + #[doc = " The maximum number of nominators rewarded for each validator."] + #[doc = ""] + #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] + #[doc = " claim their reward. This used to limit the i/o cost for the nominator payout."] pub fn max_nominator_rewarded_per_validator( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -15174,16 +13861,16 @@ pub mod api { ], ) } - /// The maximum number of `unlocking` chunks a [`StakingLedger`] can - /// have. Effectively determines how many unique eras a staker may be - /// unbonding in. - /// - /// Note: `MaxUnlockingChunks` is used as the upper bound for the - /// `BoundedVec` item `StakingLedger.unlocking`. Setting this value - /// lower than the existing value can lead to inconsistencies in the - /// `StakingLedger` and will need to be handled properly in a runtime - /// migration. The test `reducing_max_unlocking_chunks_abrupt` shows - /// this effect. + #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can"] + #[doc = " have. Effectively determines how many unique eras a staker may be"] + #[doc = " unbonding in."] + #[doc = ""] + #[doc = " Note: `MaxUnlockingChunks` is used as the upper bound for the"] + #[doc = " `BoundedVec` item `StakingLedger.unlocking`. Setting this value"] + #[doc = " lower than the existing value can lead to inconsistencies in the"] + #[doc = " `StakingLedger` and will need to be handled properly in a runtime"] + #[doc = " migration. The test `reducing_max_unlocking_chunks_abrupt` shows"] + #[doc = " this effect."] pub fn max_unlocking_chunks( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -15203,9 +13890,9 @@ pub mod api { } pub mod session { use super::{root_mod, runtime_types}; - ///Error for the session pallet. + #[doc = "Error for the session pallet."] pub type Error = runtime_types::pallet_session::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_session::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -15213,16 +13900,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetKeys { @@ -15234,16 +13918,13 @@ pub mod api { const CALL: &'static str = "set_keys"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PurgeKeys; @@ -15254,7 +13935,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::set_keys`]. + #[doc = "See [`Pallet::set_keys`]."] pub fn set_keys( &self, keys: runtime_types::tangle_testnet_runtime::opaque::SessionKeys, @@ -15271,7 +13952,7 @@ pub mod api { ], ) } - ///See [`Pallet::purge_keys`]. + #[doc = "See [`Pallet::purge_keys`]."] pub fn purge_keys(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Session", @@ -15287,26 +13968,23 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_session::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///New session has happened. Note that the argument is the session index, not the - ///block number as the type might suggest. + #[doc = "New session has happened. Note that the argument is the session index, not the"] + #[doc = "block number as the type might suggest."] pub struct NewSession { pub session_index: ::core::primitive::u32, } @@ -15319,7 +13997,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The current set of validators. + #[doc = " The current set of validators."] pub fn validators( &self, ) -> ::subxt::storage::address::Address< @@ -15341,7 +14019,7 @@ pub mod api { ], ) } - /// Current index of the session. + #[doc = " Current index of the session."] pub fn current_index( &self, ) -> ::subxt::storage::address::Address< @@ -15363,8 +14041,8 @@ pub mod api { ], ) } - /// True if the underlying economic identities or weighting behind the validators - /// has changed in the queued validator set. + #[doc = " True if the underlying economic identities or weighting behind the validators"] + #[doc = " has changed in the queued validator set."] pub fn queued_changed( &self, ) -> ::subxt::storage::address::Address< @@ -15386,8 +14064,8 @@ pub mod api { ], ) } - /// The queued keys for the next session. When the next session begins, these keys - /// will be used to determine the validator's session keys. + #[doc = " The queued keys for the next session. When the next session begins, these keys"] + #[doc = " will be used to determine the validator's session keys."] pub fn queued_keys( &self, ) -> ::subxt::storage::address::Address< @@ -15411,11 +14089,11 @@ pub mod api { ], ) } - /// Indices of disabled validators. - /// - /// The vec is always kept sorted so that we can find whether a given validator is - /// disabled using binary search. It gets cleared when `on_session_ending` returns - /// a new set of identities. + #[doc = " Indices of disabled validators."] + #[doc = ""] + #[doc = " The vec is always kept sorted so that we can find whether a given validator is"] + #[doc = " disabled using binary search. It gets cleared when `on_session_ending` returns"] + #[doc = " a new set of identities."] pub fn disabled_validators( &self, ) -> ::subxt::storage::address::Address< @@ -15436,7 +14114,7 @@ pub mod api { ], ) } - /// The next session keys for a validator. + #[doc = " The next session keys for a validator."] pub fn next_keys( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -15458,7 +14136,7 @@ pub mod api { ], ) } - /// The next session keys for a validator. + #[doc = " The next session keys for a validator."] pub fn next_keys_root( &self, ) -> ::subxt::storage::address::Address< @@ -15479,7 +14157,7 @@ pub mod api { ], ) } - /// The owner of a key. The key is the `KeyTypeId` + the encoded key. + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner( &self, _0: impl ::std::borrow::Borrow, @@ -15506,7 +14184,7 @@ pub mod api { ], ) } - /// The owner of a key. The key is the `KeyTypeId` + the encoded key. + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_root( &self, ) -> ::subxt::storage::address::Address< @@ -15537,8 +14215,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Mapping from historical session indices to session-data root hash and validator - /// count. + #[doc = " Mapping from historical session indices to session-data root hash and validator count."] pub fn historical_sessions( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -15561,8 +14238,7 @@ pub mod api { ], ) } - /// Mapping from historical session indices to session-data root hash and validator - /// count. + #[doc = " Mapping from historical session indices to session-data root hash and validator count."] pub fn historical_sessions_root( &self, ) -> ::subxt::storage::address::Address< @@ -15584,7 +14260,7 @@ pub mod api { ], ) } - /// The range of historical sessions we store. [first, last) + #[doc = " The range of historical sessions we store. [first, last)"] pub fn stored_range( &self, ) -> ::subxt::storage::address::Address< @@ -15610,9 +14286,9 @@ pub mod api { } pub mod treasury { use super::{root_mod, runtime_types}; - ///Error for the treasury pallet. + #[doc = "Error for the treasury pallet."] pub type Error = runtime_types::pallet_treasury::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_treasury::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -15620,16 +14296,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeSpend { @@ -15645,16 +14318,13 @@ pub mod api { const CALL: &'static str = "propose_spend"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RejectProposal { @@ -15666,16 +14336,13 @@ pub mod api { const CALL: &'static str = "reject_proposal"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveProposal { @@ -15687,16 +14354,13 @@ pub mod api { const CALL: &'static str = "approve_proposal"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Spend { @@ -15712,16 +14376,13 @@ pub mod api { const CALL: &'static str = "spend"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveApproval { @@ -15735,7 +14396,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::propose_spend`]. + #[doc = "See [`Pallet::propose_spend`]."] pub fn propose_spend( &self, value: ::core::primitive::u128, @@ -15755,7 +14416,7 @@ pub mod api { ], ) } - ///See [`Pallet::reject_proposal`]. + #[doc = "See [`Pallet::reject_proposal`]."] pub fn reject_proposal( &self, proposal_id: ::core::primitive::u32, @@ -15771,7 +14432,7 @@ pub mod api { ], ) } - ///See [`Pallet::approve_proposal`]. + #[doc = "See [`Pallet::approve_proposal`]."] pub fn approve_proposal( &self, proposal_id: ::core::primitive::u32, @@ -15787,7 +14448,7 @@ pub mod api { ], ) } - ///See [`Pallet::spend`]. + #[doc = "See [`Pallet::spend`]."] pub fn spend( &self, amount: ::core::primitive::u128, @@ -15808,7 +14469,7 @@ pub mod api { ], ) } - ///See [`Pallet::remove_approval`]. + #[doc = "See [`Pallet::remove_approval`]."] pub fn remove_approval( &self, proposal_id: ::core::primitive::u32, @@ -15827,25 +14488,22 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_treasury::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///New proposal. + #[doc = "New proposal."] pub struct Proposed { pub proposal_index: ::core::primitive::u32, } @@ -15854,20 +14512,17 @@ pub mod api { const EVENT: &'static str = "Proposed"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///We have ended a spend period and will now allocate funds. + #[doc = "We have ended a spend period and will now allocate funds."] pub struct Spending { pub budget_remaining: ::core::primitive::u128, } @@ -15876,19 +14531,16 @@ pub mod api { const EVENT: &'static str = "Spending"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some funds have been allocated. + #[doc = "Some funds have been allocated."] pub struct Awarded { pub proposal_index: ::core::primitive::u32, pub award: ::core::primitive::u128, @@ -15899,19 +14551,16 @@ pub mod api { const EVENT: &'static str = "Awarded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A proposal was rejected; funds were slashed. + #[doc = "A proposal was rejected; funds were slashed."] pub struct Rejected { pub proposal_index: ::core::primitive::u32, pub slashed: ::core::primitive::u128, @@ -15921,20 +14570,17 @@ pub mod api { const EVENT: &'static str = "Rejected"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some of our funds have been burnt. + #[doc = "Some of our funds have been burnt."] pub struct Burnt { pub burnt_funds: ::core::primitive::u128, } @@ -15943,20 +14589,17 @@ pub mod api { const EVENT: &'static str = "Burnt"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Spending has finished; this is the amount that rolls over until next spend. + #[doc = "Spending has finished; this is the amount that rolls over until next spend."] pub struct Rollover { pub rollover_balance: ::core::primitive::u128, } @@ -15965,20 +14608,17 @@ pub mod api { const EVENT: &'static str = "Rollover"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Some funds have been deposited. + #[doc = "Some funds have been deposited."] pub struct Deposit { pub value: ::core::primitive::u128, } @@ -15987,19 +14627,16 @@ pub mod api { const EVENT: &'static str = "Deposit"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A new spend proposal has been approved. + #[doc = "A new spend proposal has been approved."] pub struct SpendApproved { pub proposal_index: ::core::primitive::u32, pub amount: ::core::primitive::u128, @@ -16010,19 +14647,16 @@ pub mod api { const EVENT: &'static str = "SpendApproved"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The inactive funds of the pallet have been updated. + #[doc = "The inactive funds of the pallet have been updated."] pub struct UpdatedInactive { pub reactivated: ::core::primitive::u128, pub deactivated: ::core::primitive::u128, @@ -16036,7 +14670,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Number of proposals that have been made. + #[doc = " Number of proposals that have been made."] pub fn proposal_count( &self, ) -> ::subxt::storage::address::Address< @@ -16057,7 +14691,7 @@ pub mod api { ], ) } - /// Proposals that have been made. + #[doc = " Proposals that have been made."] pub fn proposals( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -16083,7 +14717,7 @@ pub mod api { ], ) } - /// Proposals that have been made. + #[doc = " Proposals that have been made."] pub fn proposals_root( &self, ) -> ::subxt::storage::address::Address< @@ -16108,7 +14742,7 @@ pub mod api { ], ) } - /// The amount which has been reported as inactive to Currency. + #[doc = " The amount which has been reported as inactive to Currency."] pub fn deactivated( &self, ) -> ::subxt::storage::address::Address< @@ -16130,7 +14764,7 @@ pub mod api { ], ) } - /// Proposal indices that have been approved but not yet awarded. + #[doc = " Proposal indices that have been approved but not yet awarded."] pub fn approvals( &self, ) -> ::subxt::storage::address::Address< @@ -16159,8 +14793,8 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// Fraction of a proposal's value that should be bonded in order to place the - /// proposal. An accepted proposal gets these back. A rejected proposal does not. + #[doc = " Fraction of a proposal's value that should be bonded in order to place the proposal."] + #[doc = " An accepted proposal gets these back. A rejected proposal does not."] pub fn proposal_bond( &self, ) -> ::subxt::constants::Address @@ -16175,8 +14809,7 @@ pub mod api { ], ) } - /// Minimum amount of funds that should be placed in a deposit for making a - /// proposal. + #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -16190,8 +14823,7 @@ pub mod api { ], ) } - /// Maximum amount of funds that should be placed in a deposit for making a - /// proposal. + #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_maximum( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { @@ -16206,7 +14838,7 @@ pub mod api { ], ) } - /// Period between successive spends. + #[doc = " Period between successive spends."] pub fn spend_period(&self) -> ::subxt::constants::Address<::core::primitive::u64> { ::subxt::constants::Address::new_static( "Treasury", @@ -16219,7 +14851,7 @@ pub mod api { ], ) } - /// Percentage of spare funds (if any) that are burnt per spend period. + #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] pub fn burn( &self, ) -> ::subxt::constants::Address @@ -16234,7 +14866,7 @@ pub mod api { ], ) } - /// The treasury's pallet id, used for deriving its sovereign account ID. + #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] pub fn pallet_id( &self, ) -> ::subxt::constants::Address { @@ -16248,10 +14880,9 @@ pub mod api { ], ) } - /// The maximum number of approvals that can wait in the spending queue. - /// - /// NOTE: This parameter is also used within the Bounties Pallet extension if - /// enabled. + #[doc = " The maximum number of approvals that can wait in the spending queue."] + #[doc = ""] + #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] pub fn max_approvals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( "Treasury", @@ -16269,9 +14900,9 @@ pub mod api { } pub mod bounties { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_bounties::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_bounties::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -16279,16 +14910,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeBounty { @@ -16301,16 +14929,13 @@ pub mod api { const CALL: &'static str = "propose_bounty"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveBounty { @@ -16322,16 +14947,13 @@ pub mod api { const CALL: &'static str = "approve_bounty"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeCurator { @@ -16349,16 +14971,13 @@ pub mod api { const CALL: &'static str = "propose_curator"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnassignCurator { @@ -16370,16 +14989,13 @@ pub mod api { const CALL: &'static str = "unassign_curator"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AcceptCurator { @@ -16391,16 +15007,13 @@ pub mod api { const CALL: &'static str = "accept_curator"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AwardBounty { @@ -16416,16 +15029,13 @@ pub mod api { const CALL: &'static str = "award_bounty"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimBounty { @@ -16437,16 +15047,13 @@ pub mod api { const CALL: &'static str = "claim_bounty"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CloseBounty { @@ -16458,16 +15065,13 @@ pub mod api { const CALL: &'static str = "close_bounty"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExtendBountyExpiry { @@ -16482,7 +15086,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::propose_bounty`]. + #[doc = "See [`Pallet::propose_bounty`]."] pub fn propose_bounty( &self, value: ::core::primitive::u128, @@ -16499,7 +15103,7 @@ pub mod api { ], ) } - ///See [`Pallet::approve_bounty`]. + #[doc = "See [`Pallet::approve_bounty`]."] pub fn approve_bounty( &self, bounty_id: ::core::primitive::u32, @@ -16516,7 +15120,7 @@ pub mod api { ], ) } - ///See [`Pallet::propose_curator`]. + #[doc = "See [`Pallet::propose_curator`]."] pub fn propose_curator( &self, bounty_id: ::core::primitive::u32, @@ -16538,7 +15142,7 @@ pub mod api { ], ) } - ///See [`Pallet::unassign_curator`]. + #[doc = "See [`Pallet::unassign_curator`]."] pub fn unassign_curator( &self, bounty_id: ::core::primitive::u32, @@ -16555,7 +15159,7 @@ pub mod api { ], ) } - ///See [`Pallet::accept_curator`]. + #[doc = "See [`Pallet::accept_curator`]."] pub fn accept_curator( &self, bounty_id: ::core::primitive::u32, @@ -16571,7 +15175,7 @@ pub mod api { ], ) } - ///See [`Pallet::award_bounty`]. + #[doc = "See [`Pallet::award_bounty`]."] pub fn award_bounty( &self, bounty_id: ::core::primitive::u32, @@ -16591,7 +15195,7 @@ pub mod api { ], ) } - ///See [`Pallet::claim_bounty`]. + #[doc = "See [`Pallet::claim_bounty`]."] pub fn claim_bounty( &self, bounty_id: ::core::primitive::u32, @@ -16608,7 +15212,7 @@ pub mod api { ], ) } - ///See [`Pallet::close_bounty`]. + #[doc = "See [`Pallet::close_bounty`]."] pub fn close_bounty( &self, bounty_id: ::core::primitive::u32, @@ -16625,7 +15229,7 @@ pub mod api { ], ) } - ///See [`Pallet::extend_bounty_expiry`]. + #[doc = "See [`Pallet::extend_bounty_expiry`]."] pub fn extend_bounty_expiry( &self, bounty_id: ::core::primitive::u32, @@ -16645,25 +15249,22 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_bounties::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///New bounty proposal. + #[doc = "New bounty proposal."] pub struct BountyProposed { pub index: ::core::primitive::u32, } @@ -16672,19 +15273,16 @@ pub mod api { const EVENT: &'static str = "BountyProposed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A bounty proposal was rejected; funds were slashed. + #[doc = "A bounty proposal was rejected; funds were slashed."] pub struct BountyRejected { pub index: ::core::primitive::u32, pub bond: ::core::primitive::u128, @@ -16694,20 +15292,17 @@ pub mod api { const EVENT: &'static str = "BountyRejected"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A bounty proposal is funded and became active. + #[doc = "A bounty proposal is funded and became active."] pub struct BountyBecameActive { pub index: ::core::primitive::u32, } @@ -16716,19 +15311,16 @@ pub mod api { const EVENT: &'static str = "BountyBecameActive"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A bounty is awarded to a beneficiary. + #[doc = "A bounty is awarded to a beneficiary."] pub struct BountyAwarded { pub index: ::core::primitive::u32, pub beneficiary: ::subxt::utils::AccountId32, @@ -16738,19 +15330,16 @@ pub mod api { const EVENT: &'static str = "BountyAwarded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A bounty is claimed by beneficiary. + #[doc = "A bounty is claimed by beneficiary."] pub struct BountyClaimed { pub index: ::core::primitive::u32, pub payout: ::core::primitive::u128, @@ -16761,20 +15350,17 @@ pub mod api { const EVENT: &'static str = "BountyClaimed"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A bounty is cancelled. + #[doc = "A bounty is cancelled."] pub struct BountyCanceled { pub index: ::core::primitive::u32, } @@ -16783,20 +15369,17 @@ pub mod api { const EVENT: &'static str = "BountyCanceled"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A bounty expiry is extended. + #[doc = "A bounty expiry is extended."] pub struct BountyExtended { pub index: ::core::primitive::u32, } @@ -16809,7 +15392,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Number of bounty proposals that have been made. + #[doc = " Number of bounty proposals that have been made."] pub fn bounty_count( &self, ) -> ::subxt::storage::address::Address< @@ -16831,7 +15414,7 @@ pub mod api { ], ) } - /// Bounties that have been made. + #[doc = " Bounties that have been made."] pub fn bounties( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -16857,7 +15440,7 @@ pub mod api { ], ) } - /// Bounties that have been made. + #[doc = " Bounties that have been made."] pub fn bounties_root( &self, ) -> ::subxt::storage::address::Address< @@ -16882,7 +15465,7 @@ pub mod api { ], ) } - /// The description of each bounty. + #[doc = " The description of each bounty."] pub fn bounty_descriptions( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -16906,7 +15489,7 @@ pub mod api { ], ) } - /// The description of each bounty. + #[doc = " The description of each bounty."] pub fn bounty_descriptions_root( &self, ) -> ::subxt::storage::address::Address< @@ -16929,7 +15512,7 @@ pub mod api { ], ) } - /// Bounty indices that have been approved but not yet funded. + #[doc = " Bounty indices that have been approved but not yet funded."] pub fn bounty_approvals( &self, ) -> ::subxt::storage::address::Address< @@ -16958,7 +15541,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The amount held on deposit for placing a bounty proposal. + #[doc = " The amount held on deposit for placing a bounty proposal."] pub fn bounty_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -16972,8 +15555,7 @@ pub mod api { ], ) } - /// The delay period for which a bounty beneficiary need to wait before claim the - /// payout. + #[doc = " The delay period for which a bounty beneficiary need to wait before claim the payout."] pub fn bounty_deposit_payout_delay( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -16988,7 +15570,7 @@ pub mod api { ], ) } - /// Bounty duration in blocks. + #[doc = " Bounty duration in blocks."] pub fn bounty_update_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -17003,10 +15585,10 @@ pub mod api { ], ) } - /// The curator deposit is calculated as a percentage of the curator fee. - /// - /// This deposit has optional upper and lower bounds with `CuratorDepositMax` and - /// `CuratorDepositMin`. + #[doc = " The curator deposit is calculated as a percentage of the curator fee."] + #[doc = ""] + #[doc = " This deposit has optional upper and lower bounds with `CuratorDepositMax` and"] + #[doc = " `CuratorDepositMin`."] pub fn curator_deposit_multiplier( &self, ) -> ::subxt::constants::Address @@ -17021,8 +15603,7 @@ pub mod api { ], ) } - /// Maximum amount of funds that should be placed in a deposit for making a - /// proposal. + #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_max( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { @@ -17037,8 +15618,7 @@ pub mod api { ], ) } - /// Minimum amount of funds that should be placed in a deposit for making a - /// proposal. + #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_min( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { @@ -17053,7 +15633,7 @@ pub mod api { ], ) } - /// Minimum value for a bounty. + #[doc = " Minimum value for a bounty."] pub fn bounty_value_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -17067,8 +15647,7 @@ pub mod api { ], ) } - /// The amount held on deposit per byte within the tip report reason or bounty - /// description. + #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -17082,10 +15661,9 @@ pub mod api { ], ) } - /// Maximum acceptable reason length. - /// - /// Benchmarks depend on this value, be sure to update weights file when changing - /// this value + #[doc = " Maximum acceptable reason length."] + #[doc = ""] + #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] pub fn maximum_reason_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -17105,9 +15683,9 @@ pub mod api { } pub mod child_bounties { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_child_bounties::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_child_bounties::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -17115,16 +15693,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddChildBounty { @@ -17139,16 +15714,13 @@ pub mod api { const CALL: &'static str = "add_child_bounty"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProposeCurator { @@ -17168,16 +15740,13 @@ pub mod api { const CALL: &'static str = "propose_curator"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AcceptCurator { @@ -17191,16 +15760,13 @@ pub mod api { const CALL: &'static str = "accept_curator"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnassignCurator { @@ -17214,16 +15780,13 @@ pub mod api { const CALL: &'static str = "unassign_curator"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AwardChildBounty { @@ -17241,16 +15804,13 @@ pub mod api { const CALL: &'static str = "award_child_bounty"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimChildBounty { @@ -17264,16 +15824,13 @@ pub mod api { const CALL: &'static str = "claim_child_bounty"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CloseChildBounty { @@ -17289,7 +15846,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::add_child_bounty`]. + #[doc = "See [`Pallet::add_child_bounty`]."] pub fn add_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, @@ -17308,7 +15865,7 @@ pub mod api { ], ) } - ///See [`Pallet::propose_curator`]. + #[doc = "See [`Pallet::propose_curator`]."] pub fn propose_curator( &self, parent_bounty_id: ::core::primitive::u32, @@ -17330,7 +15887,7 @@ pub mod api { ], ) } - ///See [`Pallet::accept_curator`]. + #[doc = "See [`Pallet::accept_curator`]."] pub fn accept_curator( &self, parent_bounty_id: ::core::primitive::u32, @@ -17348,7 +15905,7 @@ pub mod api { ], ) } - ///See [`Pallet::unassign_curator`]. + #[doc = "See [`Pallet::unassign_curator`]."] pub fn unassign_curator( &self, parent_bounty_id: ::core::primitive::u32, @@ -17366,7 +15923,7 @@ pub mod api { ], ) } - ///See [`Pallet::award_child_bounty`]. + #[doc = "See [`Pallet::award_child_bounty`]."] pub fn award_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, @@ -17388,7 +15945,7 @@ pub mod api { ], ) } - ///See [`Pallet::claim_child_bounty`]. + #[doc = "See [`Pallet::claim_child_bounty`]."] pub fn claim_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, @@ -17405,7 +15962,7 @@ pub mod api { ], ) } - ///See [`Pallet::close_child_bounty`]. + #[doc = "See [`Pallet::close_child_bounty`]."] pub fn close_child_bounty( &self, parent_bounty_id: ::core::primitive::u32, @@ -17424,24 +15981,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_child_bounties::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A child-bounty is added. + #[doc = "A child-bounty is added."] pub struct Added { pub index: ::core::primitive::u32, pub child_index: ::core::primitive::u32, @@ -17451,19 +16005,16 @@ pub mod api { const EVENT: &'static str = "Added"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A child-bounty is awarded to a beneficiary. + #[doc = "A child-bounty is awarded to a beneficiary."] pub struct Awarded { pub index: ::core::primitive::u32, pub child_index: ::core::primitive::u32, @@ -17474,19 +16025,16 @@ pub mod api { const EVENT: &'static str = "Awarded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A child-bounty is claimed by beneficiary. + #[doc = "A child-bounty is claimed by beneficiary."] pub struct Claimed { pub index: ::core::primitive::u32, pub child_index: ::core::primitive::u32, @@ -17498,19 +16046,16 @@ pub mod api { const EVENT: &'static str = "Claimed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A child-bounty is cancelled. + #[doc = "A child-bounty is cancelled."] pub struct Canceled { pub index: ::core::primitive::u32, pub child_index: ::core::primitive::u32, @@ -17524,7 +16069,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Number of total child bounties. + #[doc = " Number of total child bounties."] pub fn child_bounty_count( &self, ) -> ::subxt::storage::address::Address< @@ -17545,8 +16090,8 @@ pub mod api { ], ) } - /// Number of child bounties per parent bounty. - /// Map of parent bounty index to number of child bounties. + #[doc = " Number of child bounties per parent bounty."] + #[doc = " Map of parent bounty index to number of child bounties."] pub fn parent_child_bounties( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -17568,8 +16113,8 @@ pub mod api { ], ) } - /// Number of child bounties per parent bounty. - /// Map of parent bounty index to number of child bounties. + #[doc = " Number of child bounties per parent bounty."] + #[doc = " Map of parent bounty index to number of child bounties."] pub fn parent_child_bounties_root( &self, ) -> ::subxt::storage::address::Address< @@ -17590,7 +16135,7 @@ pub mod api { ], ) } - /// Child bounties that have been added. + #[doc = " Child bounties that have been added."] pub fn child_bounties( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -17621,7 +16166,7 @@ pub mod api { ], ) } - /// Child bounties that have been added. + #[doc = " Child bounties that have been added."] pub fn child_bounties_root( &self, ) -> ::subxt::storage::address::Address< @@ -17647,7 +16192,7 @@ pub mod api { ], ) } - /// The description of each child-bounty. + #[doc = " The description of each child-bounty."] pub fn child_bounty_descriptions( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -17671,7 +16216,7 @@ pub mod api { ], ) } - /// The description of each child-bounty. + #[doc = " The description of each child-bounty."] pub fn child_bounty_descriptions_root( &self, ) -> ::subxt::storage::address::Address< @@ -17694,7 +16239,7 @@ pub mod api { ], ) } - /// The cumulative child-bounty curator fee for each parent bounty. + #[doc = " The cumulative child-bounty curator fee for each parent bounty."] pub fn children_curator_fees( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -17716,7 +16261,7 @@ pub mod api { ], ) } - /// The cumulative child-bounty curator fee for each parent bounty. + #[doc = " The cumulative child-bounty curator fee for each parent bounty."] pub fn children_curator_fees_root( &self, ) -> ::subxt::storage::address::Address< @@ -17743,7 +16288,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// Maximum number of child bounties that can be added to a parent bounty. + #[doc = " Maximum number of child bounties that can be added to a parent bounty."] pub fn max_active_child_bounty_count( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -17758,7 +16303,7 @@ pub mod api { ], ) } - /// Minimum value for a child-bounty. + #[doc = " Minimum value for a child-bounty."] pub fn child_bounty_value_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -17777,9 +16322,9 @@ pub mod api { } pub mod bags_list { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_bags_list::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_bags_list::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -17787,16 +16332,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Rebag { @@ -17810,16 +16352,13 @@ pub mod api { const CALL: &'static str = "rebag"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PutInFrontOf { @@ -17833,16 +16372,13 @@ pub mod api { const CALL: &'static str = "put_in_front_of"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PutInFrontOfOther { @@ -17862,7 +16398,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::rebag`]. + #[doc = "See [`Pallet::rebag`]."] pub fn rebag( &self, dislocated: ::subxt::utils::MultiAddress< @@ -17881,7 +16417,7 @@ pub mod api { ], ) } - ///See [`Pallet::put_in_front_of`]. + #[doc = "See [`Pallet::put_in_front_of`]."] pub fn put_in_front_of( &self, lighter: ::subxt::utils::MultiAddress< @@ -17900,7 +16436,7 @@ pub mod api { ], ) } - ///See [`Pallet::put_in_front_of_other`]. + #[doc = "See [`Pallet::put_in_front_of_other`]."] pub fn put_in_front_of_other( &self, heavier: ::subxt::utils::MultiAddress< @@ -17926,24 +16462,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_bags_list::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Moved an account from one bag to another. + #[doc = "Moved an account from one bag to another."] pub struct Rebagged { pub who: ::subxt::utils::AccountId32, pub from: ::core::primitive::u64, @@ -17954,19 +16487,16 @@ pub mod api { const EVENT: &'static str = "Rebagged"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Updated the score of some account to the given amount. + #[doc = "Updated the score of some account to the given amount."] pub struct ScoreUpdated { pub who: ::subxt::utils::AccountId32, pub new_score: ::core::primitive::u64, @@ -17980,9 +16510,9 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// A single node, within some bag. - /// - /// Nodes store links forward and back within their respective bags. + #[doc = " A single node, within some bag."] + #[doc = ""] + #[doc = " Nodes store links forward and back within their respective bags."] pub fn list_nodes( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -18004,9 +16534,9 @@ pub mod api { ], ) } - /// A single node, within some bag. - /// - /// Nodes store links forward and back within their respective bags. + #[doc = " A single node, within some bag."] + #[doc = ""] + #[doc = " Nodes store links forward and back within their respective bags."] pub fn list_nodes_root( &self, ) -> ::subxt::storage::address::Address< @@ -18027,7 +16557,7 @@ pub mod api { ], ) } - ///Counter for the related counted storage map + #[doc = "Counter for the related counted storage map"] pub fn counter_for_list_nodes( &self, ) -> ::subxt::storage::address::Address< @@ -18049,9 +16579,9 @@ pub mod api { ], ) } - /// A bag stored in storage. - /// - /// Stores a `Bag` struct, which stores head and tail pointers to itself. + #[doc = " A bag stored in storage."] + #[doc = ""] + #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] pub fn list_bags( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u64>, @@ -18073,9 +16603,9 @@ pub mod api { ], ) } - /// A bag stored in storage. - /// - /// Stores a `Bag` struct, which stores head and tail pointers to itself. + #[doc = " A bag stored in storage."] + #[doc = ""] + #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] pub fn list_bags_root( &self, ) -> ::subxt::storage::address::Address< @@ -18102,53 +16632,49 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The list of thresholds separating the various bags. - /// - /// Ids are separated into unsorted bags according to their score. This specifies - /// the thresholds separating the bags. An id's bag is the largest bag for which the - /// id's score is less than or equal to its upper threshold. - /// - /// When ids are iterated, higher bags are iterated completely before lower bags. - /// This means that iteration is _semi-sorted_: ids of higher score tend to come - /// before ids of lower score, but peer ids within a particular bag are sorted in - /// insertion order. - /// - /// # Expressing the constant - /// - /// This constant must be sorted in strictly increasing order. Duplicate items are - /// not permitted. - /// - /// There is an implied upper limit of `Score::MAX`; that value does not need to be - /// specified within the bag. For any two threshold lists, if one ends with - /// `Score::MAX`, the other one does not, and they are otherwise equal, the two - /// lists will behave identically. - /// - /// # Calculation - /// - /// It is recommended to generate the set of thresholds in a geometric series, such - /// that there exists some constant ratio such that `threshold[k + 1] == - /// (threshold[k] * constant_ratio).max(threshold[k] + 1)` for all `k`. - /// - /// The helpers in the `/utils/frame/generate-bags` module can simplify this - /// calculation. - /// - /// # Examples - /// - /// - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, - /// and iteration is strictly in insertion order. - /// - If `BagThresholds::get().len() == 64`, and the thresholds are determined - /// according to the procedure given above, then the constant ratio is equal to 2. - /// - If `BagThresholds::get().len() == 200`, and the thresholds are determined - /// according to the procedure given above, then the constant ratio is - /// approximately equal to 1.248. - /// - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 - /// will fall into bag 0, an id with score 2 will fall into bag 1, etc. - /// - /// # Migration - /// - /// In the event that this list ever changes, a copy of the old bags list must be - /// retained. With that `List::migrate` can be called, which will perform the - /// appropriate migration. + #[doc = " The list of thresholds separating the various bags."] + #[doc = ""] + #[doc = " Ids are separated into unsorted bags according to their score. This specifies the"] + #[doc = " thresholds separating the bags. An id's bag is the largest bag for which the id's score"] + #[doc = " is less than or equal to its upper threshold."] + #[doc = ""] + #[doc = " When ids are iterated, higher bags are iterated completely before lower bags. This means"] + #[doc = " that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower"] + #[doc = " score, but peer ids within a particular bag are sorted in insertion order."] + #[doc = ""] + #[doc = " # Expressing the constant"] + #[doc = ""] + #[doc = " This constant must be sorted in strictly increasing order. Duplicate items are not"] + #[doc = " permitted."] + #[doc = ""] + #[doc = " There is an implied upper limit of `Score::MAX`; that value does not need to be"] + #[doc = " specified within the bag. For any two threshold lists, if one ends with"] + #[doc = " `Score::MAX`, the other one does not, and they are otherwise equal, the two"] + #[doc = " lists will behave identically."] + #[doc = ""] + #[doc = " # Calculation"] + #[doc = ""] + #[doc = " It is recommended to generate the set of thresholds in a geometric series, such that"] + #[doc = " there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *"] + #[doc = " constant_ratio).max(threshold[k] + 1)` for all `k`."] + #[doc = ""] + #[doc = " The helpers in the `/utils/frame/generate-bags` module can simplify this calculation."] + #[doc = ""] + #[doc = " # Examples"] + #[doc = ""] + #[doc = " - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and"] + #[doc = " iteration is strictly in insertion order."] + #[doc = " - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to"] + #[doc = " the procedure given above, then the constant ratio is equal to 2."] + #[doc = " - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to"] + #[doc = " the procedure given above, then the constant ratio is approximately equal to 1.248."] + #[doc = " - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall"] + #[doc = " into bag 0, an id with score 2 will fall into bag 1, etc."] + #[doc = ""] + #[doc = " # Migration"] + #[doc = ""] + #[doc = " In the event that this list ever changes, a copy of the old bags list must be retained."] + #[doc = " With that `List::migrate` can be called, which will perform the appropriate migration."] pub fn bag_thresholds( &self, ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u64>> { @@ -18167,9 +16693,9 @@ pub mod api { } pub mod nomination_pools { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -18177,16 +16703,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Join { @@ -18199,16 +16722,13 @@ pub mod api { const CALL: &'static str = "join"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondExtra { @@ -18220,16 +16740,13 @@ pub mod api { const CALL: &'static str = "bond_extra"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimPayout; @@ -18238,16 +16755,13 @@ pub mod api { const CALL: &'static str = "claim_payout"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Unbond { @@ -18263,16 +16777,13 @@ pub mod api { const CALL: &'static str = "unbond"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolWithdrawUnbonded { @@ -18284,16 +16795,13 @@ pub mod api { const CALL: &'static str = "pool_withdraw_unbonded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithdrawUnbonded { @@ -18308,16 +16816,13 @@ pub mod api { const CALL: &'static str = "withdraw_unbonded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Create { @@ -18341,16 +16846,13 @@ pub mod api { const CALL: &'static str = "create"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CreateWithPoolId { @@ -18375,16 +16877,13 @@ pub mod api { const CALL: &'static str = "create_with_pool_id"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominate { @@ -18396,16 +16895,13 @@ pub mod api { const CALL: &'static str = "nominate"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetState { @@ -18417,16 +16913,13 @@ pub mod api { const CALL: &'static str = "set_state"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetMetadata { @@ -18438,16 +16931,13 @@ pub mod api { const CALL: &'static str = "set_metadata"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetConfigs { @@ -18470,16 +16960,13 @@ pub mod api { const CALL: &'static str = "set_configs"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpdateRoles { @@ -18499,17 +16986,14 @@ pub mod api { const CALL: &'static str = "update_roles"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Chill { @@ -18520,16 +17004,13 @@ pub mod api { const CALL: &'static str = "chill"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondExtraOther { @@ -18545,16 +17026,13 @@ pub mod api { const CALL: &'static str = "bond_extra_other"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetClaimPermission { @@ -18565,16 +17043,13 @@ pub mod api { const CALL: &'static str = "set_claim_permission"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimPayoutOther { @@ -18585,16 +17060,13 @@ pub mod api { const CALL: &'static str = "claim_payout_other"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCommission { @@ -18609,16 +17081,13 @@ pub mod api { const CALL: &'static str = "set_commission"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCommissionMax { @@ -18630,16 +17099,13 @@ pub mod api { const CALL: &'static str = "set_commission_max"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetCommissionChangeRate { @@ -18653,17 +17119,14 @@ pub mod api { const CALL: &'static str = "set_commission_change_rate"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimCommission { @@ -18676,7 +17139,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::join`]. + #[doc = "See [`Pallet::join`]."] pub fn join( &self, amount: ::core::primitive::u128, @@ -18693,7 +17156,7 @@ pub mod api { ], ) } - ///See [`Pallet::bond_extra`]. + #[doc = "See [`Pallet::bond_extra`]."] pub fn bond_extra( &self, extra: runtime_types::pallet_nomination_pools::BondExtra< @@ -18712,7 +17175,7 @@ pub mod api { ], ) } - ///See [`Pallet::claim_payout`]. + #[doc = "See [`Pallet::claim_payout`]."] pub fn claim_payout(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -18725,7 +17188,7 @@ pub mod api { ], ) } - ///See [`Pallet::unbond`]. + #[doc = "See [`Pallet::unbond`]."] pub fn unbond( &self, member_account: ::subxt::utils::MultiAddress< @@ -18745,7 +17208,7 @@ pub mod api { ], ) } - ///See [`Pallet::pool_withdraw_unbonded`]. + #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] pub fn pool_withdraw_unbonded( &self, pool_id: ::core::primitive::u32, @@ -18763,7 +17226,7 @@ pub mod api { ], ) } - ///See [`Pallet::withdraw_unbonded`]. + #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded( &self, member_account: ::subxt::utils::MultiAddress< @@ -18784,7 +17247,7 @@ pub mod api { ], ) } - ///See [`Pallet::create`]. + #[doc = "See [`Pallet::create`]."] pub fn create( &self, amount: ::core::primitive::u128, @@ -18812,7 +17275,7 @@ pub mod api { ], ) } - ///See [`Pallet::create_with_pool_id`]. + #[doc = "See [`Pallet::create_with_pool_id`]."] pub fn create_with_pool_id( &self, amount: ::core::primitive::u128, @@ -18842,7 +17305,7 @@ pub mod api { ], ) } - ///See [`Pallet::nominate`]. + #[doc = "See [`Pallet::nominate`]."] pub fn nominate( &self, pool_id: ::core::primitive::u32, @@ -18859,7 +17322,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_state`]. + #[doc = "See [`Pallet::set_state`]."] pub fn set_state( &self, pool_id: ::core::primitive::u32, @@ -18876,7 +17339,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_metadata`]. + #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, pool_id: ::core::primitive::u32, @@ -18893,7 +17356,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_configs`]. + #[doc = "See [`Pallet::set_configs`]."] pub fn set_configs( &self, min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< @@ -18934,7 +17397,7 @@ pub mod api { ], ) } - ///See [`Pallet::update_roles`]. + #[doc = "See [`Pallet::update_roles`]."] pub fn update_roles( &self, pool_id: ::core::primitive::u32, @@ -18960,7 +17423,7 @@ pub mod api { ], ) } - ///See [`Pallet::chill`]. + #[doc = "See [`Pallet::chill`]."] pub fn chill( &self, pool_id: ::core::primitive::u32, @@ -18976,7 +17439,7 @@ pub mod api { ], ) } - ///See [`Pallet::bond_extra_other`]. + #[doc = "See [`Pallet::bond_extra_other`]."] pub fn bond_extra_other( &self, member: ::subxt::utils::MultiAddress< @@ -18999,7 +17462,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_claim_permission`]. + #[doc = "See [`Pallet::set_claim_permission`]."] pub fn set_claim_permission( &self, permission: runtime_types::pallet_nomination_pools::ClaimPermission, @@ -19015,7 +17478,7 @@ pub mod api { ], ) } - ///See [`Pallet::claim_payout_other`]. + #[doc = "See [`Pallet::claim_payout_other`]."] pub fn claim_payout_other( &self, other: ::subxt::utils::AccountId32, @@ -19032,7 +17495,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_commission`]. + #[doc = "See [`Pallet::set_commission`]."] pub fn set_commission( &self, pool_id: ::core::primitive::u32, @@ -19052,7 +17515,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_commission_max`]. + #[doc = "See [`Pallet::set_commission_max`]."] pub fn set_commission_max( &self, pool_id: ::core::primitive::u32, @@ -19070,7 +17533,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_commission_change_rate`]. + #[doc = "See [`Pallet::set_commission_change_rate`]."] pub fn set_commission_change_rate( &self, pool_id: ::core::primitive::u32, @@ -19090,7 +17553,7 @@ pub mod api { ], ) } - ///See [`Pallet::claim_commission`]. + #[doc = "See [`Pallet::claim_commission`]."] pub fn claim_commission( &self, pool_id: ::core::primitive::u32, @@ -19108,24 +17571,21 @@ pub mod api { } } } - ///Events of this pallet. + #[doc = "Events of this pallet."] pub type Event = runtime_types::pallet_nomination_pools::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A pool has been created. + #[doc = "A pool has been created."] pub struct Created { pub depositor: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, @@ -19135,19 +17595,16 @@ pub mod api { const EVENT: &'static str = "Created"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A member has became bonded in a pool. + #[doc = "A member has became bonded in a pool."] pub struct Bonded { pub member: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, @@ -19159,19 +17616,16 @@ pub mod api { const EVENT: &'static str = "Bonded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A payout has been made to a member. + #[doc = "A payout has been made to a member."] pub struct PaidOut { pub member: ::subxt::utils::AccountId32, pub pool_id: ::core::primitive::u32, @@ -19182,29 +17636,26 @@ pub mod api { const EVENT: &'static str = "PaidOut"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A member has unbonded from their pool. - /// - /// - `balance` is the corresponding balance of the number of points that has been - /// requested to be unbonded (the argument of the `unbond` transaction) from the bonded - /// pool. - /// - `points` is the number of points that are issued as a result of `balance` being - ///dissolved into the corresponding unbonding pool. - /// - `era` is the era in which the balance will be unbonded. - ///In the absence of slashing, these values will match. In the presence of slashing, - /// the number of points that are issued in the unbonding pool will be less than the - /// amount requested to be unbonded. + #[doc = "A member has unbonded from their pool."] + #[doc = ""] + #[doc = "- `balance` is the corresponding balance of the number of points that has been"] + #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] + #[doc = " pool."] + #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] + #[doc = "dissolved into the corresponding unbonding pool."] + #[doc = "- `era` is the era in which the balance will be unbonded."] + #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] + #[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::utils::AccountId32, pub pool_id: ::core::primitive::u32, @@ -19217,24 +17668,21 @@ pub mod api { const EVENT: &'static str = "Unbonded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A member has withdrawn from their pool. - /// - ///The given number of `points` have been dissolved in return of `balance`. - /// - ///Similar to `Unbonded` event, in the absence of slashing, the ratio of point to - /// balance will be 1. + #[doc = "A member has withdrawn from their pool."] + #[doc = ""] + #[doc = "The given number of `points` have been dissolved in return of `balance`."] + #[doc = ""] + #[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::utils::AccountId32, pub pool_id: ::core::primitive::u32, @@ -19246,20 +17694,17 @@ pub mod api { const EVENT: &'static str = "Withdrawn"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A pool has been destroyed. + #[doc = "A pool has been destroyed."] pub struct Destroyed { pub pool_id: ::core::primitive::u32, } @@ -19268,19 +17713,16 @@ pub mod api { const EVENT: &'static str = "Destroyed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The state of a pool has changed + #[doc = "The state of a pool has changed"] pub struct StateChanged { pub pool_id: ::core::primitive::u32, pub new_state: runtime_types::pallet_nomination_pools::PoolState, @@ -19290,21 +17732,18 @@ pub mod api { const EVENT: &'static str = "StateChanged"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A member has been removed from a pool. - /// - ///The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked). + #[doc = "A member has been removed from a pool."] + #[doc = ""] + #[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::utils::AccountId32, @@ -19314,20 +17753,17 @@ pub mod api { const EVENT: &'static str = "MemberRemoved"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The roles of a pool have been updated to the given new roles. Note that the - /// depositor can never change. + #[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::utils::AccountId32>, pub bouncer: ::core::option::Option<::subxt::utils::AccountId32>, @@ -19338,19 +17774,16 @@ pub mod api { const EVENT: &'static str = "RolesUpdated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The active balance of pool `pool_id` has been slashed to `balance`. + #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] pub struct PoolSlashed { pub pool_id: ::core::primitive::u32, pub balance: ::core::primitive::u128, @@ -19360,19 +17793,16 @@ pub mod api { const EVENT: &'static str = "PoolSlashed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. + #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] pub struct UnbondingPoolSlashed { pub pool_id: ::core::primitive::u32, pub era: ::core::primitive::u32, @@ -19383,19 +17813,16 @@ pub mod api { const EVENT: &'static str = "UnbondingPoolSlashed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A pool's commission setting has been changed. + #[doc = "A pool's commission setting has been changed."] pub struct PoolCommissionUpdated { pub pool_id: ::core::primitive::u32, pub current: ::core::option::Option<( @@ -19408,19 +17835,16 @@ pub mod api { const EVENT: &'static str = "PoolCommissionUpdated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A pool's maximum commission setting has been changed. + #[doc = "A pool's maximum commission setting has been changed."] pub struct PoolMaxCommissionUpdated { pub pool_id: ::core::primitive::u32, pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, @@ -19430,19 +17854,16 @@ pub mod api { const EVENT: &'static str = "PoolMaxCommissionUpdated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A pool's commission `change_rate` has been changed. + #[doc = "A pool's commission `change_rate` has been changed."] pub struct PoolCommissionChangeRateUpdated { pub pool_id: ::core::primitive::u32, pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< @@ -19454,19 +17875,16 @@ pub mod api { const EVENT: &'static str = "PoolCommissionChangeRateUpdated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Pool commission has been claimed. + #[doc = "Pool commission has been claimed."] pub struct PoolCommissionClaimed { pub pool_id: ::core::primitive::u32, pub commission: ::core::primitive::u128, @@ -19480,7 +17898,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Minimum amount to bond to join a pool. + #[doc = " Minimum amount to bond to join a pool."] pub fn min_join_bond( &self, ) -> ::subxt::storage::address::Address< @@ -19501,13 +17919,13 @@ pub mod api { ], ) } - /// Minimum bond required to create a pool. - /// - /// This is the amount that the depositor must put as their initial stake in the - /// pool, as an indication of "skin in the game". - /// - /// This is the value that will always exist in the staking ledger of the pool - /// bonded account while all other accounts leave. + #[doc = " Minimum bond required to create a pool."] + #[doc = ""] + #[doc = " This is the amount that the depositor must put as their initial stake in the pool, as an"] + #[doc = " indication of \"skin in the game\"."] + #[doc = ""] + #[doc = " This is the value that will always exist in the staking ledger of the pool bonded account"] + #[doc = " while all other accounts leave."] pub fn min_create_bond( &self, ) -> ::subxt::storage::address::Address< @@ -19529,8 +17947,8 @@ pub mod api { ], ) } - /// Maximum number of nomination pools that can exist. If `None`, then an unbounded - /// number of pools can exist. + #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] + #[doc = " pools can exist."] pub fn max_pools( &self, ) -> ::subxt::storage::address::Address< @@ -19552,8 +17970,8 @@ pub mod api { ], ) } - /// Maximum number of members that can exist in the system. If `None`, then the - /// count members are not bound on a system wide basis. + #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] + #[doc = " members are not bound on a system wide basis."] pub fn max_pool_members( &self, ) -> ::subxt::storage::address::Address< @@ -19575,8 +17993,8 @@ pub mod api { ], ) } - /// Maximum number of members that may belong to pool. If `None`, then the count of - /// members is not bound on a per pool basis. + #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] + #[doc = " members is not bound on a per pool basis."] pub fn max_pool_members_per_pool( &self, ) -> ::subxt::storage::address::Address< @@ -19597,9 +18015,9 @@ pub mod api { ], ) } - /// The maximum commission that can be charged by a pool. Used on commission payouts - /// to bound pool commissions that are > `GlobalMaxCommission`, necessary if a - /// future `GlobalMaxCommission` is lower than some current pool commissions. + #[doc = " The maximum commission that can be charged by a pool. Used on commission payouts to bound"] + #[doc = " pool commissions that are > `GlobalMaxCommission`, necessary if a future"] + #[doc = " `GlobalMaxCommission` is lower than some current pool commissions."] pub fn global_max_commission( &self, ) -> ::subxt::storage::address::Address< @@ -19621,9 +18039,9 @@ pub mod api { ], ) } - /// Active members. - /// - /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + #[doc = " Active members."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn pool_members( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -19646,9 +18064,9 @@ pub mod api { ], ) } - /// Active members. - /// - /// TWOX-NOTE: SAFE since `AccountId` is a secure hash. + #[doc = " Active members."] + #[doc = ""] + #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn pool_members_root( &self, ) -> ::subxt::storage::address::Address< @@ -19670,7 +18088,7 @@ pub mod api { ], ) } - ///Counter for the related counted storage map + #[doc = "Counter for the related counted storage map"] pub fn counter_for_pool_members( &self, ) -> ::subxt::storage::address::Address< @@ -19692,7 +18110,7 @@ pub mod api { ], ) } - /// Storage for bonded pools. + #[doc = " Storage for bonded pools."] pub fn bonded_pools( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -19715,7 +18133,7 @@ pub mod api { ], ) } - /// Storage for bonded pools. + #[doc = " Storage for bonded pools."] pub fn bonded_pools_root( &self, ) -> ::subxt::storage::address::Address< @@ -19737,7 +18155,7 @@ pub mod api { ], ) } - ///Counter for the related counted storage map + #[doc = "Counter for the related counted storage map"] pub fn counter_for_bonded_pools( &self, ) -> ::subxt::storage::address::Address< @@ -19758,9 +18176,8 @@ pub mod api { ], ) } - /// Reward pools. This is where there rewards for each pool accumulate. When a - /// members payout is claimed, the balance comes out fo the reward pool. Keyed by - /// the bonded pools account. + #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] + #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -19783,9 +18200,8 @@ pub mod api { ], ) } - /// Reward pools. This is where there rewards for each pool accumulate. When a - /// members payout is claimed, the balance comes out fo the reward pool. Keyed by - /// the bonded pools account. + #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] + #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_root( &self, ) -> ::subxt::storage::address::Address< @@ -19807,7 +18223,7 @@ pub mod api { ], ) } - ///Counter for the related counted storage map + #[doc = "Counter for the related counted storage map"] pub fn counter_for_reward_pools( &self, ) -> ::subxt::storage::address::Address< @@ -19829,8 +18245,8 @@ pub mod api { ], ) } - /// Groups of unbonding pools. Each group of unbonding pools belongs to a - /// bonded pool, hence the name sub-pools. Keyed by the bonded pools account. + #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] + #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -19852,8 +18268,8 @@ pub mod api { ], ) } - /// Groups of unbonding pools. Each group of unbonding pools belongs to a - /// bonded pool, hence the name sub-pools. Keyed by the bonded pools account. + #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] + #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage_root( &self, ) -> ::subxt::storage::address::Address< @@ -19874,7 +18290,7 @@ pub mod api { ], ) } - ///Counter for the related counted storage map + #[doc = "Counter for the related counted storage map"] pub fn counter_for_sub_pools_storage( &self, ) -> ::subxt::storage::address::Address< @@ -19896,7 +18312,7 @@ pub mod api { ], ) } - /// Metadata for the pool. + #[doc = " Metadata for the pool."] pub fn metadata( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -19920,7 +18336,7 @@ pub mod api { ], ) } - /// Metadata for the pool. + #[doc = " Metadata for the pool."] pub fn metadata_root( &self, ) -> ::subxt::storage::address::Address< @@ -19943,7 +18359,7 @@ pub mod api { ], ) } - ///Counter for the related counted storage map + #[doc = "Counter for the related counted storage map"] pub fn counter_for_metadata( &self, ) -> ::subxt::storage::address::Address< @@ -19965,7 +18381,7 @@ pub mod api { ], ) } - /// Ever increasing number of all pools created so far. + #[doc = " Ever increasing number of all pools created so far."] pub fn last_pool_id( &self, ) -> ::subxt::storage::address::Address< @@ -19987,10 +18403,10 @@ pub mod api { ], ) } - /// A reverse lookup from the pool's account id to its id. - /// - /// This is only used for slashing. In all other instances, the pool id is used, and - /// the accounts are deterministically derived from it. + #[doc = " A reverse lookup from the pool's account id to its id."] + #[doc = ""] + #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] + #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -20012,10 +18428,10 @@ pub mod api { ], ) } - /// A reverse lookup from the pool's account id to its id. - /// - /// This is only used for slashing. In all other instances, the pool id is used, and - /// the accounts are deterministically derived from it. + #[doc = " A reverse lookup from the pool's account id to its id."] + #[doc = ""] + #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] + #[doc = " accounts are deterministically derived from it."] pub fn reverse_pool_id_lookup_root( &self, ) -> ::subxt::storage::address::Address< @@ -20036,7 +18452,7 @@ pub mod api { ], ) } - ///Counter for the related counted storage map + #[doc = "Counter for the related counted storage map"] pub fn counter_for_reverse_pool_id_lookup( &self, ) -> ::subxt::storage::address::Address< @@ -20058,7 +18474,7 @@ pub mod api { ], ) } - /// Map from a pool member account to their opted claim permission. + #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -20080,7 +18496,7 @@ pub mod api { ], ) } - /// Map from a pool member account to their opted claim permission. + #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions_root( &self, ) -> ::subxt::storage::address::Address< @@ -20107,7 +18523,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The nomination pool's pallet id. + #[doc = " The nomination pool's pallet id."] pub fn pallet_id( &self, ) -> ::subxt::constants::Address { @@ -20121,19 +18537,18 @@ pub mod api { ], ) } - /// The maximum pool points-to-balance ratio that an `open` pool can have. - /// - /// This is important in the event slashing takes place and the pool's - /// points-to-balance ratio becomes disproportional. - /// - /// Moreover, this relates to the `RewardCounter` type as well, as the arithmetic - /// operations are a function of number of points, and by setting this value to e.g. - /// 10, you ensure that the total number of points in the system are at most 10 - /// times the total_issuance of the chain, in the absolute worse case. - /// - /// For a value of 10, the threshold would be a pool points-to-balance ratio of - /// 10:1. Such a scenario would also be the equivalent of the pool being 90% - /// slashed. + #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] + #[doc = ""] + #[doc = " This is important in the event slashing takes place and the pool's points-to-balance"] + #[doc = " ratio becomes disproportional."] + #[doc = ""] + #[doc = " Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations"] + #[doc = " are a function of number of points, and by setting this value to e.g. 10, you ensure"] + #[doc = " that the total number of points in the system are at most 10 times the total_issuance of"] + #[doc = " the chain, in the absolute worse case."] + #[doc = ""] + #[doc = " For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1."] + #[doc = " Such a scenario would also be the equivalent of the pool being 90% slashed."] pub fn max_points_to_balance( &self, ) -> ::subxt::constants::Address<::core::primitive::u8> { @@ -20153,9 +18568,9 @@ pub mod api { } pub mod scheduler { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_scheduler::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_scheduler::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -20163,16 +18578,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Schedule { @@ -20187,16 +18599,13 @@ pub mod api { const CALL: &'static str = "schedule"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Cancel { @@ -20208,16 +18617,13 @@ pub mod api { const CALL: &'static str = "cancel"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleNamed { @@ -20233,16 +18639,13 @@ pub mod api { const CALL: &'static str = "schedule_named"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelNamed { @@ -20253,16 +18656,13 @@ pub mod api { const CALL: &'static str = "cancel_named"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleAfter { @@ -20277,16 +18677,13 @@ pub mod api { const CALL: &'static str = "schedule_after"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ScheduleNamedAfter { @@ -20304,7 +18701,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::schedule`]. + #[doc = "See [`Pallet::schedule`]."] pub fn schedule( &self, when: ::core::primitive::u64, @@ -20331,7 +18728,7 @@ pub mod api { ], ) } - ///See [`Pallet::cancel`]. + #[doc = "See [`Pallet::cancel`]."] pub fn cancel( &self, when: ::core::primitive::u64, @@ -20349,7 +18746,7 @@ pub mod api { ], ) } - ///See [`Pallet::schedule_named`]. + #[doc = "See [`Pallet::schedule_named`]."] pub fn schedule_named( &self, id: [::core::primitive::u8; 32usize], @@ -20379,7 +18776,7 @@ pub mod api { ], ) } - ///See [`Pallet::cancel_named`]. + #[doc = "See [`Pallet::cancel_named`]."] pub fn cancel_named( &self, id: [::core::primitive::u8; 32usize], @@ -20395,7 +18792,7 @@ pub mod api { ], ) } - ///See [`Pallet::schedule_after`]. + #[doc = "See [`Pallet::schedule_after`]."] pub fn schedule_after( &self, after: ::core::primitive::u64, @@ -20423,7 +18820,7 @@ pub mod api { ], ) } - ///See [`Pallet::schedule_named_after`]. + #[doc = "See [`Pallet::schedule_named_after`]."] pub fn schedule_named_after( &self, id: [::core::primitive::u8; 32usize], @@ -20455,24 +18852,21 @@ pub mod api { } } } - ///Events type. + #[doc = "Events type."] pub type Event = runtime_types::pallet_scheduler::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Scheduled some task. + #[doc = "Scheduled some task."] pub struct Scheduled { pub when: ::core::primitive::u64, pub index: ::core::primitive::u32, @@ -20482,19 +18876,16 @@ pub mod api { const EVENT: &'static str = "Scheduled"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Canceled some task. + #[doc = "Canceled some task."] pub struct Canceled { pub when: ::core::primitive::u64, pub index: ::core::primitive::u32, @@ -20504,19 +18895,16 @@ pub mod api { const EVENT: &'static str = "Canceled"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Dispatched some task. + #[doc = "Dispatched some task."] pub struct Dispatched { pub task: (::core::primitive::u64, ::core::primitive::u32), pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, @@ -20527,19 +18915,16 @@ pub mod api { const EVENT: &'static str = "Dispatched"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The call for the provided hash was not found so the task has been aborted. + #[doc = "The call for the provided hash was not found so the task has been aborted."] pub struct CallUnavailable { pub task: (::core::primitive::u64, ::core::primitive::u32), pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, @@ -20549,19 +18934,16 @@ pub mod api { const EVENT: &'static str = "CallUnavailable"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The given task was unable to be renewed since the agenda is full at that block. + #[doc = "The given task was unable to be renewed since the agenda is full at that block."] pub struct PeriodicFailed { pub task: (::core::primitive::u64, ::core::primitive::u32), pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, @@ -20571,19 +18953,16 @@ pub mod api { const EVENT: &'static str = "PeriodicFailed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The given task can never be executed since it is overweight. + #[doc = "The given task can never be executed since it is overweight."] pub struct PermanentlyOverweight { pub task: (::core::primitive::u64, ::core::primitive::u32), pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, @@ -20618,8 +18997,7 @@ pub mod api { ], ) } - /// Items to be executed, indexed by the block number that they should be executed - /// on. + #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u64>, @@ -20654,8 +19032,7 @@ pub mod api { ], ) } - /// Items to be executed, indexed by the block number that they should be executed - /// on. + #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_root( &self, ) -> ::subxt::storage::address::Address< @@ -20689,10 +19066,10 @@ pub mod api { ], ) } - /// Lookup from a name to the block number and index of the task. - /// - /// For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form - /// the v4 identities. + #[doc = " Lookup from a name to the block number and index of the task."] + #[doc = ""] + #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] + #[doc = " identities."] pub fn lookup( &self, _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 32usize]>, @@ -20715,10 +19092,10 @@ pub mod api { ], ) } - /// Lookup from a name to the block number and index of the task. - /// - /// For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form - /// the v4 identities. + #[doc = " Lookup from a name to the block number and index of the task."] + #[doc = ""] + #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] + #[doc = " identities."] pub fn lookup_root( &self, ) -> ::subxt::storage::address::Address< @@ -20746,7 +19123,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The maximum weight that may be scheduled per block for any dispatchables. + #[doc = " The maximum weight that may be scheduled per block for any dispatchables."] pub fn maximum_weight( &self, ) -> ::subxt::constants::Address { @@ -20761,12 +19138,11 @@ pub mod api { ], ) } - /// The maximum number of scheduled calls in the queue for a single block. - /// - /// NOTE: - /// + Dependent pallets' benchmarks might require a higher limit for the setting. - /// Set a - /// higher limit under `runtime-benchmarks` feature. + #[doc = " The maximum number of scheduled calls in the queue for a single block."] + #[doc = ""] + #[doc = " NOTE:"] + #[doc = " + Dependent pallets' benchmarks might require a higher limit for the setting. Set a"] + #[doc = " higher limit under `runtime-benchmarks` feature."] pub fn max_scheduled_per_block( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -20786,9 +19162,9 @@ pub mod api { } pub mod preimage { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_preimage::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_preimage::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -20796,16 +19172,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NotePreimage { @@ -20816,16 +19189,13 @@ pub mod api { const CALL: &'static str = "note_preimage"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnnotePreimage { @@ -20836,16 +19206,13 @@ pub mod api { const CALL: &'static str = "unnote_preimage"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RequestPreimage { @@ -20856,16 +19223,13 @@ pub mod api { const CALL: &'static str = "request_preimage"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnrequestPreimage { @@ -20878,7 +19242,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::note_preimage`]. + #[doc = "See [`Pallet::note_preimage`]."] pub fn note_preimage( &self, bytes: ::std::vec::Vec<::core::primitive::u8>, @@ -20894,7 +19258,7 @@ pub mod api { ], ) } - ///See [`Pallet::unnote_preimage`]. + #[doc = "See [`Pallet::unnote_preimage`]."] pub fn unnote_preimage( &self, hash: ::subxt::utils::H256, @@ -20911,7 +19275,7 @@ pub mod api { ], ) } - ///See [`Pallet::request_preimage`]. + #[doc = "See [`Pallet::request_preimage`]."] pub fn request_preimage( &self, hash: ::subxt::utils::H256, @@ -20927,7 +19291,7 @@ pub mod api { ], ) } - ///See [`Pallet::unrequest_preimage`]. + #[doc = "See [`Pallet::unrequest_preimage`]."] pub fn unrequest_preimage( &self, hash: ::subxt::utils::H256, @@ -20946,24 +19310,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_preimage::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A preimage has been noted. + #[doc = "A preimage has been noted."] pub struct Noted { pub hash: ::subxt::utils::H256, } @@ -20972,19 +19333,16 @@ pub mod api { const EVENT: &'static str = "Noted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A preimage has been requested. + #[doc = "A preimage has been requested."] pub struct Requested { pub hash: ::subxt::utils::H256, } @@ -20993,19 +19351,16 @@ pub mod api { const EVENT: &'static str = "Requested"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A preimage has ben cleared. + #[doc = "A preimage has ben cleared."] pub struct Cleared { pub hash: ::subxt::utils::H256, } @@ -21018,7 +19373,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The request status of a given hash. + #[doc = " The request status of a given hash."] pub fn status_for( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, @@ -21044,7 +19399,7 @@ pub mod api { ], ) } - /// The request status of a given hash. + #[doc = " The request status of a given hash."] pub fn status_for_root( &self, ) -> ::subxt::storage::address::Address< @@ -21125,26 +19480,23 @@ pub mod api { } pub mod offences { use super::{root_mod, runtime_types}; - ///Events type. + #[doc = "Events type."] pub type Event = runtime_types::pallet_offences::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///There is an offence reported of the given `kind` happened at the `session_index` and - ///(kind-specific) time slot. This event is not deposited for duplicate slashes. - ///\[kind, timeslot\]. + #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] + #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] + #[doc = "\\[kind, timeslot\\]."] pub struct Offence { pub kind: [::core::primitive::u8; 16usize], pub timeslot: ::std::vec::Vec<::core::primitive::u8>, @@ -21158,8 +19510,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The primary structure that holds all offence records keyed by report - /// identifiers. + #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, @@ -21190,8 +19541,7 @@ pub mod api { ], ) } - /// The primary structure that holds all offence records keyed by report - /// identifiers. + #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports_root( &self, ) -> ::subxt::storage::address::Address< @@ -21221,7 +19571,7 @@ pub mod api { ], ) } - /// A vector of reports of the same kind that happened at the same time slot. + #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index( &self, _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, @@ -21248,7 +19598,7 @@ pub mod api { ], ) } - /// A vector of reports of the same kind that happened at the same time slot. + #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index_root( &self, ) -> ::subxt::storage::address::Address< @@ -21275,9 +19625,9 @@ pub mod api { } pub mod transaction_pause { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_transaction_pause::module::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_transaction_pause::module::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -21285,16 +19635,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PauseTransaction { @@ -21306,16 +19653,13 @@ pub mod api { const CALL: &'static str = "pause_transaction"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnpauseTransaction { @@ -21329,7 +19673,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::pause_transaction`]. + #[doc = "See [`Pallet::pause_transaction`]."] pub fn pause_transaction( &self, pallet_name: ::std::vec::Vec<::core::primitive::u8>, @@ -21347,7 +19691,7 @@ pub mod api { ], ) } - ///See [`Pallet::unpause_transaction`]. + #[doc = "See [`Pallet::unpause_transaction`]."] pub fn unpause_transaction( &self, pallet_name: ::std::vec::Vec<::core::primitive::u8>, @@ -21366,24 +19710,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_transaction_pause::module::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Paused transaction + #[doc = "Paused transaction"] pub struct TransactionPaused { pub pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, pub function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, @@ -21393,19 +19734,16 @@ pub mod api { const EVENT: &'static str = "TransactionPaused"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Unpaused transaction + #[doc = "Unpaused transaction"] pub struct TransactionUnpaused { pub pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, pub function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, @@ -21419,9 +19757,9 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The paused transaction map - /// - /// map (PalletNameBytes, FunctionNameBytes) => Option<()> + #[doc = " The paused transaction map"] + #[doc = ""] + #[doc = " map (PalletNameBytes, FunctionNameBytes) => Option<()>"] pub fn paused_transactions( &self, _0: impl ::std::borrow::Borrow<[::core::primitive::u8]>, @@ -21448,9 +19786,9 @@ pub mod api { ], ) } - /// The paused transaction map - /// - /// map (PalletNameBytes, FunctionNameBytes) => Option<()> + #[doc = " The paused transaction map"] + #[doc = ""] + #[doc = " map (PalletNameBytes, FunctionNameBytes) => Option<()>"] pub fn paused_transactions_root( &self, ) -> ::subxt::storage::address::Address< @@ -21477,9 +19815,9 @@ pub mod api { } pub mod im_online { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_im_online::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_im_online::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -21487,16 +19825,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Heartbeat { @@ -21511,7 +19846,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::heartbeat`]. + #[doc = "See [`Pallet::heartbeat`]."] pub fn heartbeat( &self, heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u64>, @@ -21530,24 +19865,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_im_online::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A new heartbeat was received from `AuthorityId`. + #[doc = "A new heartbeat was received from `AuthorityId`."] pub struct HeartbeatReceived { pub authority_id: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, } @@ -21556,38 +19888,32 @@ pub mod api { const EVENT: &'static str = "HeartbeatReceived"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///At the end of the session, no offence was committed. + #[doc = "At the end of the session, no offence was committed."] pub struct AllGood; impl ::subxt::events::StaticEvent for AllGood { const PALLET: &'static str = "ImOnline"; const EVENT: &'static str = "AllGood"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///At the end of the session, at least one validator was found to be offline. + #[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::utils::AccountId32, @@ -21606,17 +19932,17 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The block number after which it's ok to send heartbeats in the current - /// session. - /// - /// At the beginning of each session we set this to a value that should fall - /// roughly in the middle of the session duration. The idea is to first wait for - /// the validators to produce a block in the current session, so that the - /// heartbeat later on will not be necessary. - /// - /// This value will only be used as a fallback if we fail to get a proper session - /// progress estimate from `NextSessionRotation`, as those estimates should be - /// more accurate then the value we calculate for `HeartbeatAfter`. + #[doc = " The block number after which it's ok to send heartbeats in the current"] + #[doc = " session."] + #[doc = ""] + #[doc = " At the beginning of each session we set this to a value that should fall"] + #[doc = " roughly in the middle of the session duration. The idea is to first wait for"] + #[doc = " the validators to produce a block in the current session, so that the"] + #[doc = " heartbeat later on will not be necessary."] + #[doc = ""] + #[doc = " This value will only be used as a fallback if we fail to get a proper session"] + #[doc = " progress estimate from `NextSessionRotation`, as those estimates should be"] + #[doc = " more accurate then the value we calculate for `HeartbeatAfter`."] pub fn heartbeat_after( &self, ) -> ::subxt::storage::address::Address< @@ -21637,7 +19963,7 @@ pub mod api { ], ) } - /// The current set of keys that may issue a heartbeat. + #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys( &self, ) -> ::subxt::storage::address::Address< @@ -21661,7 +19987,7 @@ pub mod api { ], ) } - /// For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`. + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -21687,7 +20013,7 @@ pub mod api { ], ) } - /// For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`. + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats_root( &self, ) -> ::subxt::storage::address::Address< @@ -21708,8 +20034,8 @@ pub mod api { ], ) } - /// For each session index, we keep a mapping of `ValidatorId` to the - /// number of blocks authored by the given authority. + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] + #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -21736,8 +20062,8 @@ pub mod api { ], ) } - /// For each session index, we keep a mapping of `ValidatorId` to the - /// number of blocks authored by the given authority. + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] + #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks_root( &self, ) -> ::subxt::storage::address::Address< @@ -21765,10 +20091,10 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// A configuration for base priority of unsigned transactions. - /// - /// This is exposed so that it can be tuned for particular runtime, when - /// multiple pallets send unsigned transactions. + #[doc = " A configuration for base priority of unsigned transactions."] + #[doc = ""] + #[doc = " This is exposed so that it can be tuned for particular runtime, when"] + #[doc = " multiple pallets send unsigned transactions."] pub fn unsigned_priority( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { @@ -21788,9 +20114,9 @@ pub mod api { } pub mod identity { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_identity::pallet::Error; - ///Identity pallet declaration. + #[doc = "Identity pallet declaration."] pub type Call = runtime_types::pallet_identity::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -21798,16 +20124,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddRegistrar { @@ -21821,16 +20144,13 @@ pub mod api { const CALL: &'static str = "add_registrar"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetIdentity { @@ -21842,16 +20162,13 @@ pub mod api { const CALL: &'static str = "set_identity"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetSubs { @@ -21865,16 +20182,13 @@ pub mod api { const CALL: &'static str = "set_subs"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearIdentity; @@ -21883,16 +20197,13 @@ pub mod api { const CALL: &'static str = "clear_identity"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RequestJudgement { @@ -21906,17 +20217,14 @@ pub mod api { const CALL: &'static str = "request_judgement"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelRequest { @@ -21927,16 +20235,13 @@ pub mod api { const CALL: &'static str = "cancel_request"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetFee { @@ -21950,16 +20255,13 @@ pub mod api { const CALL: &'static str = "set_fee"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetAccountId { @@ -21975,16 +20277,13 @@ pub mod api { const CALL: &'static str = "set_account_id"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetFields { @@ -21999,16 +20298,13 @@ pub mod api { const CALL: &'static str = "set_fields"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ProvideJudgement { @@ -22027,16 +20323,13 @@ pub mod api { const CALL: &'static str = "provide_judgement"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KillIdentity { @@ -22050,16 +20343,13 @@ pub mod api { const CALL: &'static str = "kill_identity"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AddSub { @@ -22074,16 +20364,13 @@ pub mod api { const CALL: &'static str = "add_sub"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RenameSub { @@ -22098,16 +20385,13 @@ pub mod api { const CALL: &'static str = "rename_sub"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveSub { @@ -22121,16 +20405,13 @@ pub mod api { const CALL: &'static str = "remove_sub"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QuitSub; @@ -22141,7 +20422,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::add_registrar`]. + #[doc = "See [`Pallet::add_registrar`]."] pub fn add_registrar( &self, account: ::subxt::utils::MultiAddress< @@ -22160,7 +20441,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_identity`]. + #[doc = "See [`Pallet::set_identity`]."] pub fn set_identity( &self, info: runtime_types::pallet_identity::types::IdentityInfo, @@ -22177,7 +20458,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_subs`]. + #[doc = "See [`Pallet::set_subs`]."] pub fn set_subs( &self, subs: ::std::vec::Vec<( @@ -22197,7 +20478,7 @@ pub mod api { ], ) } - ///See [`Pallet::clear_identity`]. + #[doc = "See [`Pallet::clear_identity`]."] pub fn clear_identity(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -22211,7 +20492,7 @@ pub mod api { ], ) } - ///See [`Pallet::request_judgement`]. + #[doc = "See [`Pallet::request_judgement`]."] pub fn request_judgement( &self, reg_index: ::core::primitive::u32, @@ -22228,7 +20509,7 @@ pub mod api { ], ) } - ///See [`Pallet::cancel_request`]. + #[doc = "See [`Pallet::cancel_request`]."] pub fn cancel_request( &self, reg_index: ::core::primitive::u32, @@ -22245,7 +20526,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_fee`]. + #[doc = "See [`Pallet::set_fee`]."] pub fn set_fee( &self, index: ::core::primitive::u32, @@ -22263,7 +20544,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_account_id`]. + #[doc = "See [`Pallet::set_account_id`]."] pub fn set_account_id( &self, index: ::core::primitive::u32, @@ -22284,7 +20565,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_fields`]. + #[doc = "See [`Pallet::set_fields`]."] pub fn set_fields( &self, index: ::core::primitive::u32, @@ -22303,7 +20584,7 @@ pub mod api { ], ) } - ///See [`Pallet::provide_judgement`]. + #[doc = "See [`Pallet::provide_judgement`]."] pub fn provide_judgement( &self, reg_index: ::core::primitive::u32, @@ -22328,7 +20609,7 @@ pub mod api { ], ) } - ///See [`Pallet::kill_identity`]. + #[doc = "See [`Pallet::kill_identity`]."] pub fn kill_identity( &self, target: ::subxt::utils::MultiAddress< @@ -22347,7 +20628,7 @@ pub mod api { ], ) } - ///See [`Pallet::add_sub`]. + #[doc = "See [`Pallet::add_sub`]."] pub fn add_sub( &self, sub: ::subxt::utils::MultiAddress< @@ -22367,7 +20648,7 @@ pub mod api { ], ) } - ///See [`Pallet::rename_sub`]. + #[doc = "See [`Pallet::rename_sub`]."] pub fn rename_sub( &self, sub: ::subxt::utils::MultiAddress< @@ -22387,7 +20668,7 @@ pub mod api { ], ) } - ///See [`Pallet::remove_sub`]. + #[doc = "See [`Pallet::remove_sub`]."] pub fn remove_sub( &self, sub: ::subxt::utils::MultiAddress< @@ -22407,7 +20688,7 @@ pub mod api { ], ) } - ///See [`Pallet::quit_sub`]. + #[doc = "See [`Pallet::quit_sub`]."] pub fn quit_sub(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -22423,24 +20704,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_identity::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A name was set or reset (which will remove all judgements). + #[doc = "A name was set or reset (which will remove all judgements)."] pub struct IdentitySet { pub who: ::subxt::utils::AccountId32, } @@ -22449,19 +20727,16 @@ pub mod api { const EVENT: &'static str = "IdentitySet"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A name was cleared, and the given balance returned. + #[doc = "A name was cleared, and the given balance returned."] pub struct IdentityCleared { pub who: ::subxt::utils::AccountId32, pub deposit: ::core::primitive::u128, @@ -22471,19 +20746,16 @@ pub mod api { const EVENT: &'static str = "IdentityCleared"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A name was removed and the given balance slashed. + #[doc = "A name was removed and the given balance slashed."] pub struct IdentityKilled { pub who: ::subxt::utils::AccountId32, pub deposit: ::core::primitive::u128, @@ -22493,19 +20765,16 @@ pub mod api { const EVENT: &'static str = "IdentityKilled"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A judgement was asked from a registrar. + #[doc = "A judgement was asked from a registrar."] pub struct JudgementRequested { pub who: ::subxt::utils::AccountId32, pub registrar_index: ::core::primitive::u32, @@ -22515,19 +20784,16 @@ pub mod api { const EVENT: &'static str = "JudgementRequested"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A judgement request was retracted. + #[doc = "A judgement request was retracted."] pub struct JudgementUnrequested { pub who: ::subxt::utils::AccountId32, pub registrar_index: ::core::primitive::u32, @@ -22537,19 +20803,16 @@ pub mod api { const EVENT: &'static str = "JudgementUnrequested"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A judgement was given by a registrar. + #[doc = "A judgement was given by a registrar."] pub struct JudgementGiven { pub target: ::subxt::utils::AccountId32, pub registrar_index: ::core::primitive::u32, @@ -22559,20 +20822,17 @@ pub mod api { const EVENT: &'static str = "JudgementGiven"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A registrar was added. + #[doc = "A registrar was added."] pub struct RegistrarAdded { pub registrar_index: ::core::primitive::u32, } @@ -22581,19 +20841,16 @@ pub mod api { const EVENT: &'static str = "RegistrarAdded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A sub-identity was added to an identity and the deposit paid. + #[doc = "A sub-identity was added to an identity and the deposit paid."] pub struct SubIdentityAdded { pub sub: ::subxt::utils::AccountId32, pub main: ::subxt::utils::AccountId32, @@ -22604,19 +20861,16 @@ pub mod api { const EVENT: &'static str = "SubIdentityAdded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A sub-identity was removed from an identity and the deposit freed. + #[doc = "A sub-identity was removed from an identity and the deposit freed."] pub struct SubIdentityRemoved { pub sub: ::subxt::utils::AccountId32, pub main: ::subxt::utils::AccountId32, @@ -22627,20 +20881,17 @@ pub mod api { const EVENT: &'static str = "SubIdentityRemoved"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A sub-identity was cleared, and the given deposit repatriated from the - ///main identity account to the sub-identity account. + #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] + #[doc = "main identity account to the sub-identity account."] pub struct SubIdentityRevoked { pub sub: ::subxt::utils::AccountId32, pub main: ::subxt::utils::AccountId32, @@ -22655,9 +20906,9 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Information that is pertinent to identify the entity behind an account. - /// - /// TWOX-NOTE: OK ― `AccountId` is a secure hash. + #[doc = " Information that is pertinent to identify the entity behind an account."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -22679,9 +20930,9 @@ pub mod api { ], ) } - /// Information that is pertinent to identify the entity behind an account. - /// - /// TWOX-NOTE: OK ― `AccountId` is a secure hash. + #[doc = " Information that is pertinent to identify the entity behind an account."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn identity_of_root( &self, ) -> ::subxt::storage::address::Address< @@ -22702,9 +20953,8 @@ pub mod api { ], ) } - /// The super-identity of an alternative "sub" identity together with its name, - /// within that context. If the account is not some other account's sub-identity, - /// then just `None`. + #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] + #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -22726,9 +20976,8 @@ pub mod api { ], ) } - /// The super-identity of an alternative "sub" identity together with its name, - /// within that context. If the account is not some other account's sub-identity, - /// then just `None`. + #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] + #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of_root( &self, ) -> ::subxt::storage::address::Address< @@ -22749,11 +20998,11 @@ pub mod api { ], ) } - /// Alternative "sub" identities of this account. - /// - /// The first item is the deposit, the second is a vector of the accounts. - /// - /// TWOX-NOTE: OK ― `AccountId` is a secure hash. + #[doc = " Alternative \"sub\" identities of this account."] + #[doc = ""] + #[doc = " The first item is the deposit, the second is a vector of the accounts."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -22781,11 +21030,11 @@ pub mod api { ], ) } - /// Alternative "sub" identities of this account. - /// - /// The first item is the deposit, the second is a vector of the accounts. - /// - /// TWOX-NOTE: OK ― `AccountId` is a secure hash. + #[doc = " Alternative \"sub\" identities of this account."] + #[doc = ""] + #[doc = " The first item is the deposit, the second is a vector of the accounts."] + #[doc = ""] + #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] pub fn subs_of_root( &self, ) -> ::subxt::storage::address::Address< @@ -22812,10 +21061,10 @@ pub mod api { ], ) } - /// The set of registrars. Not expected to get very big as can only be added through - /// a special origin (likely a council motion). - /// - /// The index into this can be cast to `RegistrarIndex` to get a valid value. + #[doc = " The set of registrars. Not expected to get very big as can only be added through a"] + #[doc = " special origin (likely a council motion)."] + #[doc = ""] + #[doc = " The index into this can be cast to `RegistrarIndex` to get a valid value."] pub fn registrars( &self, ) -> ::subxt::storage::address::Address< @@ -22850,7 +21099,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The amount held on deposit for a registered identity + #[doc = " The amount held on deposit for a registered identity"] pub fn basic_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -22864,7 +21113,7 @@ pub mod api { ], ) } - /// The amount held on deposit per additional field for a registered identity. + #[doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -22878,10 +21127,9 @@ pub mod api { ], ) } - /// The amount held on deposit for a registered subaccount. This should account for - /// the fact that one storage item's value will increase by the size of an account - /// ID, and there will be another trie item whose value is the size of an account ID - /// plus 32 bytes. + #[doc = " The amount held on deposit for a registered subaccount. This should account for the fact"] + #[doc = " that one storage item's value will increase by the size of an account ID, and there will"] + #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] pub fn sub_account_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -22895,7 +21143,7 @@ pub mod api { ], ) } - /// The maximum number of sub-accounts allowed per identified account. + #[doc = " The maximum number of sub-accounts allowed per identified account."] pub fn max_sub_accounts( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -22910,8 +21158,8 @@ pub mod api { ], ) } - /// Maximum number of additional fields that may be stored in an ID. Needed to bound - /// the I/O required to access an identity, but can be pretty high. + #[doc = " Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O"] + #[doc = " required to access an identity, but can be pretty high."] pub fn max_additional_fields( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -22926,8 +21174,8 @@ pub mod api { ], ) } - /// Maxmimum number of registrars allowed in the system. Needed to bound the - /// complexity of, e.g., updating judgements. + #[doc = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] + #[doc = " of, e.g., updating judgements."] pub fn max_registrars( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -22947,9 +21195,9 @@ pub mod api { } pub mod utility { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_utility::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_utility::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -22957,16 +21205,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Batch { @@ -22977,16 +21222,13 @@ pub mod api { const CALL: &'static str = "batch"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsDerivative { @@ -22998,16 +21240,13 @@ pub mod api { const CALL: &'static str = "as_derivative"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BatchAll { @@ -23018,16 +21257,13 @@ pub mod api { const CALL: &'static str = "batch_all"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchAs { @@ -23040,16 +21276,13 @@ pub mod api { const CALL: &'static str = "dispatch_as"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceBatch { @@ -23060,16 +21293,13 @@ pub mod api { const CALL: &'static str = "force_batch"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithWeight { @@ -23083,7 +21313,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::batch`]. + #[doc = "See [`Pallet::batch`]."] pub fn batch( &self, calls: ::std::vec::Vec, @@ -23100,7 +21330,7 @@ pub mod api { ], ) } - ///See [`Pallet::as_derivative`]. + #[doc = "See [`Pallet::as_derivative`]."] pub fn as_derivative( &self, index: ::core::primitive::u16, @@ -23117,7 +21347,7 @@ pub mod api { ], ) } - ///See [`Pallet::batch_all`]. + #[doc = "See [`Pallet::batch_all`]."] pub fn batch_all( &self, calls: ::std::vec::Vec, @@ -23133,7 +21363,7 @@ pub mod api { ], ) } - ///See [`Pallet::dispatch_as`]. + #[doc = "See [`Pallet::dispatch_as`]."] pub fn dispatch_as( &self, as_origin: runtime_types::tangle_testnet_runtime::OriginCaller, @@ -23154,7 +21384,7 @@ pub mod api { ], ) } - ///See [`Pallet::force_batch`]. + #[doc = "See [`Pallet::force_batch`]."] pub fn force_batch( &self, calls: ::std::vec::Vec, @@ -23170,7 +21400,7 @@ pub mod api { ], ) } - ///See [`Pallet::with_weight`]. + #[doc = "See [`Pallet::with_weight`]."] pub fn with_weight( &self, call: runtime_types::tangle_testnet_runtime::RuntimeCall, @@ -23190,25 +21420,22 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_utility::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Batch of dispatches did not complete fully. Index of first failing dispatch given, - /// as well as the error. + #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] + #[doc = "well as the error."] pub struct BatchInterrupted { pub index: ::core::primitive::u32, pub error: runtime_types::sp_runtime::DispatchError, @@ -23218,76 +21445,64 @@ pub mod api { const EVENT: &'static str = "BatchInterrupted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Batch of dispatches completed fully with no error. + #[doc = "Batch of dispatches completed fully with no error."] pub struct BatchCompleted; impl ::subxt::events::StaticEvent for BatchCompleted { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchCompleted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Batch of dispatches completed but has errors. + #[doc = "Batch of dispatches completed but has errors."] pub struct BatchCompletedWithErrors; impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchCompletedWithErrors"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A single item within a Batch of dispatches has completed with no error. + #[doc = "A single item within a Batch of dispatches has completed with no error."] pub struct ItemCompleted; impl ::subxt::events::StaticEvent for ItemCompleted { const PALLET: &'static str = "Utility"; const EVENT: &'static str = "ItemCompleted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A single item within a Batch of dispatches has completed with error. + #[doc = "A single item within a Batch of dispatches has completed with error."] pub struct ItemFailed { pub error: runtime_types::sp_runtime::DispatchError, } @@ -23296,19 +21511,16 @@ pub mod api { const EVENT: &'static str = "ItemFailed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A call was dispatched. + #[doc = "A call was dispatched."] pub struct DispatchedAs { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } @@ -23321,7 +21533,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The limit on the number of batched calls. + #[doc = " The limit on the number of batched calls."] pub fn batched_calls_limit( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -23341,9 +21553,9 @@ pub mod api { } pub mod multisig { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_multisig::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_multisig::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -23351,16 +21563,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsMultiThreshold1 { @@ -23372,16 +21581,13 @@ pub mod api { const CALL: &'static str = "as_multi_threshold_1"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AsMulti { @@ -23398,16 +21604,13 @@ pub mod api { const CALL: &'static str = "as_multi"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ApproveAsMulti { @@ -23424,16 +21627,13 @@ pub mod api { const CALL: &'static str = "approve_as_multi"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CancelAsMulti { @@ -23450,7 +21650,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::as_multi_threshold_1`]. + #[doc = "See [`Pallet::as_multi_threshold_1`]."] pub fn as_multi_threshold_1( &self, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -23470,7 +21670,7 @@ pub mod api { ], ) } - ///See [`Pallet::as_multi`]. + #[doc = "See [`Pallet::as_multi`]."] pub fn as_multi( &self, threshold: ::core::primitive::u16, @@ -23498,7 +21698,7 @@ pub mod api { ], ) } - ///See [`Pallet::approve_as_multi`]. + #[doc = "See [`Pallet::approve_as_multi`]."] pub fn approve_as_multi( &self, threshold: ::core::primitive::u16, @@ -23526,7 +21726,7 @@ pub mod api { ], ) } - ///See [`Pallet::cancel_as_multi`]. + #[doc = "See [`Pallet::cancel_as_multi`]."] pub fn cancel_as_multi( &self, threshold: ::core::primitive::u16, @@ -23548,24 +21748,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_multisig::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A new multisig operation has begun. + #[doc = "A new multisig operation has begun."] pub struct NewMultisig { pub approving: ::subxt::utils::AccountId32, pub multisig: ::subxt::utils::AccountId32, @@ -23576,19 +21773,16 @@ pub mod api { const EVENT: &'static str = "NewMultisig"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A multisig operation has been approved by someone. + #[doc = "A multisig operation has been approved by someone."] pub struct MultisigApproval { pub approving: ::subxt::utils::AccountId32, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, @@ -23600,19 +21794,16 @@ pub mod api { const EVENT: &'static str = "MultisigApproval"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A multisig operation has been executed. + #[doc = "A multisig operation has been executed."] pub struct MultisigExecuted { pub approving: ::subxt::utils::AccountId32, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, @@ -23625,19 +21816,16 @@ pub mod api { const EVENT: &'static str = "MultisigExecuted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A multisig operation has been cancelled. + #[doc = "A multisig operation has been cancelled."] pub struct MultisigCancelled { pub cancelling: ::subxt::utils::AccountId32, pub timepoint: runtime_types::pallet_multisig::Timepoint<::core::primitive::u64>, @@ -23653,7 +21841,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The set of open multisig operations. + #[doc = " The set of open multisig operations."] pub fn multisigs( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -23684,7 +21872,7 @@ pub mod api { ], ) } - /// The set of open multisig operations. + #[doc = " The set of open multisig operations."] pub fn multisigs_root( &self, ) -> ::subxt::storage::address::Address< @@ -23716,12 +21904,12 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// The base amount of currency needed to reserve for creating a multisig execution - /// or to store a dispatch call for later. - /// - /// This is held for an additional storage item whose value size is - /// `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is - /// `32 + sizeof(AccountId)` bytes. + #[doc = " The base amount of currency needed to reserve for creating a multisig execution or to"] + #[doc = " store a dispatch call for later."] + #[doc = ""] + #[doc = " This is held for an additional storage item whose value size is"] + #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] + #[doc = " `32 + sizeof(AccountId)` bytes."] pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { ::subxt::constants::Address::new_static( "Multisig", @@ -23733,10 +21921,9 @@ pub mod api { ], ) } - /// The amount of currency needed per unit threshold when creating a multisig - /// execution. - /// - /// This is held for adding 32 bytes more into a pre-existing storage value. + #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] + #[doc = ""] + #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] pub fn deposit_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -23750,7 +21937,7 @@ pub mod api { ], ) } - /// The maximum amount of signatories allowed in the multisig. + #[doc = " The maximum amount of signatories allowed in the multisig."] pub fn max_signatories( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -23770,9 +21957,9 @@ pub mod api { } pub mod ethereum { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_ethereum::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_ethereum::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -23780,16 +21967,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Transact { @@ -23802,7 +21986,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::transact`]. + #[doc = "See [`Pallet::transact`]."] pub fn transact( &self, transaction: runtime_types::ethereum::transaction::TransactionV2, @@ -23820,24 +22004,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_ethereum::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///An ethereum transaction was successfully executed. + #[doc = "An ethereum transaction was successfully executed."] pub struct Executed { pub from: ::subxt::utils::H160, pub to: ::subxt::utils::H160, @@ -23854,7 +22035,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Current building block's transactions and receipts. + #[doc = " Current building block's transactions and receipts."] pub fn pending( &self, ) -> ::subxt::storage::address::Address< @@ -23880,7 +22061,7 @@ pub mod api { ], ) } - /// The current Ethereum block. + #[doc = " The current Ethereum block."] pub fn current_block( &self, ) -> ::subxt::storage::address::Address< @@ -23904,7 +22085,7 @@ pub mod api { ], ) } - /// The current Ethereum receipts. + #[doc = " The current Ethereum receipts."] pub fn current_receipts( &self, ) -> ::subxt::storage::address::Address< @@ -23925,7 +22106,7 @@ pub mod api { ], ) } - /// The current transaction statuses. + #[doc = " The current transaction statuses."] pub fn current_transaction_statuses( &self, ) -> ::subxt::storage::address::Address< @@ -23992,9 +22173,9 @@ pub mod api { } pub mod evm { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_evm::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_evm::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -24002,16 +22183,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Withdraw { @@ -24023,16 +22201,13 @@ pub mod api { const CALL: &'static str = "withdraw"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Call { @@ -24055,16 +22230,13 @@ pub mod api { const CALL: &'static str = "call"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Create { @@ -24086,16 +22258,13 @@ pub mod api { const CALL: &'static str = "create"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Create2 { @@ -24120,7 +22289,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::withdraw`]. + #[doc = "See [`Pallet::withdraw`]."] pub fn withdraw( &self, address: ::subxt::utils::H160, @@ -24137,7 +22306,7 @@ pub mod api { ], ) } - ///See [`Pallet::call`]. + #[doc = "See [`Pallet::call`]."] pub fn call( &self, source: ::subxt::utils::H160, @@ -24177,7 +22346,7 @@ pub mod api { ], ) } - ///See [`Pallet::create`]. + #[doc = "See [`Pallet::create`]."] pub fn create( &self, source: ::subxt::utils::H160, @@ -24214,7 +22383,7 @@ pub mod api { ], ) } - ///See [`Pallet::create2`]. + #[doc = "See [`Pallet::create2`]."] pub fn create2( &self, source: ::subxt::utils::H160, @@ -24256,24 +22425,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_evm::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Ethereum events from contracts. + #[doc = "Ethereum events from contracts."] pub struct Log { pub log: runtime_types::ethereum::log::Log, } @@ -24282,19 +22448,16 @@ pub mod api { const EVENT: &'static str = "Log"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A contract has been created at given address. + #[doc = "A contract has been created at given address."] pub struct Created { pub address: ::subxt::utils::H160, } @@ -24303,19 +22466,16 @@ pub mod api { const EVENT: &'static str = "Created"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A contract was attempted to be created, but the execution failed. + #[doc = "A contract was attempted to be created, but the execution failed."] pub struct CreatedFailed { pub address: ::subxt::utils::H160, } @@ -24324,19 +22484,16 @@ pub mod api { const EVENT: &'static str = "CreatedFailed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A contract has been executed successfully with states applied. + #[doc = "A contract has been executed successfully with states applied."] pub struct Executed { pub address: ::subxt::utils::H160, } @@ -24345,20 +22502,16 @@ pub mod api { const EVENT: &'static str = "Executed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A contract has been executed with errors. States are reverted with only gas fees - /// applied. + #[doc = "A contract has been executed with errors. States are reverted with only gas fees applied."] pub struct ExecutedFailed { pub address: ::subxt::utils::H160, } @@ -24550,7 +22703,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// The EVM chain ID. + #[doc = " The EVM chain ID."] pub fn chain_id( &self, ) -> ::subxt::storage::address::Address< @@ -24577,7 +22730,7 @@ pub mod api { } pub mod dynamic_fee { use super::{root_mod, runtime_types}; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_dynamic_fee::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -24585,16 +22738,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NoteMinGasPriceTarget { @@ -24607,7 +22757,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::note_min_gas_price_target`]. + #[doc = "See [`Pallet::note_min_gas_price_target`]."] pub fn note_min_gas_price_target( &self, target: runtime_types::primitive_types::U256, @@ -24674,7 +22824,7 @@ pub mod api { } pub mod base_fee { use super::{root_mod, runtime_types}; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_base_fee::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -24682,16 +22832,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetBaseFeePerGas { @@ -24702,16 +22849,13 @@ pub mod api { const CALL: &'static str = "set_base_fee_per_gas"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetElasticity { @@ -24724,7 +22868,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::set_base_fee_per_gas`]. + #[doc = "See [`Pallet::set_base_fee_per_gas`]."] pub fn set_base_fee_per_gas( &self, fee: runtime_types::primitive_types::U256, @@ -24741,7 +22885,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_elasticity`]. + #[doc = "See [`Pallet::set_elasticity`]."] pub fn set_elasticity( &self, elasticity: runtime_types::sp_arithmetic::per_things::Permill, @@ -24759,21 +22903,18 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_base_fee::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NewBaseFeePerGas { @@ -24784,16 +22925,13 @@ pub mod api { const EVENT: &'static str = "NewBaseFeePerGas"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BaseFeeOverflow; @@ -24802,16 +22940,13 @@ pub mod api { const EVENT: &'static str = "BaseFeeOverflow"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NewElasticity { @@ -24872,9 +23007,9 @@ pub mod api { } pub mod hotfix_sufficients { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_hotfix_sufficients::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_hotfix_sufficients::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -24882,16 +23017,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HotfixIncAccountSufficients { @@ -24904,7 +23036,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::hotfix_inc_account_sufficients`]. + #[doc = "See [`Pallet::hotfix_inc_account_sufficients`]."] pub fn hotfix_inc_account_sufficients( &self, addresses: ::std::vec::Vec<::subxt::utils::H160>, @@ -24926,9 +23058,9 @@ pub mod api { } pub mod claims { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_airdrop_claims::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_airdrop_claims::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -24936,16 +23068,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Claim { @@ -24963,16 +23092,13 @@ pub mod api { const CALL: &'static str = "claim"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MintClaim { @@ -24993,16 +23119,13 @@ pub mod api { const CALL: &'static str = "mint_claim"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimAttest { @@ -25021,16 +23144,13 @@ pub mod api { const CALL: &'static str = "claim_attest"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MoveClaim { @@ -25042,16 +23162,13 @@ pub mod api { const CALL: &'static str = "move_claim"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceSetExpiryConfig { @@ -25065,7 +23182,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::claim`]. + #[doc = "See [`Pallet::claim`]."] pub fn claim( &self, dest: ::core::option::Option< @@ -25087,7 +23204,7 @@ pub mod api { ], ) } - ///See [`Pallet::mint_claim`]. + #[doc = "See [`Pallet::mint_claim`]."] pub fn mint_claim( &self, who: runtime_types::pallet_airdrop_claims::utils::MultiAddress, @@ -25115,7 +23232,7 @@ pub mod api { ], ) } - ///See [`Pallet::claim_attest`]. + #[doc = "See [`Pallet::claim_attest`]."] pub fn claim_attest( &self, dest: ::core::option::Option< @@ -25138,7 +23255,7 @@ pub mod api { ], ) } - ///See [`Pallet::move_claim`]. + #[doc = "See [`Pallet::move_claim`]."] pub fn move_claim( &self, old: runtime_types::pallet_airdrop_claims::utils::MultiAddress, @@ -25155,7 +23272,7 @@ pub mod api { ], ) } - ///See [`Pallet::force_set_expiry_config`]. + #[doc = "See [`Pallet::force_set_expiry_config`]."] pub fn force_set_expiry_config( &self, expiry_block: ::core::primitive::u64, @@ -25175,24 +23292,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_airdrop_claims::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Someone claimed some native tokens. + #[doc = "Someone claimed some native tokens."] pub struct Claimed { pub recipient: ::subxt::utils::AccountId32, pub source: runtime_types::pallet_airdrop_claims::utils::MultiAddress, @@ -25271,7 +23385,7 @@ pub mod api { ], ) } - /// Expiry block and account to deposit expired funds + #[doc = " Expiry block and account to deposit expired funds"] pub fn expiry_config( &self, ) -> ::subxt::storage::address::Address< @@ -25295,10 +23409,10 @@ pub mod api { ], ) } - /// Vesting schedule for a claim. - /// First balance is the total amount that should be held for vesting. - /// Second balance is how much should be unlocked per block. - /// The block number is when the vesting should start. + #[doc = " Vesting schedule for a claim."] + #[doc = " First balance is the total amount that should be held for vesting."] + #[doc = " Second balance is how much should be unlocked per block."] + #[doc = " The block number is when the vesting should start."] pub fn vesting( &self, _0: impl ::std::borrow::Borrow< @@ -25327,10 +23441,10 @@ pub mod api { ], ) } - /// Vesting schedule for a claim. - /// First balance is the total amount that should be held for vesting. - /// Second balance is how much should be unlocked per block. - /// The block number is when the vesting should start. + #[doc = " Vesting schedule for a claim."] + #[doc = " First balance is the total amount that should be held for vesting."] + #[doc = " Second balance is how much should be unlocked per block."] + #[doc = " The block number is when the vesting should start."] pub fn vesting_root( &self, ) -> ::subxt::storage::address::Address< @@ -25356,7 +23470,7 @@ pub mod api { ], ) } - /// The statement kind that must be signed, if any. + #[doc = " The statement kind that must be signed, if any."] pub fn signing( &self, _0: impl ::std::borrow::Borrow< @@ -25380,7 +23494,7 @@ pub mod api { ], ) } - /// The statement kind that must be signed, if any. + #[doc = " The statement kind that must be signed, if any."] pub fn signing_root( &self, ) -> ::subxt::storage::address::Address< @@ -25426,9 +23540,9 @@ pub mod api { } pub mod eth2_client { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_eth2_light_client::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_eth2_light_client::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -25436,16 +23550,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Init { @@ -25459,16 +23570,13 @@ pub mod api { const CALL: &'static str = "init"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitBeaconChainLightClientUpdate { @@ -25480,16 +23588,13 @@ pub mod api { const CALL: &'static str = "submit_beacon_chain_light_client_update"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitExecutionHeader { @@ -25501,16 +23606,13 @@ pub mod api { const CALL: &'static str = "submit_execution_header"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpdateTrustedSigner { @@ -25523,7 +23625,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::init`]. + #[doc = "See [`Pallet::init`]."] pub fn init( &self, typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, @@ -25540,7 +23642,7 @@ pub mod api { ], ) } - ///See [`Pallet::submit_beacon_chain_light_client_update`]. + #[doc = "See [`Pallet::submit_beacon_chain_light_client_update`]."] pub fn submit_beacon_chain_light_client_update( &self, typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, @@ -25560,7 +23662,7 @@ pub mod api { ], ) } - ///See [`Pallet::submit_execution_header`]. + #[doc = "See [`Pallet::submit_execution_header`]."] pub fn submit_execution_header( &self, typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, @@ -25577,7 +23679,7 @@ pub mod api { ], ) } - ///See [`Pallet::update_trusted_signer`]. + #[doc = "See [`Pallet::update_trusted_signer`]."] pub fn update_trusted_signer( &self, trusted_signer: ::subxt::utils::AccountId32, @@ -25595,21 +23697,18 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_eth2_light_client::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Init { @@ -25623,16 +23722,13 @@ pub mod api { const EVENT: &'static str = "Init"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitBeaconChainLightClientUpdate { @@ -25645,16 +23741,13 @@ pub mod api { const EVENT: &'static str = "SubmitBeaconChainLightClientUpdate"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitExecutionHeader { @@ -25666,16 +23759,13 @@ pub mod api { const EVENT: &'static str = "SubmitExecutionHeader"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpdateTrustedSigner { @@ -25690,7 +23780,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// If set, only light client updates by the trusted signer will be accepted + #[doc = " If set, only light client updates by the trusted signer will be accepted"] pub fn trusted_signer( &self, ) -> ::subxt::storage::address::Address< @@ -25711,7 +23801,7 @@ pub mod api { ], ) } - /// Mask determining all paused functions + #[doc = " Mask determining all paused functions"] pub fn paused( &self, _0: impl ::std::borrow::Borrow, @@ -25734,7 +23824,7 @@ pub mod api { ], ) } - /// Mask determining all paused functions + #[doc = " Mask determining all paused functions"] pub fn paused_root( &self, ) -> ::subxt::storage::address::Address< @@ -25756,8 +23846,8 @@ pub mod api { ], ) } - /// Whether the client validates the updates. - /// Should only be set to `false` for debugging, testing, and diagnostic purposes + #[doc = " Whether the client validates the updates."] + #[doc = " Should only be set to `false` for debugging, testing, and diagnostic purposes"] pub fn validate_updates( &self, _0: impl ::std::borrow::Borrow, @@ -25780,8 +23870,8 @@ pub mod api { ], ) } - /// Whether the client validates the updates. - /// Should only be set to `false` for debugging, testing, and diagnostic purposes + #[doc = " Whether the client validates the updates."] + #[doc = " Should only be set to `false` for debugging, testing, and diagnostic purposes"] pub fn validate_updates_root( &self, ) -> ::subxt::storage::address::Address< @@ -25803,7 +23893,7 @@ pub mod api { ], ) } - /// Whether the client verifies BLS signatures. + #[doc = " Whether the client verifies BLS signatures."] pub fn verify_bls_signatures( &self, _0: impl ::std::borrow::Borrow, @@ -25826,7 +23916,7 @@ pub mod api { ], ) } - /// Whether the client verifies BLS signatures. + #[doc = " Whether the client verifies BLS signatures."] pub fn verify_bls_signatures_root( &self, ) -> ::subxt::storage::address::Address< @@ -25848,10 +23938,10 @@ pub mod api { ], ) } - /// We store the hashes of the blocks for the past `hashes_gc_threshold` headers. - /// Events that happen past this threshold cannot be verified by the client. - /// It is desirable that this number is larger than 7 days' worth of headers, which - /// is roughly 51k Ethereum blocks. So this number should be 51k in production. + #[doc = " We store the hashes of the blocks for the past `hashes_gc_threshold` headers."] + #[doc = " Events that happen past this threshold cannot be verified by the client."] + #[doc = " It is desirable that this number is larger than 7 days' worth of headers, which is roughly"] + #[doc = " 51k Ethereum blocks. So this number should be 51k in production."] pub fn hashes_gc_threshold( &self, _0: impl ::std::borrow::Borrow, @@ -25874,10 +23964,10 @@ pub mod api { ], ) } - /// We store the hashes of the blocks for the past `hashes_gc_threshold` headers. - /// Events that happen past this threshold cannot be verified by the client. - /// It is desirable that this number is larger than 7 days' worth of headers, which - /// is roughly 51k Ethereum blocks. So this number should be 51k in production. + #[doc = " We store the hashes of the blocks for the past `hashes_gc_threshold` headers."] + #[doc = " Events that happen past this threshold cannot be verified by the client."] + #[doc = " It is desirable that this number is larger than 7 days' worth of headers, which is roughly"] + #[doc = " 51k Ethereum blocks. So this number should be 51k in production."] pub fn hashes_gc_threshold_root( &self, ) -> ::subxt::storage::address::Address< @@ -25899,8 +23989,8 @@ pub mod api { ], ) } - /// Hashes of the finalized execution blocks mapped to their numbers. Stores up to - /// `hashes_gc_threshold` entries. Execution block number -> execution block hash + #[doc = " Hashes of the finalized execution blocks mapped to their numbers. Stores up to"] + #[doc = " `hashes_gc_threshold` entries. Execution block number -> execution block hash"] pub fn finalized_execution_blocks( &self, _0: impl ::std::borrow::Borrow, @@ -25927,8 +24017,8 @@ pub mod api { ], ) } - /// Hashes of the finalized execution blocks mapped to their numbers. Stores up to - /// `hashes_gc_threshold` entries. Execution block number -> execution block hash + #[doc = " Hashes of the finalized execution blocks mapped to their numbers. Stores up to"] + #[doc = " `hashes_gc_threshold` entries. Execution block number -> execution block hash"] pub fn finalized_execution_blocks_root( &self, ) -> ::subxt::storage::address::Address< @@ -25950,7 +24040,7 @@ pub mod api { ], ) } - /// Light client state + #[doc = " Light client state"] pub fn finalized_beacon_header( &self, _0: impl ::std::borrow::Borrow, @@ -25973,7 +24063,7 @@ pub mod api { ], ) } - /// Light client state + #[doc = " Light client state"] pub fn finalized_beacon_header_root( &self, ) -> ::subxt::storage::address::Address< @@ -26322,9 +24412,9 @@ pub mod api { } pub mod roles { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_roles::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_roles::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -26332,16 +24422,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CreateProfile { @@ -26353,16 +24440,13 @@ pub mod api { const CALL: &'static str = "create_profile"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UpdateProfile { @@ -26373,16 +24457,13 @@ pub mod api { const CALL: &'static str = "update_profile"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DeleteProfile; @@ -26391,16 +24472,13 @@ pub mod api { const CALL: &'static str = "delete_profile"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Chill; @@ -26409,16 +24487,13 @@ pub mod api { const CALL: &'static str = "chill"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnbondFunds { @@ -26430,16 +24505,13 @@ pub mod api { const CALL: &'static str = "unbond_funds"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithdrawUnbonded; @@ -26448,16 +24520,13 @@ pub mod api { const CALL: &'static str = "withdraw_unbonded"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PayoutStakers { @@ -26471,7 +24540,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::create_profile`]. + #[doc = "See [`Pallet::create_profile`]."] pub fn create_profile( &self, profile: runtime_types::pallet_roles::profile::Profile, @@ -26489,7 +24558,7 @@ pub mod api { ], ) } - ///See [`Pallet::update_profile`]. + #[doc = "See [`Pallet::update_profile`]."] pub fn update_profile( &self, updated_profile: runtime_types::pallet_roles::profile::Profile, @@ -26505,7 +24574,7 @@ pub mod api { ], ) } - ///See [`Pallet::delete_profile`]. + #[doc = "See [`Pallet::delete_profile`]."] pub fn delete_profile(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Roles", @@ -26518,7 +24587,7 @@ pub mod api { ], ) } - ///See [`Pallet::chill`]. + #[doc = "See [`Pallet::chill`]."] pub fn chill(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Roles", @@ -26531,7 +24600,7 @@ pub mod api { ], ) } - ///See [`Pallet::unbond_funds`]. + #[doc = "See [`Pallet::unbond_funds`]."] pub fn unbond_funds( &self, amount: ::core::primitive::u128, @@ -26547,7 +24616,7 @@ pub mod api { ], ) } - ///See [`Pallet::withdraw_unbonded`]. + #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Roles", @@ -26561,7 +24630,7 @@ pub mod api { ], ) } - ///See [`Pallet::payout_stakers`]. + #[doc = "See [`Pallet::payout_stakers`]."] pub fn payout_stakers( &self, validator_stash: ::subxt::utils::AccountId32, @@ -26580,24 +24649,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_roles::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Role assigned to the validator. + #[doc = "Role assigned to the validator."] pub struct RoleAssigned { pub account: ::subxt::utils::AccountId32, pub role: runtime_types::tangle_primitives::roles::RoleType, @@ -26607,19 +24673,16 @@ pub mod api { const EVENT: &'static str = "RoleAssigned"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Removed validator from role. + #[doc = "Removed validator from role."] pub struct RoleRemoved { pub account: ::subxt::utils::AccountId32, pub role: runtime_types::tangle_primitives::roles::RoleType, @@ -26629,19 +24692,16 @@ pub mod api { const EVENT: &'static str = "RoleRemoved"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Slashed validator. + #[doc = "Slashed validator."] pub struct Slashed { pub account: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -26651,19 +24711,16 @@ pub mod api { const EVENT: &'static str = "Slashed"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///New profile created. + #[doc = "New profile created."] pub struct ProfileCreated { pub account: ::subxt::utils::AccountId32, pub total_profile_restake: ::core::primitive::u128, @@ -26674,19 +24731,16 @@ pub mod api { const EVENT: &'static str = "ProfileCreated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Profile updated. + #[doc = "Profile updated."] pub struct ProfileUpdated { pub account: ::subxt::utils::AccountId32, pub total_profile_restake: ::core::primitive::u128, @@ -26697,19 +24751,16 @@ pub mod api { const EVENT: &'static str = "ProfileUpdated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Profile deleted. + #[doc = "Profile deleted."] pub struct ProfileDeleted { pub account: ::subxt::utils::AccountId32, } @@ -26718,19 +24769,16 @@ pub mod api { const EVENT: &'static str = "ProfileDeleted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Pending jobs,that cannot be opted out at the moment. + #[doc = "Pending jobs,that cannot be opted out at the moment."] pub struct PendingJobs { pub pending_jobs: ::std::vec::Vec<( runtime_types::tangle_primitives::roles::RoleType, @@ -26742,20 +24790,17 @@ pub mod api { const EVENT: &'static str = "PendingJobs"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Roles inflation reward paid for era + #[doc = "Roles inflation reward paid for era"] pub struct RolesRewardSet { pub total_rewards: ::core::primitive::u128, } @@ -26764,19 +24809,16 @@ pub mod api { const EVENT: &'static str = "RolesRewardSet"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The re-stakers' rewards are getting paid. + #[doc = "The re-stakers' rewards are getting paid."] pub struct PayoutStarted { pub era_index: ::core::primitive::u32, pub validator_stash: ::subxt::utils::AccountId32, @@ -26786,19 +24828,16 @@ pub mod api { const EVENT: &'static str = "PayoutStarted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The re-staker has been rewarded by this amount. + #[doc = "The re-staker has been rewarded by this amount."] pub struct Rewarded { pub stash: ::subxt::utils::AccountId32, pub amount: ::core::primitive::u128, @@ -26812,7 +24851,7 @@ pub mod api { use super::runtime_types; pub struct StorageApi; impl StorageApi { - /// Map from all "controller" accounts to the info regarding the staking. + #[doc = " Map from all \"controller\" accounts to the info regarding the staking."] pub fn ledger( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -26834,7 +24873,7 @@ pub mod api { ], ) } - /// Map from all "controller" accounts to the info regarding the staking. + #[doc = " Map from all \"controller\" accounts to the info regarding the staking."] pub fn ledger_root( &self, ) -> ::subxt::storage::address::Address< @@ -26855,7 +24894,7 @@ pub mod api { ], ) } - /// Mapping of resource to bridge index + #[doc = " Mapping of resource to bridge index"] pub fn account_roles_mapping( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, @@ -26879,7 +24918,7 @@ pub mod api { ], ) } - /// Mapping of resource to bridge index + #[doc = " Mapping of resource to bridge index"] pub fn account_roles_mapping_root( &self, ) -> ::subxt::storage::address::Address< @@ -26902,7 +24941,7 @@ pub mod api { ], ) } - /// The minimum re staking bond to become and maintain the role. + #[doc = " The minimum re staking bond to become and maintain the role."] pub fn min_restaking_bond( &self, ) -> ::subxt::storage::address::Address< @@ -26923,7 +24962,7 @@ pub mod api { ], ) } - /// The number of jobs completed by a validator in era + #[doc = " The number of jobs completed by a validator in era"] pub fn validator_jobs_in_era( &self, ) -> ::subxt::storage::address::Address< @@ -26947,8 +24986,8 @@ pub mod api { ], ) } - /// Rewards for the last `HISTORY_DEPTH` eras. - /// If reward hasn't been set or has been removed then 0 reward is returned. + #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] + #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_restake_reward_points( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -26971,8 +25010,8 @@ pub mod api { ], ) } - /// Rewards for the last `HISTORY_DEPTH` eras. - /// If reward hasn't been set or has been removed then 0 reward is returned. + #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] + #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_restake_reward_points_root( &self, ) -> ::subxt::storage::address::Address< @@ -26994,9 +25033,9 @@ pub mod api { ], ) } - /// The active era information, it holds index and start. - /// - /// The active era is the era being currently rewarded. + #[doc = " The active era information, it holds index and start."] + #[doc = ""] + #[doc = " The active era is the era being currently rewarded."] pub fn active_restaker_era( &self, ) -> ::subxt::storage::address::Address< @@ -27024,7 +25063,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// Max roles per account. + #[doc = " Max roles per account."] pub fn max_roles_per_account( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -27044,9 +25083,9 @@ pub mod api { } pub mod jobs { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_jobs::module::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_jobs::module::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -27054,16 +25093,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitJob { @@ -27079,16 +25115,13 @@ pub mod api { const CALL: &'static str = "submit_job"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitJobResult { @@ -27107,16 +25140,13 @@ pub mod api { const CALL: &'static str = "submit_job_result"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WithdrawRewards; @@ -27125,16 +25155,13 @@ pub mod api { const CALL: &'static str = "withdraw_rewards"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportInactiveValidator { @@ -27149,16 +25176,13 @@ pub mod api { const CALL: &'static str = "report_inactive_validator"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetPermittedCaller { @@ -27171,17 +25195,14 @@ pub mod api { const CALL: &'static str = "set_permitted_caller"; } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetTimeFee { @@ -27192,16 +25213,13 @@ pub mod api { const CALL: &'static str = "set_time_fee"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitMisbehavior { @@ -27215,7 +25233,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::submit_job`]. + #[doc = "See [`Pallet::submit_job`]."] pub fn submit_job( &self, job: runtime_types::tangle_primitives::jobs::JobSubmission< @@ -27236,7 +25254,7 @@ pub mod api { ], ) } - ///See [`Pallet::submit_job_result`]. + #[doc = "See [`Pallet::submit_job_result`]."] pub fn submit_job_result( &self, role_type: runtime_types::tangle_primitives::roles::RoleType, @@ -27261,7 +25279,7 @@ pub mod api { ], ) } - ///See [`Pallet::withdraw_rewards`]. + #[doc = "See [`Pallet::withdraw_rewards`]."] pub fn withdraw_rewards(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Jobs", @@ -27275,7 +25293,7 @@ pub mod api { ], ) } - ///See [`Pallet::report_inactive_validator`]. + #[doc = "See [`Pallet::report_inactive_validator`]."] pub fn report_inactive_validator( &self, role_type: runtime_types::tangle_primitives::roles::RoleType, @@ -27301,7 +25319,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_permitted_caller`]. + #[doc = "See [`Pallet::set_permitted_caller`]."] pub fn set_permitted_caller( &self, role_type: runtime_types::tangle_primitives::roles::RoleType, @@ -27319,7 +25337,7 @@ pub mod api { ], ) } - ///See [`Pallet::set_time_fee`]. + #[doc = "See [`Pallet::set_time_fee`]."] pub fn set_time_fee( &self, new_fee: ::core::primitive::u128, @@ -27335,10 +25353,10 @@ pub mod api { ], ) } - ///See [`Pallet::submit_misbehavior`]. + #[doc = "See [`Pallet::submit_misbehavior`]."] pub fn submit_misbehavior( &self, - misbehavior: runtime_types::tangle_primitives::misbehavior::MisbehaviorSubmission, + misbehavior : runtime_types :: tangle_primitives :: misbehavior :: MisbehaviorSubmission, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Jobs", @@ -27353,24 +25371,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_jobs::module::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A new job has been submitted + #[doc = "A new job has been submitted"] pub struct JobSubmitted { pub job_id: ::core::primitive::u64, pub role_type: runtime_types::tangle_primitives::roles::RoleType, @@ -27386,19 +25401,16 @@ pub mod api { const EVENT: &'static str = "JobSubmitted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A new job result has been submitted + #[doc = "A new job result has been submitted"] pub struct JobResultSubmitted { pub job_id: ::core::primitive::u64, pub role_type: runtime_types::tangle_primitives::roles::RoleType, @@ -27408,19 +25420,16 @@ pub mod api { const EVENT: &'static str = "JobResultSubmitted"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///validator has earned reward + #[doc = "validator has earned reward"] pub struct ValidatorRewarded { pub id: ::subxt::utils::AccountId32, pub reward: ::core::primitive::u128, @@ -27687,7 +25696,7 @@ pub mod api { ], ) } - /// The job-id storage + #[doc = " The job-id storage"] pub fn next_job_id( &self, ) -> ::subxt::storage::address::Address< @@ -27735,7 +25744,7 @@ pub mod api { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - /// `PalletId` for the jobs pallet. + #[doc = " `PalletId` for the jobs pallet."] pub fn pallet_id( &self, ) -> ::subxt::constants::Address { @@ -27754,9 +25763,9 @@ pub mod api { } pub mod dkg { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_dkg::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_dkg::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -27764,16 +25773,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetFee { @@ -27787,7 +25793,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::set_fee`]. + #[doc = "See [`Pallet::set_fee`]."] pub fn set_fee( &self, fee_info: runtime_types::pallet_dkg::types::FeeInfo<::core::primitive::u128>, @@ -27805,24 +25811,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_dkg::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Fee has been updated to the new value + #[doc = "Fee has been updated to the new value"] pub struct FeeUpdated( pub runtime_types::pallet_dkg::types::FeeInfo<::core::primitive::u128>, ); @@ -27831,19 +25834,16 @@ pub mod api { const EVENT: &'static str = "FeeUpdated"; } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///A DKG has been rotated. + #[doc = "A DKG has been rotated."] pub struct KeyRotated { pub from_job_id: ::core::primitive::u64, pub to_job_id: ::core::primitive::u64, @@ -27883,9 +25883,9 @@ pub mod api { } pub mod zk_saa_s { use super::{root_mod, runtime_types}; - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_zksaas::pallet::Error; - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_zksaas::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -27893,16 +25893,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetFee { @@ -27916,7 +25913,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - ///See [`Pallet::set_fee`]. + #[doc = "See [`Pallet::set_fee`]."] pub fn set_fee( &self, fee_info: runtime_types::pallet_zksaas::types::FeeInfo<::core::primitive::u128>, @@ -27934,24 +25931,21 @@ pub mod api { } } } - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_zksaas::pallet::Event; pub mod events { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Fee has been updated to the new value + #[doc = "Fee has been updated to the new value"] pub struct FeeUpdated( pub runtime_types::pallet_zksaas::types::FeeInfo<::core::primitive::u128>, ); @@ -27994,16 +25988,13 @@ pub mod api { pub mod bounded_btree_map { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); @@ -28011,16 +26002,13 @@ pub mod api { pub mod bounded_vec { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); @@ -28028,16 +26016,13 @@ pub mod api { pub mod weak_bounded_vec { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); @@ -28048,16 +26033,13 @@ pub mod api { pub mod eth2 { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BeaconBlockHeader { @@ -28068,16 +26050,13 @@ pub mod api { pub body_root: runtime_types::eth_types::H256, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExtendedBeaconBlockHeader { @@ -28086,16 +26065,13 @@ pub mod api { pub execution_block_hash: runtime_types::eth_types::H256, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FinalizedHeaderUpdate { @@ -28103,16 +26079,13 @@ pub mod api { pub finality_branch: ::std::vec::Vec, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct HeaderUpdate { @@ -28121,16 +26094,13 @@ pub mod api { pub execution_hash_branch: ::std::vec::Vec, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct LightClientUpdate { @@ -28142,44 +26112,35 @@ pub mod api { ::core::option::Option, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PublicKeyBytes(pub [::core::primitive::u8; 48usize]); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SignatureBytes(pub [::core::primitive::u8; 96usize]); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SyncAggregate { @@ -28187,16 +26148,13 @@ pub mod api { pub sync_committee_signature: runtime_types::eth_types::eth2::SignatureBytes, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SyncCommittee { @@ -28204,46 +26162,37 @@ pub mod api { pub aggregate_pubkey: runtime_types::eth_types::eth2::PublicKeyBytes, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SyncCommitteeBits(pub [::core::primitive::u8; 64usize]); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SyncCommitteePublicKeys( pub ::std::vec::Vec, ); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SyncCommitteeUpdate { @@ -28254,16 +26203,13 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ClientMode { @@ -28273,16 +26219,13 @@ pub mod api { SubmitHeader, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExecutionHeaderInfo<_0> { @@ -28291,16 +26234,13 @@ pub mod api { pub submitter: _0, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InitInput<_0> { @@ -28316,16 +26256,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlockHeader { @@ -28350,72 +26287,57 @@ pub mod api { pub partial_hash: ::core::option::Option, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bloom(pub runtime_types::ethbloom::Bloom); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct H160(pub ::subxt::utils::H160); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct H256(pub ::subxt::utils::H256); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct H64(pub runtime_types::ethereum_types::hash::H64); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct U256(pub runtime_types::primitive_types::U256); @@ -28423,16 +26345,13 @@ pub mod api { pub mod ethbloom { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bloom(pub [::core::primitive::u8; 256usize]); @@ -28442,16 +26361,13 @@ pub mod api { pub mod block { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Block<_0> { @@ -28463,16 +26379,13 @@ pub mod api { pub mod header { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Header { @@ -28496,16 +26409,13 @@ pub mod api { pub mod log { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Log { @@ -28517,16 +26427,13 @@ pub mod api { pub mod receipt { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EIP658ReceiptData { @@ -28536,16 +26443,13 @@ pub mod api { pub logs: ::std::vec::Vec, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ReceiptV3 { @@ -28560,16 +26464,13 @@ pub mod api { pub mod transaction { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccessListItem { @@ -28577,16 +26478,13 @@ pub mod api { pub storage_keys: ::std::vec::Vec<::subxt::utils::H256>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EIP1559Transaction { @@ -28605,16 +26503,13 @@ pub mod api { pub s: ::subxt::utils::H256, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EIP2930Transaction { @@ -28632,16 +26527,13 @@ pub mod api { pub s: ::subxt::utils::H256, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct LegacyTransaction { @@ -28654,16 +26546,13 @@ pub mod api { pub signature: runtime_types::ethereum::transaction::TransactionSignature, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TransactionAction { @@ -28673,31 +26562,25 @@ pub mod api { Create, } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransactionRecoveryId(pub ::core::primitive::u64); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransactionSignature { @@ -28706,16 +26589,13 @@ pub mod api { pub s: ::subxt::utils::H256, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TransactionV2 { @@ -28733,16 +26613,13 @@ pub mod api { pub mod hash { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct H64(pub [::core::primitive::u8; 8usize]); @@ -28753,16 +26630,13 @@ pub mod api { pub mod backend { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Basic { @@ -28776,16 +26650,13 @@ pub mod api { pub mod error { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ExitError { @@ -28823,16 +26694,13 @@ pub mod api { MaxNonce, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ExitFatal { @@ -28846,16 +26714,13 @@ pub mod api { Other(::std::string::String), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ExitReason { @@ -28869,16 +26734,13 @@ pub mod api { Fatal(runtime_types::evm_core::error::ExitFatal), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ExitRevert { @@ -28886,16 +26748,13 @@ pub mod api { Reverted, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ExitSucceed { @@ -28910,17 +26769,14 @@ pub mod api { pub mod opcode { use super::runtime_types; #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Opcode(pub ::core::primitive::u8); @@ -28929,16 +26785,13 @@ pub mod api { pub mod finality_grandpa { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Equivocation<_0, _1, _2> { @@ -28948,16 +26801,13 @@ pub mod api { pub second: (_1, _2), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Precommit<_0, _1> { @@ -28965,16 +26815,13 @@ pub mod api { pub target_number: _1, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Prevote<_0, _1> { @@ -28985,16 +26832,13 @@ pub mod api { pub mod fp_evm { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExecutionInfoV2<_0> { @@ -29005,16 +26849,13 @@ pub mod api { pub logs: ::std::vec::Vec, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UsedGas { @@ -29022,16 +26863,13 @@ pub mod api { pub effective: runtime_types::primitive_types::U256, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WeightInfo { @@ -29044,16 +26882,13 @@ pub mod api { pub mod fp_rpc { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TransactionStatus { @@ -29071,16 +26906,13 @@ pub mod api { pub mod unchecked_extrinsic { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UncheckedExtrinsic<_0, _1, _2, _3>( @@ -29093,16 +26925,13 @@ pub mod api { pub mod dispatch { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DispatchClass { @@ -29114,16 +26943,13 @@ pub mod api { Mandatory, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DispatchInfo { @@ -29132,16 +26958,13 @@ pub mod api { pub pays_fee: runtime_types::frame_support::dispatch::Pays, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Pays { @@ -29151,16 +26974,13 @@ pub mod api { No, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PerDispatchClass<_0> { @@ -29169,16 +26989,13 @@ pub mod api { pub mandatory: _0, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RawOrigin<_0> { @@ -29195,16 +27012,13 @@ pub mod api { pub mod preimages { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Bounded<_0> { @@ -29231,16 +27045,13 @@ pub mod api { pub mod misc { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BalanceStatus { @@ -29253,16 +27064,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PalletId(pub [::core::primitive::u8; 8usize]); @@ -29274,16 +27082,13 @@ pub mod api { pub mod check_genesis { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckGenesis; @@ -29291,16 +27096,13 @@ pub mod api { pub mod check_mortality { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckMortality(pub runtime_types::sp_runtime::generic::era::Era); @@ -29308,16 +27110,13 @@ pub mod api { pub mod check_non_zero_sender { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckNonZeroSender; @@ -29325,16 +27124,13 @@ pub mod api { pub mod check_nonce { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckNonce(#[codec(compact)] pub ::core::primitive::u32); @@ -29342,16 +27138,13 @@ pub mod api { pub mod check_spec_version { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckSpecVersion; @@ -29359,16 +27152,13 @@ pub mod api { pub mod check_tx_version { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckTxVersion; @@ -29376,16 +27166,13 @@ pub mod api { pub mod check_weight { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckWeight; @@ -29394,16 +27181,13 @@ pub mod api { pub mod limits { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlockLength { @@ -29412,16 +27196,13 @@ pub mod api { >, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlockWeights { @@ -29432,16 +27213,13 @@ pub mod api { >, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct WeightsPerClass { @@ -29457,34 +27235,31 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::remark`]. + #[doc = "See [`Pallet::remark`]."] remark { remark: ::std::vec::Vec<::core::primitive::u8> }, #[codec(index = 1)] - ///See [`Pallet::set_heap_pages`]. + #[doc = "See [`Pallet::set_heap_pages`]."] set_heap_pages { pages: ::core::primitive::u64 }, #[codec(index = 2)] - ///See [`Pallet::set_code`]. + #[doc = "See [`Pallet::set_code`]."] set_code { code: ::std::vec::Vec<::core::primitive::u8> }, #[codec(index = 3)] - ///See [`Pallet::set_code_without_checks`]. + #[doc = "See [`Pallet::set_code_without_checks`]."] set_code_without_checks { code: ::std::vec::Vec<::core::primitive::u8> }, #[codec(index = 4)] - ///See [`Pallet::set_storage`]. + #[doc = "See [`Pallet::set_storage`]."] set_storage { items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, @@ -29492,108 +27267,98 @@ pub mod api { )>, }, #[codec(index = 5)] - ///See [`Pallet::kill_storage`]. + #[doc = "See [`Pallet::kill_storage`]."] kill_storage { keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>> }, #[codec(index = 6)] - ///See [`Pallet::kill_prefix`]. + #[doc = "See [`Pallet::kill_prefix`]."] kill_prefix { prefix: ::std::vec::Vec<::core::primitive::u8>, subkeys: ::core::primitive::u32, }, #[codec(index = 7)] - ///See [`Pallet::remark_with_event`]. + #[doc = "See [`Pallet::remark_with_event`]."] remark_with_event { remark: ::std::vec::Vec<::core::primitive::u8> }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Error for the System pallet + #[doc = "Error for the System pallet"] pub enum Error { #[codec(index = 0)] - ///The name of specification does not match between the current runtime - ///and the new runtime. + #[doc = "The name of specification does not match between the current runtime"] + #[doc = "and the new runtime."] InvalidSpecName, #[codec(index = 1)] - ///The specification version is not allowed to decrease between the current - /// runtime and the new runtime. + #[doc = "The specification version is not allowed to decrease between the current runtime"] + #[doc = "and the new runtime."] SpecVersionNeedsToIncrease, #[codec(index = 2)] - ///Failed to extract the runtime version from the new runtime. - /// - ///Either calling `Core_version` or decoding `RuntimeVersion` failed. + #[doc = "Failed to extract the runtime version from the new runtime."] + #[doc = ""] + #[doc = "Either calling `Core_version` or decoding `RuntimeVersion` failed."] FailedToExtractRuntimeVersion, #[codec(index = 3)] - ///Suicide called when the account has non-default composite data. + #[doc = "Suicide called when the account has non-default composite data."] NonDefaultComposite, #[codec(index = 4)] - ///There is a non-zero reference count preventing the account from being - /// purged. + #[doc = "There is a non-zero reference count preventing the account from being purged."] NonZeroRefCount, #[codec(index = 5)] - ///The origin filter prevent the call to be dispatched. + #[doc = "The origin filter prevent the call to be dispatched."] CallFiltered, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Event for the System pallet. + #[doc = "Event for the System pallet."] pub enum Event { #[codec(index = 0)] - ///An extrinsic completed successfully. + #[doc = "An extrinsic completed successfully."] ExtrinsicSuccess { dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, }, #[codec(index = 1)] - ///An extrinsic failed. + #[doc = "An extrinsic failed."] ExtrinsicFailed { dispatch_error: runtime_types::sp_runtime::DispatchError, dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, }, #[codec(index = 2)] - ///`:code` was updated. + #[doc = "`:code` was updated."] CodeUpdated, #[codec(index = 3)] - ///A new account was created. + #[doc = "A new account was created."] NewAccount { account: ::subxt::utils::AccountId32 }, #[codec(index = 4)] - ///An account was reaped. + #[doc = "An account was reaped."] KilledAccount { account: ::subxt::utils::AccountId32 }, #[codec(index = 5)] - ///On on-chain remark happened. + #[doc = "On on-chain remark happened."] Remarked { sender: ::subxt::utils::AccountId32, hash: ::subxt::utils::H256 }, } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountInfo<_0, _1> { @@ -29604,16 +27369,13 @@ pub mod api { pub data: _1, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EventRecord<_0, _1> { @@ -29622,16 +27384,13 @@ pub mod api { pub topics: ::std::vec::Vec<_1>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct LastRuntimeUpgradeInfo { @@ -29640,16 +27399,13 @@ pub mod api { pub spec_name: ::std::string::String, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Phase { @@ -29666,22 +27422,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::claim`]. + #[doc = "See [`Pallet::claim`]."] claim { dest: ::core::option::Option< runtime_types::pallet_airdrop_claims::utils::MultiAddress, @@ -29693,7 +27446,7 @@ pub mod api { runtime_types::pallet_airdrop_claims::utils::MultiAddressSignature, }, #[codec(index = 1)] - ///See [`Pallet::mint_claim`]. + #[doc = "See [`Pallet::mint_claim`]."] mint_claim { who: runtime_types::pallet_airdrop_claims::utils::MultiAddress, value: ::core::primitive::u128, @@ -29709,7 +27462,7 @@ pub mod api { >, }, #[codec(index = 2)] - ///See [`Pallet::claim_attest`]. + #[doc = "See [`Pallet::claim_attest`]."] claim_attest { dest: ::core::option::Option< runtime_types::pallet_airdrop_claims::utils::MultiAddress, @@ -29722,76 +27475,70 @@ pub mod api { statement: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 4)] - ///See [`Pallet::move_claim`]. + #[doc = "See [`Pallet::move_claim`]."] move_claim { old: runtime_types::pallet_airdrop_claims::utils::MultiAddress, new: runtime_types::pallet_airdrop_claims::utils::MultiAddress, }, #[codec(index = 5)] - ///See [`Pallet::force_set_expiry_config`]. + #[doc = "See [`Pallet::force_set_expiry_config`]."] force_set_expiry_config { expiry_block: ::core::primitive::u64, dest: runtime_types::pallet_airdrop_claims::utils::MultiAddress, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Invalid Ethereum signature. + #[doc = "Invalid Ethereum signature."] InvalidEthereumSignature, #[codec(index = 1)] - ///Invalid Native (sr25519) signature + #[doc = "Invalid Native (sr25519) signature"] InvalidNativeSignature, #[codec(index = 2)] - ///Invalid Native account decoding + #[doc = "Invalid Native account decoding"] InvalidNativeAccount, #[codec(index = 3)] - ///Ethereum address has no claim. + #[doc = "Ethereum address has no claim."] SignerHasNoClaim, #[codec(index = 4)] - ///Account ID sending transaction has no claim. + #[doc = "Account ID sending transaction has no claim."] SenderHasNoClaim, #[codec(index = 5)] - ///There's not enough in the pot to pay out some unvested amount. Generally - /// implies a logic error. + #[doc = "There's not enough in the pot to pay out some unvested amount. Generally implies a"] + #[doc = "logic error."] PotUnderflow, #[codec(index = 6)] - ///A needed statement was not included. + #[doc = "A needed statement was not included."] InvalidStatement, #[codec(index = 7)] - ///The account already has a vested balance. + #[doc = "The account already has a vested balance."] VestedBalanceExists, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///Someone claimed some native tokens. + #[doc = "Someone claimed some native tokens."] Claimed { recipient: ::subxt::utils::AccountId32, source: runtime_types::pallet_airdrop_claims::utils::MultiAddress, @@ -29804,104 +27551,72 @@ pub mod api { pub mod ethereum_address { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EcdsaSignature(pub [::core::primitive::u8; 65usize]); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EthereumAddress(pub [::core::primitive::u8; 20usize]); } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MultiAddress { - #[codec(index = 0)] - EVM( - runtime_types::pallet_airdrop_claims::utils::ethereum_address::EthereumAddress, - ), - #[codec(index = 1)] - Native(::subxt::utils::AccountId32), - } + # [codec (index = 0)] EVM (runtime_types :: pallet_airdrop_claims :: utils :: ethereum_address :: EthereumAddress ,) , # [codec (index = 1)] Native (:: subxt :: utils :: AccountId32 ,) , } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MultiAddressSignature { - #[codec(index = 0)] - EVM( - runtime_types::pallet_airdrop_claims::utils::ethereum_address::EcdsaSignature, - ), - #[codec(index = 1)] - Native( - runtime_types::pallet_airdrop_claims::utils::Sr25519Signature, - ), - } + # [codec (index = 0)] EVM (runtime_types :: pallet_airdrop_claims :: utils :: ethereum_address :: EcdsaSignature ,) , # [codec (index = 1)] Native (runtime_types :: pallet_airdrop_claims :: utils :: Sr25519Signature ,) , } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Sr25519Signature(pub runtime_types::sp_core::sr25519::Signature); } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum StatementKind { @@ -29916,22 +27631,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::report_equivocation`]. + #[doc = "See [`Pallet::report_equivocation`]."] report_equivocation { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -29944,7 +27656,7 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] - ///See [`Pallet::report_equivocation_unsigned`]. + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -29957,39 +27669,34 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 2)] - ///See [`Pallet::plan_config_change`]. + #[doc = "See [`Pallet::plan_config_change`]."] plan_config_change { config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///An equivocation proof provided as part of an equivocation report is - /// invalid. + #[doc = "An equivocation proof provided as part of an equivocation report is invalid."] InvalidEquivocationProof, #[codec(index = 1)] - ///A key ownership proof provided as part of an equivocation report is - /// invalid. + #[doc = "A key ownership proof provided as part of an equivocation report is invalid."] InvalidKeyOwnershipProof, #[codec(index = 2)] - ///A given equivocation report is valid but already previously reported. + #[doc = "A given equivocation report is valid but already previously reported."] DuplicateOffenceReport, #[codec(index = 3)] - ///Submitted configuration is invalid. + #[doc = "Submitted configuration is invalid."] InvalidConfiguration, } } @@ -29999,16 +27706,13 @@ pub mod api { pub mod list { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bag { @@ -30016,16 +27720,13 @@ pub mod api { pub tail: ::core::option::Option<::subxt::utils::AccountId32>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ListError { @@ -30039,16 +27740,13 @@ pub mod api { NodeNotFound, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Node { @@ -30062,22 +27760,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::rebag`]. + #[doc = "See [`Pallet::rebag`]."] rebag { dislocated: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30085,7 +27780,7 @@ pub mod api { >, }, #[codec(index = 1)] - ///See [`Pallet::put_in_front_of`]. + #[doc = "See [`Pallet::put_in_front_of`]."] put_in_front_of { lighter: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30093,7 +27788,7 @@ pub mod api { >, }, #[codec(index = 2)] - ///See [`Pallet::put_in_front_of_other`]. + #[doc = "See [`Pallet::put_in_front_of_other`]."] put_in_front_of_other { heavier: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30106,48 +27801,42 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///A error in the list interface implementation. + #[doc = "A error in the list interface implementation."] List(runtime_types::pallet_bags_list::list::ListError), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///Moved an account from one bag to another. + #[doc = "Moved an account from one bag to another."] Rebagged { who: ::subxt::utils::AccountId32, from: ::core::primitive::u64, to: ::core::primitive::u64, }, #[codec(index = 1)] - ///Updated the score of some account to the given amount. + #[doc = "Updated the score of some account to the given amount."] ScoreUpdated { who: ::subxt::utils::AccountId32, new_score: ::core::primitive::u64, @@ -30160,22 +27849,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::transfer_allow_death`]. + #[doc = "See [`Pallet::transfer_allow_death`]."] transfer_allow_death { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30185,7 +27871,7 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 1)] - ///See [`Pallet::set_balance_deprecated`]. + #[doc = "See [`Pallet::set_balance_deprecated`]."] set_balance_deprecated { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30197,7 +27883,7 @@ pub mod api { old_reserved: ::core::primitive::u128, }, #[codec(index = 2)] - ///See [`Pallet::force_transfer`]. + #[doc = "See [`Pallet::force_transfer`]."] force_transfer { source: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30211,7 +27897,7 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 3)] - ///See [`Pallet::transfer_keep_alive`]. + #[doc = "See [`Pallet::transfer_keep_alive`]."] transfer_keep_alive { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30221,7 +27907,7 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 4)] - ///See [`Pallet::transfer_all`]. + #[doc = "See [`Pallet::transfer_all`]."] transfer_all { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30230,7 +27916,7 @@ pub mod api { keep_alive: ::core::primitive::bool, }, #[codec(index = 5)] - ///See [`Pallet::force_unreserve`]. + #[doc = "See [`Pallet::force_unreserve`]."] force_unreserve { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30239,10 +27925,10 @@ pub mod api { amount: ::core::primitive::u128, }, #[codec(index = 6)] - ///See [`Pallet::upgrade_accounts`]. + #[doc = "See [`Pallet::upgrade_accounts`]."] upgrade_accounts { who: ::std::vec::Vec<::subxt::utils::AccountId32> }, #[codec(index = 7)] - ///See [`Pallet::transfer`]. + #[doc = "See [`Pallet::transfer`]."] transfer { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30252,7 +27938,7 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 8)] - ///See [`Pallet::force_set_balance`]. + #[doc = "See [`Pallet::force_set_balance`]."] force_set_balance { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30263,98 +27949,92 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Vesting balance too high to send value. + #[doc = "Vesting balance too high to send value."] VestingBalance, #[codec(index = 1)] - ///Account liquidity restrictions prevent withdrawal. + #[doc = "Account liquidity restrictions prevent withdrawal."] LiquidityRestrictions, #[codec(index = 2)] - ///Balance too low to send value. + #[doc = "Balance too low to send value."] InsufficientBalance, #[codec(index = 3)] - ///Value too low to create account due to existential deposit. + #[doc = "Value too low to create account due to existential deposit."] ExistentialDeposit, #[codec(index = 4)] - ///Transfer/payment would kill account. + #[doc = "Transfer/payment would kill account."] Expendability, #[codec(index = 5)] - ///A vesting schedule already exists for this account. + #[doc = "A vesting schedule already exists for this account."] ExistingVestingSchedule, #[codec(index = 6)] - ///Beneficiary account must pre-exist. + #[doc = "Beneficiary account must pre-exist."] DeadAccount, #[codec(index = 7)] - ///Number of named reserves exceed `MaxReserves`. + #[doc = "Number of named reserves exceed `MaxReserves`."] TooManyReserves, #[codec(index = 8)] - ///Number of holds exceed `MaxHolds`. + #[doc = "Number of holds exceed `MaxHolds`."] TooManyHolds, #[codec(index = 9)] - ///Number of freezes exceed `MaxFreezes`. + #[doc = "Number of freezes exceed `MaxFreezes`."] TooManyFreezes, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///An account was created with some free balance. + #[doc = "An account was created with some free balance."] Endowed { account: ::subxt::utils::AccountId32, free_balance: ::core::primitive::u128, }, #[codec(index = 1)] - ///An account was removed whose balance was non-zero but below - /// ExistentialDeposit, resulting in an outright loss. + #[doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] + #[doc = "resulting in an outright loss."] DustLost { account: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 2)] - ///Transfer succeeded. + #[doc = "Transfer succeeded."] Transfer { from: ::subxt::utils::AccountId32, to: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 3)] - ///A balance was set by root. + #[doc = "A balance was set by root."] BalanceSet { who: ::subxt::utils::AccountId32, free: ::core::primitive::u128 }, #[codec(index = 4)] - ///Some balance was reserved (moved from free to reserved). + #[doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, #[codec(index = 5)] - ///Some balance was unreserved (moved from reserved to free). + #[doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, #[codec(index = 6)] - ///Some balance was moved from the reserve of the first account to the second - /// account. Final argument indicates the destination balance type. + #[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::utils::AccountId32, to: ::subxt::utils::AccountId32, @@ -30363,62 +28043,59 @@ pub mod api { runtime_types::frame_support::traits::tokens::misc::BalanceStatus, }, #[codec(index = 7)] - ///Some amount was deposited (e.g. for transaction fees). + #[doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, #[codec(index = 8)] - ///Some amount was withdrawn from the account (e.g. for transaction fees). + #[doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, #[codec(index = 9)] - ///Some amount was removed from the account (e.g. for misbehavior). + #[doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, #[codec(index = 10)] - ///Some amount was minted into an account. + #[doc = "Some amount was minted into an account."] Minted { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, #[codec(index = 11)] - ///Some amount was burned from an account. + #[doc = "Some amount was burned from an account."] Burned { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, #[codec(index = 12)] - ///Some amount was suspended from an account (it can be restored later). + #[doc = "Some amount was suspended from an account (it can be restored later)."] Suspended { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, #[codec(index = 13)] - ///Some amount was restored into an account. + #[doc = "Some amount was restored into an account."] Restored { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, #[codec(index = 14)] - ///An account was upgraded. + #[doc = "An account was upgraded."] Upgraded { who: ::subxt::utils::AccountId32 }, #[codec(index = 15)] - ///Total issuance was increased by `amount`, creating a credit to be balanced. + #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] Issued { amount: ::core::primitive::u128 }, #[codec(index = 16)] - ///Total issuance was decreased by `amount`, creating a debt to be balanced. + #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] Rescinded { amount: ::core::primitive::u128 }, #[codec(index = 17)] - ///Some balance was locked. + #[doc = "Some balance was locked."] Locked { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, #[codec(index = 18)] - ///Some balance was unlocked. + #[doc = "Some balance was unlocked."] Unlocked { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, #[codec(index = 19)] - ///Some balance was frozen. + #[doc = "Some balance was frozen."] Frozen { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, #[codec(index = 20)] - ///Some balance was thawed. + #[doc = "Some balance was thawed."] Thawed { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, } } pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct AccountData<_0> { @@ -30428,16 +28105,13 @@ pub mod api { pub flags: runtime_types::pallet_balances::types::ExtraFlags, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BalanceLock<_0> { @@ -30446,31 +28120,25 @@ pub mod api { pub reasons: runtime_types::pallet_balances::types::Reasons, } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ExtraFlags(pub ::core::primitive::u128); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IdAmount<_0, _1> { @@ -30478,16 +28146,13 @@ pub mod api { pub amount: _1, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Reasons { @@ -30499,16 +28164,13 @@ pub mod api { All, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReserveData<_0, _1> { @@ -30522,41 +28184,35 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::set_base_fee_per_gas`]. + #[doc = "See [`Pallet::set_base_fee_per_gas`]."] set_base_fee_per_gas { fee: runtime_types::primitive_types::U256 }, #[codec(index = 1)] - ///See [`Pallet::set_elasticity`]. + #[doc = "See [`Pallet::set_elasticity`]."] set_elasticity { elasticity: runtime_types::sp_arithmetic::per_things::Permill }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] NewBaseFeePerGas { fee: runtime_types::primitive_types::U256 }, @@ -30572,35 +28228,32 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::propose_bounty`]. + #[doc = "See [`Pallet::propose_bounty`]."] propose_bounty { #[codec(compact)] value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - ///See [`Pallet::approve_bounty`]. + #[doc = "See [`Pallet::approve_bounty`]."] approve_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 2)] - ///See [`Pallet::propose_curator`]. + #[doc = "See [`Pallet::propose_curator`]."] propose_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -30612,19 +28265,19 @@ pub mod api { fee: ::core::primitive::u128, }, #[codec(index = 3)] - ///See [`Pallet::unassign_curator`]. + #[doc = "See [`Pallet::unassign_curator`]."] unassign_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 4)] - ///See [`Pallet::accept_curator`]. + #[doc = "See [`Pallet::accept_curator`]."] accept_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 5)] - ///See [`Pallet::award_bounty`]. + #[doc = "See [`Pallet::award_bounty`]."] award_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -30634,19 +28287,19 @@ pub mod api { >, }, #[codec(index = 6)] - ///See [`Pallet::claim_bounty`]. + #[doc = "See [`Pallet::claim_bounty`]."] claim_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 7)] - ///See [`Pallet::close_bounty`]. + #[doc = "See [`Pallet::close_bounty`]."] close_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 8)] - ///See [`Pallet::extend_bounty_expiry`]. + #[doc = "See [`Pallet::extend_bounty_expiry`]."] extend_bounty_expiry { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -30654,112 +28307,102 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Proposer's balance is too low. + #[doc = "Proposer's balance is too low."] InsufficientProposersBalance, #[codec(index = 1)] - ///No proposal or bounty at that index. + #[doc = "No proposal or bounty at that index."] InvalidIndex, #[codec(index = 2)] - ///The reason given is just too big. + #[doc = "The reason given is just too big."] ReasonTooBig, #[codec(index = 3)] - ///The bounty status is unexpected. + #[doc = "The bounty status is unexpected."] UnexpectedStatus, #[codec(index = 4)] - ///Require bounty curator. + #[doc = "Require bounty curator."] RequireCurator, #[codec(index = 5)] - ///Invalid bounty value. + #[doc = "Invalid bounty value."] InvalidValue, #[codec(index = 6)] - ///Invalid bounty fee. + #[doc = "Invalid bounty fee."] InvalidFee, #[codec(index = 7)] - ///A bounty payout is pending. - ///To cancel the bounty, you must unassign and slash the curator. + #[doc = "A bounty payout is pending."] + #[doc = "To cancel the bounty, you must unassign and slash the curator."] PendingPayout, #[codec(index = 8)] - ///The bounties cannot be claimed/closed because it's still in the countdown - /// period. + #[doc = "The bounties cannot be claimed/closed because it's still in the countdown period."] Premature, #[codec(index = 9)] - ///The bounty cannot be closed because it has active child bounties. + #[doc = "The bounty cannot be closed because it has active child bounties."] HasActiveChildBounty, #[codec(index = 10)] - ///Too many approvals are already queued. + #[doc = "Too many approvals are already queued."] TooManyQueued, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///New bounty proposal. + #[doc = "New bounty proposal."] BountyProposed { index: ::core::primitive::u32 }, #[codec(index = 1)] - ///A bounty proposal was rejected; funds were slashed. + #[doc = "A bounty proposal was rejected; funds were slashed."] BountyRejected { index: ::core::primitive::u32, bond: ::core::primitive::u128 }, #[codec(index = 2)] - ///A bounty proposal is funded and became active. + #[doc = "A bounty proposal is funded and became active."] BountyBecameActive { index: ::core::primitive::u32 }, #[codec(index = 3)] - ///A bounty is awarded to a beneficiary. + #[doc = "A bounty is awarded to a beneficiary."] BountyAwarded { index: ::core::primitive::u32, beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 4)] - ///A bounty is claimed by beneficiary. + #[doc = "A bounty is claimed by beneficiary."] BountyClaimed { index: ::core::primitive::u32, payout: ::core::primitive::u128, beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 5)] - ///A bounty is cancelled. + #[doc = "A bounty is cancelled."] BountyCanceled { index: ::core::primitive::u32 }, #[codec(index = 6)] - ///A bounty expiry is extended. + #[doc = "A bounty expiry is extended."] BountyExtended { index: ::core::primitive::u32 }, } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bounty<_0, _1, _2> { @@ -30771,16 +28414,13 @@ pub mod api { pub status: runtime_types::pallet_bounties::BountyStatus<_0, _2>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BountyStatus<_0, _1> { @@ -30803,22 +28443,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::add_child_bounty`]. + #[doc = "See [`Pallet::add_child_bounty`]."] add_child_bounty { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -30827,7 +28464,7 @@ pub mod api { description: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - ///See [`Pallet::propose_curator`]. + #[doc = "See [`Pallet::propose_curator`]."] propose_curator { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -30841,7 +28478,7 @@ pub mod api { fee: ::core::primitive::u128, }, #[codec(index = 2)] - ///See [`Pallet::accept_curator`]. + #[doc = "See [`Pallet::accept_curator`]."] accept_curator { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -30849,7 +28486,7 @@ pub mod api { child_bounty_id: ::core::primitive::u32, }, #[codec(index = 3)] - ///See [`Pallet::unassign_curator`]. + #[doc = "See [`Pallet::unassign_curator`]."] unassign_curator { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -30857,7 +28494,7 @@ pub mod api { child_bounty_id: ::core::primitive::u32, }, #[codec(index = 4)] - ///See [`Pallet::award_child_bounty`]. + #[doc = "See [`Pallet::award_child_bounty`]."] award_child_bounty { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -30869,7 +28506,7 @@ pub mod api { >, }, #[codec(index = 5)] - ///See [`Pallet::claim_child_bounty`]. + #[doc = "See [`Pallet::claim_child_bounty`]."] claim_child_bounty { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -30877,7 +28514,7 @@ pub mod api { child_bounty_id: ::core::primitive::u32, }, #[codec(index = 6)] - ///See [`Pallet::close_child_bounty`]. + #[doc = "See [`Pallet::close_child_bounty`]."] close_child_bounty { #[codec(compact)] parent_bounty_id: ::core::primitive::u32, @@ -30886,57 +28523,51 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///The parent bounty is not in active state. + #[doc = "The parent bounty is not in active state."] ParentBountyNotActive, #[codec(index = 1)] - ///The bounty balance is not enough to add new child-bounty. + #[doc = "The bounty balance is not enough to add new child-bounty."] InsufficientBountyBalance, #[codec(index = 2)] - ///Number of child bounties exceeds limit `MaxActiveChildBountyCount`. + #[doc = "Number of child bounties exceeds limit `MaxActiveChildBountyCount`."] TooManyChildBounties, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A child-bounty is added. + #[doc = "A child-bounty is added."] Added { index: ::core::primitive::u32, child_index: ::core::primitive::u32 }, #[codec(index = 1)] - ///A child-bounty is awarded to a beneficiary. + #[doc = "A child-bounty is awarded to a beneficiary."] Awarded { index: ::core::primitive::u32, child_index: ::core::primitive::u32, beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 2)] - ///A child-bounty is claimed by beneficiary. + #[doc = "A child-bounty is claimed by beneficiary."] Claimed { index: ::core::primitive::u32, child_index: ::core::primitive::u32, @@ -30944,21 +28575,18 @@ pub mod api { beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 3)] - ///A child-bounty is cancelled. + #[doc = "A child-bounty is cancelled."] Canceled { index: ::core::primitive::u32, child_index: ::core::primitive::u32 }, } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChildBounty<_0, _1, _2> { @@ -30969,16 +28597,13 @@ pub mod api { pub status: runtime_types::pallet_child_bounties::ChildBountyStatus<_0, _2>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ChildBountyStatus<_0, _1> { @@ -30997,29 +28622,26 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::set_members`]. + #[doc = "See [`Pallet::set_members`]."] set_members { new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] - ///See [`Pallet::execute`]. + #[doc = "See [`Pallet::execute`]."] execute { proposal: ::std::boxed::Box, @@ -31027,7 +28649,7 @@ pub mod api { length_bound: ::core::primitive::u32, }, #[codec(index = 2)] - ///See [`Pallet::propose`]. + #[doc = "See [`Pallet::propose`]."] propose { #[codec(compact)] threshold: ::core::primitive::u32, @@ -31037,7 +28659,7 @@ pub mod api { length_bound: ::core::primitive::u32, }, #[codec(index = 3)] - ///See [`Pallet::vote`]. + #[doc = "See [`Pallet::vote`]."] vote { proposal: ::subxt::utils::H256, #[codec(compact)] @@ -31045,10 +28667,10 @@ pub mod api { approve: ::core::primitive::bool, }, #[codec(index = 5)] - ///See [`Pallet::disapprove_proposal`]. + #[doc = "See [`Pallet::disapprove_proposal`]."] disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 6)] - ///See [`Pallet::close`]. + #[doc = "See [`Pallet::close`]."] close { proposal_hash: ::subxt::utils::H256, #[codec(compact)] @@ -31059,72 +28681,66 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Account is not a member + #[doc = "Account is not a member"] NotMember, #[codec(index = 1)] - ///Duplicate proposals not allowed + #[doc = "Duplicate proposals not allowed"] DuplicateProposal, #[codec(index = 2)] - ///Proposal must exist + #[doc = "Proposal must exist"] ProposalMissing, #[codec(index = 3)] - ///Mismatched index + #[doc = "Mismatched index"] WrongIndex, #[codec(index = 4)] - ///Duplicate vote ignored + #[doc = "Duplicate vote ignored"] DuplicateVote, #[codec(index = 5)] - ///Members are already initialized! + #[doc = "Members are already initialized!"] AlreadyInitialized, #[codec(index = 6)] - ///The close call was made too early, before the end of the voting. + #[doc = "The close call was made too early, before the end of the voting."] TooEarly, #[codec(index = 7)] - ///There can only be a maximum of `MaxProposals` active proposals. + #[doc = "There can only be a maximum of `MaxProposals` active proposals."] TooManyProposals, #[codec(index = 8)] - ///The given weight bound for the proposal was too low. + #[doc = "The given weight bound for the proposal was too low."] WrongProposalWeight, #[codec(index = 9)] - ///The given length bound for the proposal was too low. + #[doc = "The given length bound for the proposal was too low."] WrongProposalLength, #[codec(index = 10)] - ///Prime account is not a member + #[doc = "Prime account is not a member"] PrimeAccountNotMember, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A motion (given hash) has been proposed (by given account) with a threshold - /// (given `MemberCount`). + #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] + #[doc = "`MemberCount`)."] Proposed { account: ::subxt::utils::AccountId32, proposal_index: ::core::primitive::u32, @@ -31132,8 +28748,8 @@ pub mod api { threshold: ::core::primitive::u32, }, #[codec(index = 1)] - ///A motion (given hash) has been voted on by given account, leaving - ///a tally (yes votes and no votes given respectively as `MemberCount`). + #[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::utils::AccountId32, proposal_hash: ::subxt::utils::H256, @@ -31142,29 +28758,27 @@ pub mod api { no: ::core::primitive::u32, }, #[codec(index = 2)] - ///A motion was approved by the required threshold. + #[doc = "A motion was approved by the required threshold."] Approved { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 3)] - ///A motion was not approved by the required threshold. + #[doc = "A motion was not approved by the required threshold."] Disapproved { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 4)] - ///A motion was executed; result will be `Ok` if it returned without error. + #[doc = "A motion was executed; result will be `Ok` if it returned without error."] Executed { proposal_hash: ::subxt::utils::H256, result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 5)] - ///A single member did some action; result will be `Ok` if it returned without - /// error. + #[doc = "A single member did some action; result will be `Ok` if it returned without error."] MemberExecuted { proposal_hash: ::subxt::utils::H256, result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 6)] - ///A proposal was closed because its threshold was reached or after its - /// duration was up. + #[doc = "A proposal was closed because its threshold was reached or after its duration was up."] Closed { proposal_hash: ::subxt::utils::H256, yes: ::core::primitive::u32, @@ -31173,16 +28787,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RawOrigin<_0> { @@ -31194,16 +28805,13 @@ pub mod api { _Phantom, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Votes<_0, _1> { @@ -31219,16 +28827,13 @@ pub mod api { pub mod conviction { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Conviction { @@ -31251,22 +28856,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::propose`]. + #[doc = "See [`Pallet::propose`]."] propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_testnet_runtime::RuntimeCall, @@ -31275,13 +28877,13 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 1)] - ///See [`Pallet::second`]. + #[doc = "See [`Pallet::second`]."] second { #[codec(compact)] proposal: ::core::primitive::u32, }, #[codec(index = 2)] - ///See [`Pallet::vote`]. + #[doc = "See [`Pallet::vote`]."] vote { #[codec(compact)] ref_index: ::core::primitive::u32, @@ -31290,47 +28892,47 @@ pub mod api { >, }, #[codec(index = 3)] - ///See [`Pallet::emergency_cancel`]. + #[doc = "See [`Pallet::emergency_cancel`]."] emergency_cancel { ref_index: ::core::primitive::u32 }, #[codec(index = 4)] - ///See [`Pallet::external_propose`]. + #[doc = "See [`Pallet::external_propose`]."] external_propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 5)] - ///See [`Pallet::external_propose_majority`]. + #[doc = "See [`Pallet::external_propose_majority`]."] external_propose_majority { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 6)] - ///See [`Pallet::external_propose_default`]. + #[doc = "See [`Pallet::external_propose_default`]."] external_propose_default { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::tangle_testnet_runtime::RuntimeCall, >, }, #[codec(index = 7)] - ///See [`Pallet::fast_track`]. + #[doc = "See [`Pallet::fast_track`]."] fast_track { proposal_hash: ::subxt::utils::H256, voting_period: ::core::primitive::u64, delay: ::core::primitive::u64, }, #[codec(index = 8)] - ///See [`Pallet::veto_external`]. + #[doc = "See [`Pallet::veto_external`]."] veto_external { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 9)] - ///See [`Pallet::cancel_referendum`]. + #[doc = "See [`Pallet::cancel_referendum`]."] cancel_referendum { #[codec(compact)] ref_index: ::core::primitive::u32, }, #[codec(index = 10)] - ///See [`Pallet::delegate`]. + #[doc = "See [`Pallet::delegate`]."] delegate { to: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -31340,13 +28942,13 @@ pub mod api { balance: ::core::primitive::u128, }, #[codec(index = 11)] - ///See [`Pallet::undelegate`]. + #[doc = "See [`Pallet::undelegate`]."] undelegate, #[codec(index = 12)] - ///See [`Pallet::clear_public_proposals`]. + #[doc = "See [`Pallet::clear_public_proposals`]."] clear_public_proposals, #[codec(index = 13)] - ///See [`Pallet::unlock`]. + #[doc = "See [`Pallet::unlock`]."] unlock { target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -31354,10 +28956,10 @@ pub mod api { >, }, #[codec(index = 14)] - ///See [`Pallet::remove_vote`]. + #[doc = "See [`Pallet::remove_vote`]."] remove_vote { index: ::core::primitive::u32 }, #[codec(index = 15)] - ///See [`Pallet::remove_other_vote`]. + #[doc = "See [`Pallet::remove_other_vote`]."] remove_other_vote { target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -31366,179 +28968,173 @@ pub mod api { index: ::core::primitive::u32, }, #[codec(index = 16)] - ///See [`Pallet::blacklist`]. + #[doc = "See [`Pallet::blacklist`]."] blacklist { proposal_hash: ::subxt::utils::H256, maybe_ref_index: ::core::option::Option<::core::primitive::u32>, }, #[codec(index = 17)] - ///See [`Pallet::cancel_proposal`]. + #[doc = "See [`Pallet::cancel_proposal`]."] cancel_proposal { #[codec(compact)] prop_index: ::core::primitive::u32, }, #[codec(index = 18)] - ///See [`Pallet::set_metadata`]. + #[doc = "See [`Pallet::set_metadata`]."] set_metadata { owner: runtime_types::pallet_democracy::types::MetadataOwner, maybe_hash: ::core::option::Option<::subxt::utils::H256>, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Value too low + #[doc = "Value too low"] ValueLow, #[codec(index = 1)] - ///Proposal does not exist + #[doc = "Proposal does not exist"] ProposalMissing, #[codec(index = 2)] - ///Cannot cancel the same proposal twice + #[doc = "Cannot cancel the same proposal twice"] AlreadyCanceled, #[codec(index = 3)] - ///Proposal already made + #[doc = "Proposal already made"] DuplicateProposal, #[codec(index = 4)] - ///Proposal still blacklisted + #[doc = "Proposal still blacklisted"] ProposalBlacklisted, #[codec(index = 5)] - ///Next external proposal not simple majority + #[doc = "Next external proposal not simple majority"] NotSimpleMajority, #[codec(index = 6)] - ///Invalid hash + #[doc = "Invalid hash"] InvalidHash, #[codec(index = 7)] - ///No external proposal + #[doc = "No external proposal"] NoProposal, #[codec(index = 8)] - ///Identity may not veto a proposal twice + #[doc = "Identity may not veto a proposal twice"] AlreadyVetoed, #[codec(index = 9)] - ///Vote given for invalid referendum + #[doc = "Vote given for invalid referendum"] ReferendumInvalid, #[codec(index = 10)] - ///No proposals waiting + #[doc = "No proposals waiting"] NoneWaiting, #[codec(index = 11)] - ///The given account did not vote on the referendum. + #[doc = "The given account did not vote on the referendum."] NotVoter, #[codec(index = 12)] - ///The actor has no permission to conduct the action. + #[doc = "The actor has no permission to conduct the action."] NoPermission, #[codec(index = 13)] - ///The account is already delegating. + #[doc = "The account is already delegating."] AlreadyDelegating, #[codec(index = 14)] - ///Too high a balance was provided that the account cannot afford. + #[doc = "Too high a balance was provided that the account cannot afford."] InsufficientFunds, #[codec(index = 15)] - ///The account is not currently delegating. + #[doc = "The account is not currently delegating."] NotDelegating, #[codec(index = 16)] - ///The account currently has votes attached to it and the operation cannot - /// succeed until these are removed, either through `unvote` or `reap_vote`. + #[doc = "The account currently has votes attached to it and the operation cannot succeed until"] + #[doc = "these are removed, either through `unvote` or `reap_vote`."] VotesExist, #[codec(index = 17)] - ///The instant referendum origin is currently disallowed. + #[doc = "The instant referendum origin is currently disallowed."] InstantNotAllowed, #[codec(index = 18)] - ///Delegation to oneself makes no sense. + #[doc = "Delegation to oneself makes no sense."] Nonsense, #[codec(index = 19)] - ///Invalid upper bound. + #[doc = "Invalid upper bound."] WrongUpperBound, #[codec(index = 20)] - ///Maximum number of votes reached. + #[doc = "Maximum number of votes reached."] MaxVotesReached, #[codec(index = 21)] - ///Maximum number of items reached. + #[doc = "Maximum number of items reached."] TooMany, #[codec(index = 22)] - ///Voting period too low + #[doc = "Voting period too low"] VotingPeriodLow, #[codec(index = 23)] - ///The preimage does not exist. + #[doc = "The preimage does not exist."] PreimageNotExist, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A motion has been proposed by a public account. + #[doc = "A motion has been proposed by a public account."] Proposed { proposal_index: ::core::primitive::u32, deposit: ::core::primitive::u128, }, #[codec(index = 1)] - ///A public proposal has been tabled for referendum vote. + #[doc = "A public proposal has been tabled for referendum vote."] Tabled { proposal_index: ::core::primitive::u32, deposit: ::core::primitive::u128, }, #[codec(index = 2)] - ///An external proposal has been tabled. + #[doc = "An external proposal has been tabled."] ExternalTabled, #[codec(index = 3)] - ///A referendum has begun. + #[doc = "A referendum has begun."] Started { ref_index: ::core::primitive::u32, threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, }, #[codec(index = 4)] - ///A proposal has been approved by referendum. + #[doc = "A proposal has been approved by referendum."] Passed { ref_index: ::core::primitive::u32 }, #[codec(index = 5)] - ///A proposal has been rejected by referendum. + #[doc = "A proposal has been rejected by referendum."] NotPassed { ref_index: ::core::primitive::u32 }, #[codec(index = 6)] - ///A referendum has been cancelled. + #[doc = "A referendum has been cancelled."] Cancelled { ref_index: ::core::primitive::u32 }, #[codec(index = 7)] - ///An account has delegated their vote to another account. + #[doc = "An account has delegated their vote to another account."] Delegated { who: ::subxt::utils::AccountId32, target: ::subxt::utils::AccountId32, }, #[codec(index = 8)] - ///An account has cancelled a previous delegation operation. + #[doc = "An account has cancelled a previous delegation operation."] Undelegated { account: ::subxt::utils::AccountId32 }, #[codec(index = 9)] - ///An external proposal has been vetoed. + #[doc = "An external proposal has been vetoed."] Vetoed { who: ::subxt::utils::AccountId32, proposal_hash: ::subxt::utils::H256, until: ::core::primitive::u64, }, #[codec(index = 10)] - ///A proposal_hash has been blacklisted permanently. + #[doc = "A proposal_hash has been blacklisted permanently."] Blacklisted { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 11)] - ///An account has voted in a referendum + #[doc = "An account has voted in a referendum"] Voted { voter: ::subxt::utils::AccountId32, ref_index: ::core::primitive::u32, @@ -31547,28 +29143,28 @@ pub mod api { >, }, #[codec(index = 12)] - ///An account has secconded a proposal + #[doc = "An account has secconded a proposal"] Seconded { seconder: ::subxt::utils::AccountId32, prop_index: ::core::primitive::u32, }, #[codec(index = 13)] - ///A proposal got canceled. + #[doc = "A proposal got canceled."] ProposalCanceled { prop_index: ::core::primitive::u32 }, #[codec(index = 14)] - ///Metadata for a proposal or a referendum has been set. + #[doc = "Metadata for a proposal or a referendum has been set."] MetadataSet { owner: runtime_types::pallet_democracy::types::MetadataOwner, hash: ::subxt::utils::H256, }, #[codec(index = 15)] - ///Metadata for a proposal or a referendum has been cleared. + #[doc = "Metadata for a proposal or a referendum has been cleared."] MetadataCleared { owner: runtime_types::pallet_democracy::types::MetadataOwner, hash: ::subxt::utils::H256, }, #[codec(index = 16)] - ///Metadata has been transferred to new owner. + #[doc = "Metadata has been transferred to new owner."] MetadataTransferred { prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, owner: runtime_types::pallet_democracy::types::MetadataOwner, @@ -31579,16 +29175,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Delegations<_0> { @@ -31596,16 +29189,13 @@ pub mod api { pub capital: _0, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MetadataOwner { @@ -31617,16 +29207,13 @@ pub mod api { Referendum(::core::primitive::u32), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ReferendumInfo<_0, _1, _2> { @@ -31636,16 +29223,13 @@ pub mod api { Finished { approved: ::core::primitive::bool, end: _0 }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReferendumStatus<_0, _1, _2> { @@ -31656,16 +29240,13 @@ pub mod api { pub tally: runtime_types::pallet_democracy::types::Tally<_2>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Tally<_0> { @@ -31677,16 +29258,13 @@ pub mod api { pub mod vote { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum AccountVote<_0> { @@ -31696,45 +29274,36 @@ pub mod api { Split { aye: _0, nay: _0 }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PriorLock<_0, _1>(pub _0, pub _1); #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Vote(pub ::core::primitive::u8); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Voting<_0, _1, _2> { @@ -31760,16 +29329,13 @@ pub mod api { pub mod vote_threshold { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum VoteThreshold { @@ -31787,217 +29353,208 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::set_fee`]. + #[doc = "See [`Pallet::set_fee`]."] set_fee { fee_info: runtime_types::pallet_dkg::types::FeeInfo<::core::primitive::u128>, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Cannot retreive signers from the signature + #[doc = "Cannot retreive signers from the signature"] CannotRetreiveSigner, #[codec(index = 1)] - ///Not enough signers for threshold + #[doc = "Not enough signers for threshold"] NotEnoughSigners, #[codec(index = 2)] - ///The signers have signed different data + #[doc = "The signers have signed different data"] InvalidSignatureData, #[codec(index = 3)] - ///No participants found + #[doc = "No participants found"] NoParticipantsFound, #[codec(index = 4)] - ///No signatures found + #[doc = "No signatures found"] NoSignaturesFound, #[codec(index = 5)] - ///Unexpected job type + #[doc = "Unexpected job type"] InvalidJobType, #[codec(index = 6)] - ///Duplicate signature found in submission + #[doc = "Duplicate signature found in submission"] DuplicateSignature, #[codec(index = 7)] - ///Invalid signature submitted + #[doc = "Invalid signature submitted"] InvalidSignature, #[codec(index = 8)] - ///Invalid signature scheme + #[doc = "Invalid signature scheme"] InvalidSignatureScheme, #[codec(index = 9)] - ///Invalid signature deserialization + #[doc = "Invalid signature deserialization"] InvalidSignatureDeserialization, #[codec(index = 10)] - ///Invalid verifying key submitted + #[doc = "Invalid verifying key submitted"] InvalidVerifyingKey, #[codec(index = 11)] - ///Invalid verifying key deserialization + #[doc = "Invalid verifying key deserialization"] InvalidVerifyingKeyDeserialization, #[codec(index = 12)] - ///Signed with a different key + #[doc = "Signed with a different key"] SigningKeyMismatch, #[codec(index = 13)] - ///Invalid participant public key + #[doc = "Invalid participant public key"] InvalidParticipantPublicKey, #[codec(index = 14)] - ///Invalid BLS public key + #[doc = "Invalid BLS public key"] InvalidBlsPublicKey, #[codec(index = 15)] - ///Invalid Misbehavior Role type. + #[doc = "Invalid Misbehavior Role type."] InvalidRoleType, #[codec(index = 16)] - ///Invalid Justification type. + #[doc = "Invalid Justification type."] InvalidJustification, #[codec(index = 17)] - ///Could not deserialize the round message. + #[doc = "Could not deserialize the round message."] MalformedRoundMessage, #[codec(index = 18)] - ///Signed Round Message not signed by the offender. + #[doc = "Signed Round Message not signed by the offender."] NotSignedByOffender, #[codec(index = 19)] - ///The submitted decommitment is valid. - /// - ///This error is returned when the decommitment is valid - ///but the caller claims it is invalid! + #[doc = "The submitted decommitment is valid."] + #[doc = ""] + #[doc = "This error is returned when the decommitment is valid"] + #[doc = "but the caller claims it is invalid!"] ValidDecommitment, #[codec(index = 20)] - ///The submitted decommitment data size is valid. - /// - ///This error is returned when the decommitment data size is valid - ///but the caller claims it is invalid! + #[doc = "The submitted decommitment data size is valid."] + #[doc = ""] + #[doc = "This error is returned when the decommitment data size is valid"] + #[doc = "but the caller claims it is invalid!"] ValidDataSize, #[codec(index = 21)] - ///The submitted messages passed Feldman verification. - /// - ///This error is returned when the messages passed Feldman verification - ///but the caller claims it is invalid! + #[doc = "The submitted messages passed Feldman verification."] + #[doc = ""] + #[doc = "This error is returned when the messages passed Feldman verification"] + #[doc = "but the caller claims it is invalid!"] ValidFeldmanVerification, #[codec(index = 22)] - ///The submitted Schnorr Proof is valid. - /// - ///This error is returned when the decommitment and its - ///Schnorr are valid. but the caller - ///claims it is invalid. + #[doc = "The submitted Schnorr Proof is valid."] + #[doc = ""] + #[doc = "This error is returned when the decommitment and its"] + #[doc = "Schnorr are valid. but the caller"] + #[doc = "claims it is invalid."] ValidSchnorrProof, #[codec(index = 23)] - ///The submitted ring pedersen parameters are valid. - /// - ///This error is returned when the ring pedersen parameters are valid - ///but the caller claims it is invalid. + #[doc = "The submitted ring pedersen parameters are valid."] + #[doc = ""] + #[doc = "This error is returned when the ring pedersen parameters are valid"] + #[doc = "but the caller claims it is invalid."] ValidRingPedersenParameters, #[codec(index = 24)] - ///The submitted Mod Proof is valid. - /// - ///This error is returned when the Mod Proof is valid - ///but the caller claims it is invalid. + #[doc = "The submitted Mod Proof is valid."] + #[doc = ""] + #[doc = "This error is returned when the Mod Proof is valid"] + #[doc = "but the caller claims it is invalid."] ValidModProof, #[codec(index = 25)] - ///------------------------------------------------------------ /// - /// FROST ERRORS /// - ///------------------------------------------------------------ /// - ///Valid FROST signature share + #[doc = "------------------------------------------------------------ ///"] + #[doc = " FROST ERRORS ///"] + #[doc = "------------------------------------------------------------ ///"] + #[doc = "Valid FROST signature share"] ValidFrostSignatureShare, #[codec(index = 26)] - ///Invalid FROST message serialization + #[doc = "Invalid FROST message serialization"] InvalidFrostMessageSerialization, #[codec(index = 27)] - ///Invalid FROST message deserialization + #[doc = "Invalid FROST message deserialization"] InvalidFrostMessageDeserialization, #[codec(index = 28)] - ///Invalid identifier deserialization + #[doc = "Invalid identifier deserialization"] InvalidIdentifierDeserialization, #[codec(index = 29)] - ///Valid FROST signature error for a misbehavior report + #[doc = "Valid FROST signature error for a misbehavior report"] ValidFrostSignature, #[codec(index = 30)] - ///Unknown identifier + #[doc = "Unknown identifier"] UnknownIdentifier, #[codec(index = 31)] - ///Duplicate identifier + #[doc = "Duplicate identifier"] DuplicateIdentifier, #[codec(index = 32)] - ///Incorrect number of identifiers + #[doc = "Incorrect number of identifiers"] IncorrectNumberOfIdentifiers, #[codec(index = 33)] - ///Identifier derivation not supported + #[doc = "Identifier derivation not supported"] IdentifierDerivationNotSupported, #[codec(index = 34)] - ///Malformed signature + #[doc = "Malformed signature"] MalformedFrostSignature, #[codec(index = 35)] - ///Invalid FROST signature + #[doc = "Invalid FROST signature"] InvalidFrostSignature, #[codec(index = 36)] - ///Invalid FROST signature share + #[doc = "Invalid FROST signature share"] InvalidFrostSignatureShare, #[codec(index = 37)] - ///Invalid FROST signature scheme + #[doc = "Invalid FROST signature scheme"] InvalidFrostSignatureScheme, #[codec(index = 38)] - ///Malformed FROST verifying key + #[doc = "Malformed FROST verifying key"] MalformedFrostVerifyingKey, #[codec(index = 39)] - ///Malformed FROST signing key + #[doc = "Malformed FROST signing key"] MalformedFrostSigningKey, #[codec(index = 40)] - ///Missing FROST commitment + #[doc = "Missing FROST commitment"] MissingFrostCommitment, #[codec(index = 41)] - ///Invalid FROST commitment + #[doc = "Invalid FROST commitment"] IdentityCommitment, #[codec(index = 42)] - ///FROST Field scalar error + #[doc = "FROST Field scalar error"] FrostFieldError, #[codec(index = 43)] - ///FROST Group element error + #[doc = "FROST Group element error"] FrostGroupError, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///Fee has been updated to the new value + #[doc = "Fee has been updated to the new value"] FeeUpdated(runtime_types::pallet_dkg::types::FeeInfo<::core::primitive::u128>), #[codec(index = 1)] - ///A DKG has been rotated. + #[doc = "A DKG has been rotated."] KeyRotated { from_job_id: ::core::primitive::u64, to_job_id: ::core::primitive::u64, @@ -32008,16 +29565,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FeeInfo<_0> { @@ -32034,22 +29588,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::note_min_gas_price_target`]. + #[doc = "See [`Pallet::note_min_gas_price_target`]."] note_min_gas_price_target { target: runtime_types::primitive_types::U256 }, } } @@ -32059,147 +29610,93 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - #[codec(index = 0)] - ///See [`Pallet::submit_unsigned`]. - submit_unsigned { - raw_solution: ::std::boxed::Box< - runtime_types::pallet_election_provider_multi_phase::RawSolution< - runtime_types::tangle_testnet_runtime::NposSolution16, - >, - >, - witness: runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, - }, - #[codec(index = 1)] - ///See [`Pallet::set_minimum_untrusted_score`]. - set_minimum_untrusted_score { - maybe_next_score: ::core::option::Option< - runtime_types::sp_npos_elections::ElectionScore, - >, - }, - #[codec(index = 2)] - ///See [`Pallet::set_emergency_election_result`]. - set_emergency_election_result { - supports: ::std::vec::Vec< - ( - ::subxt::utils::AccountId32, - runtime_types::sp_npos_elections::Support< - ::subxt::utils::AccountId32, - >, - ), - >, - }, - #[codec(index = 3)] - ///See [`Pallet::submit`]. - submit { - raw_solution: ::std::boxed::Box< - runtime_types::pallet_election_provider_multi_phase::RawSolution< - runtime_types::tangle_testnet_runtime::NposSolution16, - >, - >, - }, - #[codec(index = 4)] - ///See [`Pallet::governance_fallback`]. - 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, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Error of the pallet that can be returned in response to dispatches. + # [codec (index = 0)] # [doc = "See [`Pallet::submit_unsigned`]."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_testnet_runtime :: NposSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_minimum_untrusted_score`]."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_emergency_election_result`]."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "See [`Pallet::submit`]."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: tangle_testnet_runtime :: NposSolution16 > > , } , # [codec (index = 4)] # [doc = "See [`Pallet::governance_fallback`]."] 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, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Error of the pallet that can be returned in response to dispatches."] pub enum Error { #[codec(index = 0)] - ///Submission was too early. + #[doc = "Submission was too early."] PreDispatchEarlySubmission, #[codec(index = 1)] - ///Wrong number of winners presented. + #[doc = "Wrong number of winners presented."] PreDispatchWrongWinnerCount, #[codec(index = 2)] - ///Submission was too weak, score-wise. + #[doc = "Submission was too weak, score-wise."] PreDispatchWeakSubmission, #[codec(index = 3)] - ///The queue was full, and the solution was not better than any of the - /// existing ones. + #[doc = "The queue was full, and the solution was not better than any of the existing ones."] SignedQueueFull, #[codec(index = 4)] - ///The origin failed to pay the deposit. + #[doc = "The origin failed to pay the deposit."] SignedCannotPayDeposit, #[codec(index = 5)] - ///Witness data to dispatchable is invalid. + #[doc = "Witness data to dispatchable is invalid."] SignedInvalidWitness, #[codec(index = 6)] - ///The signed submission consumes too much weight + #[doc = "The signed submission consumes too much weight"] SignedTooMuchWeight, #[codec(index = 7)] - ///OCW submitted solution for wrong round + #[doc = "OCW submitted solution for wrong round"] OcwCallWrongEra, #[codec(index = 8)] - ///Snapshot metadata should exist but didn't. + #[doc = "Snapshot metadata should exist but didn't."] MissingSnapshotMetadata, #[codec(index = 9)] - ///`Self::insert_submission` returned an invalid index. + #[doc = "`Self::insert_submission` returned an invalid index."] InvalidSubmissionIndex, #[codec(index = 10)] - ///The call is not allowed at this point. + #[doc = "The call is not allowed at this point."] CallNotAllowed, #[codec(index = 11)] - ///The fallback failed + #[doc = "The fallback failed"] FallbackFailed, #[codec(index = 12)] - ///Some bound not met + #[doc = "Some bound not met"] BoundNotMet, #[codec(index = 13)] - ///Submitted solution has too many winners + #[doc = "Submitted solution has too many winners"] TooManyWinners, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A solution was stored with the given compute. - /// - ///The `origin` indicates the origin of the solution. If `origin` is - /// `Some(AccountId)`, the stored solution was submited in the signed phase by - /// a miner with the `AccountId`. Otherwise, the solution was stored either - /// during the unsigned phase or by `T::ForceOrigin`. The `bool` is `true` when - /// a previous solution was ejected to make room for this one. + #[doc = "A solution was stored with the given compute."] + #[doc = ""] + #[doc = "The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,"] + #[doc = "the stored solution was submited in the signed phase by a miner with the `AccountId`."] + #[doc = "Otherwise, the solution was stored either during the unsigned phase or by"] + #[doc = "`T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make"] + #[doc = "room for this one."] SolutionStored { compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, @@ -32207,28 +29704,28 @@ pub mod api { prev_ejected: ::core::primitive::bool, }, #[codec(index = 1)] - ///The election has been finalized, with the given computation and score. + #[doc = "The election has been finalized, with the given computation and score."] ElectionFinalized { compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, score: runtime_types::sp_npos_elections::ElectionScore, }, #[codec(index = 2)] - ///An election failed. - /// - ///Not much can be said about which computes failed in the process. + #[doc = "An election failed."] + #[doc = ""] + #[doc = "Not much can be said about which computes failed in the process."] ElectionFailed, #[codec(index = 3)] - ///An account has been rewarded for their signed submission being finalized. + #[doc = "An account has been rewarded for their signed submission being finalized."] Rewarded { account: ::subxt::utils::AccountId32, value: ::core::primitive::u128, }, #[codec(index = 4)] - ///An account has been slashed for submitting an invalid signed submission. + #[doc = "An account has been slashed for submitting an invalid signed submission."] Slashed { account: ::subxt::utils::AccountId32, value: ::core::primitive::u128 }, #[codec(index = 5)] - ///There was a phase transition in a given round. + #[doc = "There was a phase transition in a given round."] PhaseTransitioned { from: runtime_types::pallet_election_provider_multi_phase::Phase< ::core::primitive::u64, @@ -32243,16 +29740,13 @@ pub mod api { pub mod signed { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SignedSubmission<_0, _1, _2> { @@ -32264,16 +29758,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ElectionCompute { @@ -32289,16 +29780,13 @@ pub mod api { Emergency, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Phase<_0> { @@ -32312,16 +29800,13 @@ pub mod api { Emergency, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RawSolution<_0> { @@ -32330,16 +29815,13 @@ pub mod api { pub round: ::core::primitive::u32, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReadySolution { @@ -32351,16 +29833,13 @@ pub mod api { pub compute: runtime_types::pallet_election_provider_multi_phase::ElectionCompute, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RoundSnapshot<_0, _1> { @@ -32368,16 +29847,13 @@ pub mod api { pub targets: ::std::vec::Vec<_0>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SolutionOrSnapshotSize { @@ -32392,43 +29868,40 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::vote`]. + #[doc = "See [`Pallet::vote`]."] vote { votes: ::std::vec::Vec<::subxt::utils::AccountId32>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 1)] - ///See [`Pallet::remove_voter`]. + #[doc = "See [`Pallet::remove_voter`]."] remove_voter, #[codec(index = 2)] - ///See [`Pallet::submit_candidacy`]. + #[doc = "See [`Pallet::submit_candidacy`]."] submit_candidacy { #[codec(compact)] candidate_count: ::core::primitive::u32, }, #[codec(index = 3)] - ///See [`Pallet::renounce_candidacy`]. + #[doc = "See [`Pallet::renounce_candidacy`]."] renounce_candidacy { renouncing: runtime_types::pallet_elections_phragmen::Renouncing, }, #[codec(index = 4)] - ///See [`Pallet::remove_member`]. + #[doc = "See [`Pallet::remove_member`]."] remove_member { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -32438,130 +29911,123 @@ pub mod api { rerun_election: ::core::primitive::bool, }, #[codec(index = 5)] - ///See [`Pallet::clean_defunct_voters`]. + #[doc = "See [`Pallet::clean_defunct_voters`]."] clean_defunct_voters { num_voters: ::core::primitive::u32, num_defunct: ::core::primitive::u32, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Cannot vote when no candidates or members exist. + #[doc = "Cannot vote when no candidates or members exist."] UnableToVote, #[codec(index = 1)] - ///Must vote for at least one candidate. + #[doc = "Must vote for at least one candidate."] NoVotes, #[codec(index = 2)] - ///Cannot vote more than candidates. + #[doc = "Cannot vote more than candidates."] TooManyVotes, #[codec(index = 3)] - ///Cannot vote more than maximum allowed. + #[doc = "Cannot vote more than maximum allowed."] MaximumVotesExceeded, #[codec(index = 4)] - ///Cannot vote with stake less than minimum balance. + #[doc = "Cannot vote with stake less than minimum balance."] LowBalance, #[codec(index = 5)] - ///Voter can not pay voting bond. + #[doc = "Voter can not pay voting bond."] UnableToPayBond, #[codec(index = 6)] - ///Must be a voter. + #[doc = "Must be a voter."] MustBeVoter, #[codec(index = 7)] - ///Duplicated candidate submission. + #[doc = "Duplicated candidate submission."] DuplicatedCandidate, #[codec(index = 8)] - ///Too many candidates have been created. + #[doc = "Too many candidates have been created."] TooManyCandidates, #[codec(index = 9)] - ///Member cannot re-submit candidacy. + #[doc = "Member cannot re-submit candidacy."] MemberSubmit, #[codec(index = 10)] - ///Runner cannot re-submit candidacy. + #[doc = "Runner cannot re-submit candidacy."] RunnerUpSubmit, #[codec(index = 11)] - ///Candidate does not have enough funds. + #[doc = "Candidate does not have enough funds."] InsufficientCandidateFunds, #[codec(index = 12)] - ///Not a member. + #[doc = "Not a member."] NotMember, #[codec(index = 13)] - ///The provided count of number of candidates is incorrect. + #[doc = "The provided count of number of candidates is incorrect."] InvalidWitnessData, #[codec(index = 14)] - ///The provided count of number of votes is incorrect. + #[doc = "The provided count of number of votes is incorrect."] InvalidVoteCount, #[codec(index = 15)] - ///The renouncing origin presented a wrong `Renouncing` parameter. + #[doc = "The renouncing origin presented a wrong `Renouncing` parameter."] InvalidRenouncing, #[codec(index = 16)] - ///Prediction regarding replacement after member removal is wrong. + #[doc = "Prediction regarding replacement after member removal is wrong."] InvalidReplacement, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A new term with new_members. This indicates that enough candidates existed - /// to run the election, not that enough have has been elected. The inner value - /// must be examined for this purpose. A `NewTerm(\[\])` indicates that some - /// candidates got their bond slashed and none were elected, whilst `EmptyTerm` - /// means that no candidates existed to begin with. + #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] + #[doc = "the election, not that enough have has been elected. The inner value must be examined"] + #[doc = "for this purpose. A `NewTerm(\\[\\])` indicates that some candidates got their bond"] + #[doc = "slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to"] + #[doc = "begin with."] NewTerm { new_members: ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, }, #[codec(index = 1)] - ///No (or not enough) candidates existed for this round. This is different - /// from `NewTerm(\[\])`. See the description of `NewTerm`. + #[doc = "No (or not enough) candidates existed for this round. This is different from"] + #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] EmptyTerm, #[codec(index = 2)] - ///Internal error happened while trying to perform election. + #[doc = "Internal error happened while trying to perform election."] ElectionError, #[codec(index = 3)] - ///A member has been removed. This should always be followed by either - /// `NewTerm` or `EmptyTerm`. + #[doc = "A member has been removed. This should always be followed by either `NewTerm` or"] + #[doc = "`EmptyTerm`."] MemberKicked { member: ::subxt::utils::AccountId32 }, #[codec(index = 4)] - ///Someone has renounced their candidacy. + #[doc = "Someone has renounced their candidacy."] Renounced { candidate: ::subxt::utils::AccountId32 }, #[codec(index = 5)] - ///A candidate was slashed by amount due to failing to obtain a seat as member - /// or runner-up. - /// - ///Note that old members and runners-up are also candidates. + #[doc = "A candidate was slashed by amount due to failing to obtain a seat as member or"] + #[doc = "runner-up."] + #[doc = ""] + #[doc = "Note that old members and runners-up are also candidates."] CandidateSlashed { candidate: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 6)] - ///A seat holder was slashed by amount by being forcefully removed from the - /// set. + #[doc = "A seat holder was slashed by amount by being forcefully removed from the set."] SeatHolderSlashed { seat_holder: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, @@ -32569,16 +30035,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Renouncing { @@ -32590,16 +30053,13 @@ pub mod api { Candidate(#[codec(compact)] ::core::primitive::u32), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SeatHolder<_0, _1> { @@ -32608,16 +30068,13 @@ pub mod api { pub deposit: _1, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Voter<_0, _1> { @@ -32631,22 +30088,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::init`]. + #[doc = "See [`Pallet::init`]."] init { typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, args: ::std::boxed::Box< @@ -32656,57 +30110,54 @@ pub mod api { >, }, #[codec(index = 2)] - ///See [`Pallet::submit_beacon_chain_light_client_update`]. + #[doc = "See [`Pallet::submit_beacon_chain_light_client_update`]."] submit_beacon_chain_light_client_update { typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, light_client_update: runtime_types::eth_types::eth2::LightClientUpdate, }, #[codec(index = 4)] - ///See [`Pallet::submit_execution_header`]. + #[doc = "See [`Pallet::submit_execution_header`]."] submit_execution_header { typed_chain_id: runtime_types::webb_proposals::header::TypedChainId, block_header: runtime_types::eth_types::BlockHeader, }, #[codec(index = 5)] - ///See [`Pallet::update_trusted_signer`]. + #[doc = "See [`Pallet::update_trusted_signer`]."] update_trusted_signer { trusted_signer: ::subxt::utils::AccountId32 }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///The light client is already initialized for the typed chain ID + #[doc = "The light client is already initialized for the typed chain ID"] AlreadyInitialized, #[codec(index = 1)] - ///For attempting to update the light client + #[doc = "For attempting to update the light client"] LightClientUpdateNotAllowed, #[codec(index = 2)] - ///Block already submitted + #[doc = "Block already submitted"] BlockAlreadySubmitted, #[codec(index = 3)] - ///Unknown parent block header hash + #[doc = "Unknown parent block header hash"] UnknownParentHeader, #[codec(index = 4)] - ///Self-explanatory + #[doc = "Self-explanatory"] NotTrustedSigner, #[codec(index = 5)] - ///The updates validation can't be disabled for mainnet + #[doc = "The updates validation can't be disabled for mainnet"] ValidateUpdatesParameterError, #[codec(index = 6)] - ///The client can't be executed in the trustless mode without BLS sigs - /// verification on Mainnet + #[doc = "The client can't be executed in the trustless mode without BLS sigs verification on"] + #[doc = "Mainnet"] TrustlessModeError, #[codec(index = 7)] InvalidSyncCommitteeBitsSum, @@ -32715,28 +30166,27 @@ pub mod api { #[codec(index = 9)] InvalidNetworkConfig, #[codec(index = 10)] - ///Failed to verify the bls signature + #[doc = "Failed to verify the bls signature"] InvalidBlsSignature, #[codec(index = 11)] InvalidExecutionBlock, #[codec(index = 12)] - ///The active header slot number should be higher than the finalized slot + #[doc = "The active header slot number should be higher than the finalized slot"] ActiveHeaderSlotLessThanFinalizedSlot, #[codec(index = 13)] - ///The attested header slot should be equal to or higher than the finalized - /// header slot + #[doc = "The attested header slot should be equal to or higher than the finalized header slot"] UpdateHeaderSlotLessThanFinalizedHeaderSlot, #[codec(index = 14)] - ///The signature slot should be higher than the attested header slot + #[doc = "The signature slot should be higher than the attested header slot"] UpdateSignatureSlotLessThanAttestedHeaderSlot, #[codec(index = 15)] - ///The acceptable update periods are not met. + #[doc = "The acceptable update periods are not met."] InvalidUpdatePeriod, #[codec(index = 16)] - ///Invalid finality proof + #[doc = "Invalid finality proof"] InvalidFinalityProof, #[codec(index = 17)] - ///Invalid execution block hash proof + #[doc = "Invalid execution block hash proof"] InvalidExecutionBlockHashProof, #[codec(index = 18)] NextSyncCommitteeNotPresent, @@ -32753,7 +30203,7 @@ pub mod api { #[codec(index = 24)] HeaderHashDoesNotExist, #[codec(index = 25)] - ///The block hash does not match the expected block hash + #[doc = "The block hash does not match the expected block hash"] BlockHashesDoNotMatch, #[codec(index = 26)] InvalidSignaturePeriod, @@ -32762,29 +30212,26 @@ pub mod api { #[codec(index = 28)] NextSyncCommitteeNotSet, #[codec(index = 29)] - ///The current client mode is invalid for the action. + #[doc = "The current client mode is invalid for the action."] InvalidClientMode, #[codec(index = 30)] - ///"The `hashes_gc_threshold` is not enough to be able to apply gc correctly" + #[doc = "\"The `hashes_gc_threshold` is not enough to be able to apply gc correctly\""] HashesGcThresholdInsufficient, #[codec(index = 31)] - ///The chain cannot be closed + #[doc = "The chain cannot be closed"] ChainCannotBeClosed, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] Init { @@ -32814,63 +30261,54 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::transact`]. + #[doc = "See [`Pallet::transact`]."] transact { transaction: runtime_types::ethereum::transaction::TransactionV2 }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Signature is invalid. + #[doc = "Signature is invalid."] InvalidSignature, #[codec(index = 1)] - ///Pre-log is present, therefore transact is not allowed. + #[doc = "Pre-log is present, therefore transact is not allowed."] PreLogExists, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///An ethereum transaction was successfully executed. + #[doc = "An ethereum transaction was successfully executed."] Executed { from: ::subxt::utils::H160, to: ::subxt::utils::H160, @@ -32881,16 +30319,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RawOrigin { @@ -32903,25 +30338,22 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::withdraw`]. + #[doc = "See [`Pallet::withdraw`]."] withdraw { address: ::subxt::utils::H160, value: ::core::primitive::u128 }, #[codec(index = 1)] - ///See [`Pallet::call`]. + #[doc = "See [`Pallet::call`]."] call { source: ::subxt::utils::H160, target: ::subxt::utils::H160, @@ -32938,7 +30370,7 @@ pub mod api { )>, }, #[codec(index = 2)] - ///See [`Pallet::create`]. + #[doc = "See [`Pallet::create`]."] create { source: ::subxt::utils::H160, init: ::std::vec::Vec<::core::primitive::u8>, @@ -32954,7 +30386,7 @@ pub mod api { )>, }, #[codec(index = 3)] - ///See [`Pallet::create2`]. + #[doc = "See [`Pallet::create2`]."] create2 { source: ::subxt::utils::H160, init: ::std::vec::Vec<::core::primitive::u8>, @@ -32972,98 +30404,88 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Not enough balance to perform action + #[doc = "Not enough balance to perform action"] BalanceLow, #[codec(index = 1)] - ///Calculating total fee overflowed + #[doc = "Calculating total fee overflowed"] FeeOverflow, #[codec(index = 2)] - ///Calculating total payment overflowed + #[doc = "Calculating total payment overflowed"] PaymentOverflow, #[codec(index = 3)] - ///Withdraw fee failed + #[doc = "Withdraw fee failed"] WithdrawFailed, #[codec(index = 4)] - ///Gas price is too low. + #[doc = "Gas price is too low."] GasPriceTooLow, #[codec(index = 5)] - ///Nonce is invalid + #[doc = "Nonce is invalid"] InvalidNonce, #[codec(index = 6)] - ///Gas limit is too low. + #[doc = "Gas limit is too low."] GasLimitTooLow, #[codec(index = 7)] - ///Gas limit is too high. + #[doc = "Gas limit is too high."] GasLimitTooHigh, #[codec(index = 8)] - ///Undefined error. + #[doc = "Undefined error."] Undefined, #[codec(index = 9)] - ///EVM reentrancy + #[doc = "EVM reentrancy"] Reentrancy, #[codec(index = 10)] - ///EIP-3607, + #[doc = "EIP-3607,"] TransactionMustComeFromEOA, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///Ethereum events from contracts. + #[doc = "Ethereum events from contracts."] Log { log: runtime_types::ethereum::log::Log }, #[codec(index = 1)] - ///A contract has been created at given address. + #[doc = "A contract has been created at given address."] Created { address: ::subxt::utils::H160 }, #[codec(index = 2)] - ///A contract was attempted to be created, but the execution failed. + #[doc = "A contract was attempted to be created, but the execution failed."] CreatedFailed { address: ::subxt::utils::H160 }, #[codec(index = 3)] - ///A contract has been executed successfully with states applied. + #[doc = "A contract has been executed successfully with states applied."] Executed { address: ::subxt::utils::H160 }, #[codec(index = 4)] - ///A contract has been executed with errors. States are reverted with only gas - /// fees applied. + #[doc = "A contract has been executed with errors. States are reverted with only gas fees applied."] ExecutedFailed { address: ::subxt::utils::H160 }, } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CodeMetadata { @@ -33076,22 +30498,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::report_equivocation`]. + #[doc = "See [`Pallet::report_equivocation`]."] report_equivocation { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -33102,7 +30521,7 @@ pub mod api { key_owner_proof: runtime_types::sp_core::Void, }, #[codec(index = 1)] - ///See [`Pallet::report_equivocation_unsigned`]. + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_grandpa::EquivocationProof< @@ -33113,70 +30532,62 @@ pub mod api { key_owner_proof: runtime_types::sp_core::Void, }, #[codec(index = 2)] - ///See [`Pallet::note_stalled`]. + #[doc = "See [`Pallet::note_stalled`]."] note_stalled { delay: ::core::primitive::u64, best_finalized_block_number: ::core::primitive::u64, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Attempt to signal GRANDPA pause when the authority set isn't live - ///(either paused or already pending pause). + #[doc = "Attempt to signal GRANDPA pause when the authority set isn't live"] + #[doc = "(either paused or already pending pause)."] PauseFailed, #[codec(index = 1)] - ///Attempt to signal GRANDPA resume when the authority set isn't paused - ///(either live or already pending resume). + #[doc = "Attempt to signal GRANDPA resume when the authority set isn't paused"] + #[doc = "(either live or already pending resume)."] ResumeFailed, #[codec(index = 2)] - ///Attempt to signal GRANDPA change with one already pending. + #[doc = "Attempt to signal GRANDPA change with one already pending."] ChangePending, #[codec(index = 3)] - ///Cannot signal forced change so soon after last. + #[doc = "Cannot signal forced change so soon after last."] TooSoon, #[codec(index = 4)] - ///A key ownership proof provided as part of an equivocation report is - /// invalid. + #[doc = "A key ownership proof provided as part of an equivocation report is invalid."] InvalidKeyOwnershipProof, #[codec(index = 5)] - ///An equivocation proof provided as part of an equivocation report is - /// invalid. + #[doc = "An equivocation proof provided as part of an equivocation report is invalid."] InvalidEquivocationProof, #[codec(index = 6)] - ///A given equivocation report is valid but already previously reported. + #[doc = "A given equivocation report is valid but already previously reported."] DuplicateOffenceReport, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///New authority set has been applied. + #[doc = "New authority set has been applied."] NewAuthorities { authority_set: ::std::vec::Vec<( runtime_types::sp_consensus_grandpa::app::Public, @@ -33184,24 +30595,21 @@ pub mod api { )>, }, #[codec(index = 1)] - ///Current authority set has been paused. + #[doc = "Current authority set has been paused."] Paused, #[codec(index = 2)] - ///Current authority set has been resumed. + #[doc = "Current authority set has been resumed."] Resumed, } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct StoredPendingChange<_0> { @@ -33215,16 +30623,13 @@ pub mod api { pub forced: ::core::option::Option<_0>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum StoredState<_0> { @@ -33243,43 +30648,37 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::hotfix_inc_account_sufficients`]. + #[doc = "See [`Pallet::hotfix_inc_account_sufficients`]."] hotfix_inc_account_sufficients { addresses: ::std::vec::Vec<::subxt::utils::H160>, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Maximum address count exceeded + #[doc = "Maximum address count exceeded"] MaxAddressCountExceeded, } } @@ -33289,22 +30688,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Identity pallet declaration. + #[doc = "Identity pallet declaration."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::add_registrar`]. + #[doc = "See [`Pallet::add_registrar`]."] add_registrar { account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -33312,13 +30708,13 @@ pub mod api { >, }, #[codec(index = 1)] - ///See [`Pallet::set_identity`]. + #[doc = "See [`Pallet::set_identity`]."] set_identity { info: ::std::boxed::Box, }, #[codec(index = 2)] - ///See [`Pallet::set_subs`]. + #[doc = "See [`Pallet::set_subs`]."] set_subs { subs: ::std::vec::Vec<( ::subxt::utils::AccountId32, @@ -33326,10 +30722,10 @@ pub mod api { )>, }, #[codec(index = 3)] - ///See [`Pallet::clear_identity`]. + #[doc = "See [`Pallet::clear_identity`]."] clear_identity, #[codec(index = 4)] - ///See [`Pallet::request_judgement`]. + #[doc = "See [`Pallet::request_judgement`]."] request_judgement { #[codec(compact)] reg_index: ::core::primitive::u32, @@ -33337,10 +30733,10 @@ pub mod api { max_fee: ::core::primitive::u128, }, #[codec(index = 5)] - ///See [`Pallet::cancel_request`]. + #[doc = "See [`Pallet::cancel_request`]."] cancel_request { reg_index: ::core::primitive::u32 }, #[codec(index = 6)] - ///See [`Pallet::set_fee`]. + #[doc = "See [`Pallet::set_fee`]."] set_fee { #[codec(compact)] index: ::core::primitive::u32, @@ -33348,7 +30744,7 @@ pub mod api { fee: ::core::primitive::u128, }, #[codec(index = 7)] - ///See [`Pallet::set_account_id`]. + #[doc = "See [`Pallet::set_account_id`]."] set_account_id { #[codec(compact)] index: ::core::primitive::u32, @@ -33358,7 +30754,7 @@ pub mod api { >, }, #[codec(index = 8)] - ///See [`Pallet::set_fields`]. + #[doc = "See [`Pallet::set_fields`]."] set_fields { #[codec(compact)] index: ::core::primitive::u32, @@ -33367,7 +30763,7 @@ pub mod api { >, }, #[codec(index = 9)] - ///See [`Pallet::provide_judgement`]. + #[doc = "See [`Pallet::provide_judgement`]."] provide_judgement { #[codec(compact)] reg_index: ::core::primitive::u32, @@ -33381,7 +30777,7 @@ pub mod api { identity: ::subxt::utils::H256, }, #[codec(index = 10)] - ///See [`Pallet::kill_identity`]. + #[doc = "See [`Pallet::kill_identity`]."] kill_identity { target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -33389,7 +30785,7 @@ pub mod api { >, }, #[codec(index = 11)] - ///See [`Pallet::add_sub`]. + #[doc = "See [`Pallet::add_sub`]."] add_sub { sub: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -33398,7 +30794,7 @@ pub mod api { data: runtime_types::pallet_identity::types::Data, }, #[codec(index = 12)] - ///See [`Pallet::rename_sub`]. + #[doc = "See [`Pallet::rename_sub`]."] rename_sub { sub: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -33407,7 +30803,7 @@ pub mod api { data: runtime_types::pallet_identity::types::Data, }, #[codec(index = 13)] - ///See [`Pallet::remove_sub`]. + #[doc = "See [`Pallet::remove_sub`]."] remove_sub { sub: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -33415,147 +30811,141 @@ pub mod api { >, }, #[codec(index = 14)] - ///See [`Pallet::quit_sub`]. + #[doc = "See [`Pallet::quit_sub`]."] quit_sub, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Too many subs-accounts. + #[doc = "Too many subs-accounts."] TooManySubAccounts, #[codec(index = 1)] - ///Account isn't found. + #[doc = "Account isn't found."] NotFound, #[codec(index = 2)] - ///Account isn't named. + #[doc = "Account isn't named."] NotNamed, #[codec(index = 3)] - ///Empty index. + #[doc = "Empty index."] EmptyIndex, #[codec(index = 4)] - ///Fee is changed. + #[doc = "Fee is changed."] FeeChanged, #[codec(index = 5)] - ///No identity found. + #[doc = "No identity found."] NoIdentity, #[codec(index = 6)] - ///Sticky judgement. + #[doc = "Sticky judgement."] StickyJudgement, #[codec(index = 7)] - ///Judgement given. + #[doc = "Judgement given."] JudgementGiven, #[codec(index = 8)] - ///Invalid judgement. + #[doc = "Invalid judgement."] InvalidJudgement, #[codec(index = 9)] - ///The index is invalid. + #[doc = "The index is invalid."] InvalidIndex, #[codec(index = 10)] - ///The target is invalid. + #[doc = "The target is invalid."] InvalidTarget, #[codec(index = 11)] - ///Too many additional fields. + #[doc = "Too many additional fields."] TooManyFields, #[codec(index = 12)] - ///Maximum amount of registrars reached. Cannot add any more. + #[doc = "Maximum amount of registrars reached. Cannot add any more."] TooManyRegistrars, #[codec(index = 13)] - ///Account ID is already named. + #[doc = "Account ID is already named."] AlreadyClaimed, #[codec(index = 14)] - ///Sender is not a sub-account. + #[doc = "Sender is not a sub-account."] NotSub, #[codec(index = 15)] - ///Sub-account isn't owned by sender. + #[doc = "Sub-account isn't owned by sender."] NotOwned, #[codec(index = 16)] - ///The provided judgement was for a different identity. + #[doc = "The provided judgement was for a different identity."] JudgementForDifferentIdentity, #[codec(index = 17)] - ///Error that occurs when there is an issue paying for judgement. + #[doc = "Error that occurs when there is an issue paying for judgement."] JudgementPaymentFailed, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A name was set or reset (which will remove all judgements). + #[doc = "A name was set or reset (which will remove all judgements)."] IdentitySet { who: ::subxt::utils::AccountId32 }, #[codec(index = 1)] - ///A name was cleared, and the given balance returned. + #[doc = "A name was cleared, and the given balance returned."] IdentityCleared { who: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, }, #[codec(index = 2)] - ///A name was removed and the given balance slashed. + #[doc = "A name was removed and the given balance slashed."] IdentityKilled { who: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, }, #[codec(index = 3)] - ///A judgement was asked from a registrar. + #[doc = "A judgement was asked from a registrar."] JudgementRequested { who: ::subxt::utils::AccountId32, registrar_index: ::core::primitive::u32, }, #[codec(index = 4)] - ///A judgement request was retracted. + #[doc = "A judgement request was retracted."] JudgementUnrequested { who: ::subxt::utils::AccountId32, registrar_index: ::core::primitive::u32, }, #[codec(index = 5)] - ///A judgement was given by a registrar. + #[doc = "A judgement was given by a registrar."] JudgementGiven { target: ::subxt::utils::AccountId32, registrar_index: ::core::primitive::u32, }, #[codec(index = 6)] - ///A registrar was added. + #[doc = "A registrar was added."] RegistrarAdded { registrar_index: ::core::primitive::u32 }, #[codec(index = 7)] - ///A sub-identity was added to an identity and the deposit paid. + #[doc = "A sub-identity was added to an identity and the deposit paid."] SubIdentityAdded { sub: ::subxt::utils::AccountId32, main: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, }, #[codec(index = 8)] - ///A sub-identity was removed from an identity and the deposit freed. + #[doc = "A sub-identity was removed from an identity and the deposit freed."] SubIdentityRemoved { sub: ::subxt::utils::AccountId32, main: ::subxt::utils::AccountId32, deposit: ::core::primitive::u128, }, #[codec(index = 9)] - ///A sub-identity was cleared, and the given deposit repatriated from the - ///main identity account to the sub-identity account. + #[doc = "A sub-identity was cleared, and the given deposit repatriated from the"] + #[doc = "main identity account to the sub-identity account."] SubIdentityRevoked { sub: ::subxt::utils::AccountId32, main: ::subxt::utils::AccountId32, @@ -33566,17 +30956,14 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BitFlags<_0>( @@ -33584,16 +30971,13 @@ pub mod api { #[codec(skip)] pub ::core::marker::PhantomData<_0>, ); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Data { @@ -33675,16 +31059,13 @@ pub mod api { ShaThree256([::core::primitive::u8; 32usize]), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum IdentityField { @@ -33706,16 +31087,13 @@ pub mod api { Twitter, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IdentityInfo { @@ -33733,16 +31111,13 @@ pub mod api { pub twitter: runtime_types::pallet_identity::types::Data, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Judgement<_0> { @@ -33762,16 +31137,13 @@ pub mod api { Erroneous, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RegistrarInfo<_0, _1> { @@ -33782,16 +31154,13 @@ pub mod api { >, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Registration<_0> { @@ -33809,22 +31178,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::heartbeat`]. + #[doc = "See [`Pallet::heartbeat`]."] heartbeat { heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u64>, @@ -33832,52 +31198,46 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Non existent public key. + #[doc = "Non existent public key."] InvalidKey, #[codec(index = 1)] - ///Duplicated heartbeat. + #[doc = "Duplicated heartbeat."] DuplicatedHeartbeat, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A new heartbeat was received from `AuthorityId`. + #[doc = "A new heartbeat was received from `AuthorityId`."] HeartbeatReceived { authority_id: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, }, #[codec(index = 1)] - ///At the end of the session, no offence was committed. + #[doc = "At the end of the session, no offence was committed."] AllGood, #[codec(index = 2)] - ///At the end of the session, at least one validator was found to be offline. + #[doc = "At the end of the session, at least one validator was found to be offline."] SomeOffline { offline: ::std::vec::Vec<( ::subxt::utils::AccountId32, @@ -33894,46 +31254,37 @@ pub mod api { pub mod app_sr25519 { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::sr25519::Public); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub runtime_types::sp_core::sr25519::Signature); } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Heartbeat<_0> { @@ -33948,25 +31299,22 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::claim`]. + #[doc = "See [`Pallet::claim`]."] claim { index: ::core::primitive::u32 }, #[codec(index = 1)] - ///See [`Pallet::transfer`]. + #[doc = "See [`Pallet::transfer`]."] transfer { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -33975,10 +31323,10 @@ pub mod api { index: ::core::primitive::u32, }, #[codec(index = 2)] - ///See [`Pallet::free`]. + #[doc = "See [`Pallet::free`]."] free { index: ::core::primitive::u32 }, #[codec(index = 3)] - ///See [`Pallet::force_transfer`]. + #[doc = "See [`Pallet::force_transfer`]."] force_transfer { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -33988,66 +31336,60 @@ pub mod api { freeze: ::core::primitive::bool, }, #[codec(index = 4)] - ///See [`Pallet::freeze`]. + #[doc = "See [`Pallet::freeze`]."] freeze { index: ::core::primitive::u32 }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///The index was not already assigned. + #[doc = "The index was not already assigned."] NotAssigned, #[codec(index = 1)] - ///The index is assigned to another account. + #[doc = "The index is assigned to another account."] NotOwner, #[codec(index = 2)] - ///The index was not available. + #[doc = "The index was not available."] InUse, #[codec(index = 3)] - ///The source and destination accounts are identical. + #[doc = "The source and destination accounts are identical."] NotTransfer, #[codec(index = 4)] - ///The index is permanent and may not be freed/changed. + #[doc = "The index is permanent and may not be freed/changed."] Permanent, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A account index was assigned. + #[doc = "A account index was assigned."] IndexAssigned { who: ::subxt::utils::AccountId32, index: ::core::primitive::u32, }, #[codec(index = 1)] - ///A account index has been freed up (unassigned). + #[doc = "A account index has been freed up (unassigned)."] IndexFreed { index: ::core::primitive::u32 }, #[codec(index = 2)] - ///A account index has been frozen to its current account ID. + #[doc = "A account index has been frozen to its current account ID."] IndexFrozen { index: ::core::primitive::u32, who: ::subxt::utils::AccountId32 }, } } @@ -34057,22 +31399,19 @@ pub mod api { pub mod module { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::submit_job`]. + #[doc = "See [`Pallet::submit_job`]."] submit_job { job: runtime_types::tangle_primitives::jobs::JobSubmission< ::subxt::utils::AccountId32, @@ -34082,7 +31421,7 @@ pub mod api { >, }, #[codec(index = 1)] - ///See [`Pallet::submit_job_result`]. + #[doc = "See [`Pallet::submit_job_result`]."] submit_job_result { role_type: runtime_types::tangle_primitives::roles::RoleType, job_id: ::core::primitive::u64, @@ -34095,10 +31434,10 @@ pub mod api { >, }, #[codec(index = 2)] - ///See [`Pallet::withdraw_rewards`]. + #[doc = "See [`Pallet::withdraw_rewards`]."] withdraw_rewards, #[codec(index = 3)] - ///See [`Pallet::report_inactive_validator`]. + #[doc = "See [`Pallet::report_inactive_validator`]."] report_inactive_validator { role_type: runtime_types::tangle_primitives::roles::RoleType, job_id: ::core::primitive::u64, @@ -34107,109 +31446,103 @@ pub mod api { signatures: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, }, #[codec(index = 4)] - ///See [`Pallet::set_permitted_caller`]. + #[doc = "See [`Pallet::set_permitted_caller`]."] set_permitted_caller { role_type: runtime_types::tangle_primitives::roles::RoleType, job_id: ::core::primitive::u64, new_permitted_caller: ::subxt::utils::AccountId32, }, #[codec(index = 5)] - ///See [`Pallet::set_time_fee`]. + #[doc = "See [`Pallet::set_time_fee`]."] set_time_fee { new_fee: ::core::primitive::u128 }, #[codec(index = 6)] - ///See [`Pallet::submit_misbehavior`]. + #[doc = "See [`Pallet::submit_misbehavior`]."] submit_misbehavior { misbehavior: runtime_types::tangle_primitives::misbehavior::MisbehaviorSubmission, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///invalid phase provided + #[doc = "invalid phase provided"] InvalidJobPhase, #[codec(index = 1)] - ///Given validator not valid for job type + #[doc = "Given validator not valid for job type"] InvalidValidator, #[codec(index = 2)] - ///invalid params, cannot execute jobs + #[doc = "invalid params, cannot execute jobs"] InvalidJobParams, #[codec(index = 3)] - ///cannot find phase 1 result + #[doc = "cannot find phase 1 result"] PreviousResultNotFound, #[codec(index = 4)] - ///The previous result expired + #[doc = "The previous result expired"] ResultExpired, #[codec(index = 5)] - ///Invalid job expiry input + #[doc = "Invalid job expiry input"] JobAlreadyExpired, #[codec(index = 6)] - ///The requested job was not found + #[doc = "The requested job was not found"] JobNotFound, #[codec(index = 7)] - ///P1 result not found + #[doc = "P1 result not found"] PhaseOneResultNotFound, #[codec(index = 8)] - ///no rewards found for validator + #[doc = "no rewards found for validator"] NoRewards, #[codec(index = 9)] - ///Not enough validators to exit + #[doc = "Not enough validators to exit"] NotEnoughValidators, #[codec(index = 10)] - ///empty result + #[doc = "empty result"] EmptyResult, #[codec(index = 11)] - ///empty job + #[doc = "empty job"] EmptyJob, #[codec(index = 12)] - ///Validator role key not found. + #[doc = "Validator role key not found."] ValidatorRoleKeyNotFound, #[codec(index = 13)] - ///Unexpected result provided + #[doc = "Unexpected result provided"] ResultNotExpectedType, #[codec(index = 14)] - ///No permission to change permitted caller + #[doc = "No permission to change permitted caller"] NoPermission, #[codec(index = 15)] - ///Exceeds max participant limits + #[doc = "Exceeds max participant limits"] TooManyParticipants, #[codec(index = 16)] - ///Invalid Key size + #[doc = "Invalid Key size"] ExceedsMaxKeySize, #[codec(index = 17)] - ///Validator exceeds limit of max active jobs + #[doc = "Validator exceeds limit of max active jobs"] TooManyJobsForValidator, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A new job has been submitted + #[doc = "A new job has been submitted"] JobSubmitted { job_id: ::core::primitive::u64, role_type: runtime_types::tangle_primitives::roles::RoleType, @@ -34221,13 +31554,13 @@ pub mod api { >, }, #[codec(index = 1)] - ///A new job result has been submitted + #[doc = "A new job result has been submitted"] JobResultSubmitted { job_id: ::core::primitive::u64, role_type: runtime_types::tangle_primitives::roles::RoleType, }, #[codec(index = 2)] - ///validator has earned reward + #[doc = "validator has earned reward"] ValidatorRewarded { id: ::subxt::utils::AccountId32, reward: ::core::primitive::u128, @@ -34240,28 +31573,25 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::as_multi_threshold_1`]. + #[doc = "See [`Pallet::as_multi_threshold_1`]."] as_multi_threshold_1 { other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, call: ::std::boxed::Box, }, #[codec(index = 1)] - ///See [`Pallet::as_multi`]. + #[doc = "See [`Pallet::as_multi`]."] as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -34272,7 +31602,7 @@ pub mod api { max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] - ///See [`Pallet::approve_as_multi`]. + #[doc = "See [`Pallet::approve_as_multi`]."] approve_as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -34283,7 +31613,7 @@ pub mod api { max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 3)] - ///See [`Pallet::cancel_as_multi`]. + #[doc = "See [`Pallet::cancel_as_multi`]."] cancel_as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -34293,87 +31623,81 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Threshold must be 2 or greater. + #[doc = "Threshold must be 2 or greater."] MinimumThreshold, #[codec(index = 1)] - ///Call is already approved by this signatory. + #[doc = "Call is already approved by this signatory."] AlreadyApproved, #[codec(index = 2)] - ///Call doesn't need any (more) approvals. + #[doc = "Call doesn't need any (more) approvals."] NoApprovalsNeeded, #[codec(index = 3)] - ///There are too few signatories in the list. + #[doc = "There are too few signatories in the list."] TooFewSignatories, #[codec(index = 4)] - ///There are too many signatories in the list. + #[doc = "There are too many signatories in the list."] TooManySignatories, #[codec(index = 5)] - ///The signatories were provided out of order; they should be ordered. + #[doc = "The signatories were provided out of order; they should be ordered."] SignatoriesOutOfOrder, #[codec(index = 6)] - ///The sender was contained in the other signatories; it shouldn't be. + #[doc = "The sender was contained in the other signatories; it shouldn't be."] SenderInSignatories, #[codec(index = 7)] - ///Multisig operation not found when attempting to cancel. + #[doc = "Multisig operation not found when attempting to cancel."] NotFound, #[codec(index = 8)] - ///Only the account that originally created the multisig is able to cancel it. + #[doc = "Only the account that originally created the multisig is able to cancel it."] NotOwner, #[codec(index = 9)] - ///No timepoint was given, yet the multisig operation is already underway. + #[doc = "No timepoint was given, yet the multisig operation is already underway."] NoTimepoint, #[codec(index = 10)] - ///A different timepoint was given to the multisig operation that is underway. + #[doc = "A different timepoint was given to the multisig operation that is underway."] WrongTimepoint, #[codec(index = 11)] - ///A timepoint was given, yet no multisig operation is underway. + #[doc = "A timepoint was given, yet no multisig operation is underway."] UnexpectedTimepoint, #[codec(index = 12)] - ///The maximum weight information provided was too low. + #[doc = "The maximum weight information provided was too low."] MaxWeightTooLow, #[codec(index = 13)] - ///The data to be stored is already stored. + #[doc = "The data to be stored is already stored."] AlreadyStored, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A new multisig operation has begun. + #[doc = "A new multisig operation has begun."] NewMultisig { approving: ::subxt::utils::AccountId32, multisig: ::subxt::utils::AccountId32, call_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 1)] - ///A multisig operation has been approved by someone. + #[doc = "A multisig operation has been approved by someone."] MultisigApproval { approving: ::subxt::utils::AccountId32, timepoint: @@ -34382,7 +31706,7 @@ pub mod api { call_hash: [::core::primitive::u8; 32usize], }, #[codec(index = 2)] - ///A multisig operation has been executed. + #[doc = "A multisig operation has been executed."] MultisigExecuted { approving: ::subxt::utils::AccountId32, timepoint: @@ -34393,7 +31717,7 @@ pub mod api { ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 3)] - ///A multisig operation has been cancelled. + #[doc = "A multisig operation has been cancelled."] MultisigCancelled { cancelling: ::subxt::utils::AccountId32, timepoint: @@ -34404,16 +31728,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Multisig<_0, _1, _2> { @@ -34423,16 +31744,13 @@ pub mod api { pub approvals: runtime_types::bounded_collections::bounded_vec::BoundedVec<_2>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Timepoint<_0> { @@ -34445,39 +31763,36 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::join`]. + #[doc = "See [`Pallet::join`]."] join { #[codec(compact)] amount: ::core::primitive::u128, pool_id: ::core::primitive::u32, }, #[codec(index = 1)] - ///See [`Pallet::bond_extra`]. + #[doc = "See [`Pallet::bond_extra`]."] bond_extra { extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, }, #[codec(index = 2)] - ///See [`Pallet::claim_payout`]. + #[doc = "See [`Pallet::claim_payout`]."] claim_payout, #[codec(index = 3)] - ///See [`Pallet::unbond`]. + #[doc = "See [`Pallet::unbond`]."] unbond { member_account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -34487,13 +31802,13 @@ pub mod api { unbonding_points: ::core::primitive::u128, }, #[codec(index = 4)] - ///See [`Pallet::pool_withdraw_unbonded`]. + #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] pool_withdraw_unbonded { pool_id: ::core::primitive::u32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 5)] - ///See [`Pallet::withdraw_unbonded`]. + #[doc = "See [`Pallet::withdraw_unbonded`]."] withdraw_unbonded { member_account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -34502,7 +31817,7 @@ pub mod api { num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 6)] - ///See [`Pallet::create`]. + #[doc = "See [`Pallet::create`]."] create { #[codec(compact)] amount: ::core::primitive::u128, @@ -34520,7 +31835,7 @@ pub mod api { >, }, #[codec(index = 7)] - ///See [`Pallet::create_with_pool_id`]. + #[doc = "See [`Pallet::create_with_pool_id`]."] create_with_pool_id { #[codec(compact)] amount: ::core::primitive::u128, @@ -34539,25 +31854,25 @@ pub mod api { pool_id: ::core::primitive::u32, }, #[codec(index = 8)] - ///See [`Pallet::nominate`]. + #[doc = "See [`Pallet::nominate`]."] nominate { pool_id: ::core::primitive::u32, validators: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 9)] - ///See [`Pallet::set_state`]. + #[doc = "See [`Pallet::set_state`]."] set_state { pool_id: ::core::primitive::u32, state: runtime_types::pallet_nomination_pools::PoolState, }, #[codec(index = 10)] - ///See [`Pallet::set_metadata`]. + #[doc = "See [`Pallet::set_metadata`]."] set_metadata { pool_id: ::core::primitive::u32, metadata: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 11)] - ///See [`Pallet::set_configs`]. + #[doc = "See [`Pallet::set_configs`]."] set_configs { min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u128, @@ -34579,7 +31894,7 @@ pub mod api { >, }, #[codec(index = 12)] - ///See [`Pallet::update_roles`]. + #[doc = "See [`Pallet::update_roles`]."] update_roles { pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< @@ -34593,10 +31908,10 @@ pub mod api { >, }, #[codec(index = 13)] - ///See [`Pallet::chill`]. + #[doc = "See [`Pallet::chill`]."] chill { pool_id: ::core::primitive::u32 }, #[codec(index = 14)] - ///See [`Pallet::bond_extra_other`]. + #[doc = "See [`Pallet::bond_extra_other`]."] bond_extra_other { member: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -34607,15 +31922,15 @@ pub mod api { >, }, #[codec(index = 15)] - ///See [`Pallet::set_claim_permission`]. + #[doc = "See [`Pallet::set_claim_permission`]."] set_claim_permission { permission: runtime_types::pallet_nomination_pools::ClaimPermission, }, #[codec(index = 16)] - ///See [`Pallet::claim_payout_other`]. + #[doc = "See [`Pallet::claim_payout_other`]."] claim_payout_other { other: ::subxt::utils::AccountId32 }, #[codec(index = 17)] - ///See [`Pallet::set_commission`]. + #[doc = "See [`Pallet::set_commission`]."] set_commission { pool_id: ::core::primitive::u32, new_commission: ::core::option::Option<( @@ -34624,13 +31939,13 @@ pub mod api { )>, }, #[codec(index = 18)] - ///See [`Pallet::set_commission_max`]. + #[doc = "See [`Pallet::set_commission_max`]."] set_commission_max { pool_id: ::core::primitive::u32, max_commission: runtime_types::sp_arithmetic::per_things::Perbill, }, #[codec(index = 19)] - ///See [`Pallet::set_commission_change_rate`]. + #[doc = "See [`Pallet::set_commission_change_rate`]."] set_commission_change_rate { pool_id: ::core::primitive::u32, change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< @@ -34638,20 +31953,17 @@ pub mod api { >, }, #[codec(index = 20)] - ///See [`Pallet::claim_commission`]. + #[doc = "See [`Pallet::claim_commission`]."] claim_commission { pool_id: ::core::primitive::u32 }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DefensiveError { @@ -34667,148 +31979,139 @@ pub mod api { BondedStashKilledPrematurely, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///A (bonded) pool id does not exist. + #[doc = "A (bonded) pool id does not exist."] PoolNotFound, #[codec(index = 1)] - ///An account is not a member. + #[doc = "An account is not a member."] PoolMemberNotFound, #[codec(index = 2)] - ///A reward pool does not exist. In all cases this is a system logic error. + #[doc = "A reward pool does not exist. In all cases this is a system logic error."] RewardPoolNotFound, #[codec(index = 3)] - ///A sub pool does not exist. + #[doc = "A sub pool does not exist."] SubPoolsNotFound, #[codec(index = 4)] - ///An account is already delegating in another pool. An account may only - /// belong to one pool at a time. + #[doc = "An account is already delegating in another pool. An account may only belong to one"] + #[doc = "pool at a time."] AccountBelongsToOtherPool, #[codec(index = 5)] - ///The member is fully unbonded (and thus cannot access the bonded and reward - /// pool anymore to, for example, collect rewards). + #[doc = "The member is fully unbonded (and thus cannot access the bonded and reward pool"] + #[doc = "anymore to, for example, collect rewards)."] FullyUnbonding, #[codec(index = 6)] - ///The member cannot unbond further chunks due to reaching the limit. + #[doc = "The member cannot unbond further chunks due to reaching the limit."] MaxUnbondingLimit, #[codec(index = 7)] - ///None of the funds can be withdrawn yet because the bonding duration has not - /// passed. + #[doc = "None of the funds can be withdrawn yet because the bonding duration has not passed."] CannotWithdrawAny, #[codec(index = 8)] - ///The amount does not meet the minimum bond to either join or create a pool. - /// - ///The depositor can never unbond to a value less than - ///`Pallet::depositor_min_bond`. The caller does not have nominating - ///permissions for the pool. Members can never unbond to a value below - /// `MinJoinBond`. + #[doc = "The amount does not meet the minimum bond to either join or create a pool."] + #[doc = ""] + #[doc = "The depositor can never unbond to a value less than"] + #[doc = "`Pallet::depositor_min_bond`. The caller does not have nominating"] + #[doc = "permissions for the pool. Members can never unbond to a value below `MinJoinBond`."] MinimumBondNotMet, #[codec(index = 9)] - ///The transaction could not be executed due to overflow risk for the pool. + #[doc = "The transaction could not be executed due to overflow risk for the pool."] OverflowRisk, #[codec(index = 10)] - ///A pool must be in [`PoolState::Destroying`] in order for the depositor to - /// unbond or for other members to be permissionlessly unbonded. + #[doc = "A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for"] + #[doc = "other members to be permissionlessly unbonded."] NotDestroying, #[codec(index = 11)] - ///The caller does not have nominating permissions for the pool. + #[doc = "The caller does not have nominating permissions for the pool."] NotNominator, #[codec(index = 12)] - ///Either a) the caller cannot make a valid kick or b) the pool is not - /// destroying. + #[doc = "Either a) the caller cannot make a valid kick or b) the pool is not destroying."] NotKickerOrDestroying, #[codec(index = 13)] - ///The pool is not open to join + #[doc = "The pool is not open to join"] NotOpen, #[codec(index = 14)] - ///The system is maxed out on pools. + #[doc = "The system is maxed out on pools."] MaxPools, #[codec(index = 15)] - ///Too many members in the pool or system. + #[doc = "Too many members in the pool or system."] MaxPoolMembers, #[codec(index = 16)] - ///The pools state cannot be changed. + #[doc = "The pools state cannot be changed."] CanNotChangeState, #[codec(index = 17)] - ///The caller does not have adequate permissions. + #[doc = "The caller does not have adequate permissions."] DoesNotHavePermission, #[codec(index = 18)] - ///Metadata exceeds [`Config::MaxMetadataLen`] + #[doc = "Metadata exceeds [`Config::MaxMetadataLen`]"] MetadataExceedsMaxLen, #[codec(index = 19)] - ///Some error occurred that should never happen. This should be reported to - /// the maintainers. + #[doc = "Some error occurred that should never happen. This should be reported to the"] + #[doc = "maintainers."] Defensive(runtime_types::pallet_nomination_pools::pallet::DefensiveError), #[codec(index = 20)] - ///Partial unbonding now allowed permissionlessly. + #[doc = "Partial unbonding now allowed permissionlessly."] PartialUnbondNotAllowedPermissionlessly, #[codec(index = 21)] - ///The pool's max commission cannot be set higher than the existing value. + #[doc = "The pool's max commission cannot be set higher than the existing value."] MaxCommissionRestricted, #[codec(index = 22)] - ///The supplied commission exceeds the max allowed commission. + #[doc = "The supplied commission exceeds the max allowed commission."] CommissionExceedsMaximum, #[codec(index = 23)] - ///The supplied commission exceeds global maximum commission. + #[doc = "The supplied commission exceeds global maximum commission."] CommissionExceedsGlobalMaximum, #[codec(index = 24)] - ///Not enough blocks have surpassed since the last commission update. + #[doc = "Not enough blocks have surpassed since the last commission update."] CommissionChangeThrottled, #[codec(index = 25)] - ///The submitted changes to commission change rate are not allowed. + #[doc = "The submitted changes to commission change rate are not allowed."] CommissionChangeRateNotAllowed, #[codec(index = 26)] - ///There is no pending commission to claim. + #[doc = "There is no pending commission to claim."] NoPendingCommission, #[codec(index = 27)] - ///No commission current has been set. + #[doc = "No commission current has been set."] NoCommissionCurrentSet, #[codec(index = 28)] - ///Pool id currently in use. + #[doc = "Pool id currently in use."] PoolIdInUse, #[codec(index = 29)] - ///Pool id provided is not correct/usable. + #[doc = "Pool id provided is not correct/usable."] InvalidPoolId, #[codec(index = 30)] - ///Bonding extra is restricted to the exact pending reward amount. + #[doc = "Bonding extra is restricted to the exact pending reward amount."] BondExtraRestricted, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Events of this pallet. + #[doc = "Events of this pallet."] pub enum Event { #[codec(index = 0)] - ///A pool has been created. + #[doc = "A pool has been created."] Created { depositor: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, }, #[codec(index = 1)] - ///A member has became bonded in a pool. + #[doc = "A member has became bonded in a pool."] Bonded { member: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, @@ -34816,26 +32119,24 @@ pub mod api { joined: ::core::primitive::bool, }, #[codec(index = 2)] - ///A payout has been made to a member. + #[doc = "A payout has been made to a member."] PaidOut { member: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, payout: ::core::primitive::u128, }, #[codec(index = 3)] - ///A member has unbonded from their pool. - /// - /// - `balance` is the corresponding balance of the number of points that has - /// been - /// requested to be unbonded (the argument of the `unbond` transaction) from - /// the bonded pool. - /// - `points` is the number of points that are issued as a result of `balance` - /// being - ///dissolved into the corresponding unbonding pool. - /// - `era` is the era in which the balance will be unbonded. - ///In the absence of slashing, these values will match. In the presence of - /// slashing, the number of points that are issued in the unbonding pool will - /// be less than the amount requested to be unbonded. + #[doc = "A member has unbonded from their pool."] + #[doc = ""] + #[doc = "- `balance` is the corresponding balance of the number of points that has been"] + #[doc = " requested to be unbonded (the argument of the `unbond` transaction) from the bonded"] + #[doc = " pool."] + #[doc = "- `points` is the number of points that are issued as a result of `balance` being"] + #[doc = "dissolved into the corresponding unbonding pool."] + #[doc = "- `era` is the era in which the balance will be unbonded."] + #[doc = "In the absence of slashing, these values will match. In the presence of slashing, the"] + #[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::utils::AccountId32, pool_id: ::core::primitive::u32, @@ -34844,12 +32145,12 @@ pub mod api { era: ::core::primitive::u32, }, #[codec(index = 4)] - ///A member has withdrawn from their pool. - /// - ///The given number of `points` have been dissolved in return of `balance`. - /// - ///Similar to `Unbonded` event, in the absence of slashing, the ratio of point - /// to balance will be 1. + #[doc = "A member has withdrawn from their pool."] + #[doc = ""] + #[doc = "The given number of `points` have been dissolved in return of `balance`."] + #[doc = ""] + #[doc = "Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance"] + #[doc = "will be 1."] Withdrawn { member: ::subxt::utils::AccountId32, pool_id: ::core::primitive::u32, @@ -34857,46 +32158,45 @@ pub mod api { points: ::core::primitive::u128, }, #[codec(index = 5)] - ///A pool has been destroyed. + #[doc = "A pool has been destroyed."] Destroyed { pool_id: ::core::primitive::u32 }, #[codec(index = 6)] - ///The state of a pool has changed + #[doc = "The state of a pool has changed"] StateChanged { pool_id: ::core::primitive::u32, new_state: runtime_types::pallet_nomination_pools::PoolState, }, #[codec(index = 7)] - ///A member has been removed from a pool. - /// - ///The removal can be voluntary (withdrawn all unbonded funds) or involuntary - /// (kicked). + #[doc = "A member has been removed from a pool."] + #[doc = ""] + #[doc = "The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked)."] MemberRemoved { pool_id: ::core::primitive::u32, member: ::subxt::utils::AccountId32, }, #[codec(index = 8)] - ///The roles of a pool have been updated to the given new roles. Note that the - /// depositor can never change. + #[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::utils::AccountId32>, bouncer: ::core::option::Option<::subxt::utils::AccountId32>, nominator: ::core::option::Option<::subxt::utils::AccountId32>, }, #[codec(index = 9)] - ///The active balance of pool `pool_id` has been slashed to `balance`. + #[doc = "The active balance of pool `pool_id` has been slashed to `balance`."] PoolSlashed { pool_id: ::core::primitive::u32, balance: ::core::primitive::u128, }, #[codec(index = 10)] - ///The unbond pool at `era` of pool `pool_id` has been slashed to `balance`. + #[doc = "The unbond pool at `era` of pool `pool_id` has been slashed to `balance`."] UnbondingPoolSlashed { pool_id: ::core::primitive::u32, era: ::core::primitive::u32, balance: ::core::primitive::u128, }, #[codec(index = 11)] - ///A pool's commission setting has been changed. + #[doc = "A pool's commission setting has been changed."] PoolCommissionUpdated { pool_id: ::core::primitive::u32, current: ::core::option::Option<( @@ -34905,13 +32205,13 @@ pub mod api { )>, }, #[codec(index = 12)] - ///A pool's maximum commission setting has been changed. + #[doc = "A pool's maximum commission setting has been changed."] PoolMaxCommissionUpdated { pool_id: ::core::primitive::u32, max_commission: runtime_types::sp_arithmetic::per_things::Perbill, }, #[codec(index = 13)] - ///A pool's commission `change_rate` has been changed. + #[doc = "A pool's commission `change_rate` has been changed."] PoolCommissionChangeRateUpdated { pool_id: ::core::primitive::u32, change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< @@ -34919,7 +32219,7 @@ pub mod api { >, }, #[codec(index = 14)] - ///Pool commission has been claimed. + #[doc = "Pool commission has been claimed."] PoolCommissionClaimed { pool_id: ::core::primitive::u32, commission: ::core::primitive::u128, @@ -34927,16 +32227,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum BondExtra<_0> { @@ -34946,16 +32243,13 @@ pub mod api { Rewards, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondedPoolInner { @@ -34967,16 +32261,13 @@ pub mod api { pub state: runtime_types::pallet_nomination_pools::PoolState, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ClaimPermission { @@ -34990,16 +32281,13 @@ pub mod api { PermissionlessAll, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Commission { @@ -35016,16 +32304,13 @@ pub mod api { pub throttle_from: ::core::option::Option<::core::primitive::u64>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CommissionChangeRate<_0> { @@ -35033,16 +32318,13 @@ pub mod api { pub min_delay: _0, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ConfigOp<_0> { @@ -35054,16 +32336,13 @@ pub mod api { Remove, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolMember { @@ -35078,16 +32357,13 @@ pub mod api { >, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PoolRoles<_0> { @@ -35097,16 +32373,13 @@ pub mod api { pub bouncer: ::core::option::Option<_0>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum PoolState { @@ -35118,16 +32391,13 @@ pub mod api { Destroying, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RewardPool { @@ -35139,16 +32409,13 @@ pub mod api { pub total_commission_claimed: ::core::primitive::u128, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubPools { @@ -35160,16 +32427,13 @@ pub mod api { >, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnbondPool { @@ -35182,24 +32446,21 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Events type. + #[doc = "Events type."] pub enum Event { #[codec(index = 0)] - ///There is an offence reported of the given `kind` happened at the - /// `session_index` and (kind-specific) time slot. This event is not deposited - /// for duplicate slashes. \[kind, timeslot\]. + #[doc = "There is an offence reported of the given `kind` happened at the `session_index` and"] + #[doc = "(kind-specific) time slot. This event is not deposited for duplicate slashes."] + #[doc = "\\[kind, timeslot\\]."] Offence { kind: [::core::primitive::u8; 16usize], timeslot: ::std::vec::Vec<::core::primitive::u8>, @@ -35212,104 +32473,92 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::note_preimage`]. + #[doc = "See [`Pallet::note_preimage`]."] note_preimage { bytes: ::std::vec::Vec<::core::primitive::u8> }, #[codec(index = 1)] - ///See [`Pallet::unnote_preimage`]. + #[doc = "See [`Pallet::unnote_preimage`]."] unnote_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 2)] - ///See [`Pallet::request_preimage`]. + #[doc = "See [`Pallet::request_preimage`]."] request_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 3)] - ///See [`Pallet::unrequest_preimage`]. + #[doc = "See [`Pallet::unrequest_preimage`]."] unrequest_preimage { hash: ::subxt::utils::H256 }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Preimage is too large to store on-chain. + #[doc = "Preimage is too large to store on-chain."] TooBig, #[codec(index = 1)] - ///Preimage has already been noted on-chain. + #[doc = "Preimage has already been noted on-chain."] AlreadyNoted, #[codec(index = 2)] - ///The user is not authorized to perform this action. + #[doc = "The user is not authorized to perform this action."] NotAuthorized, #[codec(index = 3)] - ///The preimage cannot be removed since it has not yet been noted. + #[doc = "The preimage cannot be removed since it has not yet been noted."] NotNoted, #[codec(index = 4)] - ///A preimage may not be removed when there are outstanding requests. + #[doc = "A preimage may not be removed when there are outstanding requests."] Requested, #[codec(index = 5)] - ///The preimage request cannot be removed since no outstanding requests exist. + #[doc = "The preimage request cannot be removed since no outstanding requests exist."] NotRequested, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A preimage has been noted. + #[doc = "A preimage has been noted."] Noted { hash: ::subxt::utils::H256 }, #[codec(index = 1)] - ///A preimage has been requested. + #[doc = "A preimage has been requested."] Requested { hash: ::subxt::utils::H256 }, #[codec(index = 2)] - ///A preimage has ben cleared. + #[doc = "A preimage has ben cleared."] Cleared { hash: ::subxt::utils::H256 }, } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RequestStatus<_0, _1> { @@ -35328,181 +32577,170 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::create_profile`]. + #[doc = "See [`Pallet::create_profile`]."] create_profile { profile: runtime_types::pallet_roles::profile::Profile, max_active_services: ::core::option::Option<::core::primitive::u32>, }, #[codec(index = 1)] - ///See [`Pallet::update_profile`]. + #[doc = "See [`Pallet::update_profile`]."] update_profile { updated_profile: runtime_types::pallet_roles::profile::Profile, }, #[codec(index = 2)] - ///See [`Pallet::delete_profile`]. + #[doc = "See [`Pallet::delete_profile`]."] delete_profile, #[codec(index = 3)] - ///See [`Pallet::chill`]. + #[doc = "See [`Pallet::chill`]."] chill, #[codec(index = 4)] - ///See [`Pallet::unbond_funds`]. + #[doc = "See [`Pallet::unbond_funds`]."] unbond_funds { #[codec(compact)] amount: ::core::primitive::u128, }, #[codec(index = 5)] - ///See [`Pallet::withdraw_unbonded`]. + #[doc = "See [`Pallet::withdraw_unbonded`]."] withdraw_unbonded, #[codec(index = 6)] - ///See [`Pallet::payout_stakers`]. + #[doc = "See [`Pallet::payout_stakers`]."] payout_stakers { validator_stash: ::subxt::utils::AccountId32, era: ::core::primitive::u32, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Not a validator. + #[doc = "Not a validator."] NotValidator, #[codec(index = 1)] - ///Validator has active role assigned. + #[doc = "Validator has active role assigned."] HasRoleAssigned, #[codec(index = 2)] - ///Given role is not assigned to the validator. + #[doc = "Given role is not assigned to the validator."] RoleNotAssigned, #[codec(index = 3)] - ///Max role limit reached for the account. + #[doc = "Max role limit reached for the account."] MaxRoles, #[codec(index = 4)] - ///Role cannot due to pending jobs, which can't be opted out at the moment. + #[doc = "Role cannot due to pending jobs, which can't be opted out at the moment."] RoleCannotBeRemoved, #[codec(index = 5)] - ///Restaking amount cannot be lowered if there are any pending jobs. You can - /// only add more + #[doc = "Restaking amount cannot be lowered if there are any pending jobs. You can only add more"] RestakingAmountCannotBeUpdated, #[codec(index = 6)] - ///Invalid Restaking amount, should not exceed total staked amount. + #[doc = "Invalid Restaking amount, should not exceed total staked amount."] ExceedsMaxRestakeValue, #[codec(index = 7)] - ///Re staking amount should be greater than minimum Restaking bond - /// requirement. + #[doc = "Re staking amount should be greater than minimum Restaking bond requirement."] InsufficientRestakingBond, #[codec(index = 8)] - ///Profile Update failed. + #[doc = "Profile Update failed."] ProfileUpdateFailed, #[codec(index = 9)] - ///Profile already exists for given validator account. + #[doc = "Profile already exists for given validator account."] ProfileAlreadyExists, #[codec(index = 10)] - ///Stash controller account not found in Roles Ledger. + #[doc = "Stash controller account not found in Roles Ledger."] NoProfileFound, #[codec(index = 11)] - ///Profile delete request failed due to pending jobs, which can't be opted out - /// at the moment. + #[doc = "Profile delete request failed due to pending jobs, which can't be opted out at the"] + #[doc = "moment."] ProfileDeleteRequestFailed, #[codec(index = 12)] - ///SessionKeys not provided + #[doc = "SessionKeys not provided"] SessionKeysNotProvided, #[codec(index = 13)] - ///Key size exceeded + #[doc = "Key size exceeded"] KeySizeExceeded, #[codec(index = 14)] - ///Cannot find Current era + #[doc = "Cannot find Current era"] CannotGetCurrentEra, #[codec(index = 15)] - ///Invalid era info + #[doc = "Invalid era info"] InvalidEraToReward, #[codec(index = 16)] - ///Out of bounds input + #[doc = "Out of bounds input"] BoundNotMet, #[codec(index = 17)] - ///Rewards already claimed + #[doc = "Rewards already claimed"] AlreadyClaimed, #[codec(index = 18)] - ///Unlock chunks already filled + #[doc = "Unlock chunks already filled"] NoMoreChunks, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///Role assigned to the validator. + #[doc = "Role assigned to the validator."] RoleAssigned { account: ::subxt::utils::AccountId32, role: runtime_types::tangle_primitives::roles::RoleType, }, #[codec(index = 1)] - ///Removed validator from role. + #[doc = "Removed validator from role."] RoleRemoved { account: ::subxt::utils::AccountId32, role: runtime_types::tangle_primitives::roles::RoleType, }, #[codec(index = 2)] - ///Slashed validator. + #[doc = "Slashed validator."] Slashed { account: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 3)] - ///New profile created. + #[doc = "New profile created."] ProfileCreated { account: ::subxt::utils::AccountId32, total_profile_restake: ::core::primitive::u128, roles: ::std::vec::Vec, }, #[codec(index = 4)] - ///Profile updated. + #[doc = "Profile updated."] ProfileUpdated { account: ::subxt::utils::AccountId32, total_profile_restake: ::core::primitive::u128, roles: ::std::vec::Vec, }, #[codec(index = 5)] - ///Profile deleted. + #[doc = "Profile deleted."] ProfileDeleted { account: ::subxt::utils::AccountId32 }, #[codec(index = 6)] - ///Pending jobs,that cannot be opted out at the moment. + #[doc = "Pending jobs,that cannot be opted out at the moment."] PendingJobs { pending_jobs: ::std::vec::Vec<( runtime_types::tangle_primitives::roles::RoleType, @@ -35510,32 +32748,29 @@ pub mod api { )>, }, #[codec(index = 7)] - ///Roles inflation reward paid for era + #[doc = "Roles inflation reward paid for era"] RolesRewardSet { total_rewards: ::core::primitive::u128 }, #[codec(index = 8)] - ///The re-stakers' rewards are getting paid. + #[doc = "The re-stakers' rewards are getting paid."] PayoutStarted { era_index: ::core::primitive::u32, validator_stash: ::subxt::utils::AccountId32, }, #[codec(index = 9)] - ///The re-staker has been rewarded by this amount. + #[doc = "The re-staker has been rewarded by this amount."] Rewarded { stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128 }, } } pub mod profile { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IndependentRestakeProfile { @@ -35544,16 +32779,13 @@ pub mod api { >, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Profile { @@ -35563,16 +32795,13 @@ pub mod api { Shared(runtime_types::pallet_roles::profile::SharedRestakeProfile), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Record { @@ -35580,16 +32809,13 @@ pub mod api { pub amount: ::core::option::Option<::core::primitive::u128>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SharedRestakeProfile { @@ -35602,16 +32828,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RestakingLedger { @@ -35637,16 +32860,13 @@ pub mod api { pub max_active_services: ::core::primitive::u32, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnlockChunk<_0> { @@ -35662,22 +32882,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::schedule`]. + #[doc = "See [`Pallet::schedule`]."] schedule { when: ::core::primitive::u64, maybe_periodic: ::core::option::Option<( @@ -35688,10 +32905,10 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 1)] - ///See [`Pallet::cancel`]. + #[doc = "See [`Pallet::cancel`]."] cancel { when: ::core::primitive::u64, index: ::core::primitive::u32 }, #[codec(index = 2)] - ///See [`Pallet::schedule_named`]. + #[doc = "See [`Pallet::schedule_named`]."] schedule_named { id: [::core::primitive::u8; 32usize], when: ::core::primitive::u64, @@ -35703,10 +32920,10 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 3)] - ///See [`Pallet::cancel_named`]. + #[doc = "See [`Pallet::cancel_named`]."] cancel_named { id: [::core::primitive::u8; 32usize] }, #[codec(index = 4)] - ///See [`Pallet::schedule_after`]. + #[doc = "See [`Pallet::schedule_after`]."] schedule_after { after: ::core::primitive::u64, maybe_periodic: ::core::option::Option<( @@ -35717,7 +32934,7 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 5)] - ///See [`Pallet::schedule_named_after`]. + #[doc = "See [`Pallet::schedule_named_after`]."] schedule_named_after { id: [::core::primitive::u8; 32usize], after: ::core::primitive::u64, @@ -35730,59 +32947,53 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Failed to schedule a call + #[doc = "Failed to schedule a call"] FailedToSchedule, #[codec(index = 1)] - ///Cannot find the scheduled call. + #[doc = "Cannot find the scheduled call."] NotFound, #[codec(index = 2)] - ///Given target block number is in the past. + #[doc = "Given target block number is in the past."] TargetBlockNumberInPast, #[codec(index = 3)] - ///Reschedule failed because it does not change scheduled time. + #[doc = "Reschedule failed because it does not change scheduled time."] RescheduleNoChange, #[codec(index = 4)] - ///Attempt to use a non-named function on a named task. + #[doc = "Attempt to use a non-named function on a named task."] Named, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Events type. + #[doc = "Events type."] pub enum Event { #[codec(index = 0)] - ///Scheduled some task. + #[doc = "Scheduled some task."] Scheduled { when: ::core::primitive::u64, index: ::core::primitive::u32 }, #[codec(index = 1)] - ///Canceled some task. + #[doc = "Canceled some task."] Canceled { when: ::core::primitive::u64, index: ::core::primitive::u32 }, #[codec(index = 2)] - ///Dispatched some task. + #[doc = "Dispatched some task."] Dispatched { task: (::core::primitive::u64, ::core::primitive::u32), id: ::core::option::Option<[::core::primitive::u8; 32usize]>, @@ -35790,20 +33001,19 @@ pub mod api { ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 3)] - ///The call for the provided hash was not found so the task has been aborted. + #[doc = "The call for the provided hash was not found so the task has been aborted."] CallUnavailable { task: (::core::primitive::u64, ::core::primitive::u32), id: ::core::option::Option<[::core::primitive::u8; 32usize]>, }, #[codec(index = 4)] - ///The given task was unable to be renewed since the agenda is full at that - /// block. + #[doc = "The given task was unable to be renewed since the agenda is full at that block."] PeriodicFailed { task: (::core::primitive::u64, ::core::primitive::u32), id: ::core::option::Option<[::core::primitive::u8; 32usize]>, }, #[codec(index = 5)] - ///The given task can never be executed since it is overweight. + #[doc = "The given task can never be executed since it is overweight."] PermanentlyOverweight { task: (::core::primitive::u64, ::core::primitive::u32), id: ::core::option::Option<[::core::primitive::u8; 32usize]>, @@ -35811,16 +33021,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Scheduled<_0, _1, _2, _3, _4> { @@ -35838,79 +33045,70 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::set_keys`]. + #[doc = "See [`Pallet::set_keys`]."] set_keys { keys: runtime_types::tangle_testnet_runtime::opaque::SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - ///See [`Pallet::purge_keys`]. + #[doc = "See [`Pallet::purge_keys`]."] purge_keys, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Error for the session pallet. + #[doc = "Error for the session pallet."] pub enum Error { #[codec(index = 0)] - ///Invalid ownership proof. + #[doc = "Invalid ownership proof."] InvalidProof, #[codec(index = 1)] - ///No associated validator ID for account. + #[doc = "No associated validator ID for account."] NoAssociatedValidatorId, #[codec(index = 2)] - ///Registered duplicate key. + #[doc = "Registered duplicate key."] DuplicatedKey, #[codec(index = 3)] - ///No keys are associated with this account. + #[doc = "No keys are associated with this account."] NoKeys, #[codec(index = 4)] - ///Key setting account is not live, so it's impossible to associate keys. + #[doc = "Key setting account is not live, so it's impossible to associate keys."] NoAccount, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///New session has happened. Note that the argument is the session index, not - /// the block number as the type might suggest. + #[doc = "New session has happened. Note that the argument is the session index, not the"] + #[doc = "block number as the type might suggest."] NewSession { session_index: ::core::primitive::u32 }, } } @@ -35922,22 +33120,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::bond`]. + #[doc = "See [`Pallet::bond`]."] bond { #[codec(compact)] value: ::core::primitive::u128, @@ -35946,25 +33141,25 @@ pub mod api { >, }, #[codec(index = 1)] - ///See [`Pallet::bond_extra`]. + #[doc = "See [`Pallet::bond_extra`]."] bond_extra { #[codec(compact)] max_additional: ::core::primitive::u128, }, #[codec(index = 2)] - ///See [`Pallet::unbond`]. + #[doc = "See [`Pallet::unbond`]."] unbond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 3)] - ///See [`Pallet::withdraw_unbonded`]. + #[doc = "See [`Pallet::withdraw_unbonded`]."] withdraw_unbonded { num_slashing_spans: ::core::primitive::u32 }, #[codec(index = 4)] - ///See [`Pallet::validate`]. + #[doc = "See [`Pallet::validate`]."] validate { prefs: runtime_types::pallet_staking::ValidatorPrefs }, #[codec(index = 5)] - ///See [`Pallet::nominate`]. + #[doc = "See [`Pallet::nominate`]."] nominate { targets: ::std::vec::Vec< ::subxt::utils::MultiAddress< @@ -35974,81 +33169,81 @@ pub mod api { >, }, #[codec(index = 6)] - ///See [`Pallet::chill`]. + #[doc = "See [`Pallet::chill`]."] chill, #[codec(index = 7)] - ///See [`Pallet::set_payee`]. + #[doc = "See [`Pallet::set_payee`]."] set_payee { payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, }, #[codec(index = 8)] - ///See [`Pallet::set_controller`]. + #[doc = "See [`Pallet::set_controller`]."] set_controller, #[codec(index = 9)] - ///See [`Pallet::set_validator_count`]. + #[doc = "See [`Pallet::set_validator_count`]."] set_validator_count { #[codec(compact)] new: ::core::primitive::u32, }, #[codec(index = 10)] - ///See [`Pallet::increase_validator_count`]. + #[doc = "See [`Pallet::increase_validator_count`]."] increase_validator_count { #[codec(compact)] additional: ::core::primitive::u32, }, #[codec(index = 11)] - ///See [`Pallet::scale_validator_count`]. + #[doc = "See [`Pallet::scale_validator_count`]."] scale_validator_count { factor: runtime_types::sp_arithmetic::per_things::Percent, }, #[codec(index = 12)] - ///See [`Pallet::force_no_eras`]. + #[doc = "See [`Pallet::force_no_eras`]."] force_no_eras, #[codec(index = 13)] - ///See [`Pallet::force_new_era`]. + #[doc = "See [`Pallet::force_new_era`]."] force_new_era, #[codec(index = 14)] - ///See [`Pallet::set_invulnerables`]. + #[doc = "See [`Pallet::set_invulnerables`]."] set_invulnerables { invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 15)] - ///See [`Pallet::force_unstake`]. + #[doc = "See [`Pallet::force_unstake`]."] force_unstake { stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 16)] - ///See [`Pallet::force_new_era_always`]. + #[doc = "See [`Pallet::force_new_era_always`]."] force_new_era_always, #[codec(index = 17)] - ///See [`Pallet::cancel_deferred_slash`]. + #[doc = "See [`Pallet::cancel_deferred_slash`]."] cancel_deferred_slash { era: ::core::primitive::u32, slash_indices: ::std::vec::Vec<::core::primitive::u32>, }, #[codec(index = 18)] - ///See [`Pallet::payout_stakers`]. + #[doc = "See [`Pallet::payout_stakers`]."] payout_stakers { validator_stash: ::subxt::utils::AccountId32, era: ::core::primitive::u32, }, #[codec(index = 19)] - ///See [`Pallet::rebond`]. + #[doc = "See [`Pallet::rebond`]."] rebond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 20)] - ///See [`Pallet::reap_stash`]. + #[doc = "See [`Pallet::reap_stash`]."] reap_stash { stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 21)] - ///See [`Pallet::kick`]. + #[doc = "See [`Pallet::kick`]."] kick { who: ::std::vec::Vec< ::subxt::utils::MultiAddress< @@ -36058,7 +33253,7 @@ pub mod api { >, }, #[codec(index = 22)] - ///See [`Pallet::set_staking_configs`]. + #[doc = "See [`Pallet::set_staking_configs`]."] set_staking_configs { min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< @@ -36085,28 +33280,25 @@ pub mod api { >, }, #[codec(index = 23)] - ///See [`Pallet::chill_other`]. + #[doc = "See [`Pallet::chill_other`]."] chill_other { controller: ::subxt::utils::AccountId32 }, #[codec(index = 24)] - ///See [`Pallet::force_apply_min_commission`]. + #[doc = "See [`Pallet::force_apply_min_commission`]."] force_apply_min_commission { validator_stash: ::subxt::utils::AccountId32 }, #[codec(index = 25)] - ///See [`Pallet::set_min_commission`]. + #[doc = "See [`Pallet::set_min_commission`]."] set_min_commission { new: runtime_types::sp_arithmetic::per_things::Perbill, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ConfigOp<_0> { @@ -36118,210 +33310,198 @@ pub mod api { Remove, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Not a controller account. + #[doc = "Not a controller account."] NotController, #[codec(index = 1)] - ///Not a stash account. + #[doc = "Not a stash account."] NotStash, #[codec(index = 2)] - ///Stash is already bonded. + #[doc = "Stash is already bonded."] AlreadyBonded, #[codec(index = 3)] - ///Controller is already paired. + #[doc = "Controller is already paired."] AlreadyPaired, #[codec(index = 4)] - ///Targets cannot be empty. + #[doc = "Targets cannot be empty."] EmptyTargets, #[codec(index = 5)] - ///Duplicate index. + #[doc = "Duplicate index."] DuplicateIndex, #[codec(index = 6)] - ///Slash record index out of bounds. + #[doc = "Slash record index out of bounds."] InvalidSlashIndex, #[codec(index = 7)] - ///Cannot have a validator or nominator role, with value less than the - /// minimum defined by governance (see `MinValidatorBond` and - /// `MinNominatorBond`). If unbonding is the intention, `chill` first to - /// remove one's role as validator/nominator. + #[doc = "Cannot have a validator or nominator role, with value less than the minimum defined by"] + #[doc = "governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the"] + #[doc = "intention, `chill` first to remove one's role as validator/nominator."] InsufficientBond, #[codec(index = 8)] - ///Can not schedule more unlock chunks. + #[doc = "Can not schedule more unlock chunks."] NoMoreChunks, #[codec(index = 9)] - ///Can not rebond without unlocking chunks. + #[doc = "Can not rebond without unlocking chunks."] NoUnlockChunk, #[codec(index = 10)] - ///Attempting to target a stash that still has funds. + #[doc = "Attempting to target a stash that still has funds."] FundedTarget, #[codec(index = 11)] - ///Invalid era to reward. + #[doc = "Invalid era to reward."] InvalidEraToReward, #[codec(index = 12)] - ///Invalid number of nominations. + #[doc = "Invalid number of nominations."] InvalidNumberOfNominations, #[codec(index = 13)] - ///Items are not sorted and unique. + #[doc = "Items are not sorted and unique."] NotSortedAndUnique, #[codec(index = 14)] - ///Rewards for this era have already been claimed for this validator. + #[doc = "Rewards for this era have already been claimed for this validator."] AlreadyClaimed, #[codec(index = 15)] - ///Incorrect previous history depth input provided. + #[doc = "Incorrect previous history depth input provided."] IncorrectHistoryDepth, #[codec(index = 16)] - ///Incorrect number of slashing spans provided. + #[doc = "Incorrect number of slashing spans provided."] IncorrectSlashingSpans, #[codec(index = 17)] - ///Internal state has become somehow corrupted and the operation cannot - /// continue. + #[doc = "Internal state has become somehow corrupted and the operation cannot continue."] BadState, #[codec(index = 18)] - ///Too many nomination targets supplied. + #[doc = "Too many nomination targets supplied."] TooManyTargets, #[codec(index = 19)] - ///A nomination target was supplied that was blocked or otherwise not a - /// validator. + #[doc = "A nomination target was supplied that was blocked or otherwise not a validator."] BadTarget, #[codec(index = 20)] - ///The user has enough bond and thus cannot be chilled forcefully by an - /// external person. + #[doc = "The user has enough bond and thus cannot be chilled forcefully by an external person."] CannotChillOther, #[codec(index = 21)] - ///There are too many nominators in the system. Governance needs to adjust - /// the staking settings to keep things safe for the runtime. + #[doc = "There are too many nominators in the system. Governance needs to adjust the staking"] + #[doc = "settings to keep things safe for the runtime."] TooManyNominators, #[codec(index = 22)] - ///There are too many validator candidates in the system. Governance needs - /// to adjust the staking settings to keep things safe for the runtime. + #[doc = "There are too many validator candidates in the system. Governance needs to adjust the"] + #[doc = "staking settings to keep things safe for the runtime."] TooManyValidators, #[codec(index = 23)] - ///Commission is too low. Must be at least `MinCommission`. + #[doc = "Commission is too low. Must be at least `MinCommission`."] CommissionTooLow, #[codec(index = 24)] - ///Some bound is not met. + #[doc = "Some bound is not met."] BoundNotMet, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///The era payout has been set; the first balance is the validator-payout; - /// the second is the remainder from the maximum amount of reward. + #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] + #[doc = "the remainder from the maximum amount of reward."] EraPaid { era_index: ::core::primitive::u32, validator_payout: ::core::primitive::u128, remainder: ::core::primitive::u128, }, #[codec(index = 1)] - ///The nominator has been rewarded by this amount. + #[doc = "The nominator has been rewarded by this amount."] Rewarded { stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 2)] - ///A staker (validator or nominator) has been slashed by the given amount. + #[doc = "A staker (validator or nominator) has been slashed by the given amount."] Slashed { staker: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 3)] - ///A slash for the given validator, for the given percentage of their - /// stake, at the given era as been reported. + #[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::utils::AccountId32, fraction: runtime_types::sp_arithmetic::per_things::Perbill, slash_era: ::core::primitive::u32, }, #[codec(index = 4)] - ///An old slashing report from a prior era was discarded because it could - ///not be processed. + #[doc = "An old slashing report from a prior era was discarded because it could"] + #[doc = "not be processed."] OldSlashingReportDiscarded { session_index: ::core::primitive::u32 }, #[codec(index = 5)] - ///A new set of stakers was elected. + #[doc = "A new set of stakers was elected."] StakersElected, #[codec(index = 6)] - ///An account has bonded this amount. \[stash, amount\] - /// - ///NOTE: This event is only emitted when funds are bonded via a - /// dispatchable. Notably, it will not be emitted for staking rewards when - /// they are added to stake. + #[doc = "An account has bonded this amount. \\[stash, amount\\]"] + #[doc = ""] + #[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::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 7)] - ///An account has unbonded this amount. + #[doc = "An account has unbonded this amount."] Unbonded { stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 8)] - ///An account has called `withdraw_unbonded` and removed unbonding chunks - /// worth `Balance` from the unlocking queue. + #[doc = "An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`"] + #[doc = "from the unlocking queue."] Withdrawn { stash: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, #[codec(index = 9)] - ///A nominator has been kicked from a validator. + #[doc = "A nominator has been kicked from a validator."] Kicked { nominator: ::subxt::utils::AccountId32, stash: ::subxt::utils::AccountId32, }, #[codec(index = 10)] - ///The election failed. No new era is planned. + #[doc = "The election failed. No new era is planned."] StakingElectionFailed, #[codec(index = 11)] - ///An account has stopped participating as either a validator or - /// nominator. + #[doc = "An account has stopped participating as either a validator or nominator."] Chilled { stash: ::subxt::utils::AccountId32 }, #[codec(index = 12)] - ///The stakers' rewards are getting paid. + #[doc = "The stakers' rewards are getting paid."] PayoutStarted { era_index: ::core::primitive::u32, validator_stash: ::subxt::utils::AccountId32, }, #[codec(index = 13)] - ///A validator has set their preferences. + #[doc = "A validator has set their preferences."] ValidatorPrefsSet { stash: ::subxt::utils::AccountId32, prefs: runtime_types::pallet_staking::ValidatorPrefs, }, #[codec(index = 14)] - ///Voters size limit reached. + #[doc = "Voters size limit reached."] SnapshotVotersSizeExceeded { size: ::core::primitive::u32 }, #[codec(index = 15)] - ///Targets size limit reached. + #[doc = "Targets size limit reached."] SnapshotTargetsSizeExceeded { size: ::core::primitive::u32 }, #[codec(index = 16)] - ///A new force era mode was set. + #[doc = "A new force era mode was set."] ForceEra { mode: runtime_types::pallet_staking::Forcing }, } } @@ -36329,16 +33509,13 @@ pub mod api { pub mod slashing { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SlashingSpans { @@ -36348,16 +33525,13 @@ pub mod api { pub prior: ::std::vec::Vec<::core::primitive::u32>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SpanRecord<_0> { @@ -36366,16 +33540,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ActiveEraInfo { @@ -36383,16 +33554,13 @@ pub mod api { pub start: ::core::option::Option<::core::primitive::u64>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EraRewardPoints<_0> { @@ -36400,16 +33568,13 @@ pub mod api { pub individual: ::subxt::utils::KeyedVec<_0, ::core::primitive::u32>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Exposure<_0, _1> { @@ -36421,16 +33586,13 @@ pub mod api { ::std::vec::Vec>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Forcing { @@ -36444,16 +33606,13 @@ pub mod api { ForceAlways, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IndividualExposure<_0, _1> { @@ -36462,16 +33621,13 @@ pub mod api { pub value: _1, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominations { @@ -36482,16 +33638,13 @@ pub mod api { pub suppressed: ::core::primitive::bool, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RewardDestination<_0> { @@ -36507,16 +33660,13 @@ pub mod api { None, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct StakingLedger { @@ -36533,16 +33683,13 @@ pub mod api { >, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnappliedSlash<_0, _1> { @@ -36553,16 +33700,13 @@ pub mod api { pub payout: _1, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct UnlockChunk<_0> { @@ -36572,16 +33716,13 @@ pub mod api { pub era: ::core::primitive::u32, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidatorPrefs { @@ -36595,33 +33736,30 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::sudo`]. + #[doc = "See [`Pallet::sudo`]."] sudo { call: ::std::boxed::Box, }, #[codec(index = 1)] - ///See [`Pallet::sudo_unchecked_weight`]. + #[doc = "See [`Pallet::sudo_unchecked_weight`]."] sudo_unchecked_weight { call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] - ///See [`Pallet::set_key`]. + #[doc = "See [`Pallet::set_key`]."] set_key { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -36629,7 +33767,7 @@ pub mod api { >, }, #[codec(index = 3)] - ///See [`Pallet::sudo_as`]. + #[doc = "See [`Pallet::sudo_as`]."] sudo_as { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -36639,51 +33777,44 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Error for the Sudo pallet + #[doc = "Error for the Sudo pallet"] pub enum Error { #[codec(index = 0)] - ///Sender must be the Sudo account + #[doc = "Sender must be the Sudo account"] RequireSudo, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A sudo just took place. \[result\] + #[doc = "A sudo just took place. \\[result\\]"] Sudid { sudo_result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, }, #[codec(index = 1)] - ///The \[sudoer\] just switched identity; the old key is supplied if one - /// existed. + #[doc = "The \\[sudoer\\] just switched identity; the old key is supplied if one existed."] KeyChanged { old_sudoer: ::core::option::Option<::subxt::utils::AccountId32> }, #[codec(index = 2)] - ///A sudo just took place. \[result\] + #[doc = "A sudo just took place. \\[result\\]"] SudoAsDone { sudo_result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, @@ -36696,22 +33827,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::set`]. + #[doc = "See [`Pallet::set`]."] set { #[codec(compact)] now: ::core::primitive::u64, @@ -36724,78 +33852,69 @@ pub mod api { pub mod module { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::pause_transaction`]. + #[doc = "See [`Pallet::pause_transaction`]."] pause_transaction { pallet_name: ::std::vec::Vec<::core::primitive::u8>, function_name: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - ///See [`Pallet::unpause_transaction`]. + #[doc = "See [`Pallet::unpause_transaction`]."] unpause_transaction { pallet_name: ::std::vec::Vec<::core::primitive::u8>, function_name: ::std::vec::Vec<::core::primitive::u8>, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///can not pause + #[doc = "can not pause"] CannotPause, #[codec(index = 1)] - ///invalid character encoding + #[doc = "invalid character encoding"] InvalidCharacter, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///Paused transaction + #[doc = "Paused transaction"] TransactionPaused { pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - ///Unpaused transaction + #[doc = "Unpaused transaction"] TransactionUnpaused { pallet_name_bytes: ::std::vec::Vec<::core::primitive::u8>, function_name_bytes: ::std::vec::Vec<::core::primitive::u8>, @@ -36808,23 +33927,20 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///A transaction fee `actual_fee`, of which `tip` was added to the minimum - /// inclusion fee, has been paid by `who`. + #[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::utils::AccountId32, actual_fee: ::core::primitive::u128, @@ -36835,16 +33951,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FeeDetails<_0> { @@ -36854,16 +33967,13 @@ pub mod api { pub tip: _0, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InclusionFee<_0> { @@ -36872,16 +33982,13 @@ pub mod api { pub adjusted_weight_fee: _0, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RuntimeDispatchInfo<_0, _1> { @@ -36891,30 +33998,24 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ChargeTransactionPayment(#[codec(compact)] pub ::core::primitive::u128); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Releases { @@ -36929,22 +34030,19 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::propose_spend`]. + #[doc = "See [`Pallet::propose_spend`]."] propose_spend { #[codec(compact)] value: ::core::primitive::u128, @@ -36954,19 +34052,19 @@ pub mod api { >, }, #[codec(index = 1)] - ///See [`Pallet::reject_proposal`]. + #[doc = "See [`Pallet::reject_proposal`]."] reject_proposal { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 2)] - ///See [`Pallet::approve_proposal`]. + #[doc = "See [`Pallet::approve_proposal`]."] approve_proposal { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 3)] - ///See [`Pallet::spend`]. + #[doc = "See [`Pallet::spend`]."] spend { #[codec(compact)] amount: ::core::primitive::u128, @@ -36976,96 +34074,90 @@ pub mod api { >, }, #[codec(index = 4)] - ///See [`Pallet::remove_approval`]. + #[doc = "See [`Pallet::remove_approval`]."] remove_approval { #[codec(compact)] proposal_id: ::core::primitive::u32, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Error for the treasury pallet. + #[doc = "Error for the treasury pallet."] pub enum Error { #[codec(index = 0)] - ///Proposer's balance is too low. + #[doc = "Proposer's balance is too low."] InsufficientProposersBalance, #[codec(index = 1)] - ///No proposal or bounty at that index. + #[doc = "No proposal or bounty at that index."] InvalidIndex, #[codec(index = 2)] - ///Too many approvals in the queue. + #[doc = "Too many approvals in the queue."] TooManyApprovals, #[codec(index = 3)] - ///The spend origin is valid but the amount it is allowed to spend is lower - /// than the amount to be spent. + #[doc = "The spend origin is valid but the amount it is allowed to spend is lower than the"] + #[doc = "amount to be spent."] InsufficientPermission, #[codec(index = 4)] - ///Proposal has not been approved. + #[doc = "Proposal has not been approved."] ProposalNotApproved, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///New proposal. + #[doc = "New proposal."] Proposed { proposal_index: ::core::primitive::u32 }, #[codec(index = 1)] - ///We have ended a spend period and will now allocate funds. + #[doc = "We have ended a spend period and will now allocate funds."] Spending { budget_remaining: ::core::primitive::u128 }, #[codec(index = 2)] - ///Some funds have been allocated. + #[doc = "Some funds have been allocated."] Awarded { proposal_index: ::core::primitive::u32, award: ::core::primitive::u128, account: ::subxt::utils::AccountId32, }, #[codec(index = 3)] - ///A proposal was rejected; funds were slashed. + #[doc = "A proposal was rejected; funds were slashed."] Rejected { proposal_index: ::core::primitive::u32, slashed: ::core::primitive::u128, }, #[codec(index = 4)] - ///Some of our funds have been burnt. + #[doc = "Some of our funds have been burnt."] Burnt { burnt_funds: ::core::primitive::u128 }, #[codec(index = 5)] - ///Spending has finished; this is the amount that rolls over until next spend. + #[doc = "Spending has finished; this is the amount that rolls over until next spend."] Rollover { rollover_balance: ::core::primitive::u128 }, #[codec(index = 6)] - ///Some funds have been deposited. + #[doc = "Some funds have been deposited."] Deposit { value: ::core::primitive::u128 }, #[codec(index = 7)] - ///A new spend proposal has been approved. + #[doc = "A new spend proposal has been approved."] SpendApproved { proposal_index: ::core::primitive::u32, amount: ::core::primitive::u128, beneficiary: ::subxt::utils::AccountId32, }, #[codec(index = 8)] - ///The inactive funds of the pallet have been updated. + #[doc = "The inactive funds of the pallet have been updated."] UpdatedInactive { reactivated: ::core::primitive::u128, deactivated: ::core::primitive::u128, @@ -37073,16 +34165,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Proposal<_0, _1> { @@ -37097,110 +34186,101 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::batch`]. + #[doc = "See [`Pallet::batch`]."] batch { calls: ::std::vec::Vec, }, #[codec(index = 1)] - ///See [`Pallet::as_derivative`]. + #[doc = "See [`Pallet::as_derivative`]."] as_derivative { index: ::core::primitive::u16, call: ::std::boxed::Box, }, #[codec(index = 2)] - ///See [`Pallet::batch_all`]. + #[doc = "See [`Pallet::batch_all`]."] batch_all { calls: ::std::vec::Vec, }, #[codec(index = 3)] - ///See [`Pallet::dispatch_as`]. + #[doc = "See [`Pallet::dispatch_as`]."] dispatch_as { as_origin: ::std::boxed::Box, call: ::std::boxed::Box, }, #[codec(index = 4)] - ///See [`Pallet::force_batch`]. + #[doc = "See [`Pallet::force_batch`]."] force_batch { calls: ::std::vec::Vec, }, #[codec(index = 5)] - ///See [`Pallet::with_weight`]. + #[doc = "See [`Pallet::with_weight`]."] with_weight { call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Too many calls batched. + #[doc = "Too many calls batched."] TooManyCalls, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///Batch of dispatches did not complete fully. Index of first failing dispatch - /// given, as well as the error. + #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] + #[doc = "well as the error."] BatchInterrupted { index: ::core::primitive::u32, error: runtime_types::sp_runtime::DispatchError, }, #[codec(index = 1)] - ///Batch of dispatches completed fully with no error. + #[doc = "Batch of dispatches completed fully with no error."] BatchCompleted, #[codec(index = 2)] - ///Batch of dispatches completed but has errors. + #[doc = "Batch of dispatches completed but has errors."] BatchCompletedWithErrors, #[codec(index = 3)] - ///A single item within a Batch of dispatches has completed with no error. + #[doc = "A single item within a Batch of dispatches has completed with no error."] ItemCompleted, #[codec(index = 4)] - ///A single item within a Batch of dispatches has completed with error. + #[doc = "A single item within a Batch of dispatches has completed with error."] ItemFailed { error: runtime_types::sp_runtime::DispatchError }, #[codec(index = 5)] - ///A call was dispatched. + #[doc = "A call was dispatched."] DispatchedAs { result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, @@ -37213,25 +34293,22 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::vest`]. + #[doc = "See [`Pallet::vest`]."] vest, #[codec(index = 1)] - ///See [`Pallet::vest_other`]. + #[doc = "See [`Pallet::vest_other`]."] vest_other { target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -37239,7 +34316,7 @@ pub mod api { >, }, #[codec(index = 2)] - ///See [`Pallet::vested_transfer`]. + #[doc = "See [`Pallet::vested_transfer`]."] vested_transfer { target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -37251,7 +34328,7 @@ pub mod api { >, }, #[codec(index = 3)] - ///See [`Pallet::force_vested_transfer`]. + #[doc = "See [`Pallet::force_vested_transfer`]."] force_vested_transfer { source: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -37267,86 +34344,75 @@ pub mod api { >, }, #[codec(index = 4)] - ///See [`Pallet::merge_schedules`]. + #[doc = "See [`Pallet::merge_schedules`]."] merge_schedules { schedule1_index: ::core::primitive::u32, schedule2_index: ::core::primitive::u32, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Error for the vesting pallet. + #[doc = "Error for the vesting pallet."] pub enum Error { #[codec(index = 0)] - ///The account given is not vesting. + #[doc = "The account given is not vesting."] NotVesting, #[codec(index = 1)] - ///The account already has `MaxVestingSchedules` count of schedules and thus - ///cannot add another one. Consider merging existing schedules in order to add - /// another. + #[doc = "The account already has `MaxVestingSchedules` count of schedules and thus"] + #[doc = "cannot add another one. Consider merging existing schedules in order to add another."] AtMaxVestingSchedules, #[codec(index = 2)] - ///Amount being transferred is too low to create a vesting schedule. + #[doc = "Amount being transferred is too low to create a vesting schedule."] AmountLow, #[codec(index = 3)] - ///An index was out of bounds of the vesting schedules. + #[doc = "An index was out of bounds of the vesting schedules."] ScheduleIndexOutOfBounds, #[codec(index = 4)] - ///Failed to create a new schedule because some parameter was invalid. + #[doc = "Failed to create a new schedule because some parameter was invalid."] InvalidScheduleParams, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///The amount vested has been updated. This could indicate a change in funds - /// available. The balance given is the amount which is left unvested (and thus - /// locked). + #[doc = "The amount vested has been updated. This could indicate a change in funds available."] + #[doc = "The balance given is the amount which is left unvested (and thus locked)."] VestingUpdated { account: ::subxt::utils::AccountId32, unvested: ::core::primitive::u128, }, #[codec(index = 1)] - ///An \[account\] has become fully vested. + #[doc = "An \\[account\\] has become fully vested."] VestingCompleted { account: ::subxt::utils::AccountId32 }, } } pub mod vesting_info { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VestingInfo<_0, _1> { @@ -37356,16 +34422,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Releases { @@ -37380,70 +34443,61 @@ pub mod api { pub mod pallet { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///Contains a variant per dispatchable extrinsic that this pallet has. + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - ///See [`Pallet::set_fee`]. + #[doc = "See [`Pallet::set_fee`]."] set_fee { fee_info: runtime_types::pallet_zksaas::types::FeeInfo<::core::primitive::u128>, }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Error` enum of this pallet. + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - ///Unexpected job type + #[doc = "Unexpected job type"] InvalidJobType, #[codec(index = 1)] - ///Invalid proof + #[doc = "Invalid proof"] InvalidProof, #[codec(index = 2)] - ///Malformed Proof - ///if the proof bytes is not correct. + #[doc = "Malformed Proof"] + #[doc = "if the proof bytes is not correct."] MalformedProof, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - ///The `Event` enum of this pallet + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] - ///Fee has been updated to the new value + #[doc = "Fee has been updated to the new value"] FeeUpdated( runtime_types::pallet_zksaas::types::FeeInfo<::core::primitive::u128>, ), @@ -37452,16 +34506,13 @@ pub mod api { pub mod types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FeeInfo<_0> { @@ -37475,16 +34526,13 @@ pub mod api { pub mod primitive_types { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct U256(pub [::core::primitive::u64; 4usize]); @@ -37492,16 +34540,13 @@ pub mod api { pub mod rpc_primitives_txpool { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct TxPoolResponse { @@ -37514,17 +34559,14 @@ pub mod api { pub mod fixed_point { use super::runtime_types; #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct FixedU128(pub ::core::primitive::u128); @@ -37532,77 +34574,62 @@ pub mod api { pub mod per_things { use super::runtime_types; #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PerU16(pub ::core::primitive::u16); #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Perbill(pub ::core::primitive::u32); #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Percent(pub ::core::primitive::u8); #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Permill(pub ::core::primitive::u32); } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ArithmeticError { @@ -37619,16 +34646,13 @@ pub mod api { pub mod app { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::sr25519::Public); @@ -37636,16 +34660,13 @@ pub mod api { pub mod digests { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum NextConfigDescriptor { @@ -37656,16 +34677,13 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum PreDigest { @@ -37679,16 +34697,13 @@ pub mod api { SecondaryVRF(runtime_types::sp_consensus_babe::digests::SecondaryVRFPreDigest), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PrimaryPreDigest { @@ -37697,16 +34712,13 @@ pub mod api { pub vrf_signature: runtime_types::sp_core::sr25519::vrf::VrfSignature, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SecondaryPlainPreDigest { @@ -37714,16 +34726,13 @@ pub mod api { pub slot: runtime_types::sp_consensus_slots::Slot, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SecondaryVRFPreDigest { @@ -37733,16 +34742,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum AllowedSlots { @@ -37754,16 +34760,13 @@ pub mod api { PrimaryAndSecondaryVRFSlots, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BabeConfiguration { @@ -37778,16 +34781,13 @@ pub mod api { pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BabeEpochConfiguration { @@ -37795,16 +34795,13 @@ pub mod api { pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Epoch { @@ -37819,16 +34816,13 @@ pub mod api { pub config: runtime_types::sp_consensus_babe::BabeEpochConfiguration, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OpaqueKeyOwnershipProof(pub ::std::vec::Vec<::core::primitive::u8>); @@ -37838,45 +34832,36 @@ pub mod api { pub mod app { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::ed25519::Public); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Equivocation<_0, _1> { @@ -37898,16 +34883,13 @@ pub mod api { ), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EquivocationProof<_0, _1> { @@ -37915,16 +34897,13 @@ pub mod api { pub equivocation: runtime_types::sp_consensus_grandpa::Equivocation<_0, _1>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OpaqueKeyOwnershipProof(pub ::std::vec::Vec<::core::primitive::u8>); @@ -37932,16 +34911,13 @@ pub mod api { pub mod sp_consensus_slots { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct EquivocationProof<_0, _1> { @@ -37951,17 +34927,14 @@ pub mod api { pub second_header: _0, } #[derive( - ::subxt::ext::codec::CompactAs, - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Slot(pub ::core::primitive::u64); @@ -37971,16 +34944,13 @@ pub mod api { pub mod crypto { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct KeyTypeId(pub [::core::primitive::u8; 4usize]); @@ -37988,30 +34958,24 @@ pub mod api { pub mod ecdsa { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub [::core::primitive::u8; 33usize]); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 65usize]); @@ -38019,30 +34983,24 @@ pub mod api { pub mod ed25519 { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 64usize]); @@ -38052,16 +35010,13 @@ pub mod api { pub mod vrf { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct VrfSignature { @@ -38070,59 +35025,47 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub [::core::primitive::u8; 32usize]); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 64usize]); } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OpaqueMetadata(pub ::std::vec::Vec<::core::primitive::u8>); #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Void {} @@ -38130,16 +35073,13 @@ pub mod api { pub mod sp_inherents { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CheckInherentsResult { @@ -38148,16 +35088,13 @@ pub mod api { pub errors: runtime_types::sp_inherents::InherentData, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct InherentData { @@ -38170,16 +35107,13 @@ pub mod api { pub mod sp_npos_elections { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ElectionScore { @@ -38188,16 +35122,13 @@ pub mod api { pub sum_stake_squared: ::core::primitive::u128, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Support<_0> { @@ -38212,16 +35143,13 @@ pub mod api { pub mod block { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Block<_0, _1> { @@ -38232,16 +35160,13 @@ pub mod api { pub mod digest { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Digest { @@ -38249,16 +35174,13 @@ pub mod api { ::std::vec::Vec, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DigestItem { @@ -38286,16 +35208,13 @@ pub mod api { pub mod era { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Era { @@ -38816,16 +35735,13 @@ pub mod api { pub mod header { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Header<_0> { @@ -38841,16 +35757,13 @@ pub mod api { pub mod transaction_validity { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum InvalidTransaction { @@ -38878,16 +35791,13 @@ pub mod api { BadSigner, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TransactionSource { @@ -38899,16 +35809,13 @@ pub mod api { External, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TransactionValidityError { @@ -38918,16 +35825,13 @@ pub mod api { Unknown(runtime_types::sp_runtime::transaction_validity::UnknownTransaction), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum UnknownTransaction { @@ -38939,16 +35843,13 @@ pub mod api { Custom(::core::primitive::u8), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ValidTransaction { @@ -38960,16 +35861,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DispatchError { @@ -39003,16 +35901,13 @@ pub mod api { RootNotAllowed, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ModuleError { @@ -39020,16 +35915,13 @@ pub mod api { pub error: [::core::primitive::u8; 4usize], } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MultiSignature { @@ -39041,16 +35933,13 @@ pub mod api { Ecdsa(runtime_types::sp_core::ecdsa::Signature), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TokenError { @@ -39076,16 +35965,13 @@ pub mod api { Blocked, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TransactionalError { @@ -39098,16 +35984,13 @@ pub mod api { pub mod sp_session { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MembershipProof { @@ -39121,16 +36004,13 @@ pub mod api { pub mod offence { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct OffenceDetails<_0, _1> { @@ -39142,16 +36022,13 @@ pub mod api { pub mod sp_version { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RuntimeVersion { @@ -39171,16 +36048,13 @@ pub mod api { pub mod weight_v2 { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Weight { @@ -39191,16 +36065,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RuntimeDbWeight { @@ -39213,16 +36084,13 @@ pub mod api { pub mod crypto { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Public(pub runtime_types::sp_core::ecdsa::Public); @@ -39235,16 +36103,13 @@ pub mod api { pub mod tss { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DKGTSSKeyRefreshResult { @@ -39252,16 +36117,13 @@ pub mod api { runtime_types::tangle_primitives::jobs::tss::DigitalSignatureScheme, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DKGTSSKeyRotationResult<_0, _1> { @@ -39282,16 +36144,13 @@ pub mod api { pub __subxt_unused_type_params: ::core::marker::PhantomData<(_0, _1)>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DKGTSSKeySubmissionResult<_0, _1, _2> { @@ -39316,96 +36175,57 @@ pub mod api { pub __subxt_unused_type_params: ::core::marker::PhantomData<(_1, _0, _2)>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DKGTSSPhaseFourJobType { - pub phase_one_id: ::core::primitive::u64, - pub new_phase_one_id: ::core::primitive::u64, - pub role_type: runtime_types::tangle_primitives::roles::tss::ThresholdSignatureRoleType, - } + pub struct DKGTSSPhaseFourJobType { pub phase_one_id : :: core :: primitive :: u64 , pub new_phase_one_id : :: core :: primitive :: u64 , pub role_type : runtime_types :: tangle_primitives :: roles :: tss :: ThresholdSignatureRoleType , } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DKGTSSPhaseOneJobType<_0, _1> { - pub participants: runtime_types::bounded_collections::bounded_vec::BoundedVec< - _0, - >, - pub threshold: ::core::primitive::u8, - pub permitted_caller: ::core::option::Option<_0>, - pub role_type: runtime_types::tangle_primitives::roles::tss::ThresholdSignatureRoleType, - #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_1>, - } + pub struct DKGTSSPhaseOneJobType < _0 , _1 > { pub participants : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < _0 > , pub threshold : :: core :: primitive :: u8 , pub permitted_caller : :: core :: option :: Option < _0 > , pub role_type : runtime_types :: tangle_primitives :: roles :: tss :: ThresholdSignatureRoleType , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _1 > } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DKGTSSPhaseThreeJobType { - pub phase_one_id: ::core::primitive::u64, - pub role_type: runtime_types::tangle_primitives::roles::tss::ThresholdSignatureRoleType, - } + pub struct DKGTSSPhaseThreeJobType { pub phase_one_id : :: core :: primitive :: u64 , pub role_type : runtime_types :: tangle_primitives :: roles :: tss :: ThresholdSignatureRoleType , } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct DKGTSSPhaseTwoJobType<_0> { - pub phase_one_id: ::core::primitive::u64, - pub submission: runtime_types::bounded_collections::bounded_vec::BoundedVec< - ::core::primitive::u8, - >, - pub role_type: runtime_types::tangle_primitives::roles::tss::ThresholdSignatureRoleType, - #[codec(skip)] - pub __subxt_unused_type_params: ::core::marker::PhantomData<_0>, - } + pub struct DKGTSSPhaseTwoJobType < _0 > { pub phase_one_id : :: core :: primitive :: u64 , pub submission : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub role_type : runtime_types :: tangle_primitives :: roles :: tss :: ThresholdSignatureRoleType , # [codec (skip)] pub __subxt_unused_type_params : :: core :: marker :: PhantomData < _0 > } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DKGTSSSignatureResult<_0, _1, _2> { @@ -39425,16 +36245,13 @@ pub mod api { pub __subxt_unused_type_params: ::core::marker::PhantomData<(_1, _2, _0)>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DigitalSignatureScheme { @@ -39463,16 +36280,13 @@ pub mod api { pub mod zksaas { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ArkworksProofResult<_0> { @@ -39483,16 +36297,13 @@ pub mod api { pub __subxt_unused_type_params: ::core::marker::PhantomData<_0>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CircomProofResult<_0> { @@ -39503,16 +36314,13 @@ pub mod api { pub __subxt_unused_type_params: ::core::marker::PhantomData<_0>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Groth16ProveRequest<_0> { @@ -39531,16 +36339,13 @@ pub mod api { >, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Groth16System<_0> { @@ -39556,16 +36361,13 @@ pub mod api { pub wasm: runtime_types::tangle_primitives::jobs::zksaas::HyperData<_0>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum HyperData<_0> { @@ -39590,16 +36392,13 @@ pub mod api { __Ignore(::core::marker::PhantomData<_0>), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QAPShare<_0> { @@ -39608,16 +36407,13 @@ pub mod api { pub c: runtime_types::tangle_primitives::jobs::zksaas::HyperData<_0>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ZkSaaSCircuitResult<_0> { @@ -39630,16 +36426,13 @@ pub mod api { pub __subxt_unused_type_params: ::core::marker::PhantomData<_0>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ZkSaaSPhaseOneJobType<_0, _1, _2> { @@ -39654,16 +36447,13 @@ pub mod api { pub __subxt_unused_type_params: ::core::marker::PhantomData<_1>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ZkSaaSPhaseTwoJobType<_0> { @@ -39676,16 +36466,13 @@ pub mod api { runtime_types::tangle_primitives::roles::zksaas::ZeroKnowledgeRoleType, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ZkSaaSPhaseTwoRequest<_0> { @@ -39695,16 +36482,13 @@ pub mod api { ), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ZkSaaSProofResult<_0> { @@ -39718,16 +36502,13 @@ pub mod api { ), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ZkSaaSSystem<_0> { @@ -39736,16 +36517,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct JobInfo<_0, _1, _2, _3, _4> { @@ -39756,16 +36534,13 @@ pub mod api { pub fee: _2, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum JobResult<_0, _1, _2, _3, _4> { @@ -39806,16 +36581,13 @@ pub mod api { ), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct JobSubmission<_0, _1, _2, _3> { @@ -39824,16 +36596,13 @@ pub mod api { pub job_type: runtime_types::tangle_primitives::jobs::JobType<_0, _2, _3>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum JobType<_0, _1, _2> { @@ -39867,100 +36636,79 @@ pub mod api { ), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MaxDataLen; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MaxKeyLen; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MaxParticipants; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MaxProofLen; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MaxSignatureLen; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MaxSubmissionLen; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PhaseResult<_0, _1, _2, _3, _4, _5, _6, _7> { @@ -39972,16 +36720,13 @@ pub mod api { pub job_type: runtime_types::tangle_primitives::jobs::JobType<_0, _2, _6>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RpcResponseJobsData<_0, _1, _2, _3> { @@ -39991,16 +36736,13 @@ pub mod api { pub ttl: _1, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ValidatorOffenceType { @@ -40019,55 +36761,25 @@ pub mod api { pub mod dfns_cggmp21 { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DfnsCGGMP21Justification { - #[codec(index = 0)] - Keygen { - participants: ::std::vec::Vec< - [::core::primitive::u8; 33usize], - >, - t: ::core::primitive::u16, - reason: runtime_types::tangle_primitives::misbehavior::dfns_cggmp21::KeygenAborted, - }, - #[codec(index = 1)] - KeyRefresh { - participants: ::std::vec::Vec< - [::core::primitive::u8; 33usize], - >, - t: ::core::primitive::u16, - reason: runtime_types::tangle_primitives::misbehavior::dfns_cggmp21::KeyRefreshAborted, - }, - #[codec(index = 2)] - Signing { - participants: ::std::vec::Vec< - [::core::primitive::u8; 33usize], - >, - t: ::core::primitive::u16, - reason: runtime_types::tangle_primitives::misbehavior::dfns_cggmp21::SigningAborted, - }, - } + # [codec (index = 0)] Keygen { participants : :: std :: vec :: Vec < [:: core :: primitive :: u8 ; 33usize] > , t : :: core :: primitive :: u16 , reason : runtime_types :: tangle_primitives :: misbehavior :: dfns_cggmp21 :: KeygenAborted , } , # [codec (index = 1)] KeyRefresh { participants : :: std :: vec :: Vec < [:: core :: primitive :: u8 ; 33usize] > , t : :: core :: primitive :: u16 , reason : runtime_types :: tangle_primitives :: misbehavior :: dfns_cggmp21 :: KeyRefreshAborted , } , # [codec (index = 2)] Signing { participants : :: std :: vec :: Vec < [:: core :: primitive :: u8 ; 33usize] > , t : :: core :: primitive :: u16 , reason : runtime_types :: tangle_primitives :: misbehavior :: dfns_cggmp21 :: SigningAborted , } , } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum InvalidProofReason { @@ -40093,60 +36805,25 @@ pub mod api { IncorrectFourthRoot(::core::primitive::u8), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum KeyRefreshAborted { - #[codec(index = 0)] - InvalidDecommitment { - round1: runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, - round2: runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, - }, - #[codec(index = 1)] - InvalidSchnorrProof, - #[codec(index = 2)] - InvalidModProof { - reason: runtime_types::tangle_primitives::misbehavior::dfns_cggmp21::InvalidProofReason, - round2: ::std::vec::Vec< - runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, - >, - round3: runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, - }, - #[codec(index = 3)] - InvalidFacProof, - #[codec(index = 4)] - InvalidRingPedersenParameters { - round2: runtime_types::tangle_primitives::misbehavior::SignedRoundMessage, - }, - #[codec(index = 5)] - InvalidX, - #[codec(index = 6)] - InvalidXShare, - #[codec(index = 7)] - InvalidDataSize, - #[codec(index = 8)] - PaillierDec, - } + # [codec (index = 0)] InvalidDecommitment { round1 : runtime_types :: tangle_primitives :: misbehavior :: SignedRoundMessage , round2 : runtime_types :: tangle_primitives :: misbehavior :: SignedRoundMessage , } , # [codec (index = 1)] InvalidSchnorrProof , # [codec (index = 2)] InvalidModProof { reason : runtime_types :: tangle_primitives :: misbehavior :: dfns_cggmp21 :: InvalidProofReason , round2 : :: std :: vec :: Vec < runtime_types :: tangle_primitives :: misbehavior :: SignedRoundMessage > , round3 : runtime_types :: tangle_primitives :: misbehavior :: SignedRoundMessage , } , # [codec (index = 3)] InvalidFacProof , # [codec (index = 4)] InvalidRingPedersenParameters { round2 : runtime_types :: tangle_primitives :: misbehavior :: SignedRoundMessage , } , # [codec (index = 5)] InvalidX , # [codec (index = 6)] InvalidXShare , # [codec (index = 7)] InvalidDataSize , # [codec (index = 8)] PaillierDec , } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum KeygenAborted { @@ -40179,16 +36856,13 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum SigningAborted { @@ -40205,16 +36879,13 @@ pub mod api { pub mod zcash_frost { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum KeygenAborted { @@ -40232,16 +36903,13 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum SigningAborted { @@ -40256,71 +36924,38 @@ pub mod api { }, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ZCashFrostJustification { - #[codec(index = 0)] - Keygen { - participants: ::std::vec::Vec< - [::core::primitive::u8; 33usize], - >, - t: ::core::primitive::u16, - reason: runtime_types::tangle_primitives::misbehavior::zcash_frost::KeygenAborted, - }, - #[codec(index = 1)] - Signing { - participants: ::std::vec::Vec< - [::core::primitive::u8; 33usize], - >, - t: ::core::primitive::u16, - reason: runtime_types::tangle_primitives::misbehavior::zcash_frost::SigningAborted, - }, - } - } - #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (index = 0)] Keygen { participants : :: std :: vec :: Vec < [:: core :: primitive :: u8 ; 33usize] > , t : :: core :: primitive :: u16 , reason : runtime_types :: tangle_primitives :: misbehavior :: zcash_frost :: KeygenAborted , } , # [codec (index = 1)] Signing { participants : :: std :: vec :: Vec < [:: core :: primitive :: u8 ; 33usize] > , t : :: core :: primitive :: u16 , reason : runtime_types :: tangle_primitives :: misbehavior :: zcash_frost :: SigningAborted , } , } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Debug, + )] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum DKGTSSJustification { - #[codec(index = 0)] - DfnsCGGMP21( - runtime_types::tangle_primitives::misbehavior::dfns_cggmp21::DfnsCGGMP21Justification, - ), - #[codec(index = 1)] - ZCashFrost( - runtime_types::tangle_primitives::misbehavior::zcash_frost::ZCashFrostJustification, - ), - } + # [codec (index = 0)] DfnsCGGMP21 (runtime_types :: tangle_primitives :: misbehavior :: dfns_cggmp21 :: DfnsCGGMP21Justification ,) , # [codec (index = 1)] ZCashFrost (runtime_types :: tangle_primitives :: misbehavior :: zcash_frost :: ZCashFrostJustification ,) , } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum MisbehaviorJustification { @@ -40330,16 +36965,13 @@ pub mod api { ZkSaaS(runtime_types::tangle_primitives::misbehavior::ZkSaaSJustification), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct MisbehaviorSubmission { @@ -40350,16 +36982,13 @@ pub mod api { runtime_types::tangle_primitives::misbehavior::MisbehaviorJustification, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SignedRoundMessage { @@ -40368,16 +36997,13 @@ pub mod api { pub signature: ::std::vec::Vec<::core::primitive::u8>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ZkSaaSJustification {} @@ -40387,16 +37013,13 @@ pub mod api { pub mod tss { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ThresholdSignatureRoleType { @@ -40427,16 +37050,13 @@ pub mod api { pub mod zksaas { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ZeroKnowledgeRoleType { @@ -40447,16 +37067,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RoleType { @@ -40474,16 +37091,13 @@ pub mod api { pub mod opaque { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionKeys { @@ -40494,16 +37108,13 @@ pub mod api { } } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NposSolution16 { @@ -40663,16 +37274,13 @@ pub mod api { )>, } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum OriginCaller { @@ -40688,30 +37296,24 @@ pub mod api { Void(runtime_types::sp_core::Void), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Runtime; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RuntimeCall { @@ -40793,16 +37395,13 @@ pub mod api { ZkSaaS(runtime_types::pallet_zksaas::pallet::Call), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RuntimeError { @@ -40878,16 +37477,13 @@ pub mod api { ZkSaaS(runtime_types::pallet_zksaas::pallet::Error), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RuntimeEvent { @@ -40965,16 +37561,13 @@ pub mod api { ZkSaaS(runtime_types::pallet_zksaas::pallet::Event), } #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum RuntimeHoldReason {} @@ -40984,16 +37577,13 @@ pub mod api { pub mod network_config { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct NetworkConfig { @@ -41010,16 +37600,13 @@ pub mod api { pub mod header { use super::runtime_types; #[derive( - ::subxt::ext::codec::Decode, - ::subxt::ext::codec::Encode, - ::subxt::ext::scale_decode::DecodeAsType, - ::subxt::ext::scale_encode::EncodeAsType, - Clone, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, Debug, - Eq, - PartialEq, )] - #[codec(crate = ::subxt::ext::codec)] + # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TypedChainId {