[INFO] fetching crate bittensor-rs 0.1.1...
[INFO] documenting bittensor-rs-0.1.1 against 1.93.0 for beta-1.94-rustdoc-1
[INFO] extracting crate bittensor-rs 0.1.1 into /workspace/builds/worker-4-tc1/source
[INFO] started tweaking crates.io crate bittensor-rs 0.1.1
[INFO] removed 0 missing examples
[INFO] removed 0 missing tests
[INFO] finished tweaking crates.io crate bittensor-rs 0.1.1
[INFO] tweaked toml for crates.io crate bittensor-rs 0.1.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate bittensor-rs 0.1.1 on toolchain 1.93.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.93.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate bittensor-rs 0.1.1 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.93.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded jsonrpsee-core v0.24.10
[INFO] [stderr]   Downloaded wiremock v0.6.4
[INFO] [stderr]   Downloaded jsonrpsee-types v0.24.10
[INFO] [stderr]   Downloaded jsonrpsee-client-transport v0.24.10
[INFO] [stderr]   Downloaded jsonrpsee-ws-client v0.24.10
[INFO] [stderr]   Downloaded jsonrpsee v0.24.10
[INFO] [stderr]   Downloaded soketto v0.8.0
[INFO] [stderr]   Downloaded scale-typegen v0.11.1
[INFO] [stderr]   Downloaded subxt-macro v0.44.0
[INFO] [stderr]   Downloaded async-signal v0.2.9
[INFO] [stderr]   Downloaded toml v0.8.15
[INFO] [stderr]   Downloaded sp-application-crypto v37.0.0
[INFO] [stderr]   Downloaded schnellru v0.2.3
[INFO] [stderr]   Downloaded sp-trie v36.0.0
[INFO] [stderr]   Downloaded w3f-bls v0.1.4
[INFO] [stderr]   Downloaded bip39 v2.2.2
[INFO] [stderr]   Downloaded toml_edit v0.22.16
[INFO] [stderr]   Downloaded frame-decode v0.9.0
[INFO] [stderr]   Downloaded subxt-rpcs v0.44.0
[INFO] [stderr]   Downloaded sp-state-machine v0.42.0
[INFO] [stderr]   Downloaded subxt-core v0.44.0
[INFO] [stderr]   Downloaded wasmi v0.40.0
[INFO] [stderr]   Downloaded subxt v0.44.0
[INFO] [stderr]   Downloaded impl-serde v0.5.0
[INFO] [stderr]   Downloaded subxt-signer v0.44.0
[INFO] [stderr]   Downloaded smoldot-light v0.17.2
[INFO] [stderr]   Downloaded frame-metadata v23.0.1
[INFO] [stderr]   Downloaded sp-runtime v38.0.1
[INFO] [stderr]   Downloaded sp-io v37.0.0
[INFO] [stderr]   Downloaded subxt-metadata v0.44.0
[INFO] [stderr]   Downloaded jsonrpsee-http-client v0.24.10
[INFO] [stderr]   Downloaded sp-tracing v17.0.1
[INFO] [stderr]   Downloaded docify_macros v0.2.8
[INFO] [stderr]   Downloaded docify v0.2.8
[INFO] [stderr]   Downloaded crypto_secretbox v0.1.1
[INFO] [stderr]   Downloaded yap v0.12.0
[INFO] [stderr]   Downloaded scale-decode-derive v0.16.2
[INFO] [stderr]   Downloaded scale-decode v0.16.2
[INFO] [stderr]   Downloaded scale-bits v0.7.0
[INFO] [stderr]   Downloaded scale-encode-derive v0.10.1
[INFO] [stderr]   Downloaded sp-panic-handler v13.0.0
[INFO] [stderr]   Downloaded sp-arithmetic v26.0.0
[INFO] [stderr]   Downloaded wasmi_collections v0.40.0
[INFO] [stderr]   Downloaded wasmi_core v0.40.0
[INFO] [stderr]   Downloaded subxt-lightclient v0.44.0
[INFO] [stderr]   Downloaded base58 v0.2.0
[INFO] [stderr]   Downloaded sp-weights v31.0.0
[INFO] [stderr]   Downloaded scale-encode v0.10.1
[INFO] [stderr]   Downloaded derive-where v1.2.7
[INFO] [stderr]   Downloaded async-process v2.2.3
[INFO] [stderr]   Downloaded wasmi_ir v0.40.0
[INFO] [stderr]   Downloaded subxt-codegen v0.44.0
[INFO] [stderr]   Downloaded keccak-hash v0.11.0
[INFO] [stderr]   Downloaded scale-value v0.18.1
[INFO] [stderr]   Downloaded impl-codec v0.7.0
[INFO] [stderr]   Downloaded primitive-types v0.13.1
[INFO] [stderr]   Downloaded hyper-util v0.1.6
[INFO] [stderr]   Downloaded rustls-platform-verifier-android v0.1.0
[INFO] [stderr]   Downloaded subxt-utils-fetchmetadata v0.44.0
[INFO] [stderr]   Downloaded smoldot v0.19.4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+1.93.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 2978208c485d1c6232809d303bf3db11c24909f2b0c347b1aba18a58aa7e91c3
[INFO] running `Command { std: "docker" "start" "-a" "2978208c485d1c6232809d303bf3db11c24909f2b0c347b1aba18a58aa7e91c3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2978208c485d1c6232809d303bf3db11c24909f2b0c347b1aba18a58aa7e91c3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2978208c485d1c6232809d303bf3db11c24909f2b0c347b1aba18a58aa7e91c3", kill_on_drop: false }`
[INFO] [stdout] 2978208c485d1c6232809d303bf3db11c24909f2b0c347b1aba18a58aa7e91c3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+1.93.0" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 280478de2ed20575a6ee943b17225e58f6f3d1f1a2bf9c7107610234064f763f
[INFO] running `Command { std: "docker" "start" "-a" "280478de2ed20575a6ee943b17225e58f6f3d1f1a2bf9c7107610234064f763f", kill_on_drop: false }`
[INFO] [stderr]    Compiling zerocopy v0.7.35
[INFO] [stderr]    Compiling allocator-api2 v0.2.18
[INFO] [stderr]    Compiling rustversion v1.0.17
[INFO] [stderr]    Compiling unicode-xid v0.2.4
[INFO] [stderr]    Compiling proc-macro2 v1.0.104
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]     Checking subtle v2.6.1
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling ahash v0.8.11
[INFO] [stderr]     Checking bytes v1.6.1
[INFO] [stderr]    Compiling libc v0.2.178
[INFO] [stderr]     Checking getrandom v0.2.15
[INFO] [stderr]    Compiling memchr v2.7.4
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]    Compiling serde_json v1.0.148
[INFO] [stderr]    Compiling itoa v1.0.11
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]     Checking bitvec v1.0.1
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling ring v0.17.8
[INFO] [stderr]    Compiling pin-project-lite v0.2.14
[INFO] [stderr]    Compiling futures-core v0.3.31
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]    Compiling zmij v1.0.0
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling futures-sink v0.3.31
[INFO] [stderr]    Compiling rustls v0.23.35
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling futures-io v0.3.31
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]     Checking tinyvec v1.8.0
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling futures-task v0.3.31
[INFO] [stderr]    Compiling semver v1.0.23
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling quote v1.0.42
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]    Compiling http v1.1.0
[INFO] [stderr]    Compiling syn v2.0.111
[INFO] [stderr]    Compiling tap v1.0.1
[INFO] [stderr]    Compiling parity-scale-codec v3.7.5
[INFO] [stderr]    Compiling const_format_proc_macros v0.2.34
[INFO] [stderr]    Compiling wyz v0.5.1
[INFO] [stderr]    Compiling radium v0.7.0
[INFO] [stderr]    Compiling mio v1.1.1
[INFO] [stderr]    Compiling socket2 v0.6.1
[INFO] [stderr]     Checking unicode-normalization v0.1.22
[INFO] [stderr]     Checking fixed-hash v0.8.0
[INFO] [stderr]    Compiling regex-automata v0.4.13
[INFO] [stderr]    Compiling indexmap v2.2.6
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling funty v2.0.0
[INFO] [stderr]    Compiling zeroize v1.8.1
[INFO] [stderr]    Compiling rustc_version v0.4.0
[INFO] [stderr]     Checking num_cpus v1.16.0
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]     Checking const_format v0.2.35
[INFO] [stderr]    Compiling rustls-pki-types v1.13.2
[INFO] [stderr]    Compiling untrusted v0.9.0
[INFO] [stderr]    Compiling httparse v1.9.4
[INFO] [stderr]     Checking blake2b_simd v1.0.2
[INFO] [stderr]    Compiling curve25519-dalek v4.1.3
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]     Checking either v1.13.0
[INFO] [stderr]    Compiling bitcoin-internals v0.2.0
[INFO] [stderr]    Compiling prettyplease v0.2.20
[INFO] [stderr]    Compiling libsecp256k1-core v0.3.0
[INFO] [stderr]    Compiling fs-err v2.11.0
[INFO] [stderr]    Compiling ref-cast v1.0.23
[INFO] [stderr]     Checking uint v0.10.0
[INFO] [stderr]     Checking ff v0.13.0
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]     Checking hex-conservative v0.1.2
[INFO] [stderr]    Compiling expander v2.2.1
[INFO] [stderr]    Compiling atomic-waker v1.1.2
[INFO] [stderr]    Compiling ppv-lite86 v0.2.17
[INFO] [stderr]     Checking base64ct v1.6.0
[INFO] [stderr]    Compiling openssl-probe v0.1.6
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling unicode-bidi v0.3.15
[INFO] [stderr]     Checking time v0.3.36
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]     Checking password-hash v0.5.0
[INFO] [stderr]     Checking bitcoin_hashes v0.13.0
[INFO] [stderr]    Compiling rustls-native-certs v0.8.2
[INFO] [stderr]    Compiling http-body-util v0.1.2
[INFO] [stderr]     Checking group v0.13.0
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]     Checking getrandom_or_panic v0.0.3
[INFO] [stderr]    Compiling file-guard v0.2.0
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]    Compiling blake2 v0.10.6
[INFO] [stderr]    Compiling secp256k1-sys v0.9.2
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking sp-std v14.0.0
[INFO] [stderr]    Compiling libsecp256k1-gen-genmult v0.3.0
[INFO] [stderr]    Compiling libsecp256k1-gen-ecmult v0.3.0
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]     Checking hash-db v0.16.0
[INFO] [stderr]    Compiling rustc-hash v2.1.1
[INFO] [stderr]    Compiling tower-layer v0.3.3
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.106
[INFO] [stderr]    Compiling futures-timer v3.0.3
[INFO] [stderr]    Compiling tower-service v0.3.3
[INFO] [stderr]    Compiling libsecp256k1 v0.7.1
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]     Checking uint v0.9.5
[INFO] [stderr]    Compiling url v2.5.2
[INFO] [stderr]     Checking environmental v1.1.4
[INFO] [stderr]    Compiling constant_time_eq v0.3.0
[INFO] [stderr]    Compiling arrayref v0.3.7
[INFO] [stderr]    Compiling twox-hash v1.6.3
[INFO] [stderr]    Compiling sha3 v0.10.8
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling regex v1.12.2
[INFO] [stderr]    Compiling rustls-webpki v0.103.8
[INFO] [stderr]    Compiling soketto v0.8.0
[INFO] [stderr]     Checking num-format v0.4.4
[INFO] [stderr]    Compiling Inflector v0.11.4
[INFO] [stderr]     Checking base64 v0.13.1
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling sp-crypto-hashing v0.1.0
[INFO] [stderr]     Checking itertools v0.11.0
[INFO] [stderr]     Checking hash256-std-hasher v0.15.2
[INFO] [stderr]    Compiling backtrace v0.3.73
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling darling_core v0.20.10
[INFO] [stderr]     Checking gimli v0.29.0
[INFO] [stderr]    Compiling winnow v0.6.13
[INFO] [stderr]     Checking array-bytes v6.2.3
[INFO] [stderr]     Checking bs58 v0.5.1
[INFO] [stderr]     Checking miniz_oxide v0.7.4
[INFO] [stderr]     Checking object v0.36.1
[INFO] [stderr]     Checking hashbrown v0.13.2
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.106
[INFO] [stderr]     Checking tiny-keccak v2.0.2
[INFO] [stderr]     Checking schnellru v0.2.3
[INFO] [stderr]     Checking trie-db v0.29.1
[INFO] [stderr]     Checking trie-root v0.18.0
[INFO] [stderr]     Checking memory-db v0.32.0
[INFO] [stderr]    Compiling wasm-bindgen v0.2.106
[INFO] [stderr]     Checking nohash-hasher v0.2.0
[INFO] [stderr]    Compiling common-path v1.0.0
[INFO] [stderr]     Checking yap v0.12.0
[INFO] [stderr]     Checking base58 v0.2.0
[INFO] [stderr]    Compiling sp-io v37.0.0
[INFO] [stderr]    Compiling secp256k1-sys v0.10.1
[INFO] [stderr]     Checking integer-sqrt v0.1.5
[INFO] [stderr]    Compiling proc-macro-error-attr2 v2.0.0
[INFO] [stderr]    Compiling anyhow v1.0.86
[INFO] [stderr]     Checking simple-mermaid v0.1.1
[INFO] [stderr]     Checking web-time v1.1.0
[INFO] [stderr]     Checking home v0.5.9
[INFO] [stderr]    Compiling proc-macro-error2 v2.0.1
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling zeroize_derive v1.4.2
[INFO] [stderr]    Compiling impl-trait-for-tuples v0.2.3
[INFO] [stderr]    Compiling derive_more-impl v1.0.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.27
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]     Checking der v0.7.9
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]     Checking derive_more v1.0.0
[INFO] [stderr]    Compiling darling_macro v0.20.10
[INFO] [stderr]    Compiling curve25519-dalek-derive v0.1.1
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking digest v0.9.0
[INFO] [stderr]    Compiling pin-project v1.1.5
[INFO] [stderr]     Checking spki v0.7.3
[INFO] [stderr]     Checking tracing v0.1.40
[INFO] [stderr]    Compiling darling v0.20.10
[INFO] [stderr]    Compiling sp-debug-derive v14.0.0
[INFO] [stderr]    Compiling ref-cast-impl v1.0.23
[INFO] [stderr]     Checking pkcs8 v0.10.2
[INFO] [stderr]     Checking signature v2.2.0
[INFO] [stderr]     Checking hmac v0.12.1
[INFO] [stderr]     Checking crypto-bigint v0.5.5
[INFO] [stderr]     Checking crypto-mac v0.8.0
[INFO] [stderr]     Checking merlin v3.0.0
[INFO] [stderr]     Checking ed25519 v2.2.3
[INFO] [stderr]     Checking hmac v0.8.1
[INFO] [stderr]     Checking tracing-subscriber v0.3.18
[INFO] [stderr]     Checking pbkdf2 v0.12.2
[INFO] [stderr]     Checking block-buffer v0.9.0
[INFO] [stderr]     Checking rfc6979 v0.4.0
[INFO] [stderr]     Checking hmac-drbg v0.3.0
[INFO] [stderr]    Compiling scale-decode-derive v0.16.2
[INFO] [stderr]     Checking sha2 v0.9.9
[INFO] [stderr]    Compiling dyn-clonable-impl v0.9.0
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking secrecy v0.8.0
[INFO] [stderr]     Checking secp256k1 v0.28.2
[INFO] [stderr]     Checking addr2line v0.22.0
[INFO] [stderr]     Checking dyn-clonable v0.9.0
[INFO] [stderr]    Compiling derive-syn-parse v0.2.0
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.106
[INFO] [stderr]    Compiling derive-where v1.2.7
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]     Checking secrecy v0.10.3
[INFO] [stderr]     Checking sp-panic-handler v13.0.0
[INFO] [stderr]     Checking ed25519-zebra v4.0.3
[INFO] [stderr]     Checking ed25519-dalek v2.1.1
[INFO] [stderr]     Checking secp256k1 v0.30.0
[INFO] [stderr]     Checking serdect v0.2.0
[INFO] [stderr]     Checking impl-serde v0.5.0
[INFO] [stderr]     Checking impl-serde v0.4.0
[INFO] [stderr]     Checking serde_bytes v0.11.15
[INFO] [stderr]     Checking parity-bip39 v2.0.1
[INFO] [stderr]     Checking sec1 v0.7.3
[INFO] [stderr]    Compiling toml_datetime v0.6.6
[INFO] [stderr]    Compiling jsonrpsee-types v0.24.10
[INFO] [stderr]    Compiling ss58-registry v1.47.0
[INFO] [stderr]    Compiling serde_spanned v0.6.6
[INFO] [stderr]     Checking schnorrkel v0.11.4
[INFO] [stderr]     Checking bip39 v2.2.2
[INFO] [stderr]     Checking chrono v0.4.38
[INFO] [stderr]     Checking elliptic-curve v0.13.8
[INFO] [stderr]    Compiling toml_edit v0.21.1
[INFO] [stderr]    Compiling toml_edit v0.22.16
[INFO] [stderr]     Checking js-sys v0.3.83
[INFO] [stderr]    Compiling rustls-platform-verifier v0.5.3
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking substrate-bip39 v0.6.0
[INFO] [stderr]     Checking ecdsa v0.16.9
[INFO] [stderr]     Checking k256 v0.13.3
[INFO] [stderr]    Compiling tokio-util v0.7.17
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling tokio-rustls v0.26.0
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling h2 v0.4.5
[INFO] [stderr]    Compiling proc-macro-crate v3.1.0
[INFO] [stderr]    Compiling jsonrpsee-core v0.24.10
[INFO] [stderr]    Compiling toml v0.8.15
[INFO] [stderr]    Compiling parity-scale-codec-derive v3.7.5
[INFO] [stderr]    Compiling scale-info-derive v2.11.6
[INFO] [stderr]    Compiling scale-encode-derive v0.10.1
[INFO] [stderr]    Compiling sp-runtime-interface-proc-macro v18.0.0
[INFO] [stderr]    Compiling docify_macros v0.2.8
[INFO] [stderr]     Checking wasm-bindgen-futures v0.4.56
[INFO] [stderr]     Checking docify v0.2.8
[INFO] [stderr]    Compiling jsonrpsee-client-transport v0.24.10
[INFO] [stderr]    Compiling scale-info v2.11.6
[INFO] [stderr]     Checking jsonrpsee-ws-client v0.24.10
[INFO] [stderr]     Checking impl-codec v0.7.0
[INFO] [stderr]     Checking impl-codec v0.6.0
[INFO] [stderr]     Checking sp-storage v21.0.0
[INFO] [stderr]     Checking sp-tracing v17.0.1
[INFO] [stderr]     Checking sp-wasm-interface v21.0.1
[INFO] [stderr]     Checking jsonrpsee v0.24.10
[INFO] [stderr]     Checking sp-externalities v0.29.0
[INFO] [stderr]     Checking scale-type-resolver v0.2.0
[INFO] [stderr]     Checking primitive-types v0.13.1
[INFO] [stderr]     Checking primitive-types v0.12.2
[INFO] [stderr]     Checking bounded-collections v0.2.0
[INFO] [stderr]     Checking frame-metadata v23.0.1
[INFO] [stderr]     Checking sp-arithmetic v26.0.0
[INFO] [stderr]     Checking scale-bits v0.7.0
[INFO] [stderr]    Compiling scale-typegen v0.11.1
[INFO] [stderr]    Compiling scale-encode v0.10.1
[INFO] [stderr]    Compiling scale-decode v0.16.2
[INFO] [stderr]     Checking sp-runtime-interface v28.0.0
[INFO] [stderr]     Checking sp-core v34.0.0
[INFO] [stderr]     Checking keccak-hash v0.11.0
[INFO] [stderr]     Checking sp-weights v31.0.0
[INFO] [stderr]    Compiling hyper v1.4.1
[INFO] [stderr]    Compiling frame-decode v0.9.0
[INFO] [stderr]     Checking sp-trie v36.0.0
[INFO] [stderr]     Checking sp-keystore v0.40.0
[INFO] [stderr]    Compiling subxt-metadata v0.44.0
[INFO] [stderr]     Checking scale-value v0.18.1
[INFO] [stderr]    Compiling hyper-util v0.1.6
[INFO] [stderr]    Compiling subxt-codegen v0.44.0
[INFO] [stderr]     Checking sp-state-machine v0.42.0
[INFO] [stderr]     Checking subxt-core v0.44.0
[INFO] [stderr]    Compiling hyper-rustls v0.27.7
[INFO] [stderr]    Compiling jsonrpsee-http-client v0.24.10
[INFO] [stderr]    Compiling subxt-utils-fetchmetadata v0.44.0
[INFO] [stderr]     Checking subxt-rpcs v0.44.0
[INFO] [stderr]     Checking subxt-signer v0.44.0
[INFO] [stderr]     Checking sp-application-crypto v37.0.0
[INFO] [stderr]     Checking sp-runtime v38.0.1
[INFO] [stderr]    Compiling subxt-macro v0.44.0
[INFO] [stderr]    Compiling bittensor-rs v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking subxt v0.44.0
[INFO] [stderr] warning: bittensor-rs@0.1.1: Fetching metadata from wss://entrypoint-finney.opentensor.ai:443
[INFO] [stderr] warning: bittensor-rs@0.1.1: Failed to fetch metadata: Request error: Failed to resolve IP addresses for this hostname: failed to lookup address information: Temporary failure in name resolution
[INFO] [stderr] warning: bittensor-rs@0.1.1: Falling back to bundled metadata
[INFO] [stderr] warning: bittensor-rs@0.1.1: Generated code from 306779 bytes of metadata
[INFO] [stderr]  Documenting bittensor-rs v0.1.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unclosed HTML tag `T`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/bittensor-rs-947ae3f8b8f52047/out/metadata.rs:3:325725
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...iation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a ...
[INFO] [stdout]   |                                                                      ^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(rustdoc::invalid_html_tags)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `u16`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/bittensor-rs-947ae3f8b8f52047/out/metadata.rs:3:324759
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... = "--- Sets the caller weights for the incentive mechanism. The call can be"] # [doc = "made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."] p...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: try marking as source code
[INFO] [stdout]   |
[INFO] [stdout] 3 | # [allow (dead_code , unused_imports , non_camel_case_types , unreachable_patterns)] # [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 ; 27usize] = ["System" , "RandomnessCollectiveFlip" , "Timestamp" , "Aura" , "Grandpa" , "Balances" , "TransactionPayment" , "SubtensorModule" , "Utility" , "Sudo" , "Multisig" , "Preimage" , "Scheduler" , "Proxy" , "Registry" , "Commitments" , "AdminUtils" , "SafeMode" , "Ethereum" , "EVM" , "EVMChainId" , "BaseFee" , "Drand" , "Crowdloan" , "Swap" , "Contracts" , "MevShield" ,] ; pub static RUNTIME_APIS : [& str ; 22usize] = ["Core" , "Metadata" , "BlockBuilder" , "GenesisBuilder" , "TaggedTransactionQueue" , "OffchainWorkerApi" , "AuraApi" , "SessionKeys" , "GrandpaApi" , "AccountNonceApi" , "TransactionPaymentApi" , "TransactionPaymentCallApi" , "EthereumRuntimeRPCApi" , "ConvertTransactionRuntimeApi" , "ContractsApi" , "DelegateInfoRuntimeApi" , "NeuronInfoRuntimeApi" , "SubnetInfoRuntimeApi" , "StakeInfoRuntimeApi" , "SubnetRegistrationRuntimeApi" , "BabeApi" , "SwapRuntimeApi" ,] ; # [doc = r" The error type that is returned when there is a runtime issue."] pub type DispatchError = runtime_types :: sp_runtime :: DispatchError ; # [doc = r" The outer event enum."] pub type Event = runtime_types :: node_subtensor_runtime :: RuntimeEvent ; # [doc = r" The outer extrinsic enum."] pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; # [doc = r" The outer error enum represents the DispatchError's Module variant."] pub type Error = runtime_types :: node_subtensor_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 ; use super :: runtime_types ; use :: subxt :: ext :: subxt_core :: 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 genesis_builder (& self) -> genesis_builder :: GenesisBuilder { genesis_builder :: GenesisBuilder } 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 aura_api (& self) -> aura_api :: AuraApi { aura_api :: AuraApi } pub fn session_keys (& self) -> session_keys :: SessionKeys { session_keys :: SessionKeys } pub fn grandpa_api (& self) -> grandpa_api :: GrandpaApi { grandpa_api :: GrandpaApi } 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 transaction_payment_call_api (& self) -> transaction_payment_call_api :: TransactionPaymentCallApi { transaction_payment_call_api :: TransactionPaymentCallApi } 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 contracts_api (& self) -> contracts_api :: ContractsApi { contracts_api :: ContractsApi } pub fn delegate_info_runtime_api (& self) -> delegate_info_runtime_api :: DelegateInfoRuntimeApi { delegate_info_runtime_api :: DelegateInfoRuntimeApi } pub fn neuron_info_runtime_api (& self) -> neuron_info_runtime_api :: NeuronInfoRuntimeApi { neuron_info_runtime_api :: NeuronInfoRuntimeApi } pub fn subnet_info_runtime_api (& self) -> subnet_info_runtime_api :: SubnetInfoRuntimeApi { subnet_info_runtime_api :: SubnetInfoRuntimeApi } pub fn stake_info_runtime_api (& self) -> stake_info_runtime_api :: StakeInfoRuntimeApi { stake_info_runtime_api :: StakeInfoRuntimeApi } pub fn subnet_registration_runtime_api (& self) -> subnet_registration_runtime_api :: SubnetRegistrationRuntimeApi { subnet_registration_runtime_api :: SubnetRegistrationRuntimeApi } pub fn babe_api (& self) -> babe_api :: BabeApi { babe_api :: BabeApi } pub fn swap_runtime_api (& self) -> swap_runtime_api :: SwapRuntimeApi { swap_runtime_api :: SwapRuntimeApi } } pub mod core { use super :: root_mod ; use super :: runtime_types ; # [doc = " The `Core` runtime api that every Substrate runtime needs to implement."] pub struct Core ; impl Core { # [doc = " Returns the version of the runtime."] pub fn version (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Version , types :: version :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("Core" , "version" , types :: Version { } , [79u8 , 22u8 , 137u8 , 4u8 , 40u8 , 64u8 , 30u8 , 180u8 , 49u8 , 222u8 , 114u8 , 125u8 , 44u8 , 25u8 , 33u8 , 152u8 , 98u8 , 42u8 , 72u8 , 178u8 , 240u8 , 103u8 , 34u8 , 187u8 , 81u8 , 161u8 , 183u8 , 6u8 , 120u8 , 2u8 , 146u8 , 0u8 ,] ,) } # [doc = " Execute the given block."] pub fn execute_block (& self , block : types :: execute_block :: Block ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ExecuteBlock , types :: execute_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("Core" , "execute_block" , types :: ExecuteBlock { block , } , [71u8 , 186u8 , 53u8 , 183u8 , 85u8 , 95u8 , 61u8 , 56u8 , 159u8 , 137u8 , 111u8 , 34u8 , 39u8 , 238u8 , 212u8 , 113u8 , 200u8 , 93u8 , 118u8 , 143u8 , 186u8 , 16u8 , 79u8 , 249u8 , 95u8 , 210u8 , 240u8 , 0u8 , 220u8 , 57u8 , 121u8 , 186u8 ,] ,) } # [doc = " Initialize a block with the given header and return the runtime executive mode."] pub fn initialize_block (& self , header : types :: initialize_block :: Header ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: InitializeBlock , types :: initialize_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("Core" , "initialize_block" , types :: InitializeBlock { header , } , [132u8 , 169u8 , 113u8 , 112u8 , 80u8 , 139u8 , 113u8 , 35u8 , 41u8 , 81u8 , 36u8 , 35u8 , 37u8 , 202u8 , 29u8 , 207u8 , 205u8 , 229u8 , 145u8 , 7u8 , 133u8 , 94u8 , 25u8 , 108u8 , 233u8 , 86u8 , 234u8 , 29u8 , 236u8 , 57u8 , 56u8 , 186u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod version { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_version :: RuntimeVersion ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Version { } pub mod execute_block { use super :: runtime_types ; pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub mod output { use super :: runtime_types ; pub type Output = () ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ExecuteBlock { pub block : execute_block :: Block , } pub mod initialize_block { use super :: runtime_types ; pub type Header = runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_runtime :: ExtrinsicInclusionMode ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InitializeBlock { pub header : initialize_block :: Header , } } } pub mod metadata { use super :: root_mod ; use super :: runtime_types ; # [doc = " The `Metadata` api trait that returns metadata for the runtime."] pub struct Metadata ; impl Metadata { # [doc = " Returns the metadata of a runtime."] pub fn metadata (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Metadata , types :: metadata :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [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 : types :: metadata_at_version :: Version ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: MetadataAtVersion , types :: metadata_at_version :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Returns the supported metadata versions."] # [doc = ""] # [doc = " This can be used to call `metadata_at_version`."] pub fn metadata_versions (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: MetadataVersions , types :: metadata_versions :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ; pub mod metadata { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_core :: OpaqueMetadata ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Metadata { } pub mod metadata_at_version { use super :: runtime_types ; pub type Version = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: sp_core :: OpaqueMetadata > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MetadataAtVersion { pub version : metadata_at_version :: Version , } pub mod metadata_versions { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MetadataVersions { } } } pub mod block_builder { use super :: root_mod ; use super :: runtime_types ; # [doc = " The `BlockBuilder` api trait that provides the required functionality for building a block."] pub struct BlockBuilder ; impl BlockBuilder { # [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 : types :: apply_extrinsic :: Extrinsic ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ApplyExtrinsic , types :: apply_extrinsic :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BlockBuilder" , "apply_extrinsic" , types :: ApplyExtrinsic { extrinsic , } , [20u8 , 216u8 , 216u8 , 106u8 , 88u8 , 52u8 , 32u8 , 26u8 , 170u8 , 214u8 , 30u8 , 9u8 , 196u8 , 53u8 , 223u8 , 193u8 , 132u8 , 231u8 , 31u8 , 40u8 , 178u8 , 197u8 , 238u8 , 115u8 , 153u8 , 197u8 , 220u8 , 135u8 , 253u8 , 61u8 , 58u8 , 145u8 ,] ,) } # [doc = " Finish the current block."] pub fn finalize_block (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: FinalizeBlock , types :: finalize_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BlockBuilder" , "finalize_block" , types :: FinalizeBlock { } , [244u8 , 207u8 , 24u8 , 33u8 , 13u8 , 69u8 , 9u8 , 249u8 , 145u8 , 143u8 , 122u8 , 96u8 , 197u8 , 55u8 , 64u8 , 111u8 , 238u8 , 224u8 , 34u8 , 201u8 , 27u8 , 146u8 , 232u8 , 99u8 , 191u8 , 30u8 , 114u8 , 16u8 , 32u8 , 220u8 , 58u8 , 62u8 ,] ,) } # [doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."] pub fn inherent_extrinsics (& self , inherent : types :: inherent_extrinsics :: Inherent ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: InherentExtrinsics , types :: inherent_extrinsics :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Check that the inherents are valid. The inherent data will vary from chain to chain."] pub fn check_inherents (& self , block : types :: check_inherents :: Block , data : types :: check_inherents :: Data ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CheckInherents , types :: check_inherents :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BlockBuilder" , "check_inherents" , types :: CheckInherents { block , data , } , [188u8 , 160u8 , 23u8 , 43u8 , 139u8 , 48u8 , 47u8 , 82u8 , 226u8 , 24u8 , 53u8 , 86u8 , 114u8 , 2u8 , 206u8 , 95u8 , 174u8 , 219u8 , 60u8 , 86u8 , 142u8 , 164u8 , 171u8 , 101u8 , 249u8 , 40u8 , 171u8 , 123u8 , 137u8 , 219u8 , 122u8 , 9u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod apply_extrinsic { use super :: runtime_types ; pub type Extrinsic = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , runtime_types :: sp_runtime :: transaction_validity :: TransactionValidityError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ApplyExtrinsic { pub extrinsic : apply_extrinsic :: Extrinsic , } pub mod finalize_block { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FinalizeBlock { } pub mod inherent_extrinsics { use super :: runtime_types ; pub type Inherent = runtime_types :: sp_inherents :: InherentData ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InherentExtrinsics { pub inherent : inherent_extrinsics :: Inherent , } pub mod check_inherents { use super :: runtime_types ; pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub type Data = runtime_types :: sp_inherents :: InherentData ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_inherents :: CheckInherentsResult ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckInherents { pub block : check_inherents :: Block , pub data : check_inherents :: Data , } } } pub mod genesis_builder { use super :: root_mod ; use super :: runtime_types ; # [doc = " API to interact with `RuntimeGenesisConfig` for the runtime"] pub struct GenesisBuilder ; impl GenesisBuilder { # [doc = " Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the"] # [doc = " storage."] # [doc = ""] # [doc = " In the case of a FRAME-based runtime, this function deserializes the full"] # [doc = " `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the"] # [doc = " provided JSON blob is incorrect or incomplete or the deserialization fails, an error"] # [doc = " is returned."] # [doc = ""] # [doc = " Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no"] # [doc = " defaults will be used."] pub fn build_state (& self , json : types :: build_state :: Json ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: BuildState , types :: build_state :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GenesisBuilder" , "build_state" , types :: BuildState { json , } , [203u8 , 233u8 , 104u8 , 116u8 , 111u8 , 131u8 , 201u8 , 235u8 , 117u8 , 116u8 , 140u8 , 185u8 , 93u8 , 25u8 , 155u8 , 210u8 , 56u8 , 49u8 , 23u8 , 32u8 , 253u8 , 92u8 , 149u8 , 241u8 , 85u8 , 245u8 , 137u8 , 45u8 , 209u8 , 189u8 , 81u8 , 2u8 ,] ,) } # [doc = " Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by"] # [doc = " `id`."] # [doc = ""] # [doc = " If `id` is `None` the function should return JSON blob representation of the default"] # [doc = " `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default"] # [doc = " `RuntimeGenesisConfig`."] # [doc = ""] # [doc = " Otherwise function returns a JSON representation of the built-in, named"] # [doc = " `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not"] # [doc = " exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of"] # [doc = " (potentially nested) key-value pairs that are intended for customizing the default"] # [doc = " runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation"] # [doc = " of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can"] # [doc = " be used in `build_state` method."] pub fn get_preset (& self , id : types :: get_preset :: Id ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetPreset , types :: get_preset :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GenesisBuilder" , "get_preset" , types :: GetPreset { id , } , [43u8 , 153u8 , 23u8 , 52u8 , 113u8 , 161u8 , 227u8 , 122u8 , 169u8 , 135u8 , 119u8 , 8u8 , 128u8 , 33u8 , 143u8 , 235u8 , 13u8 , 173u8 , 58u8 , 121u8 , 178u8 , 223u8 , 66u8 , 217u8 , 22u8 , 244u8 , 168u8 , 113u8 , 202u8 , 186u8 , 241u8 , 124u8 ,] ,) } # [doc = " Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets."] # [doc = ""] # [doc = " The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If"] # [doc = " no named presets are provided by the runtime the list is empty."] pub fn preset_names (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: PresetNames , types :: preset_names :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GenesisBuilder" , "preset_names" , types :: PresetNames { } , [150u8 , 117u8 , 54u8 , 129u8 , 221u8 , 130u8 , 186u8 , 71u8 , 13u8 , 140u8 , 77u8 , 180u8 , 141u8 , 37u8 , 22u8 , 219u8 , 149u8 , 218u8 , 186u8 , 206u8 , 80u8 , 42u8 , 165u8 , 41u8 , 99u8 , 184u8 , 73u8 , 37u8 , 125u8 , 188u8 , 167u8 , 122u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod build_state { use super :: runtime_types ; pub type Json = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < () , :: subxt :: ext :: subxt_core :: alloc :: string :: String > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BuildState { pub json : build_state :: Json , } pub mod get_preset { use super :: runtime_types ; pub type Id = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: string :: String > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetPreset { pub id : get_preset :: Id , } pub mod preset_names { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: string :: String > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PresetNames { } } } pub mod tagged_transaction_queue { use super :: root_mod ; use super :: runtime_types ; # [doc = " The `TaggedTransactionQueue` api trait for interfering with the transaction queue."] pub struct TaggedTransactionQueue ; impl TaggedTransactionQueue { # [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 : types :: validate_transaction :: Source , tx : types :: validate_transaction :: Tx , block_hash : types :: validate_transaction :: BlockHash ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ValidateTransaction , types :: validate_transaction :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TaggedTransactionQueue" , "validate_transaction" , types :: ValidateTransaction { source , tx , block_hash , } , [213u8 , 188u8 , 51u8 , 29u8 , 155u8 , 246u8 , 70u8 , 43u8 , 224u8 , 47u8 , 160u8 , 105u8 , 29u8 , 125u8 , 243u8 , 213u8 , 51u8 , 162u8 , 72u8 , 94u8 , 125u8 , 108u8 , 239u8 , 233u8 , 74u8 , 163u8 , 13u8 , 19u8 , 170u8 , 140u8 , 31u8 , 254u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod validate_transaction { use super :: runtime_types ; pub type Source = runtime_types :: sp_runtime :: transaction_validity :: TransactionSource ; pub type Tx = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; pub type BlockHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: sp_runtime :: transaction_validity :: ValidTransaction , runtime_types :: sp_runtime :: transaction_validity :: TransactionValidityError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidateTransaction { pub source : validate_transaction :: Source , pub tx : validate_transaction :: Tx , pub block_hash : validate_transaction :: BlockHash , } } } pub mod offchain_worker_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " The offchain worker api."] pub struct OffchainWorkerApi ; impl OffchainWorkerApi { # [doc = " Starts the off-chain task for given block header."] pub fn offchain_worker (& self , header : types :: offchain_worker :: Header ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: OffchainWorker , types :: offchain_worker :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("OffchainWorkerApi" , "offchain_worker" , types :: OffchainWorker { header , } , [10u8 , 135u8 , 19u8 , 153u8 , 33u8 , 216u8 , 18u8 , 242u8 , 33u8 , 140u8 , 4u8 , 223u8 , 200u8 , 130u8 , 103u8 , 118u8 , 137u8 , 24u8 , 19u8 , 127u8 , 161u8 , 29u8 , 184u8 , 111u8 , 222u8 , 111u8 , 253u8 , 73u8 , 45u8 , 31u8 , 79u8 , 60u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod offchain_worker { use super :: runtime_types ; pub type Header = runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > ; pub mod output { use super :: runtime_types ; pub type Output = () ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OffchainWorker { pub header : offchain_worker :: Header , } } } pub mod aura_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " API necessary for block authorship with aura."] pub struct AuraApi ; impl AuraApi { # [doc = " Returns the slot duration for Aura."] # [doc = ""] # [doc = " Currently, only the value provided by this type at genesis will be used."] pub fn slot_duration (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SlotDuration , types :: slot_duration :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("AuraApi" , "slot_duration" , types :: SlotDuration { } , [233u8 , 210u8 , 132u8 , 172u8 , 100u8 , 125u8 , 239u8 , 92u8 , 114u8 , 82u8 , 7u8 , 110u8 , 179u8 , 196u8 , 10u8 , 19u8 , 211u8 , 15u8 , 174u8 , 2u8 , 91u8 , 73u8 , 133u8 , 100u8 , 205u8 , 201u8 , 191u8 , 60u8 , 163u8 , 122u8 , 215u8 , 10u8 ,] ,) } # [doc = " Return the current set of authorities."] pub fn authorities (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Authorities , types :: authorities :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("AuraApi" , "authorities" , types :: Authorities { } , [35u8 , 244u8 , 24u8 , 155u8 , 95u8 , 1u8 , 221u8 , 159u8 , 33u8 , 144u8 , 213u8 , 26u8 , 13u8 , 21u8 , 136u8 , 72u8 , 45u8 , 47u8 , 15u8 , 51u8 , 235u8 , 10u8 , 6u8 , 219u8 , 9u8 , 246u8 , 50u8 , 252u8 , 49u8 , 77u8 , 64u8 , 182u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod slot_duration { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_consensus_slots :: SlotDuration ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SlotDuration { } pub mod authorities { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Authorities { } } } pub mod session_keys { use super :: root_mod ; use super :: runtime_types ; # [doc = " Session keys runtime api."] pub struct SessionKeys ; impl SessionKeys { # [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 : types :: generate_session_keys :: Seed ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GenerateSessionKeys , types :: generate_session_keys :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [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 : types :: decode_session_keys :: Encoded ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: DecodeSessionKeys , types :: decode_session_keys :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ; pub mod generate_session_keys { use super :: runtime_types ; pub type Seed = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GenerateSessionKeys { pub seed : generate_session_keys :: Seed , } pub mod decode_session_keys { use super :: runtime_types ; pub type Encoded = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , runtime_types :: sp_core :: crypto :: KeyTypeId ,) > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DecodeSessionKeys { pub encoded : decode_session_keys :: Encoded , } } } pub mod grandpa_api { use super :: root_mod ; use super :: runtime_types ; # [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 { # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GrandpaAuthorities , types :: grandpa_authorities :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GrandpaApi" , "grandpa_authorities" , types :: GrandpaAuthorities { } , [8u8 , 1u8 , 99u8 , 227u8 , 52u8 , 95u8 , 230u8 , 139u8 , 198u8 , 90u8 , 159u8 , 146u8 , 193u8 , 81u8 , 37u8 , 27u8 , 216u8 , 227u8 , 108u8 , 126u8 , 12u8 , 94u8 , 125u8 , 183u8 , 143u8 , 231u8 , 87u8 , 101u8 , 114u8 , 190u8 , 193u8 , 180u8 ,] ,) } # [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 : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof , key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SubmitReportEquivocationUnsignedExtrinsic , types :: submit_report_equivocation_unsigned_extrinsic :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GrandpaApi" , "submit_report_equivocation_unsigned_extrinsic" , types :: SubmitReportEquivocationUnsignedExtrinsic { equivocation_proof , key_owner_proof , } , [27u8 , 32u8 , 16u8 , 79u8 , 172u8 , 124u8 , 44u8 , 13u8 , 176u8 , 89u8 , 69u8 , 60u8 , 45u8 , 176u8 , 72u8 , 151u8 , 252u8 , 5u8 , 243u8 , 82u8 , 170u8 , 51u8 , 179u8 , 197u8 , 117u8 , 177u8 , 110u8 , 111u8 , 97u8 , 15u8 , 109u8 , 169u8 ,] ,) } # [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 : types :: generate_key_ownership_proof :: SetId , authority_id : types :: generate_key_ownership_proof :: AuthorityId ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GenerateKeyOwnershipProof , types :: generate_key_ownership_proof :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GrandpaApi" , "generate_key_ownership_proof" , types :: GenerateKeyOwnershipProof { set_id , authority_id , } , [13u8 , 144u8 , 66u8 , 235u8 , 24u8 , 190u8 , 39u8 , 75u8 , 29u8 , 157u8 , 215u8 , 181u8 , 173u8 , 145u8 , 224u8 , 244u8 , 189u8 , 79u8 , 6u8 , 116u8 , 139u8 , 196u8 , 54u8 , 16u8 , 89u8 , 190u8 , 121u8 , 43u8 , 137u8 , 150u8 , 117u8 , 68u8 ,] ,) } # [doc = " Get current GRANDPA authority set id."] pub fn current_set_id (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentSetId , types :: current_set_id :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ; pub mod grandpa_authorities { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GrandpaAuthorities { } pub mod submit_report_equivocation_unsigned_extrinsic { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > ; pub type KeyOwnerProof = runtime_types :: sp_runtime :: OpaqueValue ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < () > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { pub equivocation_proof : submit_report_equivocation_unsigned_extrinsic :: EquivocationProof , pub key_owner_proof : submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof , } pub mod generate_key_ownership_proof { use super :: runtime_types ; pub type SetId = :: core :: primitive :: u64 ; pub type AuthorityId = runtime_types :: sp_consensus_grandpa :: app :: Public ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: sp_runtime :: OpaqueValue > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { pub set_id : generate_key_ownership_proof :: SetId , pub authority_id : generate_key_ownership_proof :: AuthorityId , } pub mod current_set_id { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentSetId { } } } pub mod account_nonce_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " The API to query account nonce."] pub struct AccountNonceApi ; impl AccountNonceApi { # [doc = " Get current account nonce of given `AccountId`."] pub fn account_nonce (& self , account : types :: account_nonce :: Account ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: AccountNonce , types :: account_nonce :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ; pub mod account_nonce { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u32 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AccountNonce { pub account : account_nonce :: Account , } } } pub mod transaction_payment_api { use super :: root_mod ; use super :: runtime_types ; pub struct TransactionPaymentApi ; impl TransactionPaymentApi { pub fn query_info (& self , uxt : types :: query_info :: Uxt , len : types :: query_info :: Len ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryInfo , types :: query_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentApi" , "query_info" , types :: QueryInfo { uxt , len , } , [54u8 , 3u8 , 155u8 , 175u8 , 234u8 , 40u8 , 67u8 , 208u8 , 24u8 , 38u8 , 236u8 , 154u8 , 89u8 , 131u8 , 217u8 , 136u8 , 252u8 , 10u8 , 141u8 , 112u8 , 149u8 , 20u8 , 41u8 , 128u8 , 156u8 , 55u8 , 153u8 , 255u8 , 211u8 , 133u8 , 25u8 , 205u8 ,] ,) } pub fn query_fee_details (& self , uxt : types :: query_fee_details :: Uxt , len : types :: query_fee_details :: Len ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryFeeDetails , types :: query_fee_details :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentApi" , "query_fee_details" , types :: QueryFeeDetails { uxt , len , } , [74u8 , 176u8 , 154u8 , 28u8 , 200u8 , 208u8 , 20u8 , 237u8 , 75u8 , 65u8 , 27u8 , 89u8 , 157u8 , 255u8 , 254u8 , 124u8 , 34u8 , 79u8 , 226u8 , 13u8 , 110u8 , 118u8 , 59u8 , 76u8 , 197u8 , 21u8 , 251u8 , 42u8 , 179u8 , 203u8 , 122u8 , 88u8 ,] ,) } pub fn query_weight_to_fee (& self , weight : types :: query_weight_to_fee :: Weight ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryWeightToFee , types :: query_weight_to_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentApi" , "query_weight_to_fee" , types :: QueryWeightToFee { weight , } , [43u8 , 38u8 , 7u8 , 127u8 , 93u8 , 202u8 , 221u8 , 100u8 , 79u8 , 26u8 , 61u8 , 51u8 , 106u8 , 250u8 , 233u8 , 161u8 , 32u8 , 72u8 , 198u8 , 28u8 , 94u8 , 150u8 , 8u8 , 143u8 , 58u8 , 148u8 , 69u8 , 198u8 , 215u8 , 27u8 , 186u8 , 242u8 ,] ,) } pub fn query_length_to_fee (& self , length : types :: query_length_to_fee :: Length ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryLengthToFee , types :: query_length_to_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentApi" , "query_length_to_fee" , types :: QueryLengthToFee { length , } , [129u8 , 136u8 , 216u8 , 144u8 , 66u8 , 102u8 , 146u8 , 169u8 , 202u8 , 11u8 , 0u8 , 146u8 , 200u8 , 172u8 , 84u8 , 238u8 , 129u8 , 32u8 , 214u8 , 169u8 , 130u8 , 111u8 , 112u8 , 68u8 , 51u8 , 8u8 , 174u8 , 90u8 , 81u8 , 46u8 , 0u8 , 249u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod query_info { use super :: runtime_types ; pub type Uxt = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; pub type Len = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_transaction_payment :: types :: RuntimeDispatchInfo < :: core :: primitive :: u64 , runtime_types :: sp_weights :: weight_v2 :: Weight > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryInfo { pub uxt : query_info :: Uxt , pub len : query_info :: Len , } pub mod query_fee_details { use super :: runtime_types ; pub type Uxt = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; pub type Len = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_transaction_payment :: types :: FeeDetails < :: core :: primitive :: u64 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryFeeDetails { pub uxt : query_fee_details :: Uxt , pub len : query_fee_details :: Len , } pub mod query_weight_to_fee { use super :: runtime_types ; pub type Weight = runtime_types :: sp_weights :: weight_v2 :: Weight ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryWeightToFee { pub weight : query_weight_to_fee :: Weight , } pub mod query_length_to_fee { use super :: runtime_types ; pub type Length = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryLengthToFee { pub length : query_length_to_fee :: Length , } } } pub mod transaction_payment_call_api { use super :: root_mod ; use super :: runtime_types ; pub struct TransactionPaymentCallApi ; impl TransactionPaymentCallApi { # [doc = " Query information of a dispatch class, weight, and fee of a given encoded `Call`."] pub fn query_call_info (& self , call : types :: query_call_info :: Call , len : types :: query_call_info :: Len ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryCallInfo , types :: query_call_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentCallApi" , "query_call_info" , types :: QueryCallInfo { call , len , } , [53u8 , 9u8 , 17u8 , 129u8 , 31u8 , 38u8 , 94u8 , 33u8 , 78u8 , 61u8 , 110u8 , 185u8 , 223u8 , 145u8 , 38u8 , 79u8 , 243u8 , 41u8 , 231u8 , 184u8 , 129u8 , 118u8 , 218u8 , 194u8 , 70u8 , 22u8 , 68u8 , 60u8 , 239u8 , 95u8 , 71u8 , 191u8 ,] ,) } # [doc = " Query fee details of a given encoded `Call`."] pub fn query_call_fee_details (& self , call : types :: query_call_fee_details :: Call , len : types :: query_call_fee_details :: Len ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryCallFeeDetails , types :: query_call_fee_details :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentCallApi" , "query_call_fee_details" , types :: QueryCallFeeDetails { call , len , } , [98u8 , 251u8 , 127u8 , 144u8 , 92u8 , 41u8 , 226u8 , 149u8 , 11u8 , 213u8 , 172u8 , 248u8 , 38u8 , 37u8 , 58u8 , 193u8 , 129u8 , 227u8 , 248u8 , 137u8 , 228u8 , 38u8 , 1u8 , 242u8 , 54u8 , 231u8 , 140u8 , 167u8 , 164u8 , 88u8 , 27u8 , 51u8 ,] ,) } # [doc = " Query the output of the current `WeightToFee` given some input."] pub fn query_weight_to_fee (& self , weight : types :: query_weight_to_fee :: Weight ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryWeightToFee , types :: query_weight_to_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentCallApi" , "query_weight_to_fee" , types :: QueryWeightToFee { weight , } , [154u8 , 155u8 , 82u8 , 35u8 , 212u8 , 163u8 , 97u8 , 198u8 , 2u8 , 206u8 , 243u8 , 23u8 , 100u8 , 233u8 , 202u8 , 247u8 , 176u8 , 177u8 , 138u8 , 135u8 , 164u8 , 220u8 , 9u8 , 182u8 , 226u8 , 22u8 , 29u8 , 173u8 , 234u8 , 18u8 , 230u8 , 184u8 ,] ,) } # [doc = " Query the output of the current `LengthToFee` given some input."] pub fn query_length_to_fee (& self , length : types :: query_length_to_fee :: Length ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryLengthToFee , types :: query_length_to_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentCallApi" , "query_length_to_fee" , types :: QueryLengthToFee { length , } , [81u8 , 163u8 , 41u8 , 53u8 , 39u8 , 220u8 , 142u8 , 196u8 , 240u8 , 62u8 , 204u8 , 3u8 , 172u8 , 25u8 , 99u8 , 48u8 , 143u8 , 115u8 , 9u8 , 151u8 , 167u8 , 209u8 , 207u8 , 224u8 , 50u8 , 232u8 , 73u8 , 176u8 , 130u8 , 80u8 , 185u8 , 105u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod query_call_info { use super :: runtime_types ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type Len = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_transaction_payment :: types :: RuntimeDispatchInfo < :: core :: primitive :: u64 , runtime_types :: sp_weights :: weight_v2 :: Weight > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryCallInfo { pub call : query_call_info :: Call , pub len : query_call_info :: Len , } pub mod query_call_fee_details { use super :: runtime_types ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type Len = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_transaction_payment :: types :: FeeDetails < :: core :: primitive :: u64 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryCallFeeDetails { pub call : query_call_fee_details :: Call , pub len : query_call_fee_details :: Len , } pub mod query_weight_to_fee { use super :: runtime_types ; pub type Weight = runtime_types :: sp_weights :: weight_v2 :: Weight ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryWeightToFee { pub weight : query_weight_to_fee :: Weight , } pub mod query_length_to_fee { use super :: runtime_types ; pub type Length = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryLengthToFee { pub length : query_length_to_fee :: Length , } } } pub mod ethereum_runtime_rpc_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " API necessary for Ethereum-compatibility layer."] pub struct EthereumRuntimeRPCApi ; impl EthereumRuntimeRPCApi { # [doc = " Returns runtime defined pallet_evm::ChainId."] pub fn chain_id (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ChainId , types :: chain_id :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Returns pallet_evm::Accounts by address."] pub fn account_basic (& self , address : types :: account_basic :: Address ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: AccountBasic , types :: account_basic :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Returns FixedGasPrice::min_gas_price"] pub fn gas_price (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GasPrice , types :: gas_price :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " For a given account address, returns pallet_evm::AccountCodes."] pub fn account_code_at (& self , address : types :: account_code_at :: Address ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: AccountCodeAt , types :: account_code_at :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Returns the converted FindAuthor::find_author authority id."] pub fn author (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Author , types :: author :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " For a given account address and index, returns pallet_evm::AccountStorages."] pub fn storage_at (& self , address : types :: storage_at :: Address , index : types :: storage_at :: Index ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: StorageAt , types :: storage_at :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 : types :: call :: From , to : types :: call :: To , data : types :: call :: Data , value : types :: call :: Value , gas_limit : types :: call :: GasLimit , max_fee_per_gas : types :: call :: MaxFeePerGas , max_priority_fee_per_gas : types :: call :: MaxPriorityFeePerGas , nonce : types :: call :: Nonce , estimate : types :: call :: Estimate , access_list : types :: call :: AccessList , authorization_list : types :: call :: AuthorizationList ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Call , types :: call :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 , authorization_list , } , [178u8 , 88u8 , 191u8 , 176u8 , 144u8 , 12u8 , 113u8 , 151u8 , 135u8 , 121u8 , 142u8 , 22u8 , 125u8 , 234u8 , 163u8 , 159u8 , 35u8 , 141u8 , 131u8 , 138u8 , 202u8 , 112u8 , 224u8 , 216u8 , 135u8 , 184u8 , 189u8 , 32u8 , 172u8 , 115u8 , 198u8 , 210u8 ,] ,) } pub fn create (& self , from : types :: create :: From , data : types :: create :: Data , value : types :: create :: Value , gas_limit : types :: create :: GasLimit , max_fee_per_gas : types :: create :: MaxFeePerGas , max_priority_fee_per_gas : types :: create :: MaxPriorityFeePerGas , nonce : types :: create :: Nonce , estimate : types :: create :: Estimate , access_list : types :: create :: AccessList , authorization_list : types :: create :: AuthorizationList ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Create , types :: create :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "create" , types :: Create { from , data , value , gas_limit , max_fee_per_gas , max_priority_fee_per_gas , nonce , estimate , access_list , authorization_list , } , [193u8 , 139u8 , 221u8 , 68u8 , 76u8 , 215u8 , 40u8 , 174u8 , 33u8 , 255u8 , 125u8 , 86u8 , 34u8 , 194u8 , 250u8 , 7u8 , 189u8 , 15u8 , 45u8 , 233u8 , 29u8 , 12u8 , 18u8 , 115u8 , 73u8 , 178u8 , 101u8 , 120u8 , 206u8 , 201u8 , 79u8 , 43u8 ,] ,) } # [doc = " Return the current block."] pub fn current_block (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentBlock , types :: current_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "current_block" , types :: CurrentBlock { } , [224u8 , 151u8 , 240u8 , 159u8 , 230u8 , 34u8 , 172u8 , 75u8 , 156u8 , 204u8 , 11u8 , 149u8 , 41u8 , 190u8 , 219u8 , 238u8 , 159u8 , 20u8 , 200u8 , 153u8 , 20u8 , 221u8 , 29u8 , 4u8 , 50u8 , 2u8 , 101u8 , 253u8 , 129u8 , 31u8 , 57u8 , 12u8 ,] ,) } # [doc = " Return the current receipt."] pub fn current_receipts (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentReceipts , types :: current_receipts :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "current_receipts" , types :: CurrentReceipts { } , [73u8 , 14u8 , 230u8 , 134u8 , 83u8 , 120u8 , 240u8 , 61u8 , 175u8 , 9u8 , 252u8 , 66u8 , 233u8 , 150u8 , 65u8 , 76u8 , 30u8 , 203u8 , 190u8 , 231u8 , 224u8 , 62u8 , 49u8 , 198u8 , 168u8 , 150u8 , 191u8 , 61u8 , 103u8 , 210u8 , 112u8 , 82u8 ,] ,) } # [doc = " Return the current transaction status."] pub fn current_transaction_statuses (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentTransactionStatuses , types :: current_transaction_statuses :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentAll , types :: current_all :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "current_all" , types :: CurrentAll { } , [236u8 , 179u8 , 167u8 , 68u8 , 50u8 , 151u8 , 108u8 , 138u8 , 48u8 , 196u8 , 83u8 , 92u8 , 69u8 , 253u8 , 47u8 , 211u8 , 127u8 , 226u8 , 115u8 , 132u8 , 113u8 , 137u8 , 84u8 , 17u8 , 187u8 , 119u8 , 80u8 , 116u8 , 172u8 , 71u8 , 44u8 , 139u8 ,] ,) } # [doc = " Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions."] pub fn extrinsic_filter (& self , xts : types :: extrinsic_filter :: Xts ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ExtrinsicFilter , types :: extrinsic_filter :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "extrinsic_filter" , types :: ExtrinsicFilter { xts , } , [234u8 , 157u8 , 247u8 , 198u8 , 65u8 , 99u8 , 60u8 , 119u8 , 54u8 , 96u8 , 73u8 , 66u8 , 212u8 , 26u8 , 100u8 , 216u8 , 88u8 , 14u8 , 134u8 , 100u8 , 121u8 , 154u8 , 73u8 , 68u8 , 168u8 , 4u8 , 235u8 , 158u8 , 105u8 , 254u8 , 195u8 , 122u8 ,] ,) } # [doc = " Return the elasticity multiplier."] pub fn elasticity (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Elasticity , types :: elasticity :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GasLimitMultiplierSupport , types :: gas_limit_multiplier_support :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Return the pending block."] pub fn pending_block (& self , xts : types :: pending_block :: Xts ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: PendingBlock , types :: pending_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "pending_block" , types :: PendingBlock { xts , } , [120u8 , 215u8 , 175u8 , 95u8 , 105u8 , 67u8 , 63u8 , 114u8 , 49u8 , 87u8 , 9u8 , 178u8 , 111u8 , 206u8 , 253u8 , 56u8 , 111u8 , 1u8 , 26u8 , 245u8 , 216u8 , 132u8 , 166u8 , 231u8 , 223u8 , 213u8 , 140u8 , 81u8 , 30u8 , 230u8 , 9u8 , 142u8 ,] ,) } # [doc = " Initialize the pending block."] # [doc = " The behavior should be the same as the runtime api Core_initialize_block but"] # [doc = " for a \"pending\" block."] # [doc = " If your project don't need to have a different behavior to initialize \"pending\" blocks,"] # [doc = " you can copy your Core_initialize_block implementation."] pub fn initialize_pending_block (& self , header : types :: initialize_pending_block :: Header ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: InitializePendingBlock , types :: initialize_pending_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "initialize_pending_block" , types :: InitializePendingBlock { header , } , [46u8 , 174u8 , 182u8 , 191u8 , 229u8 , 174u8 , 228u8 , 72u8 , 119u8 , 110u8 , 223u8 , 19u8 , 112u8 , 12u8 , 174u8 , 88u8 , 159u8 , 126u8 , 4u8 , 166u8 , 107u8 , 244u8 , 243u8 , 224u8 , 84u8 , 131u8 , 40u8 , 164u8 , 133u8 , 52u8 , 76u8 , 114u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod chain_id { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ChainId { } pub mod account_basic { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: evm :: backend :: Basic ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AccountBasic { pub address : account_basic :: Address , } pub mod gas_price { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: primitive_types :: U256 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GasPrice { } pub mod account_code_at { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AccountCodeAt { pub address : account_code_at :: Address , } pub mod author { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: utils :: H160 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Author { } pub mod storage_at { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Index = runtime_types :: primitive_types :: U256 ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: utils :: H256 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct StorageAt { pub address : storage_at :: Address , pub index : storage_at :: Index , } pub mod call { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Value = runtime_types :: primitive_types :: U256 ; pub type GasLimit = runtime_types :: primitive_types :: U256 ; pub type MaxFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type MaxPriorityFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Nonce = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Estimate = :: core :: primitive :: bool ; pub type AccessList = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > > ; pub type AuthorizationList = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: fp_evm :: ExecutionInfoV2 < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , runtime_types :: sp_runtime :: DispatchError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Call { pub from : call :: From , pub to : call :: To , pub data : call :: Data , pub value : call :: Value , pub gas_limit : call :: GasLimit , pub max_fee_per_gas : call :: MaxFeePerGas , pub max_priority_fee_per_gas : call :: MaxPriorityFeePerGas , pub nonce : call :: Nonce , pub estimate : call :: Estimate , pub access_list : call :: AccessList , pub authorization_list : call :: AuthorizationList , } pub mod create { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Value = runtime_types :: primitive_types :: U256 ; pub type GasLimit = runtime_types :: primitive_types :: U256 ; pub type MaxFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type MaxPriorityFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Nonce = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Estimate = :: core :: primitive :: bool ; pub type AccessList = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > > ; pub type AuthorizationList = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: fp_evm :: ExecutionInfoV2 < :: subxt :: ext :: subxt_core :: utils :: H160 > , runtime_types :: sp_runtime :: DispatchError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Create { pub from : create :: From , pub data : create :: Data , pub value : create :: Value , pub gas_limit : create :: GasLimit , pub max_fee_per_gas : create :: MaxFeePerGas , pub max_priority_fee_per_gas : create :: MaxPriorityFeePerGas , pub nonce : create :: Nonce , pub estimate : create :: Estimate , pub access_list : create :: AccessList , pub authorization_list : create :: AuthorizationList , } pub mod current_block { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: ethereum :: block :: Block < runtime_types :: ethereum :: transaction :: TransactionV3 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentBlock { } pub mod current_receipts { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: receipt :: ReceiptV4 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentReceipts { } pub mod current_transaction_statuses { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_rpc :: TransactionStatus > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentTransactionStatuses { } pub mod current_all { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = (:: core :: option :: Option < runtime_types :: ethereum :: block :: Block < runtime_types :: ethereum :: transaction :: TransactionV3 > > , :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: receipt :: ReceiptV4 > > , :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_rpc :: TransactionStatus > > ,) ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentAll { } pub mod extrinsic_filter { use super :: runtime_types ; pub type Xts = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: TransactionV3 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ExtrinsicFilter { pub xts : extrinsic_filter :: Xts , } pub mod elasticity { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: sp_arithmetic :: per_things :: Permill > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Elasticity { } pub mod gas_limit_multiplier_support { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = () ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GasLimitMultiplierSupport { } pub mod pending_block { use super :: runtime_types ; pub type Xts = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub mod output { use super :: runtime_types ; pub type Output = (:: core :: option :: Option < runtime_types :: ethereum :: block :: Block < runtime_types :: ethereum :: transaction :: TransactionV3 > > , :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_rpc :: TransactionStatus > > ,) ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PendingBlock { pub xts : pending_block :: Xts , } pub mod initialize_pending_block { use super :: runtime_types ; pub type Header = runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > ; pub mod output { use super :: runtime_types ; pub type Output = () ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InitializePendingBlock { pub header : initialize_pending_block :: Header , } } } pub mod convert_transaction_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct ConvertTransactionRuntimeApi ; impl ConvertTransactionRuntimeApi { pub fn convert_transaction (& self , transaction : types :: convert_transaction :: Transaction ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ConvertTransaction , types :: convert_transaction :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ConvertTransactionRuntimeApi" , "convert_transaction" , types :: ConvertTransaction { transaction , } , [16u8 , 42u8 , 118u8 , 219u8 , 135u8 , 164u8 , 141u8 , 244u8 , 165u8 , 74u8 , 119u8 , 126u8 , 18u8 , 37u8 , 42u8 , 10u8 , 17u8 , 64u8 , 15u8 , 84u8 , 109u8 , 202u8 , 29u8 , 243u8 , 25u8 , 236u8 , 162u8 , 193u8 , 18u8 , 27u8 , 149u8 , 141u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod convert_transaction { use super :: runtime_types ; pub type Transaction = runtime_types :: ethereum :: transaction :: TransactionV3 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ConvertTransaction { pub transaction : convert_transaction :: Transaction , } } } pub mod contracts_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " The API used to dry-run contract interactions."] pub struct ContractsApi ; impl ContractsApi { # [doc = " Perform a call from a specified account to a given contract."] # [doc = ""] # [doc = " See [`crate::Pallet::bare_call`]."] pub fn call (& self , origin : types :: call :: Origin , dest : types :: call :: Dest , value : types :: call :: Value , gas_limit : types :: call :: GasLimit , storage_deposit_limit : types :: call :: StorageDepositLimit , input_data : types :: call :: InputData ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Call , types :: call :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ContractsApi" , "call" , types :: Call { origin , dest , value , gas_limit , storage_deposit_limit , input_data , } , [203u8 , 212u8 , 49u8 , 208u8 , 22u8 , 126u8 , 60u8 , 239u8 , 107u8 , 136u8 , 25u8 , 222u8 , 24u8 , 6u8 , 232u8 , 205u8 , 112u8 , 76u8 , 144u8 , 149u8 , 222u8 , 63u8 , 124u8 , 92u8 , 219u8 , 104u8 , 246u8 , 212u8 , 167u8 , 145u8 , 225u8 , 69u8 ,] ,) } # [doc = " Instantiate a new contract."] # [doc = ""] # [doc = " See `[crate::Pallet::bare_instantiate]`."] pub fn instantiate (& self , origin : types :: instantiate :: Origin , value : types :: instantiate :: Value , gas_limit : types :: instantiate :: GasLimit , storage_deposit_limit : types :: instantiate :: StorageDepositLimit , code : types :: instantiate :: Code , data : types :: instantiate :: Data , salt : types :: instantiate :: Salt ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Instantiate , types :: instantiate :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ContractsApi" , "instantiate" , types :: Instantiate { origin , value , gas_limit , storage_deposit_limit , code , data , salt , } , [206u8 , 27u8 , 162u8 , 2u8 , 121u8 , 52u8 , 3u8 , 207u8 , 61u8 , 97u8 , 111u8 , 110u8 , 108u8 , 202u8 , 169u8 , 134u8 , 200u8 , 49u8 , 74u8 , 110u8 , 141u8 , 87u8 , 53u8 , 133u8 , 29u8 , 66u8 , 249u8 , 169u8 , 123u8 , 230u8 , 44u8 , 182u8 ,] ,) } # [doc = " Upload new code without instantiating a contract from it."] # [doc = ""] # [doc = " See [`crate::Pallet::bare_upload_code`]."] pub fn upload_code (& self , origin : types :: upload_code :: Origin , code : types :: upload_code :: Code , storage_deposit_limit : types :: upload_code :: StorageDepositLimit , determinism : types :: upload_code :: Determinism ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: UploadCode , types :: upload_code :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ContractsApi" , "upload_code" , types :: UploadCode { origin , code , storage_deposit_limit , determinism , } , [210u8 , 71u8 , 176u8 , 194u8 , 220u8 , 92u8 , 59u8 , 101u8 , 167u8 , 122u8 , 44u8 , 110u8 , 31u8 , 241u8 , 169u8 , 249u8 , 166u8 , 235u8 , 152u8 , 103u8 , 165u8 , 66u8 , 2u8 , 23u8 , 42u8 , 37u8 , 14u8 , 242u8 , 204u8 , 176u8 , 125u8 , 117u8 ,] ,) } # [doc = " Query a given storage key in a given contract."] # [doc = ""] # [doc = " Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the"] # [doc = " specified account and `Ok(None)` if it doesn't. If the account specified by the address"] # [doc = " doesn't exist, or doesn't have a contract then `Err` is returned."] pub fn get_storage (& self , address : types :: get_storage :: Address , key : types :: get_storage :: Key ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetStorage , types :: get_storage :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ContractsApi" , "get_storage" , types :: GetStorage { address , key , } , [49u8 , 103u8 , 100u8 , 132u8 , 135u8 , 193u8 , 145u8 , 48u8 , 154u8 , 78u8 , 41u8 , 43u8 , 81u8 , 109u8 , 146u8 , 199u8 , 6u8 , 111u8 , 184u8 , 102u8 , 46u8 , 76u8 , 174u8 , 148u8 , 106u8 , 184u8 , 131u8 , 137u8 , 194u8 , 98u8 , 179u8 , 45u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod call { use super :: runtime_types ; pub type Origin = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > ; pub type StorageDepositLimit = :: core :: option :: Option < :: core :: primitive :: u64 > ; pub type InputData = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_contracts :: primitives :: ContractResult < :: core :: result :: Result < runtime_types :: pallet_contracts :: primitives :: ExecReturnValue , runtime_types :: sp_runtime :: DispatchError > , :: core :: primitive :: u64 , runtime_types :: frame_system :: EventRecord < runtime_types :: node_subtensor_runtime :: RuntimeEvent , :: subxt :: ext :: subxt_core :: utils :: H256 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Call { pub origin : call :: Origin , pub dest : call :: Dest , pub value : call :: Value , pub gas_limit : call :: GasLimit , pub storage_deposit_limit : call :: StorageDepositLimit , pub input_data : call :: InputData , } pub mod instantiate { use super :: runtime_types ; pub type Origin = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > ; pub type StorageDepositLimit = :: core :: option :: Option < :: core :: primitive :: u64 > ; pub type Code = runtime_types :: pallet_contracts :: primitives :: Code < :: subxt :: ext :: subxt_core :: utils :: H256 > ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_contracts :: primitives :: ContractResult < :: core :: result :: Result < runtime_types :: pallet_contracts :: primitives :: InstantiateReturnValue < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , runtime_types :: sp_runtime :: DispatchError > , :: core :: primitive :: u64 , runtime_types :: frame_system :: EventRecord < runtime_types :: node_subtensor_runtime :: RuntimeEvent , :: subxt :: ext :: subxt_core :: utils :: H256 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Instantiate { pub origin : instantiate :: Origin , pub value : instantiate :: Value , pub gas_limit : instantiate :: GasLimit , pub storage_deposit_limit : instantiate :: StorageDepositLimit , pub code : instantiate :: Code , pub data : instantiate :: Data , pub salt : instantiate :: Salt , } pub mod upload_code { use super :: runtime_types ; pub type Origin = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type StorageDepositLimit = :: core :: option :: Option < :: core :: primitive :: u64 > ; pub type Determinism = runtime_types :: pallet_contracts :: wasm :: Determinism ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: pallet_contracts :: primitives :: CodeUploadReturnValue < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u64 > , runtime_types :: sp_runtime :: DispatchError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UploadCode { pub origin : upload_code :: Origin , pub code : upload_code :: Code , pub storage_deposit_limit : upload_code :: StorageDepositLimit , pub determinism : upload_code :: Determinism , } pub mod get_storage { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Key = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , runtime_types :: pallet_contracts :: primitives :: ContractAccessError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetStorage { pub address : get_storage :: Address , pub key : get_storage :: Key , } } } pub mod delegate_info_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct DelegateInfoRuntimeApi ; impl DelegateInfoRuntimeApi { pub fn get_delegates (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetDelegates , types :: get_delegates :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("DelegateInfoRuntimeApi" , "get_delegates" , types :: GetDelegates { } , [84u8 , 157u8 , 45u8 , 177u8 , 179u8 , 241u8 , 44u8 , 84u8 , 110u8 , 16u8 , 136u8 , 163u8 , 253u8 , 254u8 , 50u8 , 65u8 , 4u8 , 133u8 , 11u8 , 37u8 , 147u8 , 242u8 , 164u8 , 114u8 , 229u8 , 60u8 , 254u8 , 236u8 , 50u8 , 122u8 , 98u8 , 218u8 ,] ,) } pub fn get_delegate (& self , delegate_account : types :: get_delegate :: DelegateAccount ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetDelegate , types :: get_delegate :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("DelegateInfoRuntimeApi" , "get_delegate" , types :: GetDelegate { delegate_account , } , [5u8 , 251u8 , 208u8 , 34u8 , 232u8 , 79u8 , 228u8 , 155u8 , 157u8 , 152u8 , 78u8 , 249u8 , 185u8 , 93u8 , 233u8 , 66u8 , 224u8 , 170u8 , 103u8 , 35u8 , 150u8 , 6u8 , 213u8 , 147u8 , 244u8 , 123u8 , 1u8 , 41u8 , 243u8 , 76u8 , 177u8 , 254u8 ,] ,) } pub fn get_delegated (& self , delegatee_account : types :: get_delegated :: DelegateeAccount ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetDelegated , types :: get_delegated :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("DelegateInfoRuntimeApi" , "get_delegated" , types :: GetDelegated { delegatee_account , } , [38u8 , 86u8 , 71u8 , 247u8 , 70u8 , 89u8 , 117u8 , 90u8 , 79u8 , 100u8 , 98u8 , 123u8 , 118u8 , 100u8 , 195u8 , 31u8 , 47u8 , 243u8 , 232u8 , 228u8 , 164u8 , 33u8 , 186u8 , 101u8 , 75u8 , 47u8 , 132u8 , 175u8 , 170u8 , 142u8 , 72u8 , 40u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod get_delegates { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: rpc_info :: delegate_info :: DelegateInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetDelegates { } pub mod get_delegate { use super :: runtime_types ; pub type DelegateAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: delegate_info :: DelegateInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetDelegate { pub delegate_account : get_delegate :: DelegateAccount , } pub mod get_delegated { use super :: runtime_types ; pub type DelegateeAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: pallet_subtensor :: rpc_info :: delegate_info :: DelegateInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) ,) > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetDelegated { pub delegatee_account : get_delegated :: DelegateeAccount , } } } pub mod neuron_info_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct NeuronInfoRuntimeApi ; impl NeuronInfoRuntimeApi { pub fn get_neurons (& self , netuid : types :: get_neurons :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetNeurons , types :: get_neurons :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("NeuronInfoRuntimeApi" , "get_neurons" , types :: GetNeurons { netuid , } , [29u8 , 31u8 , 252u8 , 255u8 , 122u8 , 62u8 , 85u8 , 100u8 , 129u8 , 30u8 , 54u8 , 193u8 , 3u8 , 193u8 , 171u8 , 125u8 , 163u8 , 155u8 , 188u8 , 197u8 , 204u8 , 251u8 , 67u8 , 245u8 , 117u8 , 93u8 , 144u8 , 78u8 , 90u8 , 199u8 , 3u8 , 165u8 ,] ,) } pub fn get_neuron (& self , netuid : types :: get_neuron :: Netuid , uid : types :: get_neuron :: Uid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetNeuron , types :: get_neuron :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("NeuronInfoRuntimeApi" , "get_neuron" , types :: GetNeuron { netuid , uid , } , [139u8 , 168u8 , 134u8 , 98u8 , 35u8 , 45u8 , 15u8 , 62u8 , 231u8 , 241u8 , 7u8 , 48u8 , 3u8 , 217u8 , 103u8 , 109u8 , 164u8 , 154u8 , 98u8 , 137u8 , 243u8 , 24u8 , 2u8 , 137u8 , 59u8 , 162u8 , 182u8 , 249u8 , 218u8 , 143u8 , 203u8 , 47u8 ,] ,) } pub fn get_neurons_lite (& self , netuid : types :: get_neurons_lite :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetNeuronsLite , types :: get_neurons_lite :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("NeuronInfoRuntimeApi" , "get_neurons_lite" , types :: GetNeuronsLite { netuid , } , [20u8 , 84u8 , 89u8 , 226u8 , 124u8 , 150u8 , 169u8 , 14u8 , 75u8 , 218u8 , 136u8 , 236u8 , 137u8 , 198u8 , 127u8 , 143u8 , 45u8 , 46u8 , 65u8 , 46u8 , 242u8 , 69u8 , 180u8 , 63u8 , 11u8 , 56u8 , 115u8 , 37u8 , 5u8 , 164u8 , 180u8 , 190u8 ,] ,) } pub fn get_neuron_lite (& self , netuid : types :: get_neuron_lite :: Netuid , uid : types :: get_neuron_lite :: Uid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetNeuronLite , types :: get_neuron_lite :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("NeuronInfoRuntimeApi" , "get_neuron_lite" , types :: GetNeuronLite { netuid , uid , } , [113u8 , 98u8 , 78u8 , 240u8 , 254u8 , 189u8 , 58u8 , 44u8 , 49u8 , 21u8 , 121u8 , 127u8 , 31u8 , 102u8 , 14u8 , 6u8 , 76u8 , 86u8 , 151u8 , 89u8 , 90u8 , 148u8 , 173u8 , 88u8 , 83u8 , 227u8 , 151u8 , 246u8 , 249u8 , 238u8 , 255u8 , 127u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod get_neurons { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: rpc_info :: neuron_info :: NeuronInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetNeurons { pub netuid : get_neurons :: Netuid , } pub mod get_neuron { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Uid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: neuron_info :: NeuronInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetNeuron { pub netuid : get_neuron :: Netuid , pub uid : get_neuron :: Uid , } pub mod get_neurons_lite { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: rpc_info :: neuron_info :: NeuronInfoLite < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetNeuronsLite { pub netuid : get_neurons_lite :: Netuid , } pub mod get_neuron_lite { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Uid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: neuron_info :: NeuronInfoLite < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetNeuronLite { pub netuid : get_neuron_lite :: Netuid , pub uid : get_neuron_lite :: Uid , } } } pub mod subnet_info_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct SubnetInfoRuntimeApi ; impl SubnetInfoRuntimeApi { pub fn get_subnet_info (& self , netuid : types :: get_subnet_info :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetInfo , types :: get_subnet_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnet_info" , types :: GetSubnetInfo { netuid , } , [119u8 , 89u8 , 29u8 , 164u8 , 38u8 , 24u8 , 27u8 , 41u8 , 75u8 , 128u8 , 72u8 , 38u8 , 94u8 , 237u8 , 65u8 , 220u8 , 67u8 , 33u8 , 247u8 , 221u8 , 83u8 , 97u8 , 246u8 , 220u8 , 236u8 , 121u8 , 10u8 , 103u8 , 163u8 , 252u8 , 174u8 , 236u8 ,] ,) } pub fn get_subnets_info (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetsInfo , types :: get_subnets_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnets_info" , types :: GetSubnetsInfo { } , [49u8 , 55u8 , 178u8 , 80u8 , 22u8 , 54u8 , 132u8 , 142u8 , 192u8 , 53u8 , 221u8 , 2u8 , 205u8 , 114u8 , 100u8 , 168u8 , 110u8 , 31u8 , 204u8 , 214u8 , 88u8 , 36u8 , 115u8 , 133u8 , 254u8 , 195u8 , 90u8 , 109u8 , 221u8 , 236u8 , 104u8 , 246u8 ,] ,) } pub fn get_subnet_info_v2 (& self , netuid : types :: get_subnet_info_v2 :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetInfoV2 , types :: get_subnet_info_v2 :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnet_info_v2" , types :: GetSubnetInfoV2 { netuid , } , [132u8 , 17u8 , 149u8 , 139u8 , 225u8 , 117u8 , 250u8 , 70u8 , 115u8 , 183u8 , 50u8 , 188u8 , 145u8 , 109u8 , 0u8 , 42u8 , 4u8 , 38u8 , 169u8 , 161u8 , 197u8 , 182u8 , 191u8 , 179u8 , 224u8 , 166u8 , 43u8 , 232u8 , 103u8 , 107u8 , 72u8 , 206u8 ,] ,) } pub fn get_subnets_info_v2 (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetsInfoV2 , types :: get_subnets_info_v2 :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnets_info_v2" , types :: GetSubnetsInfoV2 { } , [110u8 , 162u8 , 122u8 , 133u8 , 21u8 , 248u8 , 95u8 , 215u8 , 146u8 , 147u8 , 20u8 , 67u8 , 208u8 , 171u8 , 38u8 , 209u8 , 171u8 , 240u8 , 195u8 , 21u8 , 39u8 , 147u8 , 147u8 , 174u8 , 100u8 , 55u8 , 52u8 , 225u8 , 159u8 , 5u8 , 88u8 , 180u8 ,] ,) } pub fn get_subnet_hyperparams (& self , netuid : types :: get_subnet_hyperparams :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetHyperparams , types :: get_subnet_hyperparams :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnet_hyperparams" , types :: GetSubnetHyperparams { netuid , } , [105u8 , 42u8 , 239u8 , 199u8 , 164u8 , 166u8 , 25u8 , 168u8 , 1u8 , 9u8 , 120u8 , 205u8 , 173u8 , 15u8 , 69u8 , 247u8 , 21u8 , 74u8 , 152u8 , 213u8 , 201u8 , 206u8 , 151u8 , 88u8 , 33u8 , 140u8 , 236u8 , 252u8 , 8u8 , 77u8 , 167u8 , 143u8 ,] ,) } pub fn get_subnet_hyperparams_v2 (& self , netuid : types :: get_subnet_hyperparams_v2 :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetHyperparamsV2 , types :: get_subnet_hyperparams_v2 :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnet_hyperparams_v2" , types :: GetSubnetHyperparamsV2 { netuid , } , [135u8 , 85u8 , 182u8 , 104u8 , 206u8 , 139u8 , 220u8 , 110u8 , 23u8 , 208u8 , 232u8 , 183u8 , 228u8 , 81u8 , 7u8 , 138u8 , 199u8 , 205u8 , 168u8 , 252u8 , 16u8 , 112u8 , 240u8 , 161u8 , 244u8 , 93u8 , 120u8 , 131u8 , 215u8 , 227u8 , 228u8 , 85u8 ,] ,) } pub fn get_all_dynamic_info (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetAllDynamicInfo , types :: get_all_dynamic_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_all_dynamic_info" , types :: GetAllDynamicInfo { } , [222u8 , 205u8 , 49u8 , 222u8 , 215u8 , 78u8 , 194u8 , 45u8 , 164u8 , 157u8 , 243u8 , 202u8 , 173u8 , 27u8 , 96u8 , 22u8 , 78u8 , 108u8 , 7u8 , 36u8 , 240u8 , 52u8 , 134u8 , 64u8 , 180u8 , 124u8 , 219u8 , 207u8 , 165u8 , 50u8 , 106u8 , 125u8 ,] ,) } pub fn get_all_metagraphs (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetAllMetagraphs , types :: get_all_metagraphs :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_all_metagraphs" , types :: GetAllMetagraphs { } , [147u8 , 178u8 , 17u8 , 111u8 , 212u8 , 4u8 , 51u8 , 117u8 , 251u8 , 44u8 , 22u8 , 181u8 , 12u8 , 183u8 , 72u8 , 67u8 , 141u8 , 13u8 , 36u8 , 117u8 , 161u8 , 147u8 , 104u8 , 9u8 , 222u8 , 47u8 , 173u8 , 176u8 , 216u8 , 220u8 , 218u8 , 80u8 ,] ,) } pub fn get_metagraph (& self , netuid : types :: get_metagraph :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetMetagraph , types :: get_metagraph :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_metagraph" , types :: GetMetagraph { netuid , } , [53u8 , 68u8 , 46u8 , 132u8 , 163u8 , 124u8 , 29u8 , 39u8 , 68u8 , 80u8 , 26u8 , 254u8 , 233u8 , 68u8 , 1u8 , 152u8 , 169u8 , 134u8 , 82u8 , 26u8 , 139u8 , 16u8 , 151u8 , 215u8 , 225u8 , 93u8 , 165u8 , 31u8 , 82u8 , 235u8 , 55u8 , 160u8 ,] ,) } pub fn get_all_mechagraphs (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetAllMechagraphs , types :: get_all_mechagraphs :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_all_mechagraphs" , types :: GetAllMechagraphs { } , [53u8 , 137u8 , 190u8 , 46u8 , 78u8 , 14u8 , 179u8 , 75u8 , 18u8 , 22u8 , 117u8 , 50u8 , 36u8 , 137u8 , 206u8 , 135u8 , 101u8 , 62u8 , 182u8 , 32u8 , 212u8 , 249u8 , 80u8 , 169u8 , 78u8 , 131u8 , 83u8 , 228u8 , 25u8 , 69u8 , 232u8 , 246u8 ,] ,) } pub fn get_mechagraph (& self , netuid : types :: get_mechagraph :: Netuid , mecid : types :: get_mechagraph :: Mecid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetMechagraph , types :: get_mechagraph :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_mechagraph" , types :: GetMechagraph { netuid , mecid , } , [155u8 , 74u8 , 145u8 , 49u8 , 26u8 , 134u8 , 122u8 , 2u8 , 25u8 , 44u8 , 6u8 , 130u8 , 138u8 , 228u8 , 35u8 , 180u8 , 130u8 , 98u8 , 171u8 , 9u8 , 177u8 , 30u8 , 101u8 , 109u8 , 149u8 , 217u8 , 74u8 , 219u8 , 77u8 , 130u8 , 247u8 , 93u8 ,] ,) } pub fn get_dynamic_info (& self , netuid : types :: get_dynamic_info :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetDynamicInfo , types :: get_dynamic_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_dynamic_info" , types :: GetDynamicInfo { netuid , } , [182u8 , 161u8 , 5u8 , 148u8 , 114u8 , 241u8 , 151u8 , 126u8 , 23u8 , 238u8 , 62u8 , 49u8 , 27u8 , 18u8 , 162u8 , 29u8 , 11u8 , 62u8 , 121u8 , 139u8 , 148u8 , 35u8 , 199u8 , 154u8 , 221u8 , 75u8 , 89u8 , 48u8 , 165u8 , 157u8 , 152u8 , 241u8 ,] ,) } pub fn get_subnet_state (& self , netuid : types :: get_subnet_state :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetState , types :: get_subnet_state :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnet_state" , types :: GetSubnetState { netuid , } , [142u8 , 252u8 , 50u8 , 8u8 , 72u8 , 70u8 , 156u8 , 59u8 , 8u8 , 178u8 , 205u8 , 150u8 , 65u8 , 3u8 , 213u8 , 14u8 , 110u8 , 60u8 , 6u8 , 154u8 , 1u8 , 181u8 , 158u8 , 80u8 , 120u8 , 220u8 , 47u8 , 84u8 , 120u8 , 251u8 , 43u8 , 132u8 ,] ,) } pub fn get_selective_metagraph (& self , netuid : types :: get_selective_metagraph :: Netuid , metagraph_indexes : types :: get_selective_metagraph :: MetagraphIndexes ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSelectiveMetagraph , types :: get_selective_metagraph :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_selective_metagraph" , types :: GetSelectiveMetagraph { netuid , metagraph_indexes , } , [229u8 , 144u8 , 177u8 , 9u8 , 212u8 , 157u8 , 223u8 , 245u8 , 136u8 , 93u8 , 11u8 , 108u8 , 141u8 , 172u8 , 206u8 , 225u8 , 152u8 , 184u8 , 170u8 , 52u8 , 214u8 , 81u8 , 184u8 , 116u8 , 205u8 , 70u8 , 204u8 , 181u8 , 162u8 , 11u8 , 175u8 , 236u8 ,] ,) } pub fn get_coldkey_auto_stake_hotkey (& self , coldkey : types :: get_coldkey_auto_stake_hotkey :: Coldkey , netuid : types :: get_coldkey_auto_stake_hotkey :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetColdkeyAutoStakeHotkey , types :: get_coldkey_auto_stake_hotkey :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_coldkey_auto_stake_hotkey" , types :: GetColdkeyAutoStakeHotkey { coldkey , netuid , } , [110u8 , 21u8 , 126u8 , 47u8 , 8u8 , 23u8 , 175u8 , 187u8 , 196u8 , 16u8 , 57u8 , 59u8 , 210u8 , 245u8 , 69u8 , 143u8 , 103u8 , 187u8 , 69u8 , 232u8 , 241u8 , 124u8 , 232u8 , 54u8 , 157u8 , 3u8 , 179u8 , 168u8 , 191u8 , 231u8 , 144u8 , 165u8 ,] ,) } pub fn get_selective_mechagraph (& self , netuid : types :: get_selective_mechagraph :: Netuid , subid : types :: get_selective_mechagraph :: Subid , metagraph_indexes : types :: get_selective_mechagraph :: MetagraphIndexes ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSelectiveMechagraph , types :: get_selective_mechagraph :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_selective_mechagraph" , types :: GetSelectiveMechagraph { netuid , subid , metagraph_indexes , } , [243u8 , 61u8 , 89u8 , 140u8 , 158u8 , 223u8 , 184u8 , 232u8 , 141u8 , 107u8 , 33u8 , 179u8 , 110u8 , 131u8 , 222u8 , 39u8 , 194u8 , 249u8 , 2u8 , 44u8 , 4u8 , 58u8 , 50u8 , 247u8 , 11u8 , 8u8 , 63u8 , 171u8 , 218u8 , 145u8 , 131u8 , 156u8 ,] ,) } pub fn get_subnet_to_prune (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetToPrune , types :: get_subnet_to_prune :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnet_to_prune" , types :: GetSubnetToPrune { } , [183u8 , 139u8 , 194u8 , 87u8 , 222u8 , 32u8 , 229u8 , 247u8 , 154u8 , 61u8 , 62u8 , 119u8 , 86u8 , 52u8 , 24u8 , 6u8 , 77u8 , 20u8 , 218u8 , 118u8 , 229u8 , 243u8 , 142u8 , 0u8 , 2u8 , 80u8 , 245u8 , 198u8 , 21u8 , 221u8 , 68u8 , 227u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod get_subnet_info { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: subnet_info :: SubnetInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetInfo { pub netuid : get_subnet_info :: Netuid , } pub mod get_subnets_info { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: subnet_info :: SubnetInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetsInfo { } pub mod get_subnet_info_v2 { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: subnet_info :: SubnetInfov2 < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetInfoV2 { pub netuid : get_subnet_info_v2 :: Netuid , } pub mod get_subnets_info_v2 { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: subnet_info :: SubnetInfov2 < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetsInfoV2 { } pub mod get_subnet_hyperparams { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: subnet_info :: SubnetHyperparams > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetHyperparams { pub netuid : get_subnet_hyperparams :: Netuid , } pub mod get_subnet_hyperparams_v2 { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: subnet_info :: SubnetHyperparamsV2 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetHyperparamsV2 { pub netuid : get_subnet_hyperparams_v2 :: Netuid , } pub mod get_all_dynamic_info { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: dynamic_info :: DynamicInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetAllDynamicInfo { } pub mod get_all_metagraphs { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: metagraph :: Metagraph < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetAllMetagraphs { } pub mod get_metagraph { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: metagraph :: Metagraph < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetMetagraph { pub netuid : get_metagraph :: Netuid , } pub mod get_all_mechagraphs { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: metagraph :: Metagraph < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetAllMechagraphs { } pub mod get_mechagraph { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Mecid = :: core :: primitive :: u8 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: metagraph :: Metagraph < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetMechagraph { pub netuid : get_mechagraph :: Netuid , pub mecid : get_mechagraph :: Mecid , } pub mod get_dynamic_info { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: dynamic_info :: DynamicInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetDynamicInfo { pub netuid : get_dynamic_info :: Netuid , } pub mod get_subnet_state { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: show_subnet :: SubnetState < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetState { pub netuid : get_subnet_state :: Netuid , } pub mod get_selective_metagraph { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MetagraphIndexes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: metagraph :: SelectiveMetagraph < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSelectiveMetagraph { pub netuid : get_selective_metagraph :: Netuid , pub metagraph_indexes : get_selective_metagraph :: MetagraphIndexes , } pub mod get_coldkey_auto_stake_hotkey { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetColdkeyAutoStakeHotkey { pub coldkey : get_coldkey_auto_stake_hotkey :: Coldkey , pub netuid : get_coldkey_auto_stake_hotkey :: Netuid , } pub mod get_selective_mechagraph { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Subid = :: core :: primitive :: u8 ; pub type MetagraphIndexes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: metagraph :: SelectiveMetagraph < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSelectiveMechagraph { pub netuid : get_selective_mechagraph :: Netuid , pub subid : get_selective_mechagraph :: Subid , pub metagraph_indexes : get_selective_mechagraph :: MetagraphIndexes , } pub mod get_subnet_to_prune { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: core :: primitive :: u16 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetToPrune { } } } pub mod stake_info_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct StakeInfoRuntimeApi ; impl StakeInfoRuntimeApi { pub fn get_stake_info_for_coldkey (& self , coldkey_account : types :: get_stake_info_for_coldkey :: ColdkeyAccount ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetStakeInfoForColdkey , types :: get_stake_info_for_coldkey :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("StakeInfoRuntimeApi" , "get_stake_info_for_coldkey" , types :: GetStakeInfoForColdkey { coldkey_account , } , [143u8 , 77u8 , 215u8 , 163u8 , 187u8 , 63u8 , 84u8 , 15u8 , 21u8 , 63u8 , 12u8 , 196u8 , 129u8 , 195u8 , 95u8 , 120u8 , 196u8 , 70u8 , 200u8 , 84u8 , 169u8 , 188u8 , 150u8 , 136u8 , 119u8 , 30u8 , 171u8 , 87u8 , 73u8 , 189u8 , 186u8 , 108u8 ,] ,) } pub fn get_stake_info_for_coldkeys (& self , coldkey_accounts : types :: get_stake_info_for_coldkeys :: ColdkeyAccounts ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetStakeInfoForColdkeys , types :: get_stake_info_for_coldkeys :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("StakeInfoRuntimeApi" , "get_stake_info_for_coldkeys" , types :: GetStakeInfoForColdkeys { coldkey_accounts , } , [1u8 , 78u8 , 223u8 , 196u8 , 230u8 , 76u8 , 101u8 , 184u8 , 52u8 , 211u8 , 205u8 , 55u8 , 53u8 , 111u8 , 1u8 , 120u8 , 132u8 , 164u8 , 143u8 , 245u8 , 188u8 , 192u8 , 212u8 , 42u8 , 2u8 , 67u8 , 107u8 , 74u8 , 118u8 , 82u8 , 217u8 , 60u8 ,] ,) } pub fn get_stake_info_for_hotkey_coldkey_netuid (& self , hotkey_account : types :: get_stake_info_for_hotkey_coldkey_netuid :: HotkeyAccount , coldkey_account : types :: get_stake_info_for_hotkey_coldkey_netuid :: ColdkeyAccount , netuid : types :: get_stake_info_for_hotkey_coldkey_netuid :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetStakeInfoForHotkeyColdkeyNetuid , types :: get_stake_info_for_hotkey_coldkey_netuid :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("StakeInfoRuntimeApi" , "get_stake_info_for_hotkey_coldkey_netuid" , types :: GetStakeInfoForHotkeyColdkeyNetuid { hotkey_account , coldkey_account , netuid , } , [228u8 , 228u8 , 175u8 , 61u8 , 136u8 , 161u8 , 60u8 , 52u8 , 116u8 , 133u8 , 188u8 , 29u8 , 43u8 , 145u8 , 157u8 , 49u8 , 241u8 , 175u8 , 142u8 , 150u8 , 241u8 , 79u8 , 204u8 , 222u8 , 165u8 , 138u8 , 5u8 , 139u8 , 51u8 , 89u8 , 87u8 , 136u8 ,] ,) } pub fn get_stake_fee (& self , origin : types :: get_stake_fee :: Origin , origin_coldkey_account : types :: get_stake_fee :: OriginColdkeyAccount , destination : types :: get_stake_fee :: Destination , destination_coldkey_account : types :: get_stake_fee :: DestinationColdkeyAccount , amount : types :: get_stake_fee :: Amount ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetStakeFee , types :: get_stake_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("StakeInfoRuntimeApi" , "get_stake_fee" , types :: GetStakeFee { origin , origin_coldkey_account , destination , destination_coldkey_account , amount , } , [183u8 , 139u8 , 137u8 , 149u8 , 162u8 , 63u8 , 53u8 , 161u8 , 255u8 , 164u8 , 217u8 , 252u8 , 213u8 , 205u8 , 138u8 , 70u8 , 200u8 , 241u8 , 162u8 , 190u8 , 81u8 , 248u8 , 140u8 , 38u8 , 83u8 , 12u8 , 110u8 , 70u8 , 15u8 , 93u8 , 70u8 , 39u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod get_stake_info_for_coldkey { use super :: runtime_types ; pub type ColdkeyAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: rpc_info :: stake_info :: StakeInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetStakeInfoForColdkey { pub coldkey_account : get_stake_info_for_coldkey :: ColdkeyAccount , } pub mod get_stake_info_for_coldkeys { use super :: runtime_types ; pub type ColdkeyAccounts = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: rpc_info :: stake_info :: StakeInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ,) > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetStakeInfoForColdkeys { pub coldkey_accounts : get_stake_info_for_coldkeys :: ColdkeyAccounts , } pub mod get_stake_info_for_hotkey_coldkey_netuid { use super :: runtime_types ; pub type HotkeyAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ColdkeyAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: stake_info :: StakeInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetStakeInfoForHotkeyColdkeyNetuid { pub hotkey_account : get_stake_info_for_hotkey_coldkey_netuid :: HotkeyAccount , pub coldkey_account : get_stake_info_for_hotkey_coldkey_netuid :: ColdkeyAccount , pub netuid : get_stake_info_for_hotkey_coldkey_netuid :: Netuid , } pub mod get_stake_fee { use super :: runtime_types ; pub type Origin = :: core :: option :: Option < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 ,) > ; pub type OriginColdkeyAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Destination = :: core :: option :: Option < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 ,) > ; pub type DestinationColdkeyAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetStakeFee { pub origin : get_stake_fee :: Origin , pub origin_coldkey_account : get_stake_fee :: OriginColdkeyAccount , pub destination : get_stake_fee :: Destination , pub destination_coldkey_account : get_stake_fee :: DestinationColdkeyAccount , pub amount : get_stake_fee :: Amount , } } } pub mod subnet_registration_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct SubnetRegistrationRuntimeApi ; impl SubnetRegistrationRuntimeApi { pub fn get_network_registration_cost (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetNetworkRegistrationCost , types :: get_network_registration_cost :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetRegistrationRuntimeApi" , "get_network_registration_cost" , types :: GetNetworkRegistrationCost { } , [152u8 , 137u8 , 58u8 , 141u8 , 204u8 , 239u8 , 63u8 , 8u8 , 76u8 , 223u8 , 54u8 , 219u8 , 150u8 , 155u8 , 129u8 , 130u8 , 64u8 , 40u8 , 177u8 , 153u8 , 29u8 , 1u8 , 234u8 , 30u8 , 20u8 , 218u8 , 17u8 , 254u8 , 18u8 , 135u8 , 133u8 , 25u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod get_network_registration_cost { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetNetworkRegistrationCost { } } } pub mod babe_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " API necessary for block authorship with BABE."] pub struct BabeApi ; impl BabeApi { # [doc = " Return the configuration for BABE."] pub fn configuration (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Configuration , types :: configuration :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "configuration" , types :: Configuration { } , [50u8 , 198u8 , 27u8 , 26u8 , 92u8 , 199u8 , 8u8 , 181u8 , 12u8 , 199u8 , 116u8 , 247u8 , 95u8 , 70u8 , 241u8 , 24u8 , 14u8 , 250u8 , 179u8 , 77u8 , 251u8 , 55u8 , 133u8 , 8u8 , 142u8 , 107u8 , 6u8 , 214u8 , 228u8 , 38u8 , 134u8 , 153u8 ,] ,) } # [doc = " Returns the slot that started the current epoch."] pub fn current_epoch_start (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentEpochStart , types :: current_epoch_start :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Returns information regarding the current epoch."] pub fn current_epoch (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentEpoch , types :: current_epoch :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "current_epoch" , types :: CurrentEpoch { } , [70u8 , 68u8 , 222u8 , 110u8 , 96u8 , 143u8 , 126u8 , 136u8 , 182u8 , 163u8 , 104u8 , 122u8 , 21u8 , 156u8 , 6u8 , 26u8 , 86u8 , 145u8 , 153u8 , 133u8 , 251u8 , 137u8 , 238u8 , 218u8 , 132u8 , 218u8 , 222u8 , 140u8 , 190u8 , 232u8 , 197u8 , 86u8 ,] ,) } # [doc = " Returns information regarding the next epoch (which was already"] # [doc = " previously announced)."] pub fn next_epoch (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: NextEpoch , types :: next_epoch :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "next_epoch" , types :: NextEpoch { } , [141u8 , 86u8 , 122u8 , 185u8 , 215u8 , 255u8 , 142u8 , 131u8 , 8u8 , 178u8 , 143u8 , 200u8 , 148u8 , 84u8 , 174u8 , 215u8 , 91u8 , 251u8 , 243u8 , 155u8 , 92u8 , 13u8 , 44u8 , 53u8 , 128u8 , 26u8 , 165u8 , 172u8 , 49u8 , 33u8 , 130u8 , 148u8 ,] ,) } # [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 : types :: generate_key_ownership_proof :: Slot , authority_id : types :: generate_key_ownership_proof :: AuthorityId ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GenerateKeyOwnershipProof , types :: generate_key_ownership_proof :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "generate_key_ownership_proof" , types :: GenerateKeyOwnershipProof { slot , authority_id , } , [13u8 , 228u8 , 75u8 , 150u8 , 203u8 , 132u8 , 82u8 , 188u8 , 17u8 , 70u8 , 169u8 , 19u8 , 102u8 , 96u8 , 217u8 , 209u8 , 215u8 , 196u8 , 78u8 , 141u8 , 12u8 , 14u8 , 151u8 , 65u8 , 173u8 , 2u8 , 100u8 , 150u8 , 18u8 , 99u8 , 19u8 , 196u8 ,] ,) } # [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 : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof , key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SubmitReportEquivocationUnsignedExtrinsic , types :: submit_report_equivocation_unsigned_extrinsic :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "submit_report_equivocation_unsigned_extrinsic" , types :: SubmitReportEquivocationUnsignedExtrinsic { equivocation_proof , key_owner_proof , } , [99u8 , 80u8 , 38u8 , 173u8 , 235u8 , 48u8 , 229u8 , 88u8 , 250u8 , 165u8 , 57u8 , 245u8 , 85u8 , 156u8 , 114u8 , 190u8 , 144u8 , 78u8 , 37u8 , 22u8 , 36u8 , 36u8 , 53u8 , 174u8 , 118u8 , 222u8 , 16u8 , 159u8 , 201u8 , 254u8 , 233u8 , 82u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod configuration { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_consensus_babe :: BabeConfiguration ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Configuration { } pub mod current_epoch_start { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_consensus_slots :: Slot ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentEpochStart { } pub mod current_epoch { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_consensus_babe :: Epoch ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentEpoch { } pub mod next_epoch { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_consensus_babe :: Epoch ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NextEpoch { } pub mod generate_key_ownership_proof { use super :: runtime_types ; pub type Slot = runtime_types :: sp_consensus_slots :: Slot ; pub type AuthorityId = runtime_types :: sp_consensus_babe :: app :: Public ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: sp_consensus_babe :: OpaqueKeyOwnershipProof > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { pub slot : generate_key_ownership_proof :: Slot , pub authority_id : generate_key_ownership_proof :: AuthorityId , } pub mod submit_report_equivocation_unsigned_extrinsic { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , runtime_types :: sp_consensus_babe :: app :: Public > ; pub type KeyOwnerProof = runtime_types :: sp_consensus_babe :: OpaqueKeyOwnershipProof ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < () > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { pub equivocation_proof : submit_report_equivocation_unsigned_extrinsic :: EquivocationProof , pub key_owner_proof : submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof , } } } pub mod swap_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct SwapRuntimeApi ; impl SwapRuntimeApi { pub fn current_alpha_price (& self , netuid : types :: current_alpha_price :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentAlphaPrice , types :: current_alpha_price :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SwapRuntimeApi" , "current_alpha_price" , types :: CurrentAlphaPrice { netuid , } , [11u8 , 188u8 , 171u8 , 199u8 , 218u8 , 30u8 , 244u8 , 88u8 , 54u8 , 217u8 , 110u8 , 45u8 , 207u8 , 243u8 , 137u8 , 75u8 , 164u8 , 95u8 , 95u8 , 168u8 , 192u8 , 97u8 , 155u8 , 169u8 , 242u8 , 215u8 , 135u8 , 202u8 , 236u8 , 133u8 , 147u8 , 32u8 ,] ,) } pub fn sim_swap_tao_for_alpha (& self , netuid : types :: sim_swap_tao_for_alpha :: Netuid , tao : types :: sim_swap_tao_for_alpha :: Tao ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SimSwapTaoForAlpha , types :: sim_swap_tao_for_alpha :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SwapRuntimeApi" , "sim_swap_tao_for_alpha" , types :: SimSwapTaoForAlpha { netuid , tao , } , [35u8 , 188u8 , 23u8 , 31u8 , 145u8 , 29u8 , 139u8 , 70u8 , 5u8 , 23u8 , 186u8 , 94u8 , 19u8 , 183u8 , 174u8 , 190u8 , 193u8 , 89u8 , 168u8 , 169u8 , 107u8 , 128u8 , 174u8 , 212u8 , 94u8 , 144u8 , 26u8 , 200u8 , 90u8 , 74u8 , 40u8 , 203u8 ,] ,) } pub fn sim_swap_alpha_for_tao (& self , netuid : types :: sim_swap_alpha_for_tao :: Netuid , alpha : types :: sim_swap_alpha_for_tao :: Alpha ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SimSwapAlphaForTao , types :: sim_swap_alpha_for_tao :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SwapRuntimeApi" , "sim_swap_alpha_for_tao" , types :: SimSwapAlphaForTao { netuid , alpha , } , [26u8 , 83u8 , 187u8 , 158u8 , 202u8 , 176u8 , 211u8 , 12u8 , 1u8 , 105u8 , 149u8 , 223u8 , 114u8 , 126u8 , 55u8 , 169u8 , 145u8 , 12u8 , 141u8 , 128u8 , 220u8 , 255u8 , 121u8 , 100u8 , 118u8 , 81u8 , 16u8 , 179u8 , 246u8 , 141u8 , 134u8 , 231u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod current_alpha_price { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentAlphaPrice { pub netuid : current_alpha_price :: Netuid , } pub mod sim_swap_tao_for_alpha { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Tao = :: core :: primitive :: u64 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_subtensor_swap_runtime_api :: SimSwapResult ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SimSwapTaoForAlpha { pub netuid : sim_swap_tao_for_alpha :: Netuid , pub tao : sim_swap_tao_for_alpha :: Tao , } pub mod sim_swap_alpha_for_tao { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Alpha = :: core :: primitive :: u64 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_subtensor_swap_runtime_api :: SimSwapResult ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SimSwapAlphaForTao { pub netuid : sim_swap_alpha_for_tao :: Netuid , pub alpha : sim_swap_alpha_for_tao :: Alpha , } } } } pub fn view_functions () -> ViewFunctionsApi { ViewFunctionsApi } pub fn custom () -> CustomValuesApi { CustomValuesApi } pub struct CustomValuesApi ; impl CustomValuesApi { } 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 aura (& self) -> aura :: constants :: ConstantsApi { aura :: constants :: ConstantsApi } pub fn grandpa (& self) -> grandpa :: constants :: ConstantsApi { grandpa :: 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 subtensor_module (& self) -> subtensor_module :: constants :: ConstantsApi { subtensor_module :: constants :: ConstantsApi } pub fn utility (& self) -> utility :: constants :: ConstantsApi { utility :: constants :: ConstantsApi } pub fn multisig (& self) -> multisig :: constants :: ConstantsApi { multisig :: constants :: ConstantsApi } pub fn scheduler (& self) -> scheduler :: constants :: ConstantsApi { scheduler :: constants :: ConstantsApi } pub fn proxy (& self) -> proxy :: constants :: ConstantsApi { proxy :: constants :: ConstantsApi } pub fn registry (& self) -> registry :: constants :: ConstantsApi { registry :: constants :: ConstantsApi } pub fn commitments (& self) -> commitments :: constants :: ConstantsApi { commitments :: constants :: ConstantsApi } pub fn safe_mode (& self) -> safe_mode :: constants :: ConstantsApi { safe_mode :: constants :: ConstantsApi } pub fn drand (& self) -> drand :: constants :: ConstantsApi { drand :: constants :: ConstantsApi } pub fn crowdloan (& self) -> crowdloan :: constants :: ConstantsApi { crowdloan :: constants :: ConstantsApi } pub fn swap (& self) -> swap :: constants :: ConstantsApi { swap :: constants :: ConstantsApi } pub fn contracts (& self) -> contracts :: constants :: ConstantsApi { contracts :: constants :: ConstantsApi } } pub struct StorageApi ; impl StorageApi { pub fn system (& self) -> system :: storage :: StorageApi { system :: storage :: StorageApi } pub fn randomness_collective_flip (& self) -> randomness_collective_flip :: storage :: StorageApi { randomness_collective_flip :: storage :: StorageApi } pub fn timestamp (& self) -> timestamp :: storage :: StorageApi { timestamp :: storage :: StorageApi } pub fn aura (& self) -> aura :: storage :: StorageApi { aura :: storage :: StorageApi } pub fn grandpa (& self) -> grandpa :: storage :: StorageApi { grandpa :: 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 subtensor_module (& self) -> subtensor_module :: storage :: StorageApi { subtensor_module :: storage :: StorageApi } pub fn sudo (& self) -> sudo :: storage :: StorageApi { sudo :: storage :: StorageApi } pub fn multisig (& self) -> multisig :: storage :: StorageApi { multisig :: storage :: StorageApi } pub fn preimage (& self) -> preimage :: storage :: StorageApi { preimage :: storage :: StorageApi } pub fn scheduler (& self) -> scheduler :: storage :: StorageApi { scheduler :: storage :: StorageApi } pub fn proxy (& self) -> proxy :: storage :: StorageApi { proxy :: storage :: StorageApi } pub fn registry (& self) -> registry :: storage :: StorageApi { registry :: storage :: StorageApi } pub fn commitments (& self) -> commitments :: storage :: StorageApi { commitments :: storage :: StorageApi } pub fn admin_utils (& self) -> admin_utils :: storage :: StorageApi { admin_utils :: storage :: StorageApi } pub fn safe_mode (& self) -> safe_mode :: storage :: StorageApi { safe_mode :: 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 base_fee (& self) -> base_fee :: storage :: StorageApi { base_fee :: storage :: StorageApi } pub fn drand (& self) -> drand :: storage :: StorageApi { drand :: storage :: StorageApi } pub fn crowdloan (& self) -> crowdloan :: storage :: StorageApi { crowdloan :: storage :: StorageApi } pub fn swap (& self) -> swap :: storage :: StorageApi { swap :: storage :: StorageApi } pub fn contracts (& self) -> contracts :: storage :: StorageApi { contracts :: storage :: StorageApi } pub fn mev_shield (& self) -> mev_shield :: storage :: StorageApi { mev_shield :: 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 grandpa (& self) -> grandpa :: calls :: TransactionApi { grandpa :: calls :: TransactionApi } pub fn balances (& self) -> balances :: calls :: TransactionApi { balances :: calls :: TransactionApi } pub fn subtensor_module (& self) -> subtensor_module :: calls :: TransactionApi { subtensor_module :: calls :: TransactionApi } pub fn utility (& self) -> utility :: calls :: TransactionApi { utility :: calls :: TransactionApi } pub fn sudo (& self) -> sudo :: calls :: TransactionApi { sudo :: calls :: TransactionApi } pub fn multisig (& self) -> multisig :: calls :: TransactionApi { multisig :: calls :: TransactionApi } pub fn preimage (& self) -> preimage :: calls :: TransactionApi { preimage :: calls :: TransactionApi } pub fn scheduler (& self) -> scheduler :: calls :: TransactionApi { scheduler :: calls :: TransactionApi } pub fn proxy (& self) -> proxy :: calls :: TransactionApi { proxy :: calls :: TransactionApi } pub fn registry (& self) -> registry :: calls :: TransactionApi { registry :: calls :: TransactionApi } pub fn commitments (& self) -> commitments :: calls :: TransactionApi { commitments :: calls :: TransactionApi } pub fn admin_utils (& self) -> admin_utils :: calls :: TransactionApi { admin_utils :: calls :: TransactionApi } pub fn safe_mode (& self) -> safe_mode :: calls :: TransactionApi { safe_mode :: calls :: TransactionApi } pub fn ethereum (& self) -> ethereum :: calls :: TransactionApi { ethereum :: calls :: TransactionApi } pub fn evm (& self) -> evm :: calls :: TransactionApi { evm :: calls :: TransactionApi } pub fn base_fee (& self) -> base_fee :: calls :: TransactionApi { base_fee :: calls :: TransactionApi } pub fn drand (& self) -> drand :: calls :: TransactionApi { drand :: calls :: TransactionApi } pub fn crowdloan (& self) -> crowdloan :: calls :: TransactionApi { crowdloan :: calls :: TransactionApi } pub fn swap (& self) -> swap :: calls :: TransactionApi { swap :: calls :: TransactionApi } pub fn contracts (& self) -> contracts :: calls :: TransactionApi { contracts :: calls :: TransactionApi } pub fn mev_shield (& self) -> mev_shield :: calls :: TransactionApi { mev_shield :: calls :: TransactionApi } } pub struct ViewFunctionsApi ; impl ViewFunctionsApi { pub fn proxy (& self) -> proxy :: view_functions :: ViewFunctionsApi { proxy :: view_functions :: ViewFunctionsApi } } # [doc = r" check whether the metadata provided is aligned with this statically generated code."] pub fn is_codegen_valid_for (metadata : & :: subxt :: ext :: subxt_core :: Metadata) -> bool { let runtime_metadata_hash = metadata . hasher () . only_these_pallets (& PALLETS) . only_these_runtime_apis (& RUNTIME_APIS) . hash () ; runtime_metadata_hash == [100u8 , 72u8 , 82u8 , 88u8 , 132u8 , 151u8 , 237u8 , 16u8 , 91u8 , 227u8 , 206u8 , 248u8 , 82u8 , 200u8 , 200u8 , 220u8 , 226u8 , 207u8 , 247u8 , 249u8 , 254u8 , 55u8 , 117u8 , 100u8 , 162u8 , 235u8 , 233u8 , 52u8 , 32u8 , 41u8 , 175u8 , 152u8 ,] } pub mod system { use super :: root_mod ; use super :: runtime_types ; # [doc = "Error for the System pallet"] pub type Error = runtime_types :: frame_system :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Make some on-chain remark."] # [doc = ""] # [doc = "Can be executed by every `origin`."] pub struct Remark { pub remark : remark :: Remark , } pub mod remark { use super :: runtime_types ; pub type Remark = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Remark { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "remark" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the number of pages in the WebAssembly environment's heap."] pub struct SetHeapPages { pub pages : set_heap_pages :: Pages , } pub mod set_heap_pages { use super :: runtime_types ; pub type Pages = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetHeapPages { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "set_heap_pages" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the new runtime code."] pub struct SetCode { pub code : set_code :: Code , } pub mod set_code { use super :: runtime_types ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCode { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "set_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the new runtime code without doing any checks of the given `code`."] # [doc = ""] # [doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"] # [doc = "version!"] pub struct SetCodeWithoutChecks { pub code : set_code_without_checks :: Code , } pub mod set_code_without_checks { use super :: runtime_types ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCodeWithoutChecks { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "set_code_without_checks" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set some items of storage."] pub struct SetStorage { pub items : set_storage :: Items , } pub mod set_storage { use super :: runtime_types ; pub type Items = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetStorage { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "set_storage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Kill some items from storage."] pub struct KillStorage { pub keys : kill_storage :: Keys , } pub mod kill_storage { use super :: runtime_types ; pub type Keys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for KillStorage { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "kill_storage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Kill all storage items with a key that starts with the given prefix."] # [doc = ""] # [doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] # [doc = "the prefix we are removing to accurately calculate the weight of this function."] pub struct KillPrefix { pub prefix : kill_prefix :: Prefix , pub subkeys : kill_prefix :: Subkeys , } pub mod kill_prefix { use super :: runtime_types ; pub type Prefix = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Subkeys = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for KillPrefix { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "kill_prefix" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Make some on-chain remark and emit event."] pub struct RemarkWithEvent { pub remark : remark_with_event :: Remark , } pub mod remark_with_event { use super :: runtime_types ; pub type Remark = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemarkWithEvent { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "remark_with_event" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "This call requires Root origin."] pub struct AuthorizeUpgrade { pub code_hash : authorize_upgrade :: CodeHash , } pub mod authorize_upgrade { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AuthorizeUpgrade { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "authorize_upgrade" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"] # [doc = "example that the spec name remains the same and that the version number increases. Not"] # [doc = "recommended for normal use. Use `authorize_upgrade` instead."] # [doc = ""] # [doc = "This call requires Root origin."] pub struct AuthorizeUpgradeWithoutChecks { pub code_hash : authorize_upgrade_without_checks :: CodeHash , } pub mod authorize_upgrade_without_checks { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AuthorizeUpgradeWithoutChecks { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "authorize_upgrade_without_checks" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."] # [doc = ""] # [doc = "If the authorization required a version check, this call will ensure the spec name"] # [doc = "remains unchanged and that the spec version has increased."] # [doc = ""] # [doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"] # [doc = "the new `code` in the same block or attempt to schedule the upgrade."] # [doc = ""] # [doc = "All origins are allowed."] pub struct ApplyAuthorizedUpgrade { pub code : apply_authorized_upgrade :: Code , } pub mod apply_authorized_upgrade { use super :: runtime_types ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ApplyAuthorizedUpgrade { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "apply_authorized_upgrade" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Make some on-chain remark."] # [doc = ""] # [doc = "Can be executed by every `origin`."] pub fn remark (& self , remark : types :: remark :: Remark ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Remark > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Set the number of pages in the WebAssembly environment's heap."] pub fn set_heap_pages (& self , pages : types :: set_heap_pages :: Pages ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetHeapPages > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Set the new runtime code."] pub fn set_code (& self , code : types :: set_code :: Code ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Set the new runtime code without doing any checks of the given `code`."] # [doc = ""] # [doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"] # [doc = "version!"] pub fn set_code_without_checks (& self , code : types :: set_code_without_checks :: Code ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCodeWithoutChecks > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Set some items of storage."] pub fn set_storage (& self , items : types :: set_storage :: Items ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetStorage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Kill some items from storage."] pub fn kill_storage (& self , keys : types :: kill_storage :: Keys ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: KillStorage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Kill all storage items with a key that starts with the given prefix."] # [doc = ""] # [doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] # [doc = "the prefix we are removing to accurately calculate the weight of this function."] pub fn kill_prefix (& self , prefix : types :: kill_prefix :: Prefix , subkeys : types :: kill_prefix :: Subkeys ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: KillPrefix > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Make some on-chain remark and emit event."] pub fn remark_with_event (& self , remark : types :: remark_with_event :: Remark ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemarkWithEvent > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "This call requires Root origin."] pub fn authorize_upgrade (& self , code_hash : types :: authorize_upgrade :: CodeHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AuthorizeUpgrade > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "authorize_upgrade" , types :: AuthorizeUpgrade { code_hash , } , [4u8 , 14u8 , 76u8 , 107u8 , 209u8 , 129u8 , 9u8 , 39u8 , 193u8 , 17u8 , 84u8 , 254u8 , 170u8 , 214u8 , 24u8 , 155u8 , 29u8 , 184u8 , 249u8 , 241u8 , 109u8 , 58u8 , 145u8 , 131u8 , 109u8 , 63u8 , 38u8 , 165u8 , 107u8 , 215u8 , 217u8 , 172u8 ,]) } # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"] # [doc = "example that the spec name remains the same and that the version number increases. Not"] # [doc = "recommended for normal use. Use `authorize_upgrade` instead."] # [doc = ""] # [doc = "This call requires Root origin."] pub fn authorize_upgrade_without_checks (& self , code_hash : types :: authorize_upgrade_without_checks :: CodeHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AuthorizeUpgradeWithoutChecks > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "authorize_upgrade_without_checks" , types :: AuthorizeUpgradeWithoutChecks { code_hash , } , [126u8 , 126u8 , 55u8 , 26u8 , 47u8 , 55u8 , 66u8 , 8u8 , 167u8 , 18u8 , 29u8 , 136u8 , 146u8 , 14u8 , 189u8 , 117u8 , 16u8 , 227u8 , 162u8 , 61u8 , 149u8 , 197u8 , 104u8 , 184u8 , 185u8 , 161u8 , 99u8 , 154u8 , 80u8 , 125u8 , 181u8 , 233u8 ,]) } # [doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."] # [doc = ""] # [doc = "If the authorization required a version check, this call will ensure the spec name"] # [doc = "remains unchanged and that the spec version has increased."] # [doc = ""] # [doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"] # [doc = "the new `code` in the same block or attempt to schedule the upgrade."] # [doc = ""] # [doc = "All origins are allowed."] pub fn apply_authorized_upgrade (& self , code : types :: apply_authorized_upgrade :: Code ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ApplyAuthorizedUpgrade > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "apply_authorized_upgrade" , types :: ApplyAuthorizedUpgrade { code , } , [232u8 , 107u8 , 127u8 , 38u8 , 230u8 , 29u8 , 97u8 , 4u8 , 160u8 , 191u8 , 222u8 , 156u8 , 245u8 , 102u8 , 196u8 , 141u8 , 44u8 , 163u8 , 98u8 , 68u8 , 125u8 , 32u8 , 124u8 , 101u8 , 108u8 , 93u8 , 211u8 , 52u8 , 0u8 , 231u8 , 33u8 , 227u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An extrinsic completed successfully."] pub struct ExtrinsicSuccess { pub dispatch_info : extrinsic_success :: DispatchInfo , } pub mod extrinsic_success { use super :: runtime_types ; pub type DispatchInfo = runtime_types :: frame_system :: DispatchEventInfo ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ExtrinsicSuccess { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "ExtrinsicSuccess" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An extrinsic failed."] pub struct ExtrinsicFailed { pub dispatch_error : extrinsic_failed :: DispatchError , pub dispatch_info : extrinsic_failed :: DispatchInfo , } pub mod extrinsic_failed { use super :: runtime_types ; pub type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub type DispatchInfo = runtime_types :: frame_system :: DispatchEventInfo ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ExtrinsicFailed { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "ExtrinsicFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "`:code` was updated."] pub struct CodeUpdated ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CodeUpdated { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "CodeUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A new account was created."] pub struct NewAccount { pub account : new_account :: Account , } pub mod new_account { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewAccount { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "NewAccount" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account was reaped."] pub struct KilledAccount { pub account : killed_account :: Account , } pub mod killed_account { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for KilledAccount { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "KilledAccount" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "On on-chain remark happened."] pub struct Remarked { pub sender : remarked :: Sender , pub hash : remarked :: Hash , } pub mod remarked { use super :: runtime_types ; pub type Sender = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Remarked { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "Remarked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An upgrade was authorized."] pub struct UpgradeAuthorized { pub code_hash : upgrade_authorized :: CodeHash , pub check_version : upgrade_authorized :: CheckVersion , } pub mod upgrade_authorized { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type CheckVersion = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for UpgradeAuthorized { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "UpgradeAuthorized" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An invalid authorized upgrade was rejected while trying to apply it."] pub struct RejectedInvalidAuthorizedUpgrade { pub code_hash : rejected_invalid_authorized_upgrade :: CodeHash , pub error : rejected_invalid_authorized_upgrade :: Error , } pub mod rejected_invalid_authorized_upgrade { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Error = runtime_types :: sp_runtime :: DispatchError ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RejectedInvalidAuthorizedUpgrade { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "RejectedInvalidAuthorizedUpgrade" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod account { use super :: runtime_types ; pub type Account = runtime_types :: frame_system :: AccountInfo < :: core :: primitive :: u32 , runtime_types :: pallet_balances :: types :: AccountData < :: core :: primitive :: u64 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod extrinsic_count { use super :: runtime_types ; pub type ExtrinsicCount = :: core :: primitive :: u32 ; } pub mod inherents_applied { use super :: runtime_types ; pub type InherentsApplied = :: core :: primitive :: bool ; } pub mod block_weight { use super :: runtime_types ; pub type BlockWeight = runtime_types :: frame_support :: dispatch :: PerDispatchClass < runtime_types :: sp_weights :: weight_v2 :: Weight > ; } pub mod all_extrinsics_len { use super :: runtime_types ; pub type AllExtrinsicsLen = :: core :: primitive :: u32 ; } pub mod block_hash { use super :: runtime_types ; pub type BlockHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod extrinsic_data { use super :: runtime_types ; pub type ExtrinsicData = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod number { use super :: runtime_types ; pub type Number = :: core :: primitive :: u32 ; } pub mod parent_hash { use super :: runtime_types ; pub type ParentHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod digest { use super :: runtime_types ; pub type Digest = runtime_types :: sp_runtime :: generic :: digest :: Digest ; } pub mod events { use super :: runtime_types ; pub type Events = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: frame_system :: EventRecord < runtime_types :: node_subtensor_runtime :: RuntimeEvent , :: subxt :: ext :: subxt_core :: utils :: H256 > > ; } pub mod event_count { use super :: runtime_types ; pub type EventCount = :: core :: primitive :: u32 ; } pub mod event_topics { use super :: runtime_types ; pub type EventTopics = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod last_runtime_upgrade { use super :: runtime_types ; pub type LastRuntimeUpgrade = runtime_types :: frame_system :: LastRuntimeUpgradeInfo ; } pub mod upgraded_to_u32_ref_count { use super :: runtime_types ; pub type UpgradedToU32RefCount = :: core :: primitive :: bool ; } pub mod upgraded_to_triple_ref_count { use super :: runtime_types ; pub type UpgradedToTripleRefCount = :: core :: primitive :: bool ; } pub mod execution_phase { use super :: runtime_types ; pub type ExecutionPhase = runtime_types :: frame_system :: Phase ; } pub mod authorized_upgrade { use super :: runtime_types ; pub type AuthorizedUpgrade = runtime_types :: frame_system :: CodeUpgradeAuthorization ; } pub mod extrinsic_weight_reclaimed { use super :: runtime_types ; pub type ExtrinsicWeightReclaimed = runtime_types :: sp_weights :: weight_v2 :: Weight ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The full account information for a particular account ID."] pub fn account_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account :: Account , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Account" , () , [134u8 , 36u8 , 200u8 , 97u8 , 250u8 , 93u8 , 194u8 , 130u8 , 234u8 , 169u8 , 160u8 , 176u8 , 58u8 , 142u8 , 63u8 , 133u8 , 29u8 , 94u8 , 102u8 , 192u8 , 82u8 , 6u8 , 105u8 , 248u8 , 238u8 , 246u8 , 26u8 , 107u8 , 39u8 , 219u8 , 103u8 , 212u8 ,]) } # [doc = " The full account information for a particular account ID."] pub fn account (& self , _0 : types :: account :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account :: Param0 > , types :: account :: Account , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Account" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [134u8 , 36u8 , 200u8 , 97u8 , 250u8 , 93u8 , 194u8 , 130u8 , 234u8 , 169u8 , 160u8 , 176u8 , 58u8 , 142u8 , 63u8 , 133u8 , 29u8 , 94u8 , 102u8 , 192u8 , 82u8 , 6u8 , 105u8 , 248u8 , 238u8 , 246u8 , 26u8 , 107u8 , 39u8 , 219u8 , 103u8 , 212u8 ,]) } # [doc = " Total extrinsics count for the current block."] pub fn extrinsic_count (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: extrinsic_count :: ExtrinsicCount , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExtrinsicCount" , () , [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 ,]) } # [doc = " Whether all inherents have been applied."] pub fn inherents_applied (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: inherents_applied :: InherentsApplied , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "InherentsApplied" , () , [132u8 , 249u8 , 142u8 , 252u8 , 8u8 , 103u8 , 80u8 , 120u8 , 50u8 , 6u8 , 188u8 , 223u8 , 101u8 , 55u8 , 165u8 , 189u8 , 172u8 , 249u8 , 165u8 , 230u8 , 183u8 , 109u8 , 34u8 , 65u8 , 185u8 , 150u8 , 29u8 , 8u8 , 186u8 , 129u8 , 135u8 , 239u8 ,]) } # [doc = " The current weight for the block."] pub fn block_weight (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: block_weight :: BlockWeight , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "BlockWeight" , () , [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 ,]) } # [doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: all_extrinsics_len :: AllExtrinsicsLen , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "AllExtrinsicsLen" , () , [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 ,]) } # [doc = " Map of block numbers to block hashes."] pub fn block_hash_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: block_hash :: BlockHash , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "BlockHash" , () , [217u8 , 32u8 , 215u8 , 253u8 , 24u8 , 182u8 , 207u8 , 178u8 , 157u8 , 24u8 , 103u8 , 100u8 , 195u8 , 165u8 , 69u8 , 152u8 , 112u8 , 181u8 , 56u8 , 192u8 , 164u8 , 16u8 , 20u8 , 222u8 , 28u8 , 214u8 , 144u8 , 142u8 , 146u8 , 69u8 , 202u8 , 118u8 ,]) } # [doc = " Map of block numbers to block hashes."] pub fn block_hash (& self , _0 : types :: block_hash :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: block_hash :: Param0 > , types :: block_hash :: BlockHash , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "BlockHash" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [217u8 , 32u8 , 215u8 , 253u8 , 24u8 , 182u8 , 207u8 , 178u8 , 157u8 , 24u8 , 103u8 , 100u8 , 195u8 , 165u8 , 69u8 , 152u8 , 112u8 , 181u8 , 56u8 , 192u8 , 164u8 , 16u8 , 20u8 , 222u8 , 28u8 , 214u8 , 144u8 , 142u8 , 146u8 , 69u8 , 202u8 , 118u8 ,]) } # [doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: extrinsic_data :: ExtrinsicData , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExtrinsicData" , () , [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 ,]) } # [doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data (& self , _0 : types :: extrinsic_data :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: extrinsic_data :: Param0 > , types :: extrinsic_data :: ExtrinsicData , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExtrinsicData" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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 ,]) } # [doc = " The current block number being processed. Set by `execute_block`."] pub fn number (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: number :: Number , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Number" , () , [30u8 , 194u8 , 177u8 , 90u8 , 194u8 , 232u8 , 46u8 , 180u8 , 85u8 , 129u8 , 14u8 , 9u8 , 8u8 , 8u8 , 23u8 , 95u8 , 230u8 , 5u8 , 13u8 , 105u8 , 125u8 , 2u8 , 22u8 , 200u8 , 78u8 , 93u8 , 115u8 , 28u8 , 150u8 , 113u8 , 48u8 , 53u8 ,]) } # [doc = " Hash of the previous block."] pub fn parent_hash (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: parent_hash :: ParentHash , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ParentHash" , () , [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 ,]) } # [doc = " Digest of the current block, also part of the block header."] pub fn digest (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: digest :: Digest , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Digest" , () , [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 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: events :: Events , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Events" , () , [198u8 , 1u8 , 9u8 , 127u8 , 3u8 , 182u8 , 0u8 , 94u8 , 116u8 , 98u8 , 226u8 , 129u8 , 214u8 , 89u8 , 252u8 , 97u8 , 138u8 , 188u8 , 184u8 , 60u8 , 221u8 , 141u8 , 155u8 , 67u8 , 137u8 , 161u8 , 194u8 , 87u8 , 194u8 , 149u8 , 27u8 , 71u8 ,]) } # [doc = " The number of events in the `Events<T>` list."] pub fn event_count (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: event_count :: EventCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "EventCount" , () , [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 ,]) } # [doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] # [doc = " of events in the `<Events<T>>` 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<T>, 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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: event_topics :: EventTopics , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "EventTopics" , () , [40u8 , 225u8 , 14u8 , 75u8 , 44u8 , 176u8 , 76u8 , 34u8 , 143u8 , 107u8 , 69u8 , 133u8 , 114u8 , 13u8 , 172u8 , 250u8 , 141u8 , 73u8 , 12u8 , 65u8 , 217u8 , 63u8 , 120u8 , 241u8 , 48u8 , 106u8 , 143u8 , 161u8 , 128u8 , 100u8 , 166u8 , 59u8 ,]) } # [doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] # [doc = " of events in the `<Events<T>>` 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<T>, 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 : types :: event_topics :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: event_topics :: Param0 > , types :: event_topics :: EventTopics , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "EventTopics" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [40u8 , 225u8 , 14u8 , 75u8 , 44u8 , 176u8 , 76u8 , 34u8 , 143u8 , 107u8 , 69u8 , 133u8 , 114u8 , 13u8 , 172u8 , 250u8 , 141u8 , 73u8 , 12u8 , 65u8 , 217u8 , 63u8 , 120u8 , 241u8 , 48u8 , 106u8 , 143u8 , 161u8 , 128u8 , 100u8 , 166u8 , 59u8 ,]) } # [doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_runtime_upgrade :: LastRuntimeUpgrade , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "LastRuntimeUpgrade" , () , [197u8 , 212u8 , 249u8 , 209u8 , 79u8 , 34u8 , 55u8 , 203u8 , 31u8 , 42u8 , 199u8 , 242u8 , 188u8 , 74u8 , 234u8 , 250u8 , 245u8 , 44u8 , 139u8 , 162u8 , 45u8 , 150u8 , 230u8 , 249u8 , 135u8 , 100u8 , 158u8 , 167u8 , 118u8 , 219u8 , 28u8 , 98u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: upgraded_to_u32_ref_count :: UpgradedToU32RefCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "UpgradedToU32RefCount" , () , [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 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: upgraded_to_triple_ref_count :: UpgradedToTripleRefCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "UpgradedToTripleRefCount" , () , [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 ,]) } # [doc = " The execution phase of the block."] pub fn execution_phase (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: execution_phase :: ExecutionPhase , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExecutionPhase" , () , [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 ,]) } # [doc = " `Some` if a code upgrade has been authorized."] pub fn authorized_upgrade (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: authorized_upgrade :: AuthorizedUpgrade , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "AuthorizedUpgrade" , () , [165u8 , 97u8 , 27u8 , 138u8 , 2u8 , 28u8 , 55u8 , 92u8 , 96u8 , 96u8 , 168u8 , 169u8 , 55u8 , 178u8 , 44u8 , 127u8 , 58u8 , 140u8 , 206u8 , 178u8 , 1u8 , 37u8 , 214u8 , 213u8 , 251u8 , 123u8 , 5u8 , 111u8 , 90u8 , 148u8 , 217u8 , 135u8 ,]) } # [doc = " The weight reclaimed for the extrinsic."] # [doc = ""] # [doc = " This information is available until the end of the extrinsic execution."] # [doc = " More precisely this information is removed in `note_applied_extrinsic`."] # [doc = ""] # [doc = " Logic doing some post dispatch weight reduction must update this storage to avoid duplicate"] # [doc = " reduction."] pub fn extrinsic_weight_reclaimed (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: extrinsic_weight_reclaimed :: ExtrinsicWeightReclaimed , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExtrinsicWeightReclaimed" , () , [195u8 , 143u8 , 164u8 , 84u8 , 225u8 , 194u8 , 227u8 , 128u8 , 196u8 , 241u8 , 188u8 , 159u8 , 59u8 , 197u8 , 11u8 , 12u8 , 119u8 , 164u8 , 46u8 , 229u8 , 92u8 , 212u8 , 236u8 , 255u8 , 238u8 , 54u8 , 105u8 , 200u8 , 229u8 , 191u8 , 221u8 , 202u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " Block & extrinsics weights: base values and limits."] pub fn block_weights (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_system :: limits :: BlockWeights > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " The maximum length of a block (in bytes)."] pub fn block_length (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_system :: limits :: BlockLength > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("System" , "BlockHashCount" , [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 ,]) } # [doc = " The weight of runtime database operations the runtime can invoke."] pub fn db_weight (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_weights :: RuntimeDbWeight > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " Get the chain's in-code version."] pub fn version (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_version :: RuntimeVersion > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("System" , "Version" , [214u8 , 43u8 , 96u8 , 193u8 , 96u8 , 213u8 , 63u8 , 124u8 , 22u8 , 111u8 , 41u8 , 78u8 , 146u8 , 77u8 , 34u8 , 163u8 , 117u8 , 100u8 , 6u8 , 216u8 , 238u8 , 54u8 , 80u8 , 185u8 , 219u8 , 11u8 , 192u8 , 200u8 , 129u8 , 88u8 , 161u8 , 250u8 ,]) } # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 randomness_collective_flip { use super :: root_mod ; use super :: runtime_types ; pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod random_material { use super :: runtime_types ; pub type RandomMaterial = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: ext :: subxt_core :: utils :: H256 > ; } } pub struct StorageApi ; impl StorageApi { # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: random_material :: RandomMaterial , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("RandomnessCollectiveFlip" , "RandomMaterial" , () , [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 timestamp { use super :: root_mod ; use super :: runtime_types ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the current time."] # [doc = ""] # [doc = "This call should be invoked exactly once per block. It will panic at the finalization"] # [doc = "phase, if this call hasn't been invoked by that time."] # [doc = ""] # [doc = "The timestamp should be greater than the previous one by the amount specified by"] # [doc = "[`Config::MinimumPeriod`]."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"] # [doc = "that changing the complexity of this call could result exhausting the resources in a"] # [doc = "block to execute any other calls."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] # [doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"] # [doc = "  `on_finalize`)"] # [doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] pub struct Set { # [codec (compact)] pub now : set :: Now , } pub mod set { use super :: runtime_types ; pub type Now = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Set { const PALLET : & 'static str = "Timestamp" ; const CALL : & 'static str = "set" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Set the current time."] # [doc = ""] # [doc = "This call should be invoked exactly once per block. It will panic at the finalization"] # [doc = "phase, if this call hasn't been invoked by that time."] # [doc = ""] # [doc = "The timestamp should be greater than the previous one by the amount specified by"] # [doc = "[`Config::MinimumPeriod`]."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"] # [doc = "that changing the complexity of this call could result exhausting the resources in a"] # [doc = "block to execute any other calls."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] # [doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"] # [doc = "  `on_finalize`)"] # [doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] pub fn set (& self , now : types :: set :: Now ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Set > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 mod types { use super :: runtime_types ; pub mod now { use super :: runtime_types ; pub type Now = :: core :: primitive :: u64 ; } pub mod did_update { use super :: runtime_types ; pub type DidUpdate = :: core :: primitive :: bool ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The current time for the current block."] pub fn now (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: now :: Now , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Timestamp" , "Now" , () , [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 ,]) } # [doc = " Whether the timestamp has been updated in this block."] # [doc = ""] # [doc = " This value is updated to `true` upon successful submission of a timestamp by a node."] # [doc = " It is then checked at the end of each block execution in the `on_finalize` hook."] pub fn did_update (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: did_update :: DidUpdate , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Timestamp" , "DidUpdate" , () , [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 { # [doc = " The minimum period between blocks."] # [doc = ""] # [doc = " Be aware that this is different to the *expected* period that the block production"] # [doc = " apparatus provides. Your chosen consensus system will generally work with this to"] # [doc = " determine a sensible block time. For example, in the Aura pallet it will be double this"] # [doc = " period on default settings."] pub fn minimum_period (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 aura { use super :: root_mod ; use super :: runtime_types ; pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod authorities { use super :: runtime_types ; pub type Authorities = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > ; } pub mod current_slot { use super :: runtime_types ; pub type CurrentSlot = runtime_types :: sp_consensus_slots :: Slot ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The current authority set."] pub fn authorities (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: authorities :: Authorities , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Aura" , "Authorities" , () , [95u8 , 52u8 , 203u8 , 53u8 , 254u8 , 107u8 , 134u8 , 122u8 , 95u8 , 253u8 , 51u8 , 137u8 , 142u8 , 106u8 , 237u8 , 248u8 , 159u8 , 80u8 , 41u8 , 233u8 , 137u8 , 133u8 , 13u8 , 217u8 , 176u8 , 88u8 , 132u8 , 199u8 , 241u8 , 47u8 , 125u8 , 27u8 ,]) } # [doc = " The current slot of this block."] # [doc = ""] # [doc = " This will be set in `on_initialize`."] pub fn current_slot (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_slot :: CurrentSlot , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Aura" , "CurrentSlot" , () , [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 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The slot duration Aura should run with, expressed in milliseconds."] # [doc = " The effective value of this type should not change while the chain is running."] # [doc = ""] # [doc = " For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const."] pub fn slot_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Aura" , "SlotDuration" , [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 grandpa { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_grandpa :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] pub struct ReportEquivocation { pub equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < report_equivocation :: EquivocationProof > , pub key_owner_proof : report_equivocation :: KeyOwnerProof , } pub mod report_equivocation { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > ; pub type KeyOwnerProof = runtime_types :: sp_core :: Void ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReportEquivocation { const PALLET : & 'static str = "Grandpa" ; const CALL : & 'static str = "report_equivocation" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] # [doc = ""] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] pub struct ReportEquivocationUnsigned { pub equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < report_equivocation_unsigned :: EquivocationProof > , pub key_owner_proof : report_equivocation_unsigned :: KeyOwnerProof , } pub mod report_equivocation_unsigned { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > ; pub type KeyOwnerProof = runtime_types :: sp_core :: Void ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReportEquivocationUnsigned { const PALLET : & 'static str = "Grandpa" ; const CALL : & 'static str = "report_equivocation_unsigned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] # [doc = ""] # [doc = "This will trigger a forced authority set change at the beginning of the next session, to"] # [doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] # [doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] # [doc = "The block production rate (which may be slowed down because of finality lagging) should"] # [doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] # [doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] # [doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] # [doc = "block of all validators of the new authority set."] # [doc = ""] # [doc = "Only callable by root."] pub struct NoteStalled { pub delay : note_stalled :: Delay , pub best_finalized_block_number : note_stalled :: BestFinalizedBlockNumber , } pub mod note_stalled { use super :: runtime_types ; pub type Delay = :: core :: primitive :: u32 ; pub type BestFinalizedBlockNumber = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for NoteStalled { const PALLET : & 'static str = "Grandpa" ; const CALL : & 'static str = "note_stalled" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] pub fn report_equivocation (& self , equivocation_proof : types :: report_equivocation :: EquivocationProof , key_owner_proof : types :: report_equivocation :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReportEquivocation > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Grandpa" , "report_equivocation" , types :: ReportEquivocation { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (equivocation_proof) , key_owner_proof , } , [187u8 , 224u8 , 115u8 , 5u8 , 236u8 , 32u8 , 180u8 , 155u8 , 218u8 , 109u8 , 238u8 , 253u8 , 30u8 , 225u8 , 4u8 , 225u8 , 132u8 , 232u8 , 243u8 , 54u8 , 56u8 , 158u8 , 94u8 , 192u8 , 94u8 , 206u8 , 189u8 , 61u8 , 14u8 , 49u8 , 48u8 , 131u8 ,]) } # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] # [doc = ""] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] pub fn report_equivocation_unsigned (& self , equivocation_proof : types :: report_equivocation_unsigned :: EquivocationProof , key_owner_proof : types :: report_equivocation_unsigned :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReportEquivocationUnsigned > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Grandpa" , "report_equivocation_unsigned" , types :: ReportEquivocationUnsigned { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (equivocation_proof) , key_owner_proof , } , [98u8 , 103u8 , 6u8 , 54u8 , 0u8 , 200u8 , 166u8 , 163u8 , 202u8 , 45u8 , 131u8 , 226u8 , 114u8 , 166u8 , 237u8 , 174u8 , 207u8 , 214u8 , 2u8 , 227u8 , 32u8 , 166u8 , 47u8 , 83u8 , 166u8 , 239u8 , 232u8 , 72u8 , 224u8 , 242u8 , 156u8 , 44u8 ,]) } # [doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] # [doc = ""] # [doc = "This will trigger a forced authority set change at the beginning of the next session, to"] # [doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] # [doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] # [doc = "The block production rate (which may be slowed down because of finality lagging) should"] # [doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] # [doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] # [doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] # [doc = "block of all validators of the new authority set."] # [doc = ""] # [doc = "Only callable by root."] pub fn note_stalled (& self , delay : types :: note_stalled :: Delay , best_finalized_block_number : types :: note_stalled :: BestFinalizedBlockNumber ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: NoteStalled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Grandpa" , "note_stalled" , types :: NoteStalled { delay , best_finalized_block_number , } , [158u8 , 25u8 , 64u8 , 114u8 , 131u8 , 139u8 , 227u8 , 132u8 , 42u8 , 107u8 , 40u8 , 249u8 , 18u8 , 93u8 , 254u8 , 86u8 , 37u8 , 67u8 , 250u8 , 35u8 , 241u8 , 194u8 , 209u8 , 20u8 , 39u8 , 75u8 , 186u8 , 21u8 , 48u8 , 124u8 , 151u8 , 31u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "New authority set has been applied."] pub struct NewAuthorities { pub authority_set : new_authorities :: AuthoritySet , } pub mod new_authorities { use super :: runtime_types ; pub type AuthoritySet = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewAuthorities { const PALLET : & 'static str = "Grandpa" ; const EVENT : & 'static str = "NewAuthorities" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Current authority set has been paused."] pub struct Paused ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Paused { const PALLET : & 'static str = "Grandpa" ; const EVENT : & 'static str = "Paused" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Current authority set has been resumed."] pub struct Resumed ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Resumed { const PALLET : & 'static str = "Grandpa" ; const EVENT : & 'static str = "Resumed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod state { use super :: runtime_types ; pub type State = runtime_types :: pallet_grandpa :: StoredState < :: core :: primitive :: u32 > ; } pub mod pending_change { use super :: runtime_types ; pub type PendingChange = runtime_types :: pallet_grandpa :: StoredPendingChange < :: core :: primitive :: u32 > ; } pub mod next_forced { use super :: runtime_types ; pub type NextForced = :: core :: primitive :: u32 ; } pub mod stalled { use super :: runtime_types ; pub type Stalled = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; } pub mod current_set_id { use super :: runtime_types ; pub type CurrentSetId = :: core :: primitive :: u64 ; } pub mod set_id_session { use super :: runtime_types ; pub type SetIdSession = :: core :: primitive :: u32 ; pub type Param0 = :: core :: primitive :: u64 ; } pub mod authorities { use super :: runtime_types ; pub type Authorities = runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > ; } } pub struct StorageApi ; impl StorageApi { # [doc = " State of the current authority set."] pub fn state (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: state :: State , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "State" , () , [73u8 , 71u8 , 112u8 , 83u8 , 238u8 , 75u8 , 44u8 , 9u8 , 180u8 , 33u8 , 30u8 , 121u8 , 98u8 , 96u8 , 61u8 , 133u8 , 16u8 , 70u8 , 30u8 , 249u8 , 34u8 , 148u8 , 15u8 , 239u8 , 164u8 , 157u8 , 52u8 , 27u8 , 144u8 , 52u8 , 223u8 , 109u8 ,]) } # [doc = " Pending change: (signaled at, scheduled change)."] pub fn pending_change (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_change :: PendingChange , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "PendingChange" , () , [32u8 , 165u8 , 141u8 , 100u8 , 109u8 , 66u8 , 58u8 , 22u8 , 118u8 , 84u8 , 92u8 , 164u8 , 119u8 , 130u8 , 104u8 , 25u8 , 244u8 , 111u8 , 223u8 , 54u8 , 184u8 , 95u8 , 196u8 , 30u8 , 244u8 , 129u8 , 110u8 , 127u8 , 200u8 , 66u8 , 226u8 , 26u8 ,]) } # [doc = " next block number where we can force a change."] pub fn next_forced (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_forced :: NextForced , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "NextForced" , () , [3u8 , 231u8 , 56u8 , 18u8 , 87u8 , 112u8 , 227u8 , 126u8 , 180u8 , 131u8 , 255u8 , 141u8 , 82u8 , 34u8 , 61u8 , 47u8 , 234u8 , 37u8 , 95u8 , 62u8 , 33u8 , 235u8 , 231u8 , 122u8 , 125u8 , 8u8 , 223u8 , 95u8 , 255u8 , 204u8 , 40u8 , 97u8 ,]) } # [doc = " `true` if we are currently stalled."] pub fn stalled (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: stalled :: Stalled , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "Stalled" , () , [6u8 , 81u8 , 205u8 , 142u8 , 195u8 , 48u8 , 0u8 , 247u8 , 108u8 , 170u8 , 10u8 , 249u8 , 72u8 , 206u8 , 32u8 , 103u8 , 109u8 , 57u8 , 51u8 , 21u8 , 144u8 , 204u8 , 79u8 , 8u8 , 191u8 , 185u8 , 38u8 , 34u8 , 118u8 , 223u8 , 75u8 , 241u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_set_id :: CurrentSetId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "CurrentSetId" , () , [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 ,]) } # [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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: set_id_session :: SetIdSession , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "SetIdSession" , () , [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 ,]) } # [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 : types :: set_id_session :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: set_id_session :: Param0 > , types :: set_id_session :: SetIdSession , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "SetIdSession" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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 ,]) } # [doc = " The current list of authorities."] pub fn authorities (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: authorities :: Authorities , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "Authorities" , () , [192u8 , 157u8 , 98u8 , 244u8 , 104u8 , 38u8 , 195u8 , 114u8 , 183u8 , 62u8 , 247u8 , 18u8 , 31u8 , 152u8 , 246u8 , 206u8 , 97u8 , 13u8 , 118u8 , 211u8 , 104u8 , 54u8 , 150u8 , 152u8 , 126u8 , 170u8 , 228u8 , 158u8 , 108u8 , 129u8 , 134u8 , 44u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " Max Authorities in use"] pub fn max_authorities (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " The maximum number of nominators for each validator."] pub fn max_nominators (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 balances { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_balances :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfer some liquid free balance to another account."] # [doc = ""] # [doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] # [doc = "If the sender's account is below the existential deposit as a result"] # [doc = "of the transfer, the account will be reaped."] # [doc = ""] # [doc = "The dispatch origin for this call must be `Signed` by the transactor."] pub struct TransferAllowDeath { pub dest : transfer_allow_death :: Dest , # [codec (compact)] pub value : transfer_allow_death :: Value , } pub mod transfer_allow_death { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferAllowDeath { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "transfer_allow_death" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] # [doc = "may be specified."] pub struct ForceTransfer { pub source : force_transfer :: Source , pub dest : force_transfer :: Dest , # [codec (compact)] pub value : force_transfer :: Value , } pub mod force_transfer { use super :: runtime_types ; pub type Source = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceTransfer { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "force_transfer" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] # [doc = "kill the origin account."] # [doc = ""] # [doc = "99% of the time you want [`transfer_allow_death`] instead."] # [doc = ""] # [doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] pub struct TransferKeepAlive { pub dest : transfer_keep_alive :: Dest , # [codec (compact)] pub value : transfer_keep_alive :: Value , } pub mod transfer_keep_alive { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferKeepAlive { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "transfer_keep_alive" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfer the entire transferable balance from the caller account."] # [doc = ""] # [doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] # [doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] # [doc = "transferred by this function. To ensure that this function results in a killed account,"] # [doc = "you might need to prepare the account by removing any reference counters, storage"] # [doc = "deposits, etc..."] # [doc = ""] # [doc = "The dispatch origin of this call must be Signed."] # [doc = ""] # [doc = "- `dest`: The recipient of the transfer."] # [doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] # [doc = "  of the funds the account has, causing the sender account to be killed (false), or"] # [doc = "  transfer everything except at least the existential deposit, which will guarantee to"] # [doc = "  keep the sender account alive (true)."] pub struct TransferAll { pub dest : transfer_all :: Dest , pub keep_alive : transfer_all :: KeepAlive , } pub mod transfer_all { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type KeepAlive = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferAll { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "transfer_all" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unreserve some balance from a user by force."] # [doc = ""] # [doc = "Can only be called by ROOT."] pub struct ForceUnreserve { pub who : force_unreserve :: Who , pub amount : force_unreserve :: Amount , } pub mod force_unreserve { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceUnreserve { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "force_unreserve" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Upgrade a specified account."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `who`: The account to be upgraded."] # [doc = ""] # [doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] # [doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] # [doc = "possibility of churn)."] pub struct UpgradeAccounts { pub who : upgrade_accounts :: Who , } pub mod upgrade_accounts { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpgradeAccounts { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "upgrade_accounts" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the regular balance of a given account."] # [doc = ""] # [doc = "The dispatch origin for this call is `root`."] pub struct ForceSetBalance { pub who : force_set_balance :: Who , # [codec (compact)] pub new_free : force_set_balance :: NewFree , } pub mod force_set_balance { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type NewFree = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceSetBalance { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "force_set_balance" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Adjust the total issuance in a saturating way."] # [doc = ""] # [doc = "Can only be called by root and always needs a positive `delta`."] # [doc = ""] # [doc = "# Example"] pub struct ForceAdjustTotalIssuance { pub direction : force_adjust_total_issuance :: Direction , # [codec (compact)] pub delta : force_adjust_total_issuance :: Delta , } pub mod force_adjust_total_issuance { use super :: runtime_types ; pub type Direction = runtime_types :: pallet_balances :: types :: AdjustmentDirection ; pub type Delta = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceAdjustTotalIssuance { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "force_adjust_total_issuance" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Burn the specified liquid free balance from the origin account."] # [doc = ""] # [doc = "If the origin's account ends up below the existential deposit as a result"] # [doc = "of the burn and `keep_alive` is false, the account will be reaped."] # [doc = ""] # [doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"] # [doc = "this `burn` operation will reduce total issuance by the amount _burned_."] pub struct Burn { # [codec (compact)] pub value : burn :: Value , pub keep_alive : burn :: KeepAlive , } pub mod burn { use super :: runtime_types ; pub type Value = :: core :: primitive :: u64 ; pub type KeepAlive = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Burn { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "burn" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Transfer some liquid free balance to another account."] # [doc = ""] # [doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] # [doc = "If the sender's account is below the existential deposit as a result"] # [doc = "of the transfer, the account will be reaped."] # [doc = ""] # [doc = "The dispatch origin for this call must be `Signed` by the transactor."] pub fn transfer_allow_death (& self , dest : types :: transfer_allow_death :: Dest , value : types :: transfer_allow_death :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferAllowDeath > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "transfer_allow_death" , types :: TransferAllowDeath { dest , value , } , [55u8 , 189u8 , 102u8 , 71u8 , 231u8 , 179u8 , 169u8 , 229u8 , 206u8 , 42u8 , 10u8 , 117u8 , 36u8 , 34u8 , 30u8 , 145u8 , 227u8 , 105u8 , 252u8 , 188u8 , 162u8 , 0u8 , 84u8 , 24u8 , 123u8 , 241u8 , 152u8 , 118u8 , 181u8 , 182u8 , 137u8 , 241u8 ,]) } # [doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] # [doc = "may be specified."] pub fn force_transfer (& self , source : types :: force_transfer :: Source , dest : types :: force_transfer :: Dest , value : types :: force_transfer :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceTransfer > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "force_transfer" , types :: ForceTransfer { source , dest , value , } , [15u8 , 9u8 , 232u8 , 170u8 , 117u8 , 161u8 , 184u8 , 255u8 , 3u8 , 155u8 , 165u8 , 226u8 , 151u8 , 189u8 , 226u8 , 21u8 , 14u8 , 70u8 , 17u8 , 43u8 , 181u8 , 59u8 , 158u8 , 222u8 , 167u8 , 59u8 , 61u8 , 233u8 , 78u8 , 108u8 , 161u8 , 192u8 ,]) } # [doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] # [doc = "kill the origin account."] # [doc = ""] # [doc = "99% of the time you want [`transfer_allow_death`] instead."] # [doc = ""] # [doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] pub fn transfer_keep_alive (& self , dest : types :: transfer_keep_alive :: Dest , value : types :: transfer_keep_alive :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferKeepAlive > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "transfer_keep_alive" , types :: TransferKeepAlive { dest , value , } , [126u8 , 208u8 , 16u8 , 244u8 , 94u8 , 74u8 , 166u8 , 13u8 , 149u8 , 95u8 , 88u8 , 250u8 , 95u8 , 0u8 , 43u8 , 57u8 , 18u8 , 129u8 , 24u8 , 210u8 , 91u8 , 50u8 , 251u8 , 73u8 , 126u8 , 218u8 , 244u8 , 52u8 , 36u8 , 175u8 , 28u8 , 210u8 ,]) } # [doc = "Transfer the entire transferable balance from the caller account."] # [doc = ""] # [doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] # [doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] # [doc = "transferred by this function. To ensure that this function results in a killed account,"] # [doc = "you might need to prepare the account by removing any reference counters, storage"] # [doc = "deposits, etc..."] # [doc = ""] # [doc = "The dispatch origin of this call must be Signed."] # [doc = ""] # [doc = "- `dest`: The recipient of the transfer."] # [doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] # [doc = "  of the funds the account has, causing the sender account to be killed (false), or"] # [doc = "  transfer everything except at least the existential deposit, which will guarantee to"] # [doc = "  keep the sender account alive (true)."] pub fn transfer_all (& self , dest : types :: transfer_all :: Dest , keep_alive : types :: transfer_all :: KeepAlive ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferAll > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "transfer_all" , types :: TransferAll { dest , keep_alive , } , [105u8 , 132u8 , 49u8 , 144u8 , 195u8 , 250u8 , 34u8 , 46u8 , 213u8 , 248u8 , 112u8 , 188u8 , 81u8 , 228u8 , 136u8 , 18u8 , 67u8 , 172u8 , 37u8 , 38u8 , 238u8 , 9u8 , 34u8 , 15u8 , 67u8 , 34u8 , 148u8 , 195u8 , 223u8 , 29u8 , 154u8 , 6u8 ,]) } # [doc = "Unreserve some balance from a user by force."] # [doc = ""] # [doc = "Can only be called by ROOT."] pub fn force_unreserve (& self , who : types :: force_unreserve :: Who , amount : types :: force_unreserve :: Amount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceUnreserve > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "force_unreserve" , types :: ForceUnreserve { who , amount , } , [194u8 , 160u8 , 176u8 , 186u8 , 10u8 , 132u8 , 201u8 , 232u8 , 127u8 , 9u8 , 234u8 , 37u8 , 167u8 , 77u8 , 157u8 , 228u8 , 62u8 , 207u8 , 172u8 , 240u8 , 1u8 , 10u8 , 136u8 , 97u8 , 115u8 , 13u8 , 2u8 , 61u8 , 200u8 , 235u8 , 39u8 , 97u8 ,]) } # [doc = "Upgrade a specified account."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `who`: The account to be upgraded."] # [doc = ""] # [doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] # [doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] # [doc = "possibility of churn)."] pub fn upgrade_accounts (& self , who : types :: upgrade_accounts :: Who ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpgradeAccounts > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Set the regular balance of a given account."] # [doc = ""] # [doc = "The dispatch origin for this call is `root`."] pub fn force_set_balance (& self , who : types :: force_set_balance :: Who , new_free : types :: force_set_balance :: NewFree ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceSetBalance > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "force_set_balance" , types :: ForceSetBalance { who , new_free , } , [172u8 , 128u8 , 27u8 , 158u8 , 43u8 , 74u8 , 29u8 , 195u8 , 16u8 , 214u8 , 1u8 , 128u8 , 138u8 , 144u8 , 6u8 , 236u8 , 61u8 , 41u8 , 155u8 , 208u8 , 57u8 , 42u8 , 237u8 , 229u8 , 130u8 , 214u8 , 8u8 , 93u8 , 57u8 , 219u8 , 178u8 , 197u8 ,]) } # [doc = "Adjust the total issuance in a saturating way."] # [doc = ""] # [doc = "Can only be called by root and always needs a positive `delta`."] # [doc = ""] # [doc = "# Example"] pub fn force_adjust_total_issuance (& self , direction : types :: force_adjust_total_issuance :: Direction , delta : types :: force_adjust_total_issuance :: Delta ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceAdjustTotalIssuance > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "force_adjust_total_issuance" , types :: ForceAdjustTotalIssuance { direction , delta , } , [70u8 , 239u8 , 219u8 , 254u8 , 5u8 , 227u8 , 119u8 , 182u8 , 85u8 , 96u8 , 88u8 , 71u8 , 89u8 , 73u8 , 199u8 , 50u8 , 89u8 , 157u8 , 30u8 , 121u8 , 34u8 , 184u8 , 9u8 , 118u8 , 51u8 , 182u8 , 121u8 , 109u8 , 22u8 , 155u8 , 83u8 , 198u8 ,]) } # [doc = "Burn the specified liquid free balance from the origin account."] # [doc = ""] # [doc = "If the origin's account ends up below the existential deposit as a result"] # [doc = "of the burn and `keep_alive` is false, the account will be reaped."] # [doc = ""] # [doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"] # [doc = "this `burn` operation will reduce total issuance by the amount _burned_."] pub fn burn (& self , value : types :: burn :: Value , keep_alive : types :: burn :: KeepAlive ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Burn > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "burn" , types :: Burn { value , keep_alive , } , [47u8 , 248u8 , 43u8 , 36u8 , 119u8 , 205u8 , 108u8 , 21u8 , 199u8 , 180u8 , 233u8 , 162u8 , 61u8 , 240u8 , 233u8 , 246u8 , 119u8 , 19u8 , 172u8 , 171u8 , 38u8 , 155u8 , 189u8 , 243u8 , 40u8 , 235u8 , 23u8 , 221u8 , 158u8 , 47u8 , 183u8 , 10u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account was created with some free balance."] pub struct Endowed { pub account : endowed :: Account , pub free_balance : endowed :: FreeBalance , } pub mod endowed { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type FreeBalance = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Endowed { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Endowed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] # [doc = "resulting in an outright loss."] pub struct DustLost { pub account : dust_lost :: Account , pub amount : dust_lost :: Amount , } pub mod dust_lost { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DustLost { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "DustLost" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfer succeeded."] pub struct Transfer { pub from : transfer :: From , pub to : transfer :: To , pub amount : transfer :: Amount , } pub mod transfer { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Transfer { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Transfer" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A balance was set by root."] pub struct BalanceSet { pub who : balance_set :: Who , pub free : balance_set :: Free , } pub mod balance_set { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Free = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BalanceSet { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "BalanceSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some balance was reserved (moved from free to reserved)."] pub struct Reserved { pub who : reserved :: Who , pub amount : reserved :: Amount , } pub mod reserved { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Reserved { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Reserved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some balance was unreserved (moved from reserved to free)."] pub struct Unreserved { pub who : unreserved :: Who , pub amount : unreserved :: Amount , } pub mod unreserved { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Unreserved { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Unreserved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [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 : reserve_repatriated :: From , pub to : reserve_repatriated :: To , pub amount : reserve_repatriated :: Amount , pub destination_status : reserve_repatriated :: DestinationStatus , } pub mod reserve_repatriated { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; pub type DestinationStatus = runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ReserveRepatriated { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "ReserveRepatriated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was deposited (e.g. for transaction fees)."] pub struct Deposit { pub who : deposit :: Who , pub amount : deposit :: Amount , } pub mod deposit { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Deposit { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] pub struct Withdraw { pub who : withdraw :: Who , pub amount : withdraw :: Amount , } pub mod withdraw { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Withdraw { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Withdraw" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] pub struct Slashed { pub who : slashed :: Who , pub amount : slashed :: Amount , } pub mod slashed { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Slashed { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Slashed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was minted into an account."] pub struct Minted { pub who : minted :: Who , pub amount : minted :: Amount , } pub mod minted { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Minted { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Minted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was burned from an account."] pub struct Burned { pub who : burned :: Who , pub amount : burned :: Amount , } pub mod burned { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Burned { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Burned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was suspended from an account (it can be restored later)."] pub struct Suspended { pub who : suspended :: Who , pub amount : suspended :: Amount , } pub mod suspended { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Suspended { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Suspended" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was restored into an account."] pub struct Restored { pub who : restored :: Who , pub amount : restored :: Amount , } pub mod restored { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Restored { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Restored" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account was upgraded."] pub struct Upgraded { pub who : upgraded :: Who , } pub mod upgraded { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Upgraded { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Upgraded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] pub struct Issued { pub amount : issued :: Amount , } pub mod issued { use super :: runtime_types ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Issued { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Issued" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] pub struct Rescinded { pub amount : rescinded :: Amount , } pub mod rescinded { use super :: runtime_types ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Rescinded { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Rescinded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some balance was locked."] pub struct Locked { pub who : locked :: Who , pub amount : locked :: Amount , } pub mod locked { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Locked { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Locked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some balance was unlocked."] pub struct Unlocked { pub who : unlocked :: Who , pub amount : unlocked :: Amount , } pub mod unlocked { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Unlocked { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Unlocked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some balance was frozen."] pub struct Frozen { pub who : frozen :: Who , pub amount : frozen :: Amount , } pub mod frozen { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Frozen { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Frozen" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some balance was thawed."] pub struct Thawed { pub who : thawed :: Who , pub amount : thawed :: Amount , } pub mod thawed { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Thawed { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Thawed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `TotalIssuance` was forcefully changed."] pub struct TotalIssuanceForced { pub old : total_issuance_forced :: Old , pub new : total_issuance_forced :: New , } pub mod total_issuance_forced { use super :: runtime_types ; pub type Old = :: core :: primitive :: u64 ; pub type New = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TotalIssuanceForced { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "TotalIssuanceForced" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod total_issuance { use super :: runtime_types ; pub type TotalIssuance = :: core :: primitive :: u64 ; } pub mod inactive_issuance { use super :: runtime_types ; pub type InactiveIssuance = :: core :: primitive :: u64 ; } pub mod account { use super :: runtime_types ; pub type Account = runtime_types :: pallet_balances :: types :: AccountData < :: core :: primitive :: u64 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod locks { use super :: runtime_types ; pub type Locks = runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: types :: BalanceLock < :: core :: primitive :: u64 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod reserves { use super :: runtime_types ; pub type Reserves = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_balances :: types :: ReserveData < [:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u64 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod holds { use super :: runtime_types ; pub type Holds = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: frame_support :: traits :: tokens :: misc :: IdAmount < runtime_types :: node_subtensor_runtime :: RuntimeHoldReason , :: core :: primitive :: u64 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod freezes { use super :: runtime_types ; pub type Freezes = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: frame_support :: traits :: tokens :: misc :: IdAmount < runtime_types :: node_subtensor_runtime :: RuntimeFreezeReason , :: core :: primitive :: u64 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The total units issued in the system."] pub fn total_issuance (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_issuance :: TotalIssuance , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "TotalIssuance" , () , [157u8 , 166u8 , 49u8 , 95u8 , 245u8 , 38u8 , 96u8 , 83u8 , 23u8 , 203u8 , 246u8 , 208u8 , 251u8 , 175u8 , 40u8 , 92u8 , 163u8 , 112u8 , 43u8 , 190u8 , 14u8 , 128u8 , 45u8 , 22u8 , 157u8 , 205u8 , 181u8 , 84u8 , 79u8 , 132u8 , 160u8 , 149u8 ,]) } # [doc = " The total units of outstanding deactivated balance in the system."] pub fn inactive_issuance (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: inactive_issuance :: InactiveIssuance , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "InactiveIssuance" , () , [33u8 , 251u8 , 197u8 , 148u8 , 61u8 , 202u8 , 85u8 , 164u8 , 169u8 , 36u8 , 163u8 , 147u8 , 243u8 , 250u8 , 178u8 , 40u8 , 199u8 , 147u8 , 196u8 , 206u8 , 163u8 , 246u8 , 154u8 , 51u8 , 208u8 , 250u8 , 127u8 , 89u8 , 118u8 , 21u8 , 225u8 , 248u8 ,]) } # [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<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>"] # [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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account :: Account , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Account" , () , [0u8 , 34u8 , 91u8 , 238u8 , 87u8 , 151u8 , 107u8 , 4u8 , 104u8 , 111u8 , 47u8 , 9u8 , 10u8 , 169u8 , 173u8 , 69u8 , 182u8 , 183u8 , 227u8 , 37u8 , 148u8 , 135u8 , 184u8 , 83u8 , 67u8 , 66u8 , 238u8 , 130u8 , 90u8 , 28u8 , 248u8 , 68u8 ,]) } # [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<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>"] # [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 : types :: account :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account :: Param0 > , types :: account :: Account , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Account" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [0u8 , 34u8 , 91u8 , 238u8 , 87u8 , 151u8 , 107u8 , 4u8 , 104u8 , 111u8 , 47u8 , 9u8 , 10u8 , 169u8 , 173u8 , 69u8 , 182u8 , 183u8 , 227u8 , 37u8 , 148u8 , 135u8 , 184u8 , 83u8 , 67u8 , 66u8 , 238u8 , 130u8 , 90u8 , 28u8 , 248u8 , 68u8 ,]) } # [doc = " Any liquidity locks on some account balances."] # [doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] # [doc = ""] # [doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn locks_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: locks :: Locks , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Locks" , () , [184u8 , 159u8 , 77u8 , 3u8 , 45u8 , 154u8 , 149u8 , 191u8 , 33u8 , 212u8 , 190u8 , 76u8 , 222u8 , 65u8 , 62u8 , 163u8 , 44u8 , 141u8 , 151u8 , 114u8 , 109u8 , 98u8 , 70u8 , 103u8 , 41u8 , 93u8 , 14u8 , 171u8 , 115u8 , 127u8 , 71u8 , 114u8 ,]) } # [doc = " Any liquidity locks on some account balances."] # [doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] # [doc = ""] # [doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn locks (& self , _0 : types :: locks :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: locks :: Param0 > , types :: locks :: Locks , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Locks" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [184u8 , 159u8 , 77u8 , 3u8 , 45u8 , 154u8 , 149u8 , 191u8 , 33u8 , 212u8 , 190u8 , 76u8 , 222u8 , 65u8 , 62u8 , 163u8 , 44u8 , 141u8 , 151u8 , 114u8 , 109u8 , 98u8 , 70u8 , 103u8 , 41u8 , 93u8 , 14u8 , 171u8 , 115u8 , 127u8 , 71u8 , 114u8 ,]) } # [doc = " Named reserves on some account balances."] # [doc = ""] # [doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn reserves_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: reserves :: Reserves , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Reserves" , () , [229u8 , 249u8 , 203u8 , 167u8 , 55u8 , 45u8 , 194u8 , 217u8 , 66u8 , 155u8 , 16u8 , 204u8 , 106u8 , 207u8 , 49u8 , 127u8 , 193u8 , 192u8 , 147u8 , 242u8 , 31u8 , 220u8 , 137u8 , 8u8 , 247u8 , 96u8 , 175u8 , 28u8 , 246u8 , 50u8 , 254u8 , 222u8 ,]) } # [doc = " Named reserves on some account balances."] # [doc = ""] # [doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn reserves (& self , _0 : types :: reserves :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: reserves :: Param0 > , types :: reserves :: Reserves , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Reserves" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [229u8 , 249u8 , 203u8 , 167u8 , 55u8 , 45u8 , 194u8 , 217u8 , 66u8 , 155u8 , 16u8 , 204u8 , 106u8 , 207u8 , 49u8 , 127u8 , 193u8 , 192u8 , 147u8 , 242u8 , 31u8 , 220u8 , 137u8 , 8u8 , 247u8 , 96u8 , 175u8 , 28u8 , 246u8 , 50u8 , 254u8 , 222u8 ,]) } # [doc = " Holds on account balances."] pub fn holds_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: holds :: Holds , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Holds" , () , [103u8 , 81u8 , 29u8 , 125u8 , 82u8 , 32u8 , 59u8 , 235u8 , 124u8 , 69u8 , 98u8 , 32u8 , 105u8 , 130u8 , 23u8 , 240u8 , 246u8 , 240u8 , 103u8 , 148u8 , 59u8 , 6u8 , 183u8 , 232u8 , 183u8 , 143u8 , 23u8 , 67u8 , 28u8 , 151u8 , 242u8 , 227u8 ,]) } # [doc = " Holds on account balances."] pub fn holds (& self , _0 : types :: holds :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: holds :: Param0 > , types :: holds :: Holds , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Holds" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [103u8 , 81u8 , 29u8 , 125u8 , 82u8 , 32u8 , 59u8 , 235u8 , 124u8 , 69u8 , 98u8 , 32u8 , 105u8 , 130u8 , 23u8 , 240u8 , 246u8 , 240u8 , 103u8 , 148u8 , 59u8 , 6u8 , 183u8 , 232u8 , 183u8 , 143u8 , 23u8 , 67u8 , 28u8 , 151u8 , 242u8 , 227u8 ,]) } # [doc = " Freeze locks on account balances."] pub fn freezes_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: freezes :: Freezes , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Freezes" , () , [53u8 , 28u8 , 230u8 , 230u8 , 26u8 , 176u8 , 210u8 , 21u8 , 149u8 , 240u8 , 217u8 , 196u8 , 134u8 , 217u8 , 43u8 , 98u8 , 245u8 , 54u8 , 222u8 , 227u8 , 140u8 , 204u8 , 119u8 , 99u8 , 198u8 , 252u8 , 76u8 , 83u8 , 140u8 , 122u8 , 55u8 , 236u8 ,]) } # [doc = " Freeze locks on account balances."] pub fn freezes (& self , _0 : types :: freezes :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: freezes :: Param0 > , types :: freezes :: Freezes , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Freezes" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [53u8 , 28u8 , 230u8 , 230u8 , 26u8 , 176u8 , 210u8 , 21u8 , 149u8 , 240u8 , 217u8 , 196u8 , 134u8 , 217u8 , 43u8 , 98u8 , 245u8 , 54u8 , 222u8 , 227u8 , 140u8 , 204u8 , 119u8 , 99u8 , 198u8 , 252u8 , 76u8 , 83u8 , 140u8 , 122u8 , 55u8 , 236u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Balances" , "ExistentialDeposit" , [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 ,]) } # [doc = " The maximum number of locks that should exist on an account."] # [doc = " Not strictly enforced, but used for weight estimation."] # [doc = ""] # [doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn max_locks (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " The maximum number of named reserves that can exist on an account."] # [doc = ""] # [doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn max_reserves (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " The maximum number of individual freeze locks that can exist on an account at any time."] pub fn max_freezes (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ; use super :: runtime_types ; # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [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 : transaction_fee_paid :: Who , pub actual_fee : transaction_fee_paid :: ActualFee , pub tip : transaction_fee_paid :: Tip , } pub mod transaction_fee_paid { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ActualFee = :: core :: primitive :: u64 ; pub type Tip = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TransactionFeePaid { const PALLET : & 'static str = "TransactionPayment" ; const EVENT : & 'static str = "TransactionFeePaid" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod next_fee_multiplier { use super :: runtime_types ; pub type NextFeeMultiplier = runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 ; } pub mod storage_version { use super :: runtime_types ; pub type StorageVersion = runtime_types :: pallet_transaction_payment :: Releases ; } } pub struct StorageApi ; impl StorageApi { pub fn next_fee_multiplier (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_fee_multiplier :: NextFeeMultiplier , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("TransactionPayment" , "NextFeeMultiplier" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: storage_version :: StorageVersion , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("TransactionPayment" , "StorageVersion" , () , [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 { # [doc = " A fee multiplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] # [doc = " `priority`"] # [doc = ""] # [doc = " This value is multiplied 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u8 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 subtensor_module { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_subtensor :: pallet :: Error ; # [doc = "Dispatchable functions allow users to interact with the pallet and invoke state changes."] # [doc = "These functions materialize as \"extrinsics\", which are often compared to transactions."] # [doc = "Dispatchable functions must be annotated with a weight and must return a DispatchResult."] pub type Call = runtime_types :: pallet_subtensor :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = `"--- Sets the caller weights for the incentive mechanism. The call can be"] # [doc = "made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."`] pub struct SetWeights { pub netuid : set_weights :: Netuid , pub dests : set_weights :: Dests , pub weights : set_weights :: Weights , pub version_key : set_weights :: VersionKey , } pub mod set_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Dests = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Weights = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type VersionKey = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Sets the caller weights for the incentive mechanism for mechanisms. The call"] # [doc = "can be made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechnism identifier."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."] pub struct SetMechanismWeights { pub netuid : set_mechanism_weights :: Netuid , pub mecid : set_mechanism_weights :: Mecid , pub dests : set_mechanism_weights :: Dests , pub weights : set_mechanism_weights :: Weights , pub version_key : set_mechanism_weights :: VersionKey , } pub mod set_mechanism_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Mecid = :: core :: primitive :: u8 ; pub type Dests = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Weights = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type VersionKey = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMechanismWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_mechanism_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Allows a hotkey to set weights for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `weights` (Vec<Vec<(Compact<u16>, Compact<u16>)>):"] # [doc = "\t- The weights to set for each network. [(uid, weight), ...]"] # [doc = ""] # [doc = "* `version_keys` (Vec<Compact<u64>>):"] # [doc = "\t- The network version keys to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] pub struct BatchSetWeights { pub netuids : batch_set_weights :: Netuids , pub weights : batch_set_weights :: Weights , pub version_keys : batch_set_weights :: VersionKeys , } pub mod batch_set_weights { use super :: runtime_types ; pub type Netuids = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > ; pub type Weights = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > > ; pub type VersionKeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BatchSetWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "batch_set_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to commit a hash of your weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit_hash` (`H256`):"] # [doc = "  - The hash representing the committed weights."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] pub struct CommitWeights { pub netuid : commit_weights :: Netuid , pub commit_hash : commit_weights :: CommitHash , } pub mod commit_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type CommitHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CommitWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "commit_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to commit a hash of your weight values to later be revealed for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit_hash` (`H256`):"] # [doc = "  - The hash representing the committed weights."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] pub struct CommitMechanismWeights { pub netuid : commit_mechanism_weights :: Netuid , pub mecid : commit_mechanism_weights :: Mecid , pub commit_hash : commit_mechanism_weights :: CommitHash , } pub mod commit_mechanism_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Mecid = :: core :: primitive :: u8 ; pub type CommitHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CommitMechanismWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "commit_mechanism_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Allows a hotkey to commit weight hashes for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `commit_hashes` (Vec<H256>):"] # [doc = "\t- The commit hashes to commit."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] pub struct BatchCommitWeights { pub netuids : batch_commit_weights :: Netuids , pub commit_hashes : batch_commit_weights :: CommitHashes , } pub mod batch_commit_weights { use super :: runtime_types ; pub type Netuids = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > ; pub type CommitHashes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BatchCommitWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "batch_commit_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to reveal the weights for a previously committed hash."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `uids` (`Vec<u16>`):"] # [doc = "  - The uids for the weights being revealed."] # [doc = ""] # [doc = "* `values` (`Vec<u16>`):"] # [doc = "  - The values of the weights being revealed."] # [doc = ""] # [doc = "* `salt` (`Vec<u16>`):"] # [doc = "  - The salt used to generate the commit hash."] # [doc = ""] # [doc = "* `version_key` (`u64`):"] # [doc = "  - The network version key."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] pub struct RevealWeights { pub netuid : reveal_weights :: Netuid , pub uids : reveal_weights :: Uids , pub values : reveal_weights :: Values , pub salt : reveal_weights :: Salt , pub version_key : reveal_weights :: VersionKey , } pub mod reveal_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Uids = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Values = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type VersionKey = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RevealWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "reveal_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to reveal the weights for a previously committed hash for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `uids` (`Vec<u16>`):"] # [doc = "  - The uids for the weights being revealed."] # [doc = ""] # [doc = "* `values` (`Vec<u16>`):"] # [doc = "  - The values of the weights being revealed."] # [doc = ""] # [doc = "* `salt` (`Vec<u16>`):"] # [doc = "  - The salt used to generate the commit hash."] # [doc = ""] # [doc = "* `version_key` (`u64`):"] # [doc = "  - The network version key."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] pub struct RevealMechanismWeights { pub netuid : reveal_mechanism_weights :: Netuid , pub mecid : reveal_mechanism_weights :: Mecid , pub uids : reveal_mechanism_weights :: Uids , pub values : reveal_mechanism_weights :: Values , pub salt : reveal_mechanism_weights :: Salt , pub version_key : reveal_mechanism_weights :: VersionKey , } pub mod reveal_mechanism_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Mecid = :: core :: primitive :: u8 ; pub type Uids = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Values = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type VersionKey = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RevealMechanismWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "reveal_mechanism_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to commit encrypted commit-reveal v3 weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealV3Disabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] # [doc = "---- Used to commit encrypted commit-reveal v3 weight values to later be revealed for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealV3Disabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] pub struct CommitCrv3MechanismWeights { pub netuid : commit_crv3_mechanism_weights :: Netuid , pub mecid : commit_crv3_mechanism_weights :: Mecid , pub commit : commit_crv3_mechanism_weights :: Commit , pub reveal_round : commit_crv3_mechanism_weights :: RevealRound , } pub mod commit_crv3_mechanism_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Mecid = :: core :: primitive :: u8 ; pub type Commit = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type RevealRound = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CommitCrv3MechanismWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "commit_crv3_mechanism_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- The implementation for batch revealing committed weights."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `uids_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of uids for each set of weights being revealed."] # [doc = ""] # [doc = "* `values_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of values for each set of weights being revealed."] # [doc = ""] # [doc = "* `salts_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of salts used to generate the commit hashes."] # [doc = ""] # [doc = "* `version_keys` (`Vec<u64>`):"] # [doc = "  - A list of network version keys."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] # [doc = "* `InvalidInputLengths`:"] # [doc = "  - The input vectors are of mismatched lengths."] pub struct BatchRevealWeights { pub netuid : batch_reveal_weights :: Netuid , pub uids_list : batch_reveal_weights :: UidsList , pub values_list : batch_reveal_weights :: ValuesList , pub salts_list : batch_reveal_weights :: SaltsList , pub version_keys : batch_reveal_weights :: VersionKeys , } pub mod batch_reveal_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type UidsList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > ; pub type ValuesList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > ; pub type SaltsList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > ; pub type VersionKeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BatchRevealWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "batch_reveal_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Allows delegates to decrease its take value."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>::Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The hotkey we are delegating (must be owned by the coldkey.)"] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- Subnet ID to decrease take for"] # [doc = ""] # [doc = "* 'take' (u16):"] # [doc = "\t- The new stake proportion that this hotkey takes from delegations."] # [doc = "       The new value can be between 0 and 11_796 and should be strictly"] # [doc = "       lower than the previous value. It T is the new value (rational number),"] # [doc = "       the the parameter is calculated as [65535 * T]. For example, 1% would be"] # [doc = "       [0.01 * 65535] = [655.35] = 655"] # [doc = ""] # [doc = "# Event:"] # [doc = "* TakeDecreased;"] # [doc = "\t- On successfully setting a decreased take for this hotkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- The hotkey we are delegating is not registered on the network."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- The hotkey we are delegating is not owned by the calling coldkey."] # [doc = ""] # [doc = "* 'DelegateTakeTooLow':"] # [doc = "\t- The delegate is setting a take which is not lower than the previous."] # [doc = ""] pub struct DecreaseTake { pub hotkey : decrease_take :: Hotkey , pub take : decrease_take :: Take , } pub mod decrease_take { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Take = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DecreaseTake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "decrease_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Allows delegates to increase its take value. This call is rate-limited."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>::Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The hotkey we are delegating (must be owned by the coldkey.)"] # [doc = ""] # [doc = "* 'take' (u16):"] # [doc = "\t- The new stake proportion that this hotkey takes from delegations."] # [doc = "       The new value can be between 0 and 11_796 and should be strictly"] # [doc = "       greater than the previous value. T is the new value (rational number),"] # [doc = "       the the parameter is calculated as [65535 * T]. For example, 1% would be"] # [doc = "       [0.01 * 65535] = [655.35] = 655"] # [doc = ""] # [doc = "# Event:"] # [doc = "* TakeIncreased;"] # [doc = "\t- On successfully setting a increased take for this hotkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- The hotkey we are delegating is not registered on the network."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- The hotkey we are delegating is not owned by the calling coldkey."] # [doc = ""] # [doc = "* 'DelegateTakeTooHigh':"] # [doc = "\t- The delegate is setting a take which is not greater than the previous."] # [doc = ""] pub struct IncreaseTake { pub hotkey : increase_take :: Hotkey , pub take : increase_take :: Take , } pub mod increase_take { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Take = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for IncreaseTake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "increase_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Adds stake to a hotkey. The call is made from a coldkey account."] # [doc = "This delegates stake to the hotkey."] # [doc = ""] # [doc = "Note: the coldkey account may own the hotkey, in which case they are"] # [doc = "delegating to themselves."] # [doc = ""] # [doc = "# Args:"] # [doc = " * 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = " * 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = " * 'amount_staked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = "# Event:"] # [doc = " * StakeAdded;"] # [doc = "\t- On the successfully adding stake to a global account."] # [doc = ""] # [doc = "# Raises:"] # [doc = " * 'NotEnoughBalanceToStake':"] # [doc = "\t- Not enough balance on the coldkey to add onto the global account."] # [doc = ""] # [doc = " * 'NonAssociatedColdKey':"] # [doc = "\t- The calling coldkey is not associated with this hotkey."] # [doc = ""] # [doc = " * 'BalanceWithdrawalError':"] # [doc = " \t- Errors stemming from transaction pallet."] # [doc = ""] pub struct AddStake { pub hotkey : add_stake :: Hotkey , pub netuid : add_stake :: Netuid , pub amount_staked : add_stake :: AmountStaked , } pub mod add_stake { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type AmountStaked = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddStake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "add_stake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove stake from the staking account. The call must be made"] # [doc = "from the coldkey account attached to the neuron metadata. Only this key"] # [doc = "has permission to make staking and unstaking requests."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = "* 'amount_unstaked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "\t- On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* 'NotEnoughStakeToWithdraw':"] # [doc = "\t- Thrown if there is not enough stake on the hotkey to withdwraw this amount."] # [doc = ""] pub struct RemoveStake { pub hotkey : remove_stake :: Hotkey , pub netuid : remove_stake :: Netuid , pub amount_unstaked : remove_stake :: AmountUnstaked , } pub mod remove_stake { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type AmountUnstaked = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveStake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "remove_stake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Serves or updates axon /prometheus information for the neuron associated with the caller. If the caller is"] # [doc = "already registered the metadata is updated. If the caller is not registered this call throws NotRegistered."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u64):"] # [doc = "\t- The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u64):"] # [doc = "\t- The endpoint ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The endpoint port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The endpoint ip version as a u8, 4 or 6."] # [doc = ""] # [doc = "* 'protocol' (u8):"] # [doc = "\t- UDP:1 or TCP:0"] # [doc = ""] # [doc = "* 'placeholder1' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'placeholder2' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "# Event:"] # [doc = "* AxonServed;"] # [doc = "\t- On successfully serving the axon info."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'InvalidIpType':"] # [doc = "\t- The ip type is not 4 or 6."] # [doc = ""] # [doc = "* 'InvalidIpAddress':"] # [doc = "\t- The numerically encoded ip address does not resolve to a proper ip."] # [doc = ""] # [doc = "* 'ServingRateLimitExceeded':"] # [doc = "\t- Attempting to set prometheus information withing the rate limit min."] # [doc = ""] pub struct ServeAxon { pub netuid : serve_axon :: Netuid , pub version : serve_axon :: Version , pub ip : serve_axon :: Ip , pub port : serve_axon :: Port , pub ip_type : serve_axon :: IpType , pub protocol : serve_axon :: Protocol , pub placeholder1 : serve_axon :: Placeholder1 , pub placeholder2 : serve_axon :: Placeholder2 , } pub mod serve_axon { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Version = :: core :: primitive :: u32 ; pub type Ip = :: core :: primitive :: u128 ; pub type Port = :: core :: primitive :: u16 ; pub type IpType = :: core :: primitive :: u8 ; pub type Protocol = :: core :: primitive :: u8 ; pub type Placeholder1 = :: core :: primitive :: u8 ; pub type Placeholder2 = :: core :: primitive :: u8 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ServeAxon { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "serve_axon" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Same as `serve_axon` but takes a certificate as an extra optional argument."] # [doc = "Serves or updates axon /prometheus information for the neuron associated with the caller. If the caller is"] # [doc = "already registered the metadata is updated. If the caller is not registered this call throws NotRegistered."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u64):"] # [doc = "\t- The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u64):"] # [doc = "\t- The endpoint ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The endpoint port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The endpoint ip version as a u8, 4 or 6."] # [doc = ""] # [doc = "* 'protocol' (u8):"] # [doc = "\t- UDP:1 or TCP:0"] # [doc = ""] # [doc = "* 'placeholder1' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'placeholder2' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'certificate' (Vec<u8>):"] # [doc = "    - TLS certificate for inter neuron communitation."] # [doc = ""] # [doc = "# Event:"] # [doc = "* AxonServed;"] # [doc = "\t- On successfully serving the axon info."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'InvalidIpType':"] # [doc = "\t- The ip type is not 4 or 6."] # [doc = ""] # [doc = "* 'InvalidIpAddress':"] # [doc = "\t- The numerically encoded ip address does not resolve to a proper ip."] # [doc = ""] # [doc = "* 'ServingRateLimitExceeded':"] # [doc = "\t- Attempting to set prometheus information withing the rate limit min."] # [doc = ""] pub struct ServeAxonTls { pub netuid : serve_axon_tls :: Netuid , pub version : serve_axon_tls :: Version , pub ip : serve_axon_tls :: Ip , pub port : serve_axon_tls :: Port , pub ip_type : serve_axon_tls :: IpType , pub protocol : serve_axon_tls :: Protocol , pub placeholder1 : serve_axon_tls :: Placeholder1 , pub placeholder2 : serve_axon_tls :: Placeholder2 , pub certificate : serve_axon_tls :: Certificate , } pub mod serve_axon_tls { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Version = :: core :: primitive :: u32 ; pub type Ip = :: core :: primitive :: u128 ; pub type Port = :: core :: primitive :: u16 ; pub type IpType = :: core :: primitive :: u8 ; pub type Protocol = :: core :: primitive :: u8 ; pub type Placeholder1 = :: core :: primitive :: u8 ; pub type Placeholder2 = :: core :: primitive :: u8 ; pub type Certificate = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ServeAxonTls { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "serve_axon_tls" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Set prometheus information for the neuron."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u16):"] # [doc = "\t-  The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u128):"] # [doc = "\t- The prometheus ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The prometheus port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The ip type v4 or v6."] # [doc = ""] pub struct ServePrometheus { pub netuid : serve_prometheus :: Netuid , pub version : serve_prometheus :: Version , pub ip : serve_prometheus :: Ip , pub port : serve_prometheus :: Port , pub ip_type : serve_prometheus :: IpType , } pub mod serve_prometheus { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Version = :: core :: primitive :: u32 ; pub type Ip = :: core :: primitive :: u128 ; pub type Port = :: core :: primitive :: u16 ; pub type IpType = :: core :: primitive :: u8 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ServePrometheus { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "serve_prometheus" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Registers a new neuron to the subnetwork."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'block_number' ( u64 ):"] # [doc = "\t- Block hash used to prove work done."] # [doc = ""] # [doc = "* 'nonce' ( u64 ):"] # [doc = "\t- Positive integer nonce used in POW."] # [doc = ""] # [doc = "* 'work' ( Vec<u8> ):"] # [doc = "\t- Vector encoded bytes representing work done."] # [doc = ""] # [doc = "* 'hotkey' ( T::AccountId ):"] # [doc = "\t- Hotkey to be registered to the network."] # [doc = ""] # [doc = "* 'coldkey' ( T::AccountId ):"] # [doc = "\t- Associated coldkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* NeuronRegistered;"] # [doc = "\t- On successfully registering a uid to a neuron slot on a subnetwork."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to register to a non existent network."] # [doc = ""] # [doc = "* 'TooManyRegistrationsThisBlock':"] # [doc = "\t- This registration exceeds the total allowed on this network this block."] # [doc = ""] # [doc = "* 'HotKeyAlreadyRegisteredInSubNet':"] # [doc = "\t- The hotkey is already registered on this network."] # [doc = ""] # [doc = "* 'InvalidWorkBlock':"] # [doc = "\t- The work has been performed on a stale, future, or non existent block."] # [doc = ""] # [doc = "* 'InvalidDifficulty':"] # [doc = "\t- The work does not match the difficulty."] # [doc = ""] # [doc = "* 'InvalidSeal':"] # [doc = "\t- The seal is incorrect."] # [doc = ""] pub struct Register { pub netuid : register :: Netuid , pub block_number : register :: BlockNumber , pub nonce : register :: Nonce , pub work : register :: Work , pub hotkey : register :: Hotkey , pub coldkey : register :: Coldkey , } pub mod register { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type BlockNumber = :: core :: primitive :: u64 ; pub type Nonce = :: core :: primitive :: u64 ; pub type Work = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Register { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "register" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register the hotkey to root network"] pub struct RootRegister { pub hotkey : root_register :: Hotkey , } pub mod root_register { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RootRegister { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "root_register" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "User register a new subnetwork via burning token"] pub struct BurnedRegister { pub netuid : burned_register :: Netuid , pub hotkey : burned_register :: Hotkey , } pub mod burned_register { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BurnedRegister { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "burned_register" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic for user to change its hotkey in subnet or all subnets."] pub struct SwapHotkey { pub hotkey : swap_hotkey :: Hotkey , pub new_hotkey : swap_hotkey :: NewHotkey , pub netuid : swap_hotkey :: Netuid , } pub mod swap_hotkey { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: option :: Option < :: core :: primitive :: u16 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SwapHotkey { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "swap_hotkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic for user to change the coldkey associated with their account."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - The origin of the call, must be signed by the old coldkey."] # [doc = "* `old_coldkey` - The current coldkey associated with the account."] # [doc = "* `new_coldkey` - The new coldkey to be associated with the account."] # [doc = ""] # [doc = "# Returns"] # [doc = ""] # [doc = "Returns a `DispatchResultWithPostInfo` indicating success or failure of the operation."] # [doc = ""] # [doc = "# Weight"] # [doc = ""] # [doc = "Weight is calculated based on the number of database reads and writes."] pub struct SwapColdkey { pub old_coldkey : swap_coldkey :: OldColdkey , pub new_coldkey : swap_coldkey :: NewColdkey , pub swap_cost : swap_coldkey :: SwapCost , } pub mod swap_coldkey { use super :: runtime_types ; pub type OldColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type SwapCost = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SwapColdkey { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "swap_coldkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the childkey take for a given hotkey."] # [doc = ""] # [doc = "This function allows a coldkey to set the childkey take for a given hotkey."] # [doc = "The childkey take determines the proportion of stake that the hotkey keeps for itself"] # [doc = "when distributing stake to its children."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` (<T as frame_system::Config>::RuntimeOrigin):"] # [doc = "    - The signature of the calling coldkey. Setting childkey take can only be done by the coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey for which the childkey take will be set."] # [doc = ""] # [doc = "* `take` (u16):"] # [doc = "    - The new childkey take value. This is a percentage represented as a value between 0 and 10000,"] # [doc = "      where 10000 represents 100%."] # [doc = ""] # [doc = "# Events:"] # [doc = "* `ChildkeyTakeSet`:"] # [doc = "    - On successfully setting the childkey take for a hotkey."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - The coldkey does not own the hotkey."] # [doc = "* `InvalidChildkeyTake`:"] # [doc = "    - The provided take value is invalid (greater than the maximum allowed take)."] # [doc = "* `TxChildkeyTakeRateLimitExceeded`:"] # [doc = "    - The rate limit for changing childkey take has been exceeded."] # [doc = ""] pub struct SetChildkeyTake { pub hotkey : set_childkey_take :: Hotkey , pub netuid : set_childkey_take :: Netuid , pub take : set_childkey_take :: Take , } pub mod set_childkey_take { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type Take = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetChildkeyTake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_childkey_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the transaction rate limit for changing childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `tx_rate_limit` - The new rate limit in blocks."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] pub struct SudoSetTxChildkeyTakeRateLimit { pub tx_rate_limit : sudo_set_tx_childkey_take_rate_limit :: TxRateLimit , } pub mod sudo_set_tx_childkey_take_rate_limit { use super :: runtime_types ; pub type TxRateLimit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTxChildkeyTakeRateLimit { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "sudo_set_tx_childkey_take_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the minimum allowed childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `take` - The new minimum childkey take value."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] pub struct SudoSetMinChildkeyTake { pub take : sudo_set_min_childkey_take :: Take , } pub mod sudo_set_min_childkey_take { use super :: runtime_types ; pub type Take = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinChildkeyTake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "sudo_set_min_childkey_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the maximum allowed childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `take` - The new maximum childkey take value."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] pub struct SudoSetMaxChildkeyTake { pub take : sudo_set_max_childkey_take :: Take , } pub mod sudo_set_max_childkey_take { use super :: runtime_types ; pub type Take = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMaxChildkeyTake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "sudo_set_max_childkey_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "User register a new subnetwork"] pub struct RegisterNetwork { pub hotkey : register_network :: Hotkey , } pub mod register_network { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RegisterNetwork { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "register_network" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove a user's subnetwork"] # [doc = "The caller must be the owner of the network"] pub struct DissolveNetwork { pub coldkey : dissolve_network :: Coldkey , pub netuid : dissolve_network :: Netuid , } pub mod dissolve_network { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DissolveNetwork { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "dissolve_network" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a single child for a given hotkey on a specified network."] # [doc = ""] # [doc = "This function allows a coldkey to set a single child for a given hotkey on a specified network."] # [doc = "The proportion of the hotkey's stake to be allocated to the child is also specified."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` (<T as frame_system::Config>::RuntimeOrigin):"] # [doc = "    - The signature of the calling coldkey. Setting a hotkey child can only be done by the coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey which will be assigned the child."] # [doc = ""] # [doc = "* `child` (T::AccountId):"] # [doc = "    - The child which will be assigned to the hotkey."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "    - The u16 network identifier where the childkey will exist."] # [doc = ""] # [doc = "* `proportion` (u64):"] # [doc = "    - Proportion of the hotkey's stake to be given to the child, the value must be u64 normalized."] # [doc = ""] # [doc = "# Events:"] # [doc = "* `ChildAddedSingular`:"] # [doc = "    - On successfully registering a child to a hotkey."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `MechanismDoesNotExist`:"] # [doc = "    - Attempting to register to a non-existent network."] # [doc = "* `RegistrationNotPermittedOnRootSubnet`:"] # [doc = "    - Attempting to register a child on the root network."] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - The coldkey does not own the hotkey or the child is the same as the hotkey."] # [doc = "* `HotKeyAccountNotExists`:"] # [doc = "    - The hotkey account does not exist."] # [doc = ""] # [doc = "# Detailed Explanation of Checks:"] # [doc = "1. **Signature Verification**: Ensures that the caller has signed the transaction, verifying the coldkey."] # [doc = "2. **Root Network Check**: Ensures that the delegation is not on the root network, as child hotkeys are not valid on the root."] # [doc = "3. **Network Existence Check**: Ensures that the specified network exists."] # [doc = "4. **Ownership Verification**: Ensures that the coldkey owns the hotkey."] # [doc = "5. **Hotkey Account Existence Check**: Ensures that the hotkey account already exists."] # [doc = "6. **Child-Hotkey Distinction**: Ensures that the child is not the same as the hotkey."] # [doc = "7. **Old Children Cleanup**: Removes the hotkey from the parent list of its old children."] # [doc = "8. **New Children Assignment**: Assigns the new child to the hotkey and updates the parent list for the new child."] pub struct SetChildren { pub hotkey : set_children :: Hotkey , pub netuid : set_children :: Netuid , pub children : set_children :: Children , } pub mod set_children { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type Children = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetChildren { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_children" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedules a coldkey swap operation to be executed at a future block."] # [doc = ""] # [doc = "This function allows a user to schedule the swapping of their coldkey to a new one"] # [doc = "at a specified future block. The swap is not executed immediately but is scheduled"] # [doc = "to occur at the specified block number."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - The origin of the call, which should be signed by the current coldkey owner."] # [doc = "* `new_coldkey` - The account ID of the new coldkey that will replace the current one."] # [doc = "* `when` - The block number at which the coldkey swap should be executed."] # [doc = ""] # [doc = "# Returns"] # [doc = ""] # [doc = "Returns a `DispatchResultWithPostInfo` indicating whether the scheduling was successful."] # [doc = ""] # [doc = "# Errors"] # [doc = ""] # [doc = "This function may return an error if:"] # [doc = "* The origin is not signed."] # [doc = "* The scheduling fails due to conflicts or system constraints."] # [doc = ""] # [doc = "# Notes"] # [doc = ""] # [doc = "- The actual swap is not performed by this function. It merely schedules the swap operation."] # [doc = "- The weight of this call is set to a fixed value and may need adjustment based on benchmarking."] # [doc = ""] # [doc = "# TODO"] # [doc = ""] # [doc = "- Implement proper weight calculation based on the complexity of the operation."] # [doc = "- Consider adding checks to prevent scheduling too far into the future."] # [doc = "TODO: Benchmark this call"] pub struct ScheduleSwapColdkey { pub new_coldkey : schedule_swap_coldkey :: NewColdkey , } pub mod schedule_swap_coldkey { use super :: runtime_types ; pub type NewColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleSwapColdkey { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "schedule_swap_coldkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Set prometheus information for the neuron."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u16):"] # [doc = "\t-  The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u128):"] # [doc = "\t- The prometheus ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The prometheus port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The ip type v4 or v6."] # [doc = ""] pub struct SetIdentity { pub name : set_identity :: Name , pub url : set_identity :: Url , pub github_repo : set_identity :: GithubRepo , pub image : set_identity :: Image , pub discord : set_identity :: Discord , pub description : set_identity :: Description , pub additional : set_identity :: Additional , } pub mod set_identity { use super :: runtime_types ; pub type Name = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Url = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type GithubRepo = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Image = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Discord = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Description = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Additional = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetIdentity { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_identity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Set the identity information for a subnet."] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the calling coldkey, which must be the owner of the subnet."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "    - The unique network identifier of the subnet."] # [doc = ""] # [doc = "* `subnet_name` (Vec<u8>):"] # [doc = "    - The name of the subnet."] # [doc = ""] # [doc = "* `github_repo` (Vec<u8>):"] # [doc = "    - The GitHub repository associated with the subnet identity."] # [doc = ""] # [doc = "* `subnet_contact` (Vec<u8>):"] # [doc = "    - The contact information for the subnet."] pub struct SetSubnetIdentity { pub netuid : set_subnet_identity :: Netuid , pub subnet_name : set_subnet_identity :: SubnetName , pub github_repo : set_subnet_identity :: GithubRepo , pub subnet_contact : set_subnet_identity :: SubnetContact , pub subnet_url : set_subnet_identity :: SubnetUrl , pub discord : set_subnet_identity :: Discord , pub description : set_subnet_identity :: Description , pub logo_url : set_subnet_identity :: LogoUrl , pub additional : set_subnet_identity :: Additional , } pub mod set_subnet_identity { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type SubnetName = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type GithubRepo = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type SubnetContact = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type SubnetUrl = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Discord = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Description = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type LogoUrl = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Additional = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetSubnetIdentity { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_subnet_identity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "User register a new subnetwork"] pub struct RegisterNetworkWithIdentity { pub hotkey : register_network_with_identity :: Hotkey , pub identity : register_network_with_identity :: Identity , } pub mod register_network_with_identity { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Identity = :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RegisterNetworkWithIdentity { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "register_network_with_identity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- The implementation for the extrinsic unstake_all: Removes all stake from a hotkey account across all subnets and adds it onto a coldkey."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The associated hotkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "    - On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `NotRegistered`:"] # [doc = "    - Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* `NotEnoughStakeToWithdraw`:"] # [doc = "    - Thrown if there is not enough stake on the hotkey to withdraw this amount."] # [doc = ""] # [doc = "* `TxRateLimitExceeded`:"] # [doc = "    - Thrown if key has hit transaction rate limit"] pub struct UnstakeAll { pub hotkey : unstake_all :: Hotkey , } pub mod unstake_all { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UnstakeAll { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "unstake_all" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- The implementation for the extrinsic unstake_all: Removes all stake from a hotkey account across all subnets and adds it onto a coldkey."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The associated hotkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "    - On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `NotRegistered`:"] # [doc = "    - Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* `NotEnoughStakeToWithdraw`:"] # [doc = "    - Thrown if there is not enough stake on the hotkey to withdraw this amount."] # [doc = ""] # [doc = "* `TxRateLimitExceeded`:"] # [doc = "    - Thrown if key has hit transaction rate limit"] pub struct UnstakeAllAlpha { pub hotkey : unstake_all_alpha :: Hotkey , } pub mod unstake_all_alpha { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UnstakeAllAlpha { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "unstake_all_alpha" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- The implementation for the extrinsic move_stake: Moves specified amount of stake from a hotkey to another across subnets."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `origin_hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to move stake from."] # [doc = ""] # [doc = "* `destination_hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to move stake to."] # [doc = ""] # [doc = "* `origin_netuid` (T::AccountId):"] # [doc = "    - The subnet ID to move stake from."] # [doc = ""] # [doc = "* `destination_netuid` (T::AccountId):"] # [doc = "    - The subnet ID to move stake to."] # [doc = ""] # [doc = "* `alpha_amount` (T::AccountId):"] # [doc = "    - The alpha stake amount to move."] # [doc = ""] pub struct MoveStake { pub origin_hotkey : move_stake :: OriginHotkey , pub destination_hotkey : move_stake :: DestinationHotkey , pub origin_netuid : move_stake :: OriginNetuid , pub destination_netuid : move_stake :: DestinationNetuid , pub alpha_amount : move_stake :: AlphaAmount , } pub mod move_stake { use super :: runtime_types ; pub type OriginHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type DestinationHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type OriginNetuid = :: core :: primitive :: u16 ; pub type DestinationNetuid = :: core :: primitive :: u16 ; pub type AlphaAmount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for MoveStake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "move_stake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfers a specified amount of stake from one coldkey to another, optionally across subnets,"] # [doc = "while keeping the same hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the `origin_coldkey`."] # [doc = "* `destination_coldkey` - The coldkey to which the stake is transferred."] # [doc = "* `hotkey` - The hotkey associated with the stake."] # [doc = "* `origin_netuid` - The network/subnet ID to move stake from."] # [doc = "* `destination_netuid` - The network/subnet ID to move stake to (for cross-subnet transfer)."] # [doc = "* `alpha_amount` - The amount of stake to transfer."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The origin is not signed by the correct coldkey."] # [doc = "* Either subnet does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(origin_coldkey, hotkey, origin_netuid)`."] # [doc = "* The transfer amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeTransferred` event on success."] pub struct TransferStake { pub destination_coldkey : transfer_stake :: DestinationColdkey , pub hotkey : transfer_stake :: Hotkey , pub origin_netuid : transfer_stake :: OriginNetuid , pub destination_netuid : transfer_stake :: DestinationNetuid , pub alpha_amount : transfer_stake :: AlphaAmount , } pub mod transfer_stake { use super :: runtime_types ; pub type DestinationColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type OriginNetuid = :: core :: primitive :: u16 ; pub type DestinationNetuid = :: core :: primitive :: u16 ; pub type AlphaAmount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferStake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "transfer_stake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Swaps a specified amount of stake from one subnet to another, while keeping the same coldkey and hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey whose stake is being swapped."] # [doc = "* `origin_netuid` - The network/subnet ID from which stake is removed."] # [doc = "* `destination_netuid` - The network/subnet ID to which stake is added."] # [doc = "* `alpha_amount` - The amount of stake to swap."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the correct coldkey (i.e., `coldkey_owns_hotkey` fails)."] # [doc = "* Either `origin_netuid` or `destination_netuid` does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(coldkey, hotkey, origin_netuid)`."] # [doc = "* The swap amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeSwapped` event on success."] pub struct SwapStake { pub hotkey : swap_stake :: Hotkey , pub origin_netuid : swap_stake :: OriginNetuid , pub destination_netuid : swap_stake :: DestinationNetuid , pub alpha_amount : swap_stake :: AlphaAmount , } pub mod swap_stake { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type OriginNetuid = :: core :: primitive :: u16 ; pub type DestinationNetuid = :: core :: primitive :: u16 ; pub type AlphaAmount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SwapStake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "swap_stake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Adds stake to a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (lower) the staking should execute."] # [doc = ""] # [doc = "In case if slippage occurs and the price shall move beyond the limit"] # [doc = "price, the staking order may execute only partially or not execute"] # [doc = "at all."] # [doc = ""] # [doc = "# Args:"] # [doc = " * 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = " * 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = " * 'amount_staked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = " * 'limit_price' (u64):"] # [doc = "\t- The limit price expressed in units of RAO per one Alpha."] # [doc = ""] # [doc = " * 'allow_partial' (bool):"] # [doc = "\t- Allows partial execution of the amount. If set to false, this becomes"] # [doc = "      fill or kill type or order."] # [doc = ""] # [doc = "# Event:"] # [doc = " * StakeAdded;"] # [doc = "\t- On the successfully adding stake to a global account."] # [doc = ""] # [doc = "# Raises:"] # [doc = " * 'NotEnoughBalanceToStake':"] # [doc = "\t- Not enough balance on the coldkey to add onto the global account."] # [doc = ""] # [doc = " * 'NonAssociatedColdKey':"] # [doc = "\t- The calling coldkey is not associated with this hotkey."] # [doc = ""] # [doc = " * 'BalanceWithdrawalError':"] # [doc = " \t- Errors stemming from transaction pallet."] # [doc = ""] pub struct AddStakeLimit { pub hotkey : add_stake_limit :: Hotkey , pub netuid : add_stake_limit :: Netuid , pub amount_staked : add_stake_limit :: AmountStaked , pub limit_price : add_stake_limit :: LimitPrice , pub allow_partial : add_stake_limit :: AllowPartial , } pub mod add_stake_limit { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type AmountStaked = :: core :: primitive :: u64 ; pub type LimitPrice = :: core :: primitive :: u64 ; pub type AllowPartial = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddStakeLimit { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "add_stake_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Removes stake from a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (higher) the staking should execute."] # [doc = ""] # [doc = "In case if slippage occurs and the price shall move beyond the limit"] # [doc = "price, the staking order may execute only partially or not execute"] # [doc = "at all."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = "* 'amount_unstaked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = " * 'limit_price' (u64):"] # [doc = "    - The limit price expressed in units of RAO per one Alpha."] # [doc = ""] # [doc = " * 'allow_partial' (bool):"] # [doc = "    - Allows partial execution of the amount. If set to false, this becomes"] # [doc = "      fill or kill type or order."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "\t- On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* 'NotEnoughStakeToWithdraw':"] # [doc = "\t- Thrown if there is not enough stake on the hotkey to withdwraw this amount."] # [doc = ""] pub struct RemoveStakeLimit { pub hotkey : remove_stake_limit :: Hotkey , pub netuid : remove_stake_limit :: Netuid , pub amount_unstaked : remove_stake_limit :: AmountUnstaked , pub limit_price : remove_stake_limit :: LimitPrice , pub allow_partial : remove_stake_limit :: AllowPartial , } pub mod remove_stake_limit { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type AmountUnstaked = :: core :: primitive :: u64 ; pub type LimitPrice = :: core :: primitive :: u64 ; pub type AllowPartial = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveStakeLimit { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "remove_stake_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Swaps a specified amount of stake from one subnet to another, while keeping the same coldkey and hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey whose stake is being swapped."] # [doc = "* `origin_netuid` - The network/subnet ID from which stake is removed."] # [doc = "* `destination_netuid` - The network/subnet ID to which stake is added."] # [doc = "* `alpha_amount` - The amount of stake to swap."] # [doc = "* `limit_price` - The limit price expressed in units of RAO per one Alpha."] # [doc = "* `allow_partial` - Allows partial execution of the amount. If set to false, this becomes fill or kill type or order."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the correct coldkey (i.e., `coldkey_owns_hotkey` fails)."] # [doc = "* Either `origin_netuid` or `destination_netuid` does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(coldkey, hotkey, origin_netuid)`."] # [doc = "* The swap amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeSwapped` event on success."] pub struct SwapStakeLimit { pub hotkey : swap_stake_limit :: Hotkey , pub origin_netuid : swap_stake_limit :: OriginNetuid , pub destination_netuid : swap_stake_limit :: DestinationNetuid , pub alpha_amount : swap_stake_limit :: AlphaAmount , pub limit_price : swap_stake_limit :: LimitPrice , pub allow_partial : swap_stake_limit :: AllowPartial , } pub mod swap_stake_limit { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type OriginNetuid = :: core :: primitive :: u16 ; pub type DestinationNetuid = :: core :: primitive :: u16 ; pub type AlphaAmount = :: core :: primitive :: u64 ; pub type LimitPrice = :: core :: primitive :: u64 ; pub type AllowPartial = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SwapStakeLimit { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "swap_stake_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Attempts to associate a hotkey with a coldkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey to associate with the coldkey."] # [doc = ""] # [doc = "# Note"] # [doc = "Will charge based on the weight even if the hotkey is already associated with a coldkey."] pub struct TryAssociateHotkey { pub hotkey : try_associate_hotkey :: Hotkey , } pub mod try_associate_hotkey { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TryAssociateHotkey { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "try_associate_hotkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Initiates a call on a subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be signed by the subnet owner."] # [doc = "* `netuid` - The unique identifier of the subnet on which the call is being initiated."] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `FirstEmissionBlockNumberSet` event on success."] pub struct StartCall { pub netuid : start_call :: Netuid , } pub mod start_call { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for StartCall { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "start_call" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Attempts to associate a hotkey with an EVM key."] # [doc = ""] # [doc = "The signature will be checked to see if the recovered public key matches the `evm_key` provided."] # [doc = ""] # [doc = "The EVM key is expected to sign the message according to this formula to produce the signature:"] # [doc = "```text"] # [doc = "keccak_256(hotkey ++ keccak_256(block_number))"] # [doc = "```"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the `hotkey`."] # [doc = "* `netuid` - The netuid that the `hotkey` belongs to."] # [doc = "* `evm_key` - The EVM key to associate with the `hotkey`."] # [doc = "* `block_number` - The block number used in the `signature`."] # [doc = "* `signature` - A signed message by the `evm_key` containing the `hotkey` and the hashed `block_number`."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed."] # [doc = "* The hotkey does not belong to the subnet identified by the netuid."] # [doc = "* The EVM key cannot be recovered from the signature."] # [doc = "* The EVM key recovered from the signature does not match the given EVM key."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `EvmKeyAssociated` event on success"] pub struct AssociateEvmKey { pub netuid : associate_evm_key :: Netuid , pub evm_key : associate_evm_key :: EvmKey , pub block_number : associate_evm_key :: BlockNumber , pub signature : associate_evm_key :: Signature , } pub mod associate_evm_key { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type EvmKey = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type BlockNumber = :: core :: primitive :: u64 ; pub type Signature = [:: core :: primitive :: u8 ; 65usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AssociateEvmKey { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "associate_evm_key" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Recycles alpha from a cold/hot key pair, reducing AlphaOut on a subnet"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call (must be signed by the coldkey)"] # [doc = "* `hotkey` - The hotkey account"] # [doc = "* `amount` - The amount of alpha to recycle"] # [doc = "* `netuid` - The subnet ID"] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `TokensRecycled` event on success."] pub struct RecycleAlpha { pub hotkey : recycle_alpha :: Hotkey , pub amount : recycle_alpha :: Amount , pub netuid : recycle_alpha :: Netuid , } pub mod recycle_alpha { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RecycleAlpha { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "recycle_alpha" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Burns alpha from a cold/hot key pair without reducing `AlphaOut`"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call (must be signed by the coldkey)"] # [doc = "* `hotkey` - The hotkey account"] # [doc = "* `amount` - The amount of alpha to burn"] # [doc = "* `netuid` - The subnet ID"] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `TokensBurned` event on success."] pub struct BurnAlpha { pub hotkey : burn_alpha :: Hotkey , pub amount : burn_alpha :: Amount , pub netuid : burn_alpha :: Netuid , } pub mod burn_alpha { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BurnAlpha { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "burn_alpha" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the pending childkey cooldown (in blocks). Root only."] pub struct SetPendingChildkeyCooldown { pub cooldown : set_pending_childkey_cooldown :: Cooldown , } pub mod set_pending_childkey_cooldown { use super :: runtime_types ; pub type Cooldown = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetPendingChildkeyCooldown { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_pending_childkey_cooldown" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Removes all stake from a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (higher) the staking should execute."] # [doc = "Without limit_price it remove all the stake similar to `remove_stake` extrinsic"] pub struct RemoveStakeFullLimit { pub hotkey : remove_stake_full_limit :: Hotkey , pub netuid : remove_stake_full_limit :: Netuid , pub limit_price : remove_stake_full_limit :: LimitPrice , } pub mod remove_stake_full_limit { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type LimitPrice = :: core :: option :: Option < :: core :: primitive :: u64 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveStakeFullLimit { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "remove_stake_full_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register a new leased network."] # [doc = ""] # [doc = "The crowdloan's contributions are used to compute the share of the emissions that the contributors"] # [doc = "will receive as dividends."] # [doc = ""] # [doc = "The leftover cap is refunded to the contributors and the beneficiary."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `emissions_share` (Percent):"] # [doc = "    - The share of the emissions that the contributors will receive as dividends."] # [doc = ""] # [doc = "* `end_block` (Option<BlockNumberFor<T>>):"] # [doc = "    - The block at which the lease will end. If not defined, the lease is perpetual."] pub struct RegisterLeasedNetwork { pub emissions_share : register_leased_network :: EmissionsShare , pub end_block : register_leased_network :: EndBlock , } pub mod register_leased_network { use super :: runtime_types ; pub type EmissionsShare = runtime_types :: sp_arithmetic :: per_things :: Percent ; pub type EndBlock = :: core :: option :: Option < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RegisterLeasedNetwork { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "register_leased_network" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Terminate a lease."] # [doc = ""] # [doc = "The beneficiary can terminate the lease after the end block has passed and get the subnet ownership."] # [doc = "The subnet is transferred to the beneficiary and the lease is removed from storage."] # [doc = ""] # [doc = "**The hotkey must be owned by the beneficiary coldkey.**"] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `lease_id` (LeaseId):"] # [doc = "    - The ID of the lease to terminate."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey of the beneficiary to mark as subnet owner hotkey."] pub struct TerminateLease { pub lease_id : terminate_lease :: LeaseId , pub hotkey : terminate_lease :: Hotkey , } pub mod terminate_lease { use super :: runtime_types ; pub type LeaseId = :: core :: primitive :: u32 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TerminateLease { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "terminate_lease" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Updates the symbol for a subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or root."] # [doc = "* `netuid` - The unique identifier of the subnet on which the symbol is being set."] # [doc = "* `symbol` - The symbol to set for the subnet."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the subnet owner."] # [doc = "* The symbol does not exist."] # [doc = "* The symbol is already in use by another subnet."] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `SymbolUpdated` event on success."] pub struct UpdateSymbol { pub netuid : update_symbol :: Netuid , pub symbol : update_symbol :: Symbol , } pub mod update_symbol { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Symbol = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpdateSymbol { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "update_symbol" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to commit timelock encrypted commit-reveal weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "* commit_reveal_version (`u16`):"] # [doc = "    - The client (bittensor-drand) version"] pub struct CommitTimelockedWeights { pub netuid : commit_timelocked_weights :: Netuid , pub commit : commit_timelocked_weights :: Commit , pub reveal_round : commit_timelocked_weights :: RevealRound , pub commit_reveal_version : commit_timelocked_weights :: CommitRevealVersion , } pub mod commit_timelocked_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Commit = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type RevealRound = :: core :: primitive :: u64 ; pub type CommitRevealVersion = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CommitTimelockedWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "commit_timelocked_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the autostake destination hotkey for a coldkey."] # [doc = ""] # [doc = "The caller selects a hotkey where all future rewards"] # [doc = "will be automatically staked."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to designate as the autostake destination."] pub struct SetColdkeyAutoStakeHotkey { pub netuid : set_coldkey_auto_stake_hotkey :: Netuid , pub hotkey : set_coldkey_auto_stake_hotkey :: Hotkey , } pub mod set_coldkey_auto_stake_hotkey { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetColdkeyAutoStakeHotkey { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_coldkey_auto_stake_hotkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to commit timelock encrypted commit-reveal weight values to later be revealed for"] # [doc = "a mechanism."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "* commit_reveal_version (`u16`):"] # [doc = "    - The client (bittensor-drand) version"] pub struct CommitTimelockedMechanismWeights { pub netuid : commit_timelocked_mechanism_weights :: Netuid , pub mecid : commit_timelocked_mechanism_weights :: Mecid , pub commit : commit_timelocked_mechanism_weights :: Commit , pub reveal_round : commit_timelocked_mechanism_weights :: RevealRound , pub commit_reveal_version : commit_timelocked_mechanism_weights :: CommitRevealVersion , } pub mod commit_timelocked_mechanism_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Mecid = :: core :: primitive :: u8 ; pub type Commit = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type RevealRound = :: core :: primitive :: u64 ; pub type CommitRevealVersion = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CommitTimelockedMechanismWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "commit_timelocked_mechanism_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove a subnetwork"] # [doc = "The caller must be root"] pub struct RootDissolveNetwork { pub netuid : root_dissolve_network :: Netuid , } pub mod root_dissolve_network { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RootDissolveNetwork { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "root_dissolve_network" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Claims the root emissions for a coldkey."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "# Event:"] # [doc = "* RootClaimed;"] # [doc = "\t- On the successfully claiming the root emissions for a coldkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = ""] pub struct ClaimRoot { pub subnets : claim_root :: Subnets , } pub mod claim_root { use super :: runtime_types ; pub type Subnets = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ClaimRoot { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "claim_root" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Sets the root claim type for the coldkey."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "# Event:"] # [doc = "* RootClaimTypeSet;"] # [doc = "\t- On the successfully setting the root claim type for the coldkey."] # [doc = ""] pub struct SetRootClaimType { pub new_root_claim_type : set_root_claim_type :: NewRootClaimType , } pub mod set_root_claim_type { use super :: runtime_types ; pub type NewRootClaimType = runtime_types :: pallet_subtensor :: pallet :: RootClaimTypeEnum ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetRootClaimType { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_root_claim_type" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Sets root claim number (sudo extrinsic). Zero disables auto-claim."] pub struct SudoSetNumRootClaims { pub new_value : sudo_set_num_root_claims :: NewValue , } pub mod sudo_set_num_root_claims { use super :: runtime_types ; pub type NewValue = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNumRootClaims { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "sudo_set_num_root_claims" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Sets root claim threshold for subnet (sudo or owner origin)."] pub struct SudoSetRootClaimThreshold { pub netuid : sudo_set_root_claim_threshold :: Netuid , pub new_value : sudo_set_root_claim_threshold :: NewValue , } pub mod sudo_set_root_claim_threshold { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type NewValue = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetRootClaimThreshold { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "sudo_set_root_claim_threshold" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "--- Sets the caller weights for the incentive mechanism. The call can be"] # [doc = "made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."] pub fn set_weights (& self , netuid : types :: set_weights :: Netuid , dests : types :: set_weights :: Dests , weights : types :: set_weights :: Weights , version_key : types :: set_weights :: VersionKey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_weights" , types :: SetWeights { netuid , dests , weights , version_key , } , [26u8 , 113u8 , 253u8 , 232u8 , 169u8 , 61u8 , 9u8 , 102u8 , 199u8 , 147u8 , 148u8 , 10u8 , 248u8 , 38u8 , 32u8 , 13u8 , 141u8 , 199u8 , 11u8 , 40u8 , 238u8 , 233u8 , 56u8 , 125u8 , 156u8 , 213u8 , 224u8 , 244u8 , 72u8 , 93u8 , 195u8 , 62u8 ,]) } # [doc = "--- Sets the caller weights for the incentive mechanism for mechanisms. The call"] # [doc = "can be made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechnism identifier."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."] pub fn set_mechanism_weights (& self , netuid : types :: set_mechanism_weights :: Netuid , mecid : types :: set_mechanism_weights :: Mecid , dests : types :: set_mechanism_weights :: Dests , weights : types :: set_mechanism_weights :: Weights , version_key : types :: set_mechanism_weights :: VersionKey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMechanismWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_mechanism_weights" , types :: SetMechanismWeights { netuid , mecid , dests , weights , version_key , } , [188u8 , 13u8 , 95u8 , 76u8 , 186u8 , 188u8 , 155u8 , 109u8 , 105u8 , 231u8 , 17u8 , 67u8 , 114u8 , 51u8 , 225u8 , 67u8 , 128u8 , 190u8 , 18u8 , 130u8 , 24u8 , 239u8 , 114u8 , 66u8 , 251u8 , 220u8 , 141u8 , 169u8 , 205u8 , 46u8 , 56u8 , 145u8 ,]) } # [doc = "--- Allows a hotkey to set weights for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `weights` (Vec<Vec<(Compact<u16>, Compact<u16>)>):"] # [doc = "\t- The weights to set for each network. [(uid, weight), ...]"] # [doc = ""] # [doc = "* `version_keys` (Vec<Compact<u64>>):"] # [doc = "\t- The network version keys to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] pub fn batch_set_weights (& self , netuids : types :: batch_set_weights :: Netuids , weights : types :: batch_set_weights :: Weights , version_keys : types :: batch_set_weights :: VersionKeys ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BatchSetWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "batch_set_weights" , types :: BatchSetWeights { netuids , weights , version_keys , } , [7u8 , 33u8 , 231u8 , 220u8 , 57u8 , 56u8 , 201u8 , 202u8 , 139u8 , 235u8 , 190u8 , 216u8 , 235u8 , 1u8 , 103u8 , 10u8 , 216u8 , 117u8 , 224u8 , 2u8 , 237u8 , 19u8 , 111u8 , 169u8 , 146u8 , 99u8 , 27u8 , 128u8 , 84u8 , 131u8 , 246u8 , 123u8 ,]) } # [doc = "---- Used to commit a hash of your weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit_hash` (`H256`):"] # [doc = "  - The hash representing the committed weights."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] pub fn commit_weights (& self , netuid : types :: commit_weights :: Netuid , commit_hash : types :: commit_weights :: CommitHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CommitWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "commit_weights" , types :: CommitWeights { netuid , commit_hash , } , [228u8 , 64u8 , 192u8 , 9u8 , 130u8 , 55u8 , 179u8 , 227u8 , 55u8 , 103u8 , 173u8 , 38u8 , 39u8 , 238u8 , 250u8 , 79u8 , 152u8 , 145u8 , 158u8 , 183u8 , 40u8 , 242u8 , 211u8 , 236u8 , 69u8 , 77u8 , 47u8 , 193u8 , 140u8 , 230u8 , 240u8 , 65u8 ,]) } # [doc = "---- Used to commit a hash of your weight values to later be revealed for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit_hash` (`H256`):"] # [doc = "  - The hash representing the committed weights."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] pub fn commit_mechanism_weights (& self , netuid : types :: commit_mechanism_weights :: Netuid , mecid : types :: commit_mechanism_weights :: Mecid , commit_hash : types :: commit_mechanism_weights :: CommitHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CommitMechanismWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "commit_mechanism_weights" , types :: CommitMechanismWeights { netuid , mecid , commit_hash , } , [124u8 , 75u8 , 106u8 , 201u8 , 2u8 , 158u8 , 196u8 , 1u8 , 16u8 , 54u8 , 206u8 , 17u8 , 39u8 , 212u8 , 249u8 , 255u8 , 219u8 , 186u8 , 95u8 , 122u8 , 58u8 , 66u8 , 65u8 , 253u8 , 187u8 , 220u8 , 48u8 , 106u8 , 112u8 , 191u8 , 84u8 , 151u8 ,]) } # [doc = "--- Allows a hotkey to commit weight hashes for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `commit_hashes` (Vec<H256>):"] # [doc = "\t- The commit hashes to commit."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] pub fn batch_commit_weights (& self , netuids : types :: batch_commit_weights :: Netuids , commit_hashes : types :: batch_commit_weights :: CommitHashes ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BatchCommitWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "batch_commit_weights" , types :: BatchCommitWeights { netuids , commit_hashes , } , [133u8 , 53u8 , 149u8 , 78u8 , 93u8 , 96u8 , 35u8 , 8u8 , 103u8 , 14u8 , 197u8 , 8u8 , 141u8 , 183u8 , 107u8 , 242u8 , 188u8 , 160u8 , 58u8 , 167u8 , 40u8 , 111u8 , 157u8 , 65u8 , 232u8 , 199u8 , 212u8 , 71u8 , 91u8 , 18u8 , 134u8 , 104u8 ,]) } # [doc = "---- Used to reveal the weights for a previously committed hash."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `uids` (`Vec<u16>`):"] # [doc = "  - The uids for the weights being revealed."] # [doc = ""] # [doc = "* `values` (`Vec<u16>`):"] # [doc = "  - The values of the weights being revealed."] # [doc = ""] # [doc = "* `salt` (`Vec<u16>`):"] # [doc = "  - The salt used to generate the commit hash."] # [doc = ""] # [doc = "* `version_key` (`u64`):"] # [doc = "  - The network version key."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] pub fn reveal_weights (& self , netuid : types :: reveal_weights :: Netuid , uids : types :: reveal_weights :: Uids , values : types :: reveal_weights :: Values , salt : types :: reveal_weights :: Salt , version_key : types :: reveal_weights :: VersionKey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RevealWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "reveal_weights" , types :: RevealWeights { netuid , uids , values , salt , version_key , } , [100u8 , 200u8 , 201u8 , 32u8 , 249u8 , 125u8 , 40u8 , 49u8 , 6u8 , 165u8 , 255u8 , 194u8 , 88u8 , 105u8 , 13u8 , 162u8 , 95u8 , 3u8 , 68u8 , 92u8 , 179u8 , 172u8 , 156u8 , 135u8 , 133u8 , 189u8 , 107u8 , 140u8 , 198u8 , 113u8 , 164u8 , 108u8 ,]) } # [doc = "---- Used to reveal the weights for a previously committed hash for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `uids` (`Vec<u16>`):"] # [doc = "  - The uids for the weights being revealed."] # [doc = ""] # [doc = "* `values` (`Vec<u16>`):"] # [doc = "  - The values of the weights being revealed."] # [doc = ""] # [doc = "* `salt` (`Vec<u16>`):"] # [doc = "  - The salt used to generate the commit hash."] # [doc = ""] # [doc = "* `version_key` (`u64`):"] # [doc = "  - The network version key."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] pub fn reveal_mechanism_weights (& self , netuid : types :: reveal_mechanism_weights :: Netuid , mecid : types :: reveal_mechanism_weights :: Mecid , uids : types :: reveal_mechanism_weights :: Uids , values : types :: reveal_mechanism_weights :: Values , salt : types :: reveal_mechanism_weights :: Salt , version_key : types :: reveal_mechanism_weights :: VersionKey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RevealMechanismWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "reveal_mechanism_weights" , types :: RevealMechanismWeights { netuid , mecid , uids , values , salt , version_key , } , [135u8 , 46u8 , 118u8 , 4u8 , 84u8 , 229u8 , 142u8 , 219u8 , 182u8 , 122u8 , 68u8 , 150u8 , 14u8 , 66u8 , 197u8 , 25u8 , 104u8 , 90u8 , 97u8 , 14u8 , 95u8 , 208u8 , 90u8 , 223u8 , 12u8 , 7u8 , 154u8 , 166u8 , 122u8 , 3u8 , 210u8 , 51u8 ,]) } # [doc = "---- Used to commit encrypted commit-reveal v3 weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealV3Disabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] # [doc = "---- Used to commit encrypted commit-reveal v3 weight values to later be revealed for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealV3Disabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] pub fn commit_crv3_mechanism_weights (& self , netuid : types :: commit_crv3_mechanism_weights :: Netuid , mecid : types :: commit_crv3_mechanism_weights :: Mecid , commit : types :: commit_crv3_mechanism_weights :: Commit , reveal_round : types :: commit_crv3_mechanism_weights :: RevealRound ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CommitCrv3MechanismWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "commit_crv3_mechanism_weights" , types :: CommitCrv3MechanismWeights { netuid , mecid , commit , reveal_round , } , [1u8 , 245u8 , 231u8 , 228u8 , 134u8 , 21u8 , 166u8 , 6u8 , 88u8 , 35u8 , 227u8 , 157u8 , 132u8 , 153u8 , 253u8 , 221u8 , 184u8 , 154u8 , 174u8 , 20u8 , 140u8 , 164u8 , 74u8 , 160u8 , 106u8 , 170u8 , 95u8 , 116u8 , 141u8 , 198u8 , 160u8 , 196u8 ,]) } # [doc = "---- The implementation for batch revealing committed weights."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `uids_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of uids for each set of weights being revealed."] # [doc = ""] # [doc = "* `values_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of values for each set of weights being revealed."] # [doc = ""] # [doc = "* `salts_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of salts used to generate the commit hashes."] # [doc = ""] # [doc = "* `version_keys` (`Vec<u64>`):"] # [doc = "  - A list of network version keys."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] # [doc = "* `InvalidInputLengths`:"] # [doc = "  - The input vectors are of mismatched lengths."] pub fn batch_reveal_weights (& self , netuid : types :: batch_reveal_weights :: Netuid , uids_list : types :: batch_reveal_weights :: UidsList , values_list : types :: batch_reveal_weights :: ValuesList , salts_list : types :: batch_reveal_weights :: SaltsList , version_keys : types :: batch_reveal_weights :: VersionKeys ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BatchRevealWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "batch_reveal_weights" , types :: BatchRevealWeights { netuid , uids_list , values_list , salts_list , version_keys , } , [34u8 , 35u8 , 127u8 , 148u8 , 176u8 , 70u8 , 79u8 , 195u8 , 205u8 , 11u8 , 184u8 , 14u8 , 132u8 , 198u8 , 4u8 , 117u8 , 131u8 , 180u8 , 86u8 , 132u8 , 222u8 , 152u8 , 13u8 , 214u8 , 24u8 , 38u8 , 67u8 , 198u8 , 196u8 , 172u8 , 7u8 , 60u8 ,]) } # [doc = "--- Allows delegates to decrease its take value."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>::Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The hotkey we are delegating (must be owned by the coldkey.)"] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- Subnet ID to decrease take for"] # [doc = ""] # [doc = "* 'take' (u16):"] # [doc = "\t- The new stake proportion that this hotkey takes from delegations."] # [doc = "       The new value can be between 0 and 11_796 and should be strictly"] # [doc = "       lower than the previous value. It T is the new value (rational number),"] # [doc = "       the the parameter is calculated as [65535 * T]. For example, 1% would be"] # [doc = "       [0.01 * 65535] = [655.35] = 655"] # [doc = ""] # [doc = "# Event:"] # [doc = "* TakeDecreased;"] # [doc = "\t- On successfully setting a decreased take for this hotkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- The hotkey we are delegating is not registered on the network."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- The hotkey we are delegating is not owned by the calling coldkey."] # [doc = ""] # [doc = "* 'DelegateTakeTooLow':"] # [doc = "\t- The delegate is setting a take which is not lower than the previous."] # [doc = ""] pub fn decrease_take (& self , hotkey : types :: decrease_take :: Hotkey , take : types :: decrease_take :: Take ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DecreaseTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "decrease_take" , types :: DecreaseTake { hotkey , take , } , [220u8 , 18u8 , 152u8 , 244u8 , 15u8 , 135u8 , 42u8 , 101u8 , 78u8 , 32u8 , 61u8 , 230u8 , 248u8 , 203u8 , 252u8 , 150u8 , 109u8 , 187u8 , 44u8 , 194u8 , 239u8 , 16u8 , 162u8 , 67u8 , 90u8 , 34u8 , 245u8 , 120u8 , 33u8 , 57u8 , 155u8 , 33u8 ,]) } # [doc = "--- Allows delegates to increase its take value. This call is rate-limited."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>::Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The hotkey we are delegating (must be owned by the coldkey.)"] # [doc = ""] # [doc = "* 'take' (u16):"] # [doc = "\t- The new stake proportion that this hotkey takes from delegations."] # [doc = "       The new value can be between 0 and 11_796 and should be strictly"] # [doc = "       greater than the previous value. T is the new value (rational number),"] # [doc = "       the the parameter is calculated as [65535 * T]. For example, 1% would be"] # [doc = "       [0.01 * 65535] = [655.35] = 655"] # [doc = ""] # [doc = "# Event:"] # [doc = "* TakeIncreased;"] # [doc = "\t- On successfully setting a increased take for this hotkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- The hotkey we are delegating is not registered on the network."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- The hotkey we are delegating is not owned by the calling coldkey."] # [doc = ""] # [doc = "* 'DelegateTakeTooHigh':"] # [doc = "\t- The delegate is setting a take which is not greater than the previous."] # [doc = ""] pub fn increase_take (& self , hotkey : types :: increase_take :: Hotkey , take : types :: increase_take :: Take ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: IncreaseTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "increase_take" , types :: IncreaseTake { hotkey , take , } , [119u8 , 250u8 , 49u8 , 96u8 , 123u8 , 185u8 , 96u8 , 196u8 , 0u8 , 65u8 , 142u8 , 148u8 , 174u8 , 144u8 , 93u8 , 217u8 , 119u8 , 230u8 , 62u8 , 6u8 , 108u8 , 40u8 , 121u8 , 7u8 , 11u8 , 25u8 , 80u8 , 8u8 , 145u8 , 186u8 , 25u8 , 153u8 ,]) } # [doc = "--- Adds stake to a hotkey. The call is made from a coldkey account."] # [doc = "This delegates stake to the hotkey."] # [doc = ""] # [doc = "Note: the coldkey account may own the hotkey, in which case they are"] # [doc = "delegating to themselves."] # [doc = ""] # [doc = "# Args:"] # [doc = " * 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = " * 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = " * 'amount_staked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = "# Event:"] # [doc = " * StakeAdded;"] # [doc = "\t- On the successfully adding stake to a global account."] # [doc = ""] # [doc = "# Raises:"] # [doc = " * 'NotEnoughBalanceToStake':"] # [doc = "\t- Not enough balance on the coldkey to add onto the global account."] # [doc = ""] # [doc = " * 'NonAssociatedColdKey':"] # [doc = "\t- The calling coldkey is not associated with this hotkey."] # [doc = ""] # [doc = " * 'BalanceWithdrawalError':"] # [doc = " \t- Errors stemming from transaction pallet."] # [doc = ""] pub fn add_stake (& self , hotkey : types :: add_stake :: Hotkey , netuid : types :: add_stake :: Netuid , amount_staked : types :: add_stake :: AmountStaked ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "add_stake" , types :: AddStake { hotkey , netuid , amount_staked , } , [28u8 , 155u8 , 172u8 , 37u8 , 141u8 , 241u8 , 192u8 , 86u8 , 151u8 , 176u8 , 226u8 , 231u8 , 17u8 , 222u8 , 128u8 , 179u8 , 207u8 , 35u8 , 201u8 , 68u8 , 236u8 , 59u8 , 63u8 , 199u8 , 52u8 , 220u8 , 232u8 , 249u8 , 78u8 , 92u8 , 22u8 , 237u8 ,]) } # [doc = "Remove stake from the staking account. The call must be made"] # [doc = "from the coldkey account attached to the neuron metadata. Only this key"] # [doc = "has permission to make staking and unstaking requests."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = "* 'amount_unstaked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "\t- On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* 'NotEnoughStakeToWithdraw':"] # [doc = "\t- Thrown if there is not enough stake on the hotkey to withdwraw this amount."] # [doc = ""] pub fn remove_stake (& self , hotkey : types :: remove_stake :: Hotkey , netuid : types :: remove_stake :: Netuid , amount_unstaked : types :: remove_stake :: AmountUnstaked ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "remove_stake" , types :: RemoveStake { hotkey , netuid , amount_unstaked , } , [30u8 , 103u8 , 143u8 , 13u8 , 22u8 , 208u8 , 129u8 , 17u8 , 83u8 , 166u8 , 102u8 , 241u8 , 34u8 , 168u8 , 106u8 , 152u8 , 78u8 , 165u8 , 176u8 , 175u8 , 195u8 , 119u8 , 80u8 , 160u8 , 216u8 , 34u8 , 230u8 , 196u8 , 190u8 , 149u8 , 243u8 , 34u8 ,]) } # [doc = "Serves or updates axon /prometheus information for the neuron associated with the caller. If the caller is"] # [doc = "already registered the metadata is updated. If the caller is not registered this call throws NotRegistered."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u64):"] # [doc = "\t- The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u64):"] # [doc = "\t- The endpoint ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The endpoint port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The endpoint ip version as a u8, 4 or 6."] # [doc = ""] # [doc = "* 'protocol' (u8):"] # [doc = "\t- UDP:1 or TCP:0"] # [doc = ""] # [doc = "* 'placeholder1' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'placeholder2' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "# Event:"] # [doc = "* AxonServed;"] # [doc = "\t- On successfully serving the axon info."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'InvalidIpType':"] # [doc = "\t- The ip type is not 4 or 6."] # [doc = ""] # [doc = "* 'InvalidIpAddress':"] # [doc = "\t- The numerically encoded ip address does not resolve to a proper ip."] # [doc = ""] # [doc = "* 'ServingRateLimitExceeded':"] # [doc = "\t- Attempting to set prometheus information withing the rate limit min."] # [doc = ""] pub fn serve_axon (& self , netuid : types :: serve_axon :: Netuid , version : types :: serve_axon :: Version , ip : types :: serve_axon :: Ip , port : types :: serve_axon :: Port , ip_type : types :: serve_axon :: IpType , protocol : types :: serve_axon :: Protocol , placeholder1 : types :: serve_axon :: Placeholder1 , placeholder2 : types :: serve_axon :: Placeholder2 ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ServeAxon > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "serve_axon" , types :: ServeAxon { netuid , version , ip , port , ip_type , protocol , placeholder1 , placeholder2 , } , [115u8 , 192u8 , 140u8 , 60u8 , 59u8 , 74u8 , 35u8 , 185u8 , 142u8 , 224u8 , 166u8 , 121u8 , 135u8 , 13u8 , 247u8 , 54u8 , 152u8 , 178u8 , 119u8 , 176u8 , 131u8 , 22u8 , 125u8 , 241u8 , 162u8 , 174u8 , 238u8 , 35u8 , 245u8 , 254u8 , 254u8 , 205u8 ,]) } # [doc = "Same as `serve_axon` but takes a certificate as an extra optional argument."] # [doc = "Serves or updates axon /prometheus information for the neuron associated with the caller. If the caller is"] # [doc = "already registered the metadata is updated. If the caller is not registered this call throws NotRegistered."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u64):"] # [doc = "\t- The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u64):"] # [doc = "\t- The endpoint ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The endpoint port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The endpoint ip version as a u8, 4 or 6."] # [doc = ""] # [doc = "* 'protocol' (u8):"] # [doc = "\t- UDP:1 or TCP:0"] # [doc = ""] # [doc = "* 'placeholder1' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'placeholder2' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'certificate' (Vec<u8>):"] # [doc = "    - TLS certificate for inter neuron communitation."] # [doc = ""] # [doc = "# Event:"] # [doc = "* AxonServed;"] # [doc = "\t- On successfully serving the axon info."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'InvalidIpType':"] # [doc = "\t- The ip type is not 4 or 6."] # [doc = ""] # [doc = "* 'InvalidIpAddress':"] # [doc = "\t- The numerically encoded ip address does not resolve to a proper ip."] # [doc = ""] # [doc = "* 'ServingRateLimitExceeded':"] # [doc = "\t- Attempting to set prometheus information withing the rate limit min."] # [doc = ""] pub fn serve_axon_tls (& self , netuid : types :: serve_axon_tls :: Netuid , version : types :: serve_axon_tls :: Version , ip : types :: serve_axon_tls :: Ip , port : types :: serve_axon_tls :: Port , ip_type : types :: serve_axon_tls :: IpType , protocol : types :: serve_axon_tls :: Protocol , placeholder1 : types :: serve_axon_tls :: Placeholder1 , placeholder2 : types :: serve_axon_tls :: Placeholder2 , certificate : types :: serve_axon_tls :: Certificate ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ServeAxonTls > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "serve_axon_tls" , types :: ServeAxonTls { netuid , version , ip , port , ip_type , protocol , placeholder1 , placeholder2 , certificate , } , [56u8 , 156u8 , 188u8 , 127u8 , 240u8 , 39u8 , 153u8 , 238u8 , 44u8 , 224u8 , 151u8 , 222u8 , 138u8 , 122u8 , 122u8 , 104u8 , 2u8 , 244u8 , 243u8 , 18u8 , 90u8 , 72u8 , 96u8 , 223u8 , 19u8 , 22u8 , 37u8 , 235u8 , 139u8 , 255u8 , 172u8 , 118u8 ,]) } # [doc = "---- Set prometheus information for the neuron."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u16):"] # [doc = "\t-  The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u128):"] # [doc = "\t- The prometheus ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The prometheus port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The ip type v4 or v6."] # [doc = ""] pub fn serve_prometheus (& self , netuid : types :: serve_prometheus :: Netuid , version : types :: serve_prometheus :: Version , ip : types :: serve_prometheus :: Ip , port : types :: serve_prometheus :: Port , ip_type : types :: serve_prometheus :: IpType ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ServePrometheus > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "serve_prometheus" , types :: ServePrometheus { netuid , version , ip , port , ip_type , } , [20u8 , 125u8 , 112u8 , 212u8 , 213u8 , 9u8 , 36u8 , 152u8 , 252u8 , 42u8 , 37u8 , 90u8 , 11u8 , 166u8 , 1u8 , 224u8 , 116u8 , 108u8 , 124u8 , 61u8 , 93u8 , 220u8 , 88u8 , 62u8 , 71u8 , 65u8 , 225u8 , 166u8 , 66u8 , 236u8 , 238u8 , 126u8 ,]) } # [doc = "---- Registers a new neuron to the subnetwork."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'block_number' ( u64 ):"] # [doc = "\t- Block hash used to prove work done."] # [doc = ""] # [doc = "* 'nonce' ( u64 ):"] # [doc = "\t- Positive integer nonce used in POW."] # [doc = ""] # [doc = "* 'work' ( Vec<u8> ):"] # [doc = "\t- Vector encoded bytes representing work done."] # [doc = ""] # [doc = "* 'hotkey' ( T::AccountId ):"] # [doc = "\t- Hotkey to be registered to the network."] # [doc = ""] # [doc = "* 'coldkey' ( T::AccountId ):"] # [doc = "\t- Associated coldkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* NeuronRegistered;"] # [doc = "\t- On successfully registering a uid to a neuron slot on a subnetwork."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to register to a non existent network."] # [doc = ""] # [doc = "* 'TooManyRegistrationsThisBlock':"] # [doc = "\t- This registration exceeds the total allowed on this network this block."] # [doc = ""] # [doc = "* 'HotKeyAlreadyRegisteredInSubNet':"] # [doc = "\t- The hotkey is already registered on this network."] # [doc = ""] # [doc = "* 'InvalidWorkBlock':"] # [doc = "\t- The work has been performed on a stale, future, or non existent block."] # [doc = ""] # [doc = "* 'InvalidDifficulty':"] # [doc = "\t- The work does not match the difficulty."] # [doc = ""] # [doc = "* 'InvalidSeal':"] # [doc = "\t- The seal is incorrect."] # [doc = ""] pub fn register (& self , netuid : types :: register :: Netuid , block_number : types :: register :: BlockNumber , nonce : types :: register :: Nonce , work : types :: register :: Work , hotkey : types :: register :: Hotkey , coldkey : types :: register :: Coldkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Register > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "register" , types :: Register { netuid , block_number , nonce , work , hotkey , coldkey , } , [224u8 , 165u8 , 251u8 , 192u8 , 6u8 , 131u8 , 79u8 , 41u8 , 143u8 , 150u8 , 200u8 , 247u8 , 68u8 , 7u8 , 4u8 , 195u8 , 139u8 , 31u8 , 130u8 , 173u8 , 230u8 , 99u8 , 39u8 , 220u8 , 244u8 , 120u8 , 81u8 , 87u8 , 34u8 , 207u8 , 70u8 , 193u8 ,]) } # [doc = "Register the hotkey to root network"] pub fn root_register (& self , hotkey : types :: root_register :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RootRegister > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "root_register" , types :: RootRegister { hotkey , } , [196u8 , 149u8 , 100u8 , 179u8 , 32u8 , 69u8 , 216u8 , 177u8 , 78u8 , 22u8 , 227u8 , 176u8 , 63u8 , 178u8 , 27u8 , 80u8 , 74u8 , 246u8 , 223u8 , 236u8 , 183u8 , 226u8 , 210u8 , 249u8 , 133u8 , 103u8 , 174u8 , 43u8 , 153u8 , 201u8 , 8u8 , 55u8 ,]) } # [doc = "User register a new subnetwork via burning token"] pub fn burned_register (& self , netuid : types :: burned_register :: Netuid , hotkey : types :: burned_register :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BurnedRegister > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "burned_register" , types :: BurnedRegister { netuid , hotkey , } , [66u8 , 182u8 , 83u8 , 185u8 , 109u8 , 48u8 , 136u8 , 88u8 , 198u8 , 19u8 , 54u8 , 132u8 , 245u8 , 28u8 , 243u8 , 177u8 , 110u8 , 11u8 , 118u8 , 109u8 , 17u8 , 188u8 , 221u8 , 94u8 , 216u8 , 72u8 , 0u8 , 101u8 , 155u8 , 87u8 , 140u8 , 251u8 ,]) } # [doc = "The extrinsic for user to change its hotkey in subnet or all subnets."] pub fn swap_hotkey (& self , hotkey : types :: swap_hotkey :: Hotkey , new_hotkey : types :: swap_hotkey :: NewHotkey , netuid : types :: swap_hotkey :: Netuid ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SwapHotkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "swap_hotkey" , types :: SwapHotkey { hotkey , new_hotkey , netuid , } , [126u8 , 205u8 , 44u8 , 17u8 , 243u8 , 106u8 , 132u8 , 67u8 , 22u8 , 200u8 , 108u8 , 219u8 , 102u8 , 203u8 , 151u8 , 165u8 , 3u8 , 148u8 , 231u8 , 106u8 , 143u8 , 42u8 , 46u8 , 27u8 , 206u8 , 167u8 , 245u8 , 194u8 , 222u8 , 129u8 , 255u8 , 13u8 ,]) } # [doc = "The extrinsic for user to change the coldkey associated with their account."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - The origin of the call, must be signed by the old coldkey."] # [doc = "* `old_coldkey` - The current coldkey associated with the account."] # [doc = "* `new_coldkey` - The new coldkey to be associated with the account."] # [doc = ""] # [doc = "# Returns"] # [doc = ""] # [doc = "Returns a `DispatchResultWithPostInfo` indicating success or failure of the operation."] # [doc = ""] # [doc = "# Weight"] # [doc = ""] # [doc = "Weight is calculated based on the number of database reads and writes."] pub fn swap_coldkey (& self , old_coldkey : types :: swap_coldkey :: OldColdkey , new_coldkey : types :: swap_coldkey :: NewColdkey , swap_cost : types :: swap_coldkey :: SwapCost ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SwapColdkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "swap_coldkey" , types :: SwapColdkey { old_coldkey , new_coldkey , swap_cost , } , [229u8 , 236u8 , 237u8 , 205u8 , 82u8 , 37u8 , 111u8 , 92u8 , 44u8 , 67u8 , 131u8 , 246u8 , 104u8 , 82u8 , 215u8 , 130u8 , 47u8 , 169u8 , 16u8 , 218u8 , 19u8 , 238u8 , 183u8 , 65u8 , 194u8 , 196u8 , 113u8 , 187u8 , 86u8 , 175u8 , 162u8 , 32u8 ,]) } # [doc = "Sets the childkey take for a given hotkey."] # [doc = ""] # [doc = "This function allows a coldkey to set the childkey take for a given hotkey."] # [doc = "The childkey take determines the proportion of stake that the hotkey keeps for itself"] # [doc = "when distributing stake to its children."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` (<T as frame_system::Config>::RuntimeOrigin):"] # [doc = "    - The signature of the calling coldkey. Setting childkey take can only be done by the coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey for which the childkey take will be set."] # [doc = ""] # [doc = "* `take` (u16):"] # [doc = "    - The new childkey take value. This is a percentage represented as a value between 0 and 10000,"] # [doc = "      where 10000 represents 100%."] # [doc = ""] # [doc = "# Events:"] # [doc = "* `ChildkeyTakeSet`:"] # [doc = "    - On successfully setting the childkey take for a hotkey."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - The coldkey does not own the hotkey."] # [doc = "* `InvalidChildkeyTake`:"] # [doc = "    - The provided take value is invalid (greater than the maximum allowed take)."] # [doc = "* `TxChildkeyTakeRateLimitExceeded`:"] # [doc = "    - The rate limit for changing childkey take has been exceeded."] # [doc = ""] pub fn set_childkey_take (& self , hotkey : types :: set_childkey_take :: Hotkey , netuid : types :: set_childkey_take :: Netuid , take : types :: set_childkey_take :: Take ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetChildkeyTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_childkey_take" , types :: SetChildkeyTake { hotkey , netuid , take , } , [121u8 , 93u8 , 32u8 , 255u8 , 50u8 , 102u8 , 154u8 , 191u8 , 45u8 , 27u8 , 53u8 , 78u8 , 108u8 , 88u8 , 147u8 , 83u8 , 170u8 , 32u8 , 114u8 , 16u8 , 119u8 , 178u8 , 138u8 , 107u8 , 211u8 , 73u8 , 71u8 , 151u8 , 178u8 , 44u8 , 250u8 , 224u8 ,]) } # [doc = "Sets the transaction rate limit for changing childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `tx_rate_limit` - The new rate limit in blocks."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] pub fn sudo_set_tx_childkey_take_rate_limit (& self , tx_rate_limit : types :: sudo_set_tx_childkey_take_rate_limit :: TxRateLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTxChildkeyTakeRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "sudo_set_tx_childkey_take_rate_limit" , types :: SudoSetTxChildkeyTakeRateLimit { tx_rate_limit , } , [91u8 , 243u8 , 210u8 , 65u8 , 149u8 , 33u8 , 8u8 , 69u8 , 42u8 , 197u8 , 4u8 , 202u8 , 73u8 , 167u8 , 185u8 , 75u8 , 203u8 , 98u8 , 21u8 , 230u8 , 66u8 , 192u8 , 108u8 , 254u8 , 37u8 , 246u8 , 156u8 , 120u8 , 59u8 , 180u8 , 175u8 , 156u8 ,]) } # [doc = "Sets the minimum allowed childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `take` - The new minimum childkey take value."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] pub fn sudo_set_min_childkey_take (& self , take : types :: sudo_set_min_childkey_take :: Take ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinChildkeyTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "sudo_set_min_childkey_take" , types :: SudoSetMinChildkeyTake { take , } , [229u8 , 132u8 , 126u8 , 102u8 , 220u8 , 249u8 , 9u8 , 110u8 , 89u8 , 137u8 , 46u8 , 248u8 , 54u8 , 95u8 , 124u8 , 194u8 , 190u8 , 6u8 , 198u8 , 113u8 , 35u8 , 21u8 , 214u8 , 165u8 , 231u8 , 91u8 , 158u8 , 133u8 , 6u8 , 192u8 , 14u8 , 170u8 ,]) } # [doc = "Sets the maximum allowed childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `take` - The new maximum childkey take value."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] pub fn sudo_set_max_childkey_take (& self , take : types :: sudo_set_max_childkey_take :: Take ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMaxChildkeyTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "sudo_set_max_childkey_take" , types :: SudoSetMaxChildkeyTake { take , } , [232u8 , 17u8 , 96u8 , 93u8 , 108u8 , 28u8 , 113u8 , 84u8 , 10u8 , 189u8 , 180u8 , 155u8 , 200u8 , 40u8 , 10u8 , 242u8 , 93u8 , 38u8 , 64u8 , 131u8 , 72u8 , 204u8 , 77u8 , 95u8 , 236u8 , 174u8 , 245u8 , 180u8 , 59u8 , 128u8 , 44u8 , 50u8 ,]) } # [doc = "User register a new subnetwork"] pub fn register_network (& self , hotkey : types :: register_network :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RegisterNetwork > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "register_network" , types :: RegisterNetwork { hotkey , } , [27u8 , 43u8 , 133u8 , 172u8 , 180u8 , 221u8 , 134u8 , 246u8 , 95u8 , 112u8 , 218u8 , 27u8 , 156u8 , 230u8 , 45u8 , 167u8 , 169u8 , 196u8 , 100u8 , 34u8 , 52u8 , 10u8 , 57u8 , 180u8 , 242u8 , 210u8 , 229u8 , 151u8 , 154u8 , 82u8 , 115u8 , 133u8 ,]) } # [doc = "Remove a user's subnetwork"] # [doc = "The caller must be the owner of the network"] pub fn dissolve_network (& self , coldkey : types :: dissolve_network :: Coldkey , netuid : types :: dissolve_network :: Netuid ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DissolveNetwork > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "dissolve_network" , types :: DissolveNetwork { coldkey , netuid , } , [54u8 , 42u8 , 87u8 , 170u8 , 5u8 , 130u8 , 20u8 , 182u8 , 95u8 , 226u8 , 55u8 , 193u8 , 60u8 , 185u8 , 139u8 , 45u8 , 107u8 , 158u8 , 210u8 , 61u8 , 133u8 , 222u8 , 92u8 , 57u8 , 137u8 , 217u8 , 93u8 , 143u8 , 66u8 , 97u8 , 88u8 , 11u8 ,]) } # [doc = "Set a single child for a given hotkey on a specified network."] # [doc = ""] # [doc = "This function allows a coldkey to set a single child for a given hotkey on a specified network."] # [doc = "The proportion of the hotkey's stake to be allocated to the child is also specified."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` (<T as frame_system::Config>::RuntimeOrigin):"] # [doc = "    - The signature of the calling coldkey. Setting a hotkey child can only be done by the coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey which will be assigned the child."] # [doc = ""] # [doc = "* `child` (T::AccountId):"] # [doc = "    - The child which will be assigned to the hotkey."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "    - The u16 network identifier where the childkey will exist."] # [doc = ""] # [doc = "* `proportion` (u64):"] # [doc = "    - Proportion of the hotkey's stake to be given to the child, the value must be u64 normalized."] # [doc = ""] # [doc = "# Events:"] # [doc = "* `ChildAddedSingular`:"] # [doc = "    - On successfully registering a child to a hotkey."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `MechanismDoesNotExist`:"] # [doc = "    - Attempting to register to a non-existent network."] # [doc = "* `RegistrationNotPermittedOnRootSubnet`:"] # [doc = "    - Attempting to register a child on the root network."] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - The coldkey does not own the hotkey or the child is the same as the hotkey."] # [doc = "* `HotKeyAccountNotExists`:"] # [doc = "    - The hotkey account does not exist."] # [doc = ""] # [doc = "# Detailed Explanation of Checks:"] # [doc = "1. **Signature Verification**: Ensures that the caller has signed the transaction, verifying the coldkey."] # [doc = "2. **Root Network Check**: Ensures that the delegation is not on the root network, as child hotkeys are not valid on the root."] # [doc = "3. **Network Existence Check**: Ensures that the specified network exists."] # [doc = "4. **Ownership Verification**: Ensures that the coldkey owns the hotkey."] # [doc = "5. **Hotkey Account Existence Check**: Ensures that the hotkey account already exists."] # [doc = "6. **Child-Hotkey Distinction**: Ensures that the child is not the same as the hotkey."] # [doc = "7. **Old Children Cleanup**: Removes the hotkey from the parent list of its old children."] # [doc = "8. **New Children Assignment**: Assigns the new child to the hotkey and updates the parent list for the new child."] pub fn set_children (& self , hotkey : types :: set_children :: Hotkey , netuid : types :: set_children :: Netuid , children : types :: set_children :: Children ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetChildren > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_children" , types :: SetChildren { hotkey , netuid , children , } , [17u8 , 215u8 , 125u8 , 24u8 , 155u8 , 166u8 , 225u8 , 40u8 , 207u8 , 43u8 , 193u8 , 5u8 , 198u8 , 99u8 , 220u8 , 214u8 , 5u8 , 251u8 , 156u8 , 83u8 , 230u8 , 246u8 , 93u8 , 231u8 , 155u8 , 254u8 , 179u8 , 98u8 , 6u8 , 40u8 , 183u8 , 140u8 ,]) } # [doc = "Schedules a coldkey swap operation to be executed at a future block."] # [doc = ""] # [doc = "This function allows a user to schedule the swapping of their coldkey to a new one"] # [doc = "at a specified future block. The swap is not executed immediately but is scheduled"] # [doc = "to occur at the specified block number."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - The origin of the call, which should be signed by the current coldkey owner."] # [doc = "* `new_coldkey` - The account ID of the new coldkey that will replace the current one."] # [doc = "* `when` - The block number at which the coldkey swap should be executed."] # [doc = ""] # [doc = "# Returns"] # [doc = ""] # [doc = "Returns a `DispatchResultWithPostInfo` indicating whether the scheduling was successful."] # [doc = ""] # [doc = "# Errors"] # [doc = ""] # [doc = "This function may return an error if:"] # [doc = "* The origin is not signed."] # [doc = "* The scheduling fails due to conflicts or system constraints."] # [doc = ""] # [doc = "# Notes"] # [doc = ""] # [doc = "- The actual swap is not performed by this function. It merely schedules the swap operation."] # [doc = "- The weight of this call is set to a fixed value and may need adjustment based on benchmarking."] # [doc = ""] # [doc = "# TODO"] # [doc = ""] # [doc = "- Implement proper weight calculation based on the complexity of the operation."] # [doc = "- Consider adding checks to prevent scheduling too far into the future."] # [doc = "TODO: Benchmark this call"] pub fn schedule_swap_coldkey (& self , new_coldkey : types :: schedule_swap_coldkey :: NewColdkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleSwapColdkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "schedule_swap_coldkey" , types :: ScheduleSwapColdkey { new_coldkey , } , [66u8 , 101u8 , 41u8 , 48u8 , 176u8 , 72u8 , 84u8 , 50u8 , 72u8 , 60u8 , 8u8 , 241u8 , 164u8 , 96u8 , 160u8 , 55u8 , 31u8 , 204u8 , 167u8 , 233u8 , 184u8 , 5u8 , 106u8 , 178u8 , 49u8 , 38u8 , 199u8 , 171u8 , 125u8 , 2u8 , 163u8 , 98u8 ,]) } # [doc = "---- Set prometheus information for the neuron."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u16):"] # [doc = "\t-  The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u128):"] # [doc = "\t- The prometheus ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The prometheus port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The ip type v4 or v6."] # [doc = ""] pub fn set_identity (& self , name : types :: set_identity :: Name , url : types :: set_identity :: Url , github_repo : types :: set_identity :: GithubRepo , image : types :: set_identity :: Image , discord : types :: set_identity :: Discord , description : types :: set_identity :: Description , additional : types :: set_identity :: Additional ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetIdentity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_identity" , types :: SetIdentity { name , url , github_repo , image , discord , description , additional , } , [237u8 , 249u8 , 60u8 , 113u8 , 96u8 , 234u8 , 95u8 , 151u8 , 158u8 , 93u8 , 97u8 , 57u8 , 67u8 , 219u8 , 148u8 , 31u8 , 31u8 , 40u8 , 92u8 , 8u8 , 53u8 , 95u8 , 178u8 , 98u8 , 62u8 , 195u8 , 126u8 , 125u8 , 204u8 , 193u8 , 61u8 , 12u8 ,]) } # [doc = "---- Set the identity information for a subnet."] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the calling coldkey, which must be the owner of the subnet."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "    - The unique network identifier of the subnet."] # [doc = ""] # [doc = "* `subnet_name` (Vec<u8>):"] # [doc = "    - The name of the subnet."] # [doc = ""] # [doc = "* `github_repo` (Vec<u8>):"] # [doc = "    - The GitHub repository associated with the subnet identity."] # [doc = ""] # [doc = "* `subnet_contact` (Vec<u8>):"] # [doc = "    - The contact information for the subnet."] pub fn set_subnet_identity (& self , netuid : types :: set_subnet_identity :: Netuid , subnet_name : types :: set_subnet_identity :: SubnetName , github_repo : types :: set_subnet_identity :: GithubRepo , subnet_contact : types :: set_subnet_identity :: SubnetContact , subnet_url : types :: set_subnet_identity :: SubnetUrl , discord : types :: set_subnet_identity :: Discord , description : types :: set_subnet_identity :: Description , logo_url : types :: set_subnet_identity :: LogoUrl , additional : types :: set_subnet_identity :: Additional ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetSubnetIdentity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_subnet_identity" , types :: SetSubnetIdentity { netuid , subnet_name , github_repo , subnet_contact , subnet_url , discord , description , logo_url , additional , } , [32u8 , 41u8 , 124u8 , 227u8 , 220u8 , 125u8 , 125u8 , 188u8 , 171u8 , 36u8 , 184u8 , 137u8 , 43u8 , 80u8 , 117u8 , 121u8 , 239u8 , 63u8 , 198u8 , 224u8 , 229u8 , 97u8 , 56u8 , 251u8 , 41u8 , 243u8 , 53u8 , 38u8 , 240u8 , 65u8 , 101u8 , 186u8 ,]) } # [doc = "User register a new subnetwork"] pub fn register_network_with_identity (& self , hotkey : types :: register_network_with_identity :: Hotkey , identity : types :: register_network_with_identity :: Identity ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RegisterNetworkWithIdentity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "register_network_with_identity" , types :: RegisterNetworkWithIdentity { hotkey , identity , } , [12u8 , 245u8 , 161u8 , 216u8 , 254u8 , 186u8 , 104u8 , 80u8 , 5u8 , 125u8 , 46u8 , 34u8 , 242u8 , 101u8 , 15u8 , 127u8 , 106u8 , 146u8 , 62u8 , 75u8 , 251u8 , 140u8 , 136u8 , 170u8 , 237u8 , 41u8 , 105u8 , 202u8 , 162u8 , 233u8 , 174u8 , 243u8 ,]) } # [doc = "---- The implementation for the extrinsic unstake_all: Removes all stake from a hotkey account across all subnets and adds it onto a coldkey."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The associated hotkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "    - On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `NotRegistered`:"] # [doc = "    - Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* `NotEnoughStakeToWithdraw`:"] # [doc = "    - Thrown if there is not enough stake on the hotkey to withdraw this amount."] # [doc = ""] # [doc = "* `TxRateLimitExceeded`:"] # [doc = "    - Thrown if key has hit transaction rate limit"] pub fn unstake_all (& self , hotkey : types :: unstake_all :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UnstakeAll > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "unstake_all" , types :: UnstakeAll { hotkey , } , [6u8 , 179u8 , 13u8 , 170u8 , 228u8 , 87u8 , 90u8 , 211u8 , 172u8 , 136u8 , 36u8 , 255u8 , 26u8 , 26u8 , 247u8 , 122u8 , 1u8 , 23u8 , 119u8 , 215u8 , 238u8 , 115u8 , 250u8 , 172u8 , 137u8 , 152u8 , 220u8 , 52u8 , 126u8 , 24u8 , 23u8 , 141u8 ,]) } # [doc = "---- The implementation for the extrinsic unstake_all: Removes all stake from a hotkey account across all subnets and adds it onto a coldkey."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The associated hotkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "    - On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `NotRegistered`:"] # [doc = "    - Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* `NotEnoughStakeToWithdraw`:"] # [doc = "    - Thrown if there is not enough stake on the hotkey to withdraw this amount."] # [doc = ""] # [doc = "* `TxRateLimitExceeded`:"] # [doc = "    - Thrown if key has hit transaction rate limit"] pub fn unstake_all_alpha (& self , hotkey : types :: unstake_all_alpha :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UnstakeAllAlpha > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "unstake_all_alpha" , types :: UnstakeAllAlpha { hotkey , } , [154u8 , 142u8 , 32u8 , 183u8 , 143u8 , 119u8 , 9u8 , 143u8 , 204u8 , 220u8 , 41u8 , 213u8 , 34u8 , 206u8 , 48u8 , 96u8 , 37u8 , 214u8 , 2u8 , 95u8 , 51u8 , 11u8 , 86u8 , 230u8 , 149u8 , 99u8 , 119u8 , 251u8 , 209u8 , 42u8 , 85u8 , 93u8 ,]) } # [doc = "---- The implementation for the extrinsic move_stake: Moves specified amount of stake from a hotkey to another across subnets."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `origin_hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to move stake from."] # [doc = ""] # [doc = "* `destination_hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to move stake to."] # [doc = ""] # [doc = "* `origin_netuid` (T::AccountId):"] # [doc = "    - The subnet ID to move stake from."] # [doc = ""] # [doc = "* `destination_netuid` (T::AccountId):"] # [doc = "    - The subnet ID to move stake to."] # [doc = ""] # [doc = "* `alpha_amount` (T::AccountId):"] # [doc = "    - The alpha stake amount to move."] # [doc = ""] pub fn move_stake (& self , origin_hotkey : types :: move_stake :: OriginHotkey , destination_hotkey : types :: move_stake :: DestinationHotkey , origin_netuid : types :: move_stake :: OriginNetuid , destination_netuid : types :: move_stake :: DestinationNetuid , alpha_amount : types :: move_stake :: AlphaAmount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: MoveStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "move_stake" , types :: MoveStake { origin_hotkey , destination_hotkey , origin_netuid , destination_netuid , alpha_amount , } , [80u8 , 176u8 , 34u8 , 148u8 , 176u8 , 38u8 , 6u8 , 93u8 , 82u8 , 93u8 , 86u8 , 249u8 , 78u8 , 87u8 , 103u8 , 183u8 , 197u8 , 161u8 , 215u8 , 23u8 , 248u8 , 72u8 , 86u8 , 58u8 , 162u8 , 156u8 , 101u8 , 2u8 , 107u8 , 219u8 , 108u8 , 249u8 ,]) } # [doc = "Transfers a specified amount of stake from one coldkey to another, optionally across subnets,"] # [doc = "while keeping the same hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the `origin_coldkey`."] # [doc = "* `destination_coldkey` - The coldkey to which the stake is transferred."] # [doc = "* `hotkey` - The hotkey associated with the stake."] # [doc = "* `origin_netuid` - The network/subnet ID to move stake from."] # [doc = "* `destination_netuid` - The network/subnet ID to move stake to (for cross-subnet transfer)."] # [doc = "* `alpha_amount` - The amount of stake to transfer."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The origin is not signed by the correct coldkey."] # [doc = "* Either subnet does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(origin_coldkey, hotkey, origin_netuid)`."] # [doc = "* The transfer amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeTransferred` event on success."] pub fn transfer_stake (& self , destination_coldkey : types :: transfer_stake :: DestinationColdkey , hotkey : types :: transfer_stake :: Hotkey , origin_netuid : types :: transfer_stake :: OriginNetuid , destination_netuid : types :: transfer_stake :: DestinationNetuid , alpha_amount : types :: transfer_stake :: AlphaAmount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "transfer_stake" , types :: TransferStake { destination_coldkey , hotkey , origin_netuid , destination_netuid , alpha_amount , } , [76u8 , 95u8 , 121u8 , 127u8 , 46u8 , 25u8 , 21u8 , 29u8 , 168u8 , 194u8 , 198u8 , 21u8 , 135u8 , 12u8 , 207u8 , 235u8 , 129u8 , 228u8 , 54u8 , 37u8 , 129u8 , 13u8 , 127u8 , 186u8 , 78u8 , 17u8 , 139u8 , 40u8 , 71u8 , 149u8 , 234u8 , 252u8 ,]) } # [doc = "Swaps a specified amount of stake from one subnet to another, while keeping the same coldkey and hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey whose stake is being swapped."] # [doc = "* `origin_netuid` - The network/subnet ID from which stake is removed."] # [doc = "* `destination_netuid` - The network/subnet ID to which stake is added."] # [doc = "* `alpha_amount` - The amount of stake to swap."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the correct coldkey (i.e., `coldkey_owns_hotkey` fails)."] # [doc = "* Either `origin_netuid` or `destination_netuid` does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(coldkey, hotkey, origin_netuid)`."] # [doc = "* The swap amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeSwapped` event on success."] pub fn swap_stake (& self , hotkey : types :: swap_stake :: Hotkey , origin_netuid : types :: swap_stake :: OriginNetuid , destination_netuid : types :: swap_stake :: DestinationNetuid , alpha_amount : types :: swap_stake :: AlphaAmount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SwapStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "swap_stake" , types :: SwapStake { hotkey , origin_netuid , destination_netuid , alpha_amount , } , [5u8 , 200u8 , 231u8 , 57u8 , 110u8 , 203u8 , 149u8 , 125u8 , 180u8 , 132u8 , 103u8 , 67u8 , 247u8 , 152u8 , 175u8 , 36u8 , 253u8 , 234u8 , 194u8 , 157u8 , 61u8 , 159u8 , 176u8 , 172u8 , 238u8 , 137u8 , 38u8 , 98u8 , 108u8 , 94u8 , 234u8 , 13u8 ,]) } # [doc = "--- Adds stake to a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (lower) the staking should execute."] # [doc = ""] # [doc = "In case if slippage occurs and the price shall move beyond the limit"] # [doc = "price, the staking order may execute only partially or not execute"] # [doc = "at all."] # [doc = ""] # [doc = "# Args:"] # [doc = " * 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = " * 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = " * 'amount_staked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = " * 'limit_price' (u64):"] # [doc = "\t- The limit price expressed in units of RAO per one Alpha."] # [doc = ""] # [doc = " * 'allow_partial' (bool):"] # [doc = "\t- Allows partial execution of the amount. If set to false, this becomes"] # [doc = "      fill or kill type or order."] # [doc = ""] # [doc = "# Event:"] # [doc = " * StakeAdded;"] # [doc = "\t- On the successfully adding stake to a global account."] # [doc = ""] # [doc = "# Raises:"] # [doc = " * 'NotEnoughBalanceToStake':"] # [doc = "\t- Not enough balance on the coldkey to add onto the global account."] # [doc = ""] # [doc = " * 'NonAssociatedColdKey':"] # [doc = "\t- The calling coldkey is not associated with this hotkey."] # [doc = ""] # [doc = " * 'BalanceWithdrawalError':"] # [doc = " \t- Errors stemming from transaction pallet."] # [doc = ""] pub fn add_stake_limit (& self , hotkey : types :: add_stake_limit :: Hotkey , netuid : types :: add_stake_limit :: Netuid , amount_staked : types :: add_stake_limit :: AmountStaked , limit_price : types :: add_stake_limit :: LimitPrice , allow_partial : types :: add_stake_limit :: AllowPartial ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddStakeLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "add_stake_limit" , types :: AddStakeLimit { hotkey , netuid , amount_staked , limit_price , allow_partial , } , [55u8 , 119u8 , 162u8 , 204u8 , 181u8 , 201u8 , 159u8 , 232u8 , 32u8 , 223u8 , 137u8 , 96u8 , 21u8 , 174u8 , 227u8 , 161u8 , 79u8 , 71u8 , 240u8 , 172u8 , 124u8 , 16u8 , 59u8 , 165u8 , 67u8 , 254u8 , 48u8 , 60u8 , 199u8 , 160u8 , 71u8 , 165u8 ,]) } # [doc = "--- Removes stake from a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (higher) the staking should execute."] # [doc = ""] # [doc = "In case if slippage occurs and the price shall move beyond the limit"] # [doc = "price, the staking order may execute only partially or not execute"] # [doc = "at all."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = "* 'amount_unstaked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = " * 'limit_price' (u64):"] # [doc = "    - The limit price expressed in units of RAO per one Alpha."] # [doc = ""] # [doc = " * 'allow_partial' (bool):"] # [doc = "    - Allows partial execution of the amount. If set to false, this becomes"] # [doc = "      fill or kill type or order."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "\t- On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* 'NotEnoughStakeToWithdraw':"] # [doc = "\t- Thrown if there is not enough stake on the hotkey to withdwraw this amount."] # [doc = ""] pub fn remove_stake_limit (& self , hotkey : types :: remove_stake_limit :: Hotkey , netuid : types :: remove_stake_limit :: Netuid , amount_unstaked : types :: remove_stake_limit :: AmountUnstaked , limit_price : types :: remove_stake_limit :: LimitPrice , allow_partial : types :: remove_stake_limit :: AllowPartial ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveStakeLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "remove_stake_limit" , types :: RemoveStakeLimit { hotkey , netuid , amount_unstaked , limit_price , allow_partial , } , [59u8 , 225u8 , 129u8 , 72u8 , 112u8 , 149u8 , 9u8 , 240u8 , 43u8 , 153u8 , 85u8 , 178u8 , 199u8 , 31u8 , 36u8 , 153u8 , 179u8 , 180u8 , 213u8 , 115u8 , 153u8 , 75u8 , 96u8 , 31u8 , 35u8 , 245u8 , 233u8 , 36u8 , 26u8 , 113u8 , 117u8 , 157u8 ,]) } # [doc = "Swaps a specified amount of stake from one subnet to another, while keeping the same coldkey and hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey whose stake is being swapped."] # [doc = "* `origin_netuid` - The network/subnet ID from which stake is removed."] # [doc = "* `destination_netuid` - The network/subnet ID to which stake is added."] # [doc = "* `alpha_amount` - The amount of stake to swap."] # [doc = "* `limit_price` - The limit price expressed in units of RAO per one Alpha."] # [doc = "* `allow_partial` - Allows partial execution of the amount. If set to false, this becomes fill or kill type or order."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the correct coldkey (i.e., `coldkey_owns_hotkey` fails)."] # [doc = "* Either `origin_netuid` or `destination_netuid` does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(coldkey, hotkey, origin_netuid)`."] # [doc = "* The swap amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeSwapped` event on success."] pub fn swap_stake_limit (& self , hotkey : types :: swap_stake_limit :: Hotkey , origin_netuid : types :: swap_stake_limit :: OriginNetuid , destination_netuid : types :: swap_stake_limit :: DestinationNetuid , alpha_amount : types :: swap_stake_limit :: AlphaAmount , limit_price : types :: swap_stake_limit :: LimitPrice , allow_partial : types :: swap_stake_limit :: AllowPartial ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SwapStakeLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "swap_stake_limit" , types :: SwapStakeLimit { hotkey , origin_netuid , destination_netuid , alpha_amount , limit_price , allow_partial , } , [173u8 , 145u8 , 7u8 , 70u8 , 213u8 , 178u8 , 149u8 , 157u8 , 158u8 , 173u8 , 251u8 , 93u8 , 1u8 , 46u8 , 255u8 , 39u8 , 55u8 , 66u8 , 153u8 , 147u8 , 144u8 , 218u8 , 93u8 , 53u8 , 165u8 , 156u8 , 196u8 , 17u8 , 174u8 , 138u8 , 148u8 , 91u8 ,]) } # [doc = "Attempts to associate a hotkey with a coldkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey to associate with the coldkey."] # [doc = ""] # [doc = "# Note"] # [doc = "Will charge based on the weight even if the hotkey is already associated with a coldkey."] pub fn try_associate_hotkey (& self , hotkey : types :: try_associate_hotkey :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TryAssociateHotkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "try_associate_hotkey" , types :: TryAssociateHotkey { hotkey , } , [212u8 , 87u8 , 45u8 , 211u8 , 243u8 , 195u8 , 169u8 , 16u8 , 19u8 , 100u8 , 14u8 , 250u8 , 14u8 , 45u8 , 182u8 , 7u8 , 193u8 , 14u8 , 184u8 , 161u8 , 10u8 , 42u8 , 59u8 , 227u8 , 209u8 , 24u8 , 164u8 , 216u8 , 115u8 , 145u8 , 214u8 , 187u8 ,]) } # [doc = "Initiates a call on a subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be signed by the subnet owner."] # [doc = "* `netuid` - The unique identifier of the subnet on which the call is being initiated."] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `FirstEmissionBlockNumberSet` event on success."] pub fn start_call (& self , netuid : types :: start_call :: Netuid ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: StartCall > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "start_call" , types :: StartCall { netuid , } , [238u8 , 117u8 , 50u8 , 112u8 , 77u8 , 220u8 , 171u8 , 204u8 , 228u8 , 188u8 , 158u8 , 42u8 , 164u8 , 105u8 , 112u8 , 208u8 , 206u8 , 122u8 , 242u8 , 83u8 , 241u8 , 118u8 , 235u8 , 154u8 , 84u8 , 242u8 , 236u8 , 88u8 , 211u8 , 151u8 , 93u8 , 212u8 ,]) } # [doc = "Attempts to associate a hotkey with an EVM key."] # [doc = ""] # [doc = "The signature will be checked to see if the recovered public key matches the `evm_key` provided."] # [doc = ""] # [doc = "The EVM key is expected to sign the message according to this formula to produce the signature:"] # [doc = "```text"] # [doc = "keccak_256(hotkey ++ keccak_256(block_number))"] # [doc = "```"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the `hotkey`."] # [doc = "* `netuid` - The netuid that the `hotkey` belongs to."] # [doc = "* `evm_key` - The EVM key to associate with the `hotkey`."] # [doc = "* `block_number` - The block number used in the `signature`."] # [doc = "* `signature` - A signed message by the `evm_key` containing the `hotkey` and the hashed `block_number`."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed."] # [doc = "* The hotkey does not belong to the subnet identified by the netuid."] # [doc = "* The EVM key cannot be recovered from the signature."] # [doc = "* The EVM key recovered from the signature does not match the given EVM key."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `EvmKeyAssociated` event on success"] pub fn associate_evm_key (& self , netuid : types :: associate_evm_key :: Netuid , evm_key : types :: associate_evm_key :: EvmKey , block_number : types :: associate_evm_key :: BlockNumber , signature : types :: associate_evm_key :: Signature ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AssociateEvmKey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "associate_evm_key" , types :: AssociateEvmKey { netuid , evm_key , block_number , signature , } , [32u8 , 123u8 , 51u8 , 207u8 , 109u8 , 240u8 , 44u8 , 243u8 , 193u8 , 35u8 , 218u8 , 147u8 , 113u8 , 185u8 , 245u8 , 76u8 , 218u8 , 57u8 , 71u8 , 123u8 , 176u8 , 178u8 , 122u8 , 28u8 , 248u8 , 206u8 , 215u8 , 246u8 , 6u8 , 81u8 , 60u8 , 73u8 ,]) } # [doc = "Recycles alpha from a cold/hot key pair, reducing AlphaOut on a subnet"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call (must be signed by the coldkey)"] # [doc = "* `hotkey` - The hotkey account"] # [doc = "* `amount` - The amount of alpha to recycle"] # [doc = "* `netuid` - The subnet ID"] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `TokensRecycled` event on success."] pub fn recycle_alpha (& self , hotkey : types :: recycle_alpha :: Hotkey , amount : types :: recycle_alpha :: Amount , netuid : types :: recycle_alpha :: Netuid ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RecycleAlpha > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "recycle_alpha" , types :: RecycleAlpha { hotkey , amount , netuid , } , [33u8 , 136u8 , 195u8 , 76u8 , 91u8 , 120u8 , 236u8 , 22u8 , 172u8 , 152u8 , 47u8 , 111u8 , 118u8 , 113u8 , 48u8 , 131u8 , 63u8 , 242u8 , 30u8 , 26u8 , 115u8 , 82u8 , 136u8 , 14u8 , 167u8 , 193u8 , 48u8 , 203u8 , 4u8 , 15u8 , 193u8 , 79u8 ,]) } # [doc = "Burns alpha from a cold/hot key pair without reducing `AlphaOut`"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call (must be signed by the coldkey)"] # [doc = "* `hotkey` - The hotkey account"] # [doc = "* `amount` - The amount of alpha to burn"] # [doc = "* `netuid` - The subnet ID"] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `TokensBurned` event on success."] pub fn burn_alpha (& self , hotkey : types :: burn_alpha :: Hotkey , amount : types :: burn_alpha :: Amount , netuid : types :: burn_alpha :: Netuid ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BurnAlpha > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "burn_alpha" , types :: BurnAlpha { hotkey , amount , netuid , } , [150u8 , 162u8 , 154u8 , 19u8 , 31u8 , 127u8 , 112u8 , 63u8 , 140u8 , 186u8 , 152u8 , 175u8 , 226u8 , 182u8 , 68u8 , 21u8 , 166u8 , 111u8 , 227u8 , 215u8 , 70u8 , 44u8 , 135u8 , 50u8 , 183u8 , 255u8 , 226u8 , 103u8 , 184u8 , 194u8 , 52u8 , 114u8 ,]) } # [doc = "Sets the pending childkey cooldown (in blocks). Root only."] pub fn set_pending_childkey_cooldown (& self , cooldown : types :: set_pending_childkey_cooldown :: Cooldown ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetPendingChildkeyCooldown > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_pending_childkey_cooldown" , types :: SetPendingChildkeyCooldown { cooldown , } , [84u8 , 127u8 , 99u8 , 184u8 , 8u8 , 38u8 , 140u8 , 140u8 , 44u8 , 209u8 , 170u8 , 22u8 , 9u8 , 130u8 , 140u8 , 168u8 , 227u8 , 136u8 , 92u8 , 172u8 , 39u8 , 10u8 , 235u8 , 141u8 , 52u8 , 64u8 , 216u8 , 14u8 , 43u8 , 86u8 , 192u8 , 117u8 ,]) } # [doc = "Removes all stake from a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (higher) the staking should execute."] # [doc = "Without limit_price it remove all the stake similar to `remove_stake` extrinsic"] pub fn remove_stake_full_limit (& self , hotkey : types :: remove_stake_full_limit :: Hotkey , netuid : types :: remove_stake_full_limit :: Netuid , limit_price : types :: remove_stake_full_limit :: LimitPrice ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveStakeFullLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "remove_stake_full_limit" , types :: RemoveStakeFullLimit { hotkey , netuid , limit_price , } , [228u8 , 64u8 , 65u8 , 13u8 , 154u8 , 12u8 , 4u8 , 110u8 , 46u8 , 253u8 , 209u8 , 55u8 , 56u8 , 51u8 , 221u8 , 240u8 , 46u8 , 70u8 , 9u8 , 98u8 , 88u8 , 155u8 , 173u8 , 111u8 , 181u8 , 188u8 , 216u8 , 133u8 , 39u8 , 199u8 , 146u8 , 58u8 ,]) } # [doc = "Register a new leased network."] # [doc = ""] # [doc = "The crowdloan's contributions are used to compute the share of the emissions that the contributors"] # [doc = "will receive as dividends."] # [doc = ""] # [doc = "The leftover cap is refunded to the contributors and the beneficiary."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `emissions_share` (Percent):"] # [doc = "    - The share of the emissions that the contributors will receive as dividends."] # [doc = ""] # [doc = "* `end_block` (Option<BlockNumberFor<T>>):"] # [doc = "    - The block at which the lease will end. If not defined, the lease is perpetual."] pub fn register_leased_network (& self , emissions_share : types :: register_leased_network :: EmissionsShare , end_block : types :: register_leased_network :: EndBlock ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RegisterLeasedNetwork > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "register_leased_network" , types :: RegisterLeasedNetwork { emissions_share , end_block , } , [91u8 , 194u8 , 226u8 , 243u8 , 136u8 , 58u8 , 202u8 , 189u8 , 62u8 , 222u8 , 24u8 , 245u8 , 58u8 , 27u8 , 49u8 , 136u8 , 242u8 , 148u8 , 54u8 , 54u8 , 113u8 , 211u8 , 148u8 , 44u8 , 182u8 , 25u8 , 147u8 , 131u8 , 130u8 , 10u8 , 9u8 , 116u8 ,]) } # [doc = "Terminate a lease."] # [doc = ""] # [doc = "The beneficiary can terminate the lease after the end block has passed and get the subnet ownership."] # [doc = "The subnet is transferred to the beneficiary and the lease is removed from storage."] # [doc = ""] # [doc = "**The hotkey must be owned by the beneficiary coldkey.**"] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `lease_id` (LeaseId):"] # [doc = "    - The ID of the lease to terminate."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey of the beneficiary to mark as subnet owner hotkey."] pub fn terminate_lease (& self , lease_id : types :: terminate_lease :: LeaseId , hotkey : types :: terminate_lease :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TerminateLease > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "terminate_lease" , types :: TerminateLease { lease_id , hotkey , } , [217u8 , 89u8 , 206u8 , 150u8 , 243u8 , 76u8 , 153u8 , 242u8 , 33u8 , 43u8 , 81u8 , 149u8 , 204u8 , 206u8 , 225u8 , 159u8 , 169u8 , 210u8 , 133u8 , 232u8 , 112u8 , 162u8 , 240u8 , 188u8 , 10u8 , 147u8 , 66u8 , 224u8 , 149u8 , 176u8 , 170u8 , 132u8 ,]) } # [doc = "Updates the symbol for a subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or root."] # [doc = "* `netuid` - The unique identifier of the subnet on which the symbol is being set."] # [doc = "* `symbol` - The symbol to set for the subnet."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the subnet owner."] # [doc = "* The symbol does not exist."] # [doc = "* The symbol is already in use by another subnet."] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `SymbolUpdated` event on success."] pub fn update_symbol (& self , netuid : types :: update_symbol :: Netuid , symbol : types :: update_symbol :: Symbol ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpdateSymbol > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "update_symbol" , types :: UpdateSymbol { netuid , symbol , } , [134u8 , 241u8 , 164u8 , 150u8 , 185u8 , 169u8 , 235u8 , 10u8 , 34u8 , 210u8 , 193u8 , 65u8 , 223u8 , 161u8 , 156u8 , 231u8 , 11u8 , 14u8 , 158u8 , 114u8 , 218u8 , 255u8 , 145u8 , 212u8 , 152u8 , 80u8 , 107u8 , 250u8 , 218u8 , 212u8 , 138u8 , 194u8 ,]) } # [doc = "---- Used to commit timelock encrypted commit-reveal weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "* commit_reveal_version (`u16`):"] # [doc = "    - The client (bittensor-drand) version"] pub fn commit_timelocked_weights (& self , netuid : types :: commit_timelocked_weights :: Netuid , commit : types :: commit_timelocked_weights :: Commit , reveal_round : types :: commit_timelocked_weights :: RevealRound , commit_reveal_version : types :: commit_timelocked_weights :: CommitRevealVersion ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CommitTimelockedWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "commit_timelocked_weights" , types :: CommitTimelockedWeights { netuid , commit , reveal_round , commit_reveal_version , } , [182u8 , 151u8 , 45u8 , 217u8 , 127u8 , 97u8 , 136u8 , 2u8 , 99u8 , 44u8 , 228u8 , 222u8 , 59u8 , 250u8 , 52u8 , 231u8 , 124u8 , 147u8 , 111u8 , 204u8 , 249u8 , 139u8 , 94u8 , 98u8 , 230u8 , 75u8 , 165u8 , 185u8 , 101u8 , 88u8 , 53u8 , 168u8 ,]) } # [doc = "Set the autostake destination hotkey for a coldkey."] # [doc = ""] # [doc = "The caller selects a hotkey where all future rewards"] # [doc = "will be automatically staked."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to designate as the autostake destination."] pub fn set_coldkey_auto_stake_hotkey (& self , netuid : types :: set_coldkey_auto_stake_hotkey :: Netuid , hotkey : types :: set_coldkey_auto_stake_hotkey :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetColdkeyAutoStakeHotkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_coldkey_auto_stake_hotkey" , types :: SetColdkeyAutoStakeHotkey { netuid , hotkey , } , [197u8 , 157u8 , 254u8 , 76u8 , 11u8 , 41u8 , 210u8 , 97u8 , 228u8 , 162u8 , 35u8 , 59u8 , 172u8 , 101u8 , 234u8 , 251u8 , 179u8 , 69u8 , 137u8 , 110u8 , 177u8 , 156u8 , 85u8 , 212u8 , 247u8 , 213u8 , 221u8 , 225u8 , 199u8 , 219u8 , 63u8 , 163u8 ,]) } # [doc = "---- Used to commit timelock encrypted commit-reveal weight values to later be revealed for"] # [doc = "a mechanism."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "* commit_reveal_version (`u16`):"] # [doc = "    - The client (bittensor-drand) version"] pub fn commit_timelocked_mechanism_weights (& self , netuid : types :: commit_timelocked_mechanism_weights :: Netuid , mecid : types :: commit_timelocked_mechanism_weights :: Mecid , commit : types :: commit_timelocked_mechanism_weights :: Commit , reveal_round : types :: commit_timelocked_mechanism_weights :: RevealRound , commit_reveal_version : types :: commit_timelocked_mechanism_weights :: CommitRevealVersion ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CommitTimelockedMechanismWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "commit_timelocked_mechanism_weights" , types :: CommitTimelockedMechanismWeights { netuid , mecid , commit , reveal_round , commit_reveal_version , } , [144u8 , 191u8 , 179u8 , 136u8 , 110u8 , 213u8 , 24u8 , 166u8 , 65u8 , 179u8 , 162u8 , 60u8 , 120u8 , 85u8 , 107u8 , 255u8 , 99u8 , 9u8 , 203u8 , 211u8 , 203u8 , 244u8 , 28u8 , 77u8 , 207u8 , 57u8 , 212u8 , 107u8 , 251u8 , 169u8 , 186u8 , 3u8 ,]) } # [doc = "Remove a subnetwork"] # [doc = "The caller must be root"] pub fn root_dissolve_network (& self , netuid : types :: root_dissolve_network :: Netuid ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RootDissolveNetwork > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "root_dissolve_network" , types :: RootDissolveNetwork { netuid , } , [252u8 , 248u8 , 148u8 , 168u8 , 24u8 , 188u8 , 102u8 , 192u8 , 83u8 , 64u8 , 204u8 , 222u8 , 252u8 , 193u8 , 98u8 , 135u8 , 180u8 , 105u8 , 120u8 , 70u8 , 100u8 , 126u8 , 198u8 , 196u8 , 45u8 , 81u8 , 254u8 , 21u8 , 242u8 , 123u8 , 206u8 , 200u8 ,]) } # [doc = "--- Claims the root emissions for a coldkey."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "# Event:"] # [doc = "* RootClaimed;"] # [doc = "\t- On the successfully claiming the root emissions for a coldkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = ""] pub fn claim_root (& self , subnets : types :: claim_root :: Subnets ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ClaimRoot > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "claim_root" , types :: ClaimRoot { subnets , } , [245u8 , 207u8 , 109u8 , 112u8 , 205u8 , 88u8 , 130u8 , 168u8 , 115u8 , 229u8 , 142u8 , 68u8 , 85u8 , 226u8 , 79u8 , 11u8 , 160u8 , 211u8 , 13u8 , 199u8 , 57u8 , 235u8 , 144u8 , 205u8 , 12u8 , 112u8 , 123u8 , 79u8 , 125u8 , 92u8 , 11u8 , 144u8 ,]) } # [doc = "--- Sets the root claim type for the coldkey."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "# Event:"] # [doc = "* RootClaimTypeSet;"] # [doc = "\t- On the successfully setting the root claim type for the coldkey."] # [doc = ""] pub fn set_root_claim_type (& self , new_root_claim_type : types :: set_root_claim_type :: NewRootClaimType ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetRootClaimType > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_root_claim_type" , types :: SetRootClaimType { new_root_claim_type , } , [200u8 , 21u8 , 219u8 , 26u8 , 65u8 , 244u8 , 89u8 , 6u8 , 225u8 , 130u8 , 58u8 , 18u8 , 6u8 , 142u8 , 96u8 , 183u8 , 25u8 , 76u8 , 31u8 , 128u8 , 144u8 , 38u8 , 44u8 , 75u8 , 92u8 , 22u8 , 23u8 , 85u8 , 148u8 , 74u8 , 161u8 , 91u8 ,]) } # [doc = "--- Sets root claim number (sudo extrinsic). Zero disables auto-claim."] pub fn sudo_set_num_root_claims (& self , new_value : types :: sudo_set_num_root_claims :: NewValue ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNumRootClaims > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "sudo_set_num_root_claims" , types :: SudoSetNumRootClaims { new_value , } , [255u8 , 121u8 , 104u8 , 166u8 , 245u8 , 166u8 , 196u8 , 46u8 , 37u8 , 180u8 , 107u8 , 141u8 , 30u8 , 191u8 , 57u8 , 225u8 , 246u8 , 114u8 , 21u8 , 31u8 , 210u8 , 108u8 , 206u8 , 21u8 , 0u8 , 74u8 , 216u8 , 51u8 , 96u8 , 85u8 , 30u8 , 118u8 ,]) } # [doc = "--- Sets root claim threshold for subnet (sudo or owner origin)."] pub fn sudo_set_root_claim_threshold (& self , netuid : types :: sudo_set_root_claim_threshold :: Netuid , new_value : types :: sudo_set_root_claim_threshold :: NewValue ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetRootClaimThreshold > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "sudo_set_root_claim_threshold" , types :: SudoSetRootClaimThreshold { netuid , new_value , } , [141u8 , 140u8 , 253u8 , 33u8 , 112u8 , 180u8 , 86u8 , 187u8 , 196u8 , 224u8 , 73u8 , 78u8 , 87u8 , 96u8 , 196u8 , 14u8 , 125u8 , 65u8 , 229u8 , 109u8 , 61u8 , 238u8 , 131u8 , 235u8 , 205u8 , 138u8 , 112u8 , 93u8 , 69u8 , 45u8 , 203u8 , 180u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_subtensor :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "a new network is added."] pub struct NetworkAdded (pub network_added :: Field0 , pub network_added :: Field1 ,) ; pub mod network_added { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NetworkAdded { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NetworkAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "a network is removed."] pub struct NetworkRemoved (pub network_removed :: Field0 ,) ; pub mod network_removed { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NetworkRemoved { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NetworkRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "stake has been transferred from the a coldkey account onto the hotkey staking account."] pub struct StakeAdded (pub stake_added :: Field0 , pub stake_added :: Field1 , pub stake_added :: Field2 , pub stake_added :: Field3 , pub stake_added :: Field4 , pub stake_added :: Field5 ,) ; pub mod stake_added { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u64 ; pub type Field3 = :: core :: primitive :: u64 ; pub type Field4 = :: core :: primitive :: u16 ; pub type Field5 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakeAdded { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "StakeAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "stake has been removed from the hotkey staking account onto the coldkey account."] pub struct StakeRemoved (pub stake_removed :: Field0 , pub stake_removed :: Field1 , pub stake_removed :: Field2 , pub stake_removed :: Field3 , pub stake_removed :: Field4 , pub stake_removed :: Field5 ,) ; pub mod stake_removed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u64 ; pub type Field3 = :: core :: primitive :: u64 ; pub type Field4 = :: core :: primitive :: u16 ; pub type Field5 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakeRemoved { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "StakeRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "stake has been moved from origin (hotkey, subnet ID) to destination (hotkey, subnet ID) of this amount (in TAO)."] pub struct StakeMoved (pub stake_moved :: Field0 , pub stake_moved :: Field1 , pub stake_moved :: Field2 , pub stake_moved :: Field3 , pub stake_moved :: Field4 , pub stake_moved :: Field5 ,) ; pub mod stake_moved { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u16 ; pub type Field3 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field4 = :: core :: primitive :: u16 ; pub type Field5 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakeMoved { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "StakeMoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "a caller successfully sets their weights on a subnetwork."] pub struct WeightsSet (pub weights_set :: Field0 , pub weights_set :: Field1 ,) ; pub mod weights_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WeightsSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "WeightsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "a new neuron account has been registered to the chain."] pub struct NeuronRegistered (pub neuron_registered :: Field0 , pub neuron_registered :: Field1 , pub neuron_registered :: Field2 ,) ; pub mod neuron_registered { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NeuronRegistered { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NeuronRegistered" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "multiple uids have been concurrently registered."] pub struct BulkNeuronsRegistered (pub bulk_neurons_registered :: Field0 , pub bulk_neurons_registered :: Field1 ,) ; pub mod bulk_neurons_registered { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BulkNeuronsRegistered { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BulkNeuronsRegistered" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "FIXME: Not used yet"] pub struct BulkBalancesSet (pub bulk_balances_set :: Field0 , pub bulk_balances_set :: Field1 ,) ; pub mod bulk_balances_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BulkBalancesSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BulkBalancesSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "max allowed uids has been set for a subnetwork."] pub struct MaxAllowedUidsSet (pub max_allowed_uids_set :: Field0 , pub max_allowed_uids_set :: Field1 ,) ; pub mod max_allowed_uids_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxAllowedUidsSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxAllowedUidsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "DEPRECATED: max weight limit updates are no longer supported."] pub struct MaxWeightLimitSet (pub max_weight_limit_set :: Field0 , pub max_weight_limit_set :: Field1 ,) ; pub mod max_weight_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxWeightLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxWeightLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the difficulty has been set for a subnet."] pub struct DifficultySet (pub difficulty_set :: Field0 , pub difficulty_set :: Field1 ,) ; pub mod difficulty_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DifficultySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "DifficultySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the adjustment interval is set for a subnet."] pub struct AdjustmentIntervalSet (pub adjustment_interval_set :: Field0 , pub adjustment_interval_set :: Field1 ,) ; pub mod adjustment_interval_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AdjustmentIntervalSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AdjustmentIntervalSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "registration per interval is set for a subnet."] pub struct RegistrationPerIntervalSet (pub registration_per_interval_set :: Field0 , pub registration_per_interval_set :: Field1 ,) ; pub mod registration_per_interval_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RegistrationPerIntervalSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "RegistrationPerIntervalSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "we set max registrations per block."] pub struct MaxRegistrationsPerBlockSet (pub max_registrations_per_block_set :: Field0 , pub max_registrations_per_block_set :: Field1 ,) ; pub mod max_registrations_per_block_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxRegistrationsPerBlockSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxRegistrationsPerBlockSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "an activity cutoff is set for a subnet."] pub struct ActivityCutoffSet (pub activity_cutoff_set :: Field0 , pub activity_cutoff_set :: Field1 ,) ; pub mod activity_cutoff_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ActivityCutoffSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ActivityCutoffSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Rho value is set."] pub struct RhoSet (pub rho_set :: Field0 , pub rho_set :: Field1 ,) ; pub mod rho_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RhoSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "RhoSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "steepness of the sigmoid used to compute alpha values."] pub struct AlphaSigmoidSteepnessSet (pub alpha_sigmoid_steepness_set :: Field0 , pub alpha_sigmoid_steepness_set :: Field1 ,) ; pub mod alpha_sigmoid_steepness_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: i16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AlphaSigmoidSteepnessSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AlphaSigmoidSteepnessSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Kappa is set for a subnet."] pub struct KappaSet (pub kappa_set :: Field0 , pub kappa_set :: Field1 ,) ; pub mod kappa_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for KappaSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "KappaSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "minimum allowed weight is set for a subnet."] pub struct MinAllowedWeightSet (pub min_allowed_weight_set :: Field0 , pub min_allowed_weight_set :: Field1 ,) ; pub mod min_allowed_weight_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinAllowedWeightSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinAllowedWeightSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the validator pruning length has been set."] pub struct ValidatorPruneLenSet (pub validator_prune_len_set :: Field0 , pub validator_prune_len_set :: Field1 ,) ; pub mod validator_prune_len_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ValidatorPruneLenSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ValidatorPruneLenSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the scaling law power has been set for a subnet."] pub struct ScalingLawPowerSet (pub scaling_law_power_set :: Field0 , pub scaling_law_power_set :: Field1 ,) ; pub mod scaling_law_power_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ScalingLawPowerSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ScalingLawPowerSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "weights set rate limit has been set for a subnet."] pub struct WeightsSetRateLimitSet (pub weights_set_rate_limit_set :: Field0 , pub weights_set_rate_limit_set :: Field1 ,) ; pub mod weights_set_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WeightsSetRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "WeightsSetRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "immunity period is set for a subnet."] pub struct ImmunityPeriodSet (pub immunity_period_set :: Field0 , pub immunity_period_set :: Field1 ,) ; pub mod immunity_period_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ImmunityPeriodSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ImmunityPeriodSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "bonds moving average is set for a subnet."] pub struct BondsMovingAverageSet (pub bonds_moving_average_set :: Field0 , pub bonds_moving_average_set :: Field1 ,) ; pub mod bonds_moving_average_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BondsMovingAverageSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BondsMovingAverageSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "bonds penalty is set for a subnet."] pub struct BondsPenaltySet (pub bonds_penalty_set :: Field0 , pub bonds_penalty_set :: Field1 ,) ; pub mod bonds_penalty_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BondsPenaltySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BondsPenaltySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "bonds reset is set for a subnet."] pub struct BondsResetOnSet (pub bonds_reset_on_set :: Field0 , pub bonds_reset_on_set :: Field1 ,) ; pub mod bonds_reset_on_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BondsResetOnSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BondsResetOnSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the max number of allowed validators on a subnet."] pub struct MaxAllowedValidatorsSet (pub max_allowed_validators_set :: Field0 , pub max_allowed_validators_set :: Field1 ,) ; pub mod max_allowed_validators_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxAllowedValidatorsSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxAllowedValidatorsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the axon server information is added to the network."] pub struct AxonServed (pub axon_served :: Field0 , pub axon_served :: Field1 ,) ; pub mod axon_served { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AxonServed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AxonServed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the prometheus server information is added to the network."] pub struct PrometheusServed (pub prometheus_served :: Field0 , pub prometheus_served :: Field1 ,) ; pub mod prometheus_served { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PrometheusServed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "PrometheusServed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "a hotkey has become a delegate."] pub struct DelegateAdded (pub delegate_added :: Field0 , pub delegate_added :: Field1 , pub delegate_added :: Field2 ,) ; pub mod delegate_added { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DelegateAdded { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "DelegateAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the default take is set."] pub struct DefaultTakeSet (pub default_take_set :: Field0 ,) ; pub mod default_take_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DefaultTakeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "DefaultTakeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "weights version key is set for a network."] pub struct WeightsVersionKeySet (pub weights_version_key_set :: Field0 , pub weights_version_key_set :: Field1 ,) ; pub mod weights_version_key_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WeightsVersionKeySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "WeightsVersionKeySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting min difficulty on a network."] pub struct MinDifficultySet (pub min_difficulty_set :: Field0 , pub min_difficulty_set :: Field1 ,) ; pub mod min_difficulty_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinDifficultySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinDifficultySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting max difficulty on a network."] pub struct MaxDifficultySet (pub max_difficulty_set :: Field0 , pub max_difficulty_set :: Field1 ,) ; pub mod max_difficulty_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxDifficultySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxDifficultySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the prometheus serving rate limit."] pub struct ServingRateLimitSet (pub serving_rate_limit_set :: Field0 , pub serving_rate_limit_set :: Field1 ,) ; pub mod serving_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ServingRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ServingRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting burn on a network."] pub struct BurnSet (pub burn_set :: Field0 , pub burn_set :: Field1 ,) ; pub mod burn_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BurnSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BurnSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting max burn on a network."] pub struct MaxBurnSet (pub max_burn_set :: Field0 , pub max_burn_set :: Field1 ,) ; pub mod max_burn_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxBurnSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxBurnSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting min burn on a network."] pub struct MinBurnSet (pub min_burn_set :: Field0 , pub min_burn_set :: Field1 ,) ; pub mod min_burn_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinBurnSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinBurnSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the transaction rate limit."] pub struct TxRateLimitSet (pub tx_rate_limit_set :: Field0 ,) ; pub mod tx_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TxRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TxRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the delegate take transaction rate limit."] pub struct TxDelegateTakeRateLimitSet (pub tx_delegate_take_rate_limit_set :: Field0 ,) ; pub mod tx_delegate_take_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TxDelegateTakeRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TxDelegateTakeRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the childkey take transaction rate limit."] pub struct TxChildKeyTakeRateLimitSet (pub tx_child_key_take_rate_limit_set :: Field0 ,) ; pub mod tx_child_key_take_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TxChildKeyTakeRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TxChildKeyTakeRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the admin freeze window length (last N blocks of tempo)"] pub struct AdminFreezeWindowSet (pub admin_freeze_window_set :: Field0 ,) ; pub mod admin_freeze_window_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AdminFreezeWindowSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AdminFreezeWindowSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the owner hyperparameter rate limit in epochs"] pub struct OwnerHyperparamRateLimitSet (pub owner_hyperparam_rate_limit_set :: Field0 ,) ; pub mod owner_hyperparam_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for OwnerHyperparamRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "OwnerHyperparamRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "minimum childkey take set"] pub struct MinChildKeyTakeSet (pub min_child_key_take_set :: Field0 ,) ; pub mod min_child_key_take_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinChildKeyTakeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinChildKeyTakeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "maximum childkey take set"] pub struct MaxChildKeyTakeSet (pub max_child_key_take_set :: Field0 ,) ; pub mod max_child_key_take_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxChildKeyTakeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxChildKeyTakeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "childkey take set"] pub struct ChildKeyTakeSet (pub child_key_take_set :: Field0 , pub child_key_take_set :: Field1 ,) ; pub mod child_key_take_set { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ChildKeyTakeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ChildKeyTakeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "a sudo call is done."] pub struct Sudid (pub sudid :: Field0 ,) ; pub mod sudid { use super :: runtime_types ; pub type Field0 = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Sudid { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "Sudid" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "registration is allowed/disallowed for a subnet."] pub struct RegistrationAllowed (pub registration_allowed :: Field0 , pub registration_allowed :: Field1 ,) ; pub mod registration_allowed { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RegistrationAllowed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "RegistrationAllowed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "POW registration is allowed/disallowed for a subnet."] pub struct PowRegistrationAllowed (pub pow_registration_allowed :: Field0 , pub pow_registration_allowed :: Field1 ,) ; pub mod pow_registration_allowed { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PowRegistrationAllowed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "PowRegistrationAllowed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting tempo on a network"] pub struct TempoSet (pub tempo_set :: Field0 , pub tempo_set :: Field1 ,) ; pub mod tempo_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TempoSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TempoSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the RAO recycled for registration."] pub struct RAORecycledForRegistrationSet (pub rao_recycled_for_registration_set :: Field0 , pub rao_recycled_for_registration_set :: Field1 ,) ; pub mod rao_recycled_for_registration_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RAORecycledForRegistrationSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "RAORecycledForRegistrationSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "min stake is set for validators to set weights."] pub struct StakeThresholdSet (pub stake_threshold_set :: Field0 ,) ; pub mod stake_threshold_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakeThresholdSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "StakeThresholdSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the adjustment alpha on a subnet."] pub struct AdjustmentAlphaSet (pub adjustment_alpha_set :: Field0 , pub adjustment_alpha_set :: Field1 ,) ; pub mod adjustment_alpha_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AdjustmentAlphaSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AdjustmentAlphaSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the faucet it called on the test net."] pub struct Faucet (pub faucet :: Field0 , pub faucet :: Field1 ,) ; pub mod faucet { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Faucet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "Faucet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the subnet owner cut is set."] pub struct SubnetOwnerCutSet (pub subnet_owner_cut_set :: Field0 ,) ; pub mod subnet_owner_cut_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetOwnerCutSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetOwnerCutSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the network creation rate limit is set."] pub struct NetworkRateLimitSet (pub network_rate_limit_set :: Field0 ,) ; pub mod network_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NetworkRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NetworkRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the network immunity period is set."] pub struct NetworkImmunityPeriodSet (pub network_immunity_period_set :: Field0 ,) ; pub mod network_immunity_period_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NetworkImmunityPeriodSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NetworkImmunityPeriodSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the network minimum locking cost is set."] pub struct NetworkMinLockCostSet (pub network_min_lock_cost_set :: Field0 ,) ; pub mod network_min_lock_cost_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NetworkMinLockCostSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NetworkMinLockCostSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the maximum number of subnets is set"] pub struct SubnetLimitSet (pub subnet_limit_set :: Field0 ,) ; pub mod subnet_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the lock cost reduction is set"] pub struct NetworkLockCostReductionIntervalSet (pub network_lock_cost_reduction_interval_set :: Field0 ,) ; pub mod network_lock_cost_reduction_interval_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NetworkLockCostReductionIntervalSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NetworkLockCostReductionIntervalSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the take for a delegate is decreased."] pub struct TakeDecreased (pub take_decreased :: Field0 , pub take_decreased :: Field1 , pub take_decreased :: Field2 ,) ; pub mod take_decreased { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TakeDecreased { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TakeDecreased" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the take for a delegate is increased."] pub struct TakeIncreased (pub take_increased :: Field0 , pub take_increased :: Field1 , pub take_increased :: Field2 ,) ; pub mod take_increased { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TakeIncreased { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TakeIncreased" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the hotkey is swapped"] pub struct HotkeySwapped { pub coldkey : hotkey_swapped :: Coldkey , pub old_hotkey : hotkey_swapped :: OldHotkey , pub new_hotkey : hotkey_swapped :: NewHotkey , } pub mod hotkey_swapped { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type OldHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for HotkeySwapped { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "HotkeySwapped" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "maximum delegate take is set by sudo/admin transaction"] pub struct MaxDelegateTakeSet (pub max_delegate_take_set :: Field0 ,) ; pub mod max_delegate_take_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxDelegateTakeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxDelegateTakeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "minimum delegate take is set by sudo/admin transaction"] pub struct MinDelegateTakeSet (pub min_delegate_take_set :: Field0 ,) ; pub mod min_delegate_take_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinDelegateTakeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinDelegateTakeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A coldkey has been swapped"] pub struct ColdkeySwapped { pub old_coldkey : coldkey_swapped :: OldColdkey , pub new_coldkey : coldkey_swapped :: NewColdkey , pub swap_cost : coldkey_swapped :: SwapCost , } pub mod coldkey_swapped { use super :: runtime_types ; pub type OldColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type SwapCost = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ColdkeySwapped { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ColdkeySwapped" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "All balance of a hotkey has been unstaked and transferred to a new coldkey"] pub struct AllBalanceUnstakedAndTransferredToNewColdkey { pub current_coldkey : all_balance_unstaked_and_transferred_to_new_coldkey :: CurrentColdkey , pub new_coldkey : all_balance_unstaked_and_transferred_to_new_coldkey :: NewColdkey , pub total_balance : all_balance_unstaked_and_transferred_to_new_coldkey :: TotalBalance , } pub mod all_balance_unstaked_and_transferred_to_new_coldkey { use super :: runtime_types ; pub type CurrentColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type TotalBalance = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AllBalanceUnstakedAndTransferredToNewColdkey { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AllBalanceUnstakedAndTransferredToNewColdkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A coldkey swap has been scheduled"] pub struct ColdkeySwapScheduled { pub old_coldkey : coldkey_swap_scheduled :: OldColdkey , pub new_coldkey : coldkey_swap_scheduled :: NewColdkey , pub execution_block : coldkey_swap_scheduled :: ExecutionBlock , pub swap_cost : coldkey_swap_scheduled :: SwapCost , } pub mod coldkey_swap_scheduled { use super :: runtime_types ; pub type OldColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ExecutionBlock = :: core :: primitive :: u32 ; pub type SwapCost = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ColdkeySwapScheduled { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ColdkeySwapScheduled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The arbitration period has been extended"] pub struct ArbitrationPeriodExtended { pub coldkey : arbitration_period_extended :: Coldkey , } pub mod arbitration_period_extended { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ArbitrationPeriodExtended { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ArbitrationPeriodExtended" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Setting of children of a hotkey have been scheduled"] pub struct SetChildrenScheduled (pub set_children_scheduled :: Field0 , pub set_children_scheduled :: Field1 , pub set_children_scheduled :: Field2 , pub set_children_scheduled :: Field3 ,) ; pub mod set_children_scheduled { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: core :: primitive :: u64 ; pub type Field3 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SetChildrenScheduled { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SetChildrenScheduled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The children of a hotkey have been set"] pub struct SetChildren (pub set_children :: Field0 , pub set_children :: Field1 , pub set_children :: Field2 ,) ; pub mod set_children { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SetChildren { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SetChildren" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The identity of a coldkey has been set"] pub struct ChainIdentitySet (pub chain_identity_set :: Field0 ,) ; pub mod chain_identity_set { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ChainIdentitySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ChainIdentitySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The identity of a subnet has been set"] pub struct SubnetIdentitySet (pub subnet_identity_set :: Field0 ,) ; pub mod subnet_identity_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetIdentitySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetIdentitySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The identity of a subnet has been removed"] pub struct SubnetIdentityRemoved (pub subnet_identity_removed :: Field0 ,) ; pub mod subnet_identity_removed { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetIdentityRemoved { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetIdentityRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A dissolve network extrinsic scheduled."] pub struct DissolveNetworkScheduled { pub account : dissolve_network_scheduled :: Account , pub netuid : dissolve_network_scheduled :: Netuid , pub execution_block : dissolve_network_scheduled :: ExecutionBlock , } pub mod dissolve_network_scheduled { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type ExecutionBlock = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DissolveNetworkScheduled { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "DissolveNetworkScheduled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The duration of schedule coldkey swap has been set"] pub struct ColdkeySwapScheduleDurationSet (pub coldkey_swap_schedule_duration_set :: Field0 ,) ; pub mod coldkey_swap_schedule_duration_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ColdkeySwapScheduleDurationSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ColdkeySwapScheduleDurationSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The duration of dissolve network has been set"] pub struct DissolveNetworkScheduleDurationSet (pub dissolve_network_schedule_duration_set :: Field0 ,) ; pub mod dissolve_network_schedule_duration_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DissolveNetworkScheduleDurationSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "DissolveNetworkScheduleDurationSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Commit-reveal v3 weights have been successfully committed."] # [doc = ""] # [doc = "- **who**: The account ID of the user committing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash representing the committed weights."] pub struct CRV3WeightsCommitted (pub crv3_weights_committed :: Field0 , pub crv3_weights_committed :: Field1 , pub crv3_weights_committed :: Field2 ,) ; pub mod crv3_weights_committed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CRV3WeightsCommitted { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "CRV3WeightsCommitted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Weights have been successfully committed."] # [doc = ""] # [doc = "- **who**: The account ID of the user committing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash representing the committed weights."] pub struct WeightsCommitted (pub weights_committed :: Field0 , pub weights_committed :: Field1 , pub weights_committed :: Field2 ,) ; pub mod weights_committed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WeightsCommitted { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "WeightsCommitted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Weights have been successfully revealed."] # [doc = ""] # [doc = "- **who**: The account ID of the user revealing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash of the revealed weights."] pub struct WeightsRevealed (pub weights_revealed :: Field0 , pub weights_revealed :: Field1 , pub weights_revealed :: Field2 ,) ; pub mod weights_revealed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WeightsRevealed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "WeightsRevealed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Weights have been successfully batch revealed."] # [doc = ""] # [doc = "- **who**: The account ID of the user revealing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **revealed_hashes**: A vector of hashes representing each revealed weight set."] pub struct WeightsBatchRevealed (pub weights_batch_revealed :: Field0 , pub weights_batch_revealed :: Field1 , pub weights_batch_revealed :: Field2 ,) ; pub mod weights_batch_revealed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WeightsBatchRevealed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "WeightsBatchRevealed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A batch of weights (or commits) have been force-set."] # [doc = ""] # [doc = "- **netuids**: The netuids these weights were successfully set/committed for."] # [doc = "- **who**: The hotkey that set this batch."] pub struct BatchWeightsCompleted (pub batch_weights_completed :: Field0 , pub batch_weights_completed :: Field1 ,) ; pub mod batch_weights_completed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchWeightsCompleted { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BatchWeightsCompleted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A batch extrinsic completed but with some errors."] pub struct BatchCompletedWithErrors ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchCompletedWithErrors { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BatchCompletedWithErrors" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A weight set among a batch of weights failed."] # [doc = ""] # [doc = "- **error**: The dispatch error emitted by the failed item."] pub struct BatchWeightItemFailed (pub batch_weight_item_failed :: Field0 ,) ; pub mod batch_weight_item_failed { use super :: runtime_types ; pub type Field0 = runtime_types :: sp_runtime :: DispatchError ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchWeightItemFailed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BatchWeightItemFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Stake has been transferred from one coldkey to another on the same subnet."] # [doc = "Parameters:"] # [doc = "(origin_coldkey, destination_coldkey, hotkey, origin_netuid, destination_netuid, amount)"] pub struct StakeTransferred (pub stake_transferred :: Field0 , pub stake_transferred :: Field1 , pub stake_transferred :: Field2 , pub stake_transferred :: Field3 , pub stake_transferred :: Field4 , pub stake_transferred :: Field5 ,) ; pub mod stake_transferred { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field3 = :: core :: primitive :: u16 ; pub type Field4 = :: core :: primitive :: u16 ; pub type Field5 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakeTransferred { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "StakeTransferred" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Stake has been swapped from one subnet to another for the same coldkey-hotkey pair."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(coldkey, hotkey, origin_netuid, destination_netuid, amount)"] pub struct StakeSwapped (pub stake_swapped :: Field0 , pub stake_swapped :: Field1 , pub stake_swapped :: Field2 , pub stake_swapped :: Field3 , pub stake_swapped :: Field4 ,) ; pub mod stake_swapped { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u16 ; pub type Field3 = :: core :: primitive :: u16 ; pub type Field4 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakeSwapped { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "StakeSwapped" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event called when transfer is toggled on a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(netuid, bool)"] pub struct TransferToggle (pub transfer_toggle :: Field0 , pub transfer_toggle :: Field1 ,) ; pub mod transfer_toggle { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TransferToggle { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TransferToggle" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The owner hotkey for a subnet has been set."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(netuid, new_hotkey)"] pub struct SubnetOwnerHotkeySet (pub subnet_owner_hotkey_set :: Field0 , pub subnet_owner_hotkey_set :: Field1 ,) ; pub mod subnet_owner_hotkey_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetOwnerHotkeySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetOwnerHotkeySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "FirstEmissionBlockNumber is set via start call extrinsic"] # [doc = ""] # [doc = "Parameters:"] # [doc = "netuid"] # [doc = "block number"] pub struct FirstEmissionBlockNumberSet (pub first_emission_block_number_set :: Field0 , pub first_emission_block_number_set :: Field1 ,) ; pub mod first_emission_block_number_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for FirstEmissionBlockNumberSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "FirstEmissionBlockNumberSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Alpha has been recycled, reducing AlphaOut on a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(coldkey, hotkey, amount, subnet_id)"] pub struct AlphaRecycled (pub alpha_recycled :: Field0 , pub alpha_recycled :: Field1 , pub alpha_recycled :: Field2 , pub alpha_recycled :: Field3 ,) ; pub mod alpha_recycled { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u64 ; pub type Field3 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AlphaRecycled { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AlphaRecycled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Alpha have been burned without reducing AlphaOut."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(coldkey, hotkey, amount, subnet_id)"] pub struct AlphaBurned (pub alpha_burned :: Field0 , pub alpha_burned :: Field1 , pub alpha_burned :: Field2 , pub alpha_burned :: Field3 ,) ; pub mod alpha_burned { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u64 ; pub type Field3 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AlphaBurned { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AlphaBurned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An EVM key has been associated with a hotkey."] pub struct EvmKeyAssociated { pub netuid : evm_key_associated :: Netuid , pub hotkey : evm_key_associated :: Hotkey , pub evm_key : evm_key_associated :: EvmKey , pub block_associated : evm_key_associated :: BlockAssociated , } pub mod evm_key_associated { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type EvmKey = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type BlockAssociated = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for EvmKeyAssociated { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "EvmKeyAssociated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "CRV3 Weights have been successfully revealed."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **who**: The account ID of the user revealing the weights."] pub struct CRV3WeightsRevealed (pub crv3_weights_revealed :: Field0 , pub crv3_weights_revealed :: Field1 ,) ; pub mod crv3_weights_revealed { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CRV3WeightsRevealed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "CRV3WeightsRevealed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Commit-Reveal periods has been successfully set."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **periods**: The number of epochs before the reveal."] pub struct CommitRevealPeriodsSet (pub commit_reveal_periods_set :: Field0 , pub commit_reveal_periods_set :: Field1 ,) ; pub mod commit_reveal_periods_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CommitRevealPeriodsSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "CommitRevealPeriodsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Commit-Reveal has been successfully toggled."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **Enabled**: Is Commit-Reveal enabled."] pub struct CommitRevealEnabled (pub commit_reveal_enabled :: Field0 , pub commit_reveal_enabled :: Field1 ,) ; pub mod commit_reveal_enabled { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CommitRevealEnabled { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "CommitRevealEnabled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the hotkey is swapped"] pub struct HotkeySwappedOnSubnet { pub coldkey : hotkey_swapped_on_subnet :: Coldkey , pub old_hotkey : hotkey_swapped_on_subnet :: OldHotkey , pub new_hotkey : hotkey_swapped_on_subnet :: NewHotkey , pub netuid : hotkey_swapped_on_subnet :: Netuid , } pub mod hotkey_swapped_on_subnet { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type OldHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for HotkeySwappedOnSubnet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "HotkeySwappedOnSubnet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A subnet lease has been created."] pub struct SubnetLeaseCreated { pub beneficiary : subnet_lease_created :: Beneficiary , pub lease_id : subnet_lease_created :: LeaseId , pub netuid : subnet_lease_created :: Netuid , pub end_block : subnet_lease_created :: EndBlock , } pub mod subnet_lease_created { use super :: runtime_types ; pub type Beneficiary = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type LeaseId = :: core :: primitive :: u32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type EndBlock = :: core :: option :: Option < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetLeaseCreated { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetLeaseCreated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A subnet lease has been terminated."] pub struct SubnetLeaseTerminated { pub beneficiary : subnet_lease_terminated :: Beneficiary , pub netuid : subnet_lease_terminated :: Netuid , } pub mod subnet_lease_terminated { use super :: runtime_types ; pub type Beneficiary = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetLeaseTerminated { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetLeaseTerminated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The symbol for a subnet has been updated."] pub struct SymbolUpdated { pub netuid : symbol_updated :: Netuid , pub symbol : symbol_updated :: Symbol , } pub mod symbol_updated { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Symbol = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SymbolUpdated { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SymbolUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Commit Reveal Weights version has been updated."] # [doc = ""] # [doc = "- **version**: The required version."] pub struct CommitRevealVersionSet (pub commit_reveal_version_set :: Field0 ,) ; pub mod commit_reveal_version_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CommitRevealVersionSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "CommitRevealVersionSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Timelocked weights have been successfully committed."] # [doc = ""] # [doc = "- **who**: The account ID of the user committing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash representing the committed weights."] # [doc = "- **reveal_round**: The round at which weights can be revealed."] pub struct TimelockedWeightsCommitted (pub timelocked_weights_committed :: Field0 , pub timelocked_weights_committed :: Field1 , pub timelocked_weights_committed :: Field2 , pub timelocked_weights_committed :: Field3 ,) ; pub mod timelocked_weights_committed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Field3 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TimelockedWeightsCommitted { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TimelockedWeightsCommitted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Timelocked Weights have been successfully revealed."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **who**: The account ID of the user revealing the weights."] pub struct TimelockedWeightsRevealed (pub timelocked_weights_revealed :: Field0 , pub timelocked_weights_revealed :: Field1 ,) ; pub mod timelocked_weights_revealed { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TimelockedWeightsRevealed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TimelockedWeightsRevealed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Auto-staking hotkey received stake"] pub struct AutoStakeAdded { pub netuid : auto_stake_added :: Netuid , pub destination : auto_stake_added :: Destination , pub hotkey : auto_stake_added :: Hotkey , pub owner : auto_stake_added :: Owner , pub incentive : auto_stake_added :: Incentive , } pub mod auto_stake_added { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Destination = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Owner = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Incentive = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AutoStakeAdded { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AutoStakeAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "End-of-epoch miner incentive alpha by UID"] pub struct IncentiveAlphaEmittedToMiners { pub netuid : incentive_alpha_emitted_to_miners :: Netuid , pub emissions : incentive_alpha_emitted_to_miners :: Emissions , } pub mod incentive_alpha_emitted_to_miners { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Emissions = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IncentiveAlphaEmittedToMiners { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "IncentiveAlphaEmittedToMiners" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The minimum allowed UIDs for a subnet have been set."] pub struct MinAllowedUidsSet (pub min_allowed_uids_set :: Field0 , pub min_allowed_uids_set :: Field1 ,) ; pub mod min_allowed_uids_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinAllowedUidsSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinAllowedUidsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The auto stake destination has been set."] # [doc = ""] # [doc = "- **coldkey**: The account ID of the coldkey."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **hotkey**: The account ID of the hotkey."] pub struct AutoStakeDestinationSet { pub coldkey : auto_stake_destination_set :: Coldkey , pub netuid : auto_stake_destination_set :: Netuid , pub hotkey : auto_stake_destination_set :: Hotkey , } pub mod auto_stake_destination_set { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AutoStakeDestinationSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AutoStakeDestinationSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The minimum allowed non-Immune UIDs has been set."] pub struct MinNonImmuneUidsSet (pub min_non_immune_uids_set :: Field0 , pub min_non_immune_uids_set :: Field1 ,) ; pub mod min_non_immune_uids_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinNonImmuneUidsSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinNonImmuneUidsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Root emissions have been claimed for a coldkey on all subnets and hotkeys."] # [doc = "Parameters:"] # [doc = "(coldkey)"] pub struct RootClaimed { pub coldkey : root_claimed :: Coldkey , } pub mod root_claimed { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RootClaimed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "RootClaimed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Root claim type for a coldkey has been set."] # [doc = "Parameters:"] # [doc = "(coldkey, u8)"] pub struct RootClaimTypeSet { pub coldkey : root_claim_type_set :: Coldkey , pub root_claim_type : root_claim_type_set :: RootClaimType , } pub mod root_claim_type_set { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type RootClaimType = runtime_types :: pallet_subtensor :: pallet :: RootClaimTypeEnum ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RootClaimTypeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "RootClaimTypeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Subnet lease dividends have been distributed."] pub struct SubnetLeaseDividendsDistributed { pub lease_id : subnet_lease_dividends_distributed :: LeaseId , pub contributor : subnet_lease_dividends_distributed :: Contributor , pub alpha : subnet_lease_dividends_distributed :: Alpha , } pub mod subnet_lease_dividends_distributed { use super :: runtime_types ; pub type LeaseId = :: core :: primitive :: u32 ; pub type Contributor = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Alpha = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetLeaseDividendsDistributed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetLeaseDividendsDistributed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod min_activity_cutoff { use super :: runtime_types ; pub type MinActivityCutoff = :: core :: primitive :: u16 ; } pub mod admin_freeze_window { use super :: runtime_types ; pub type AdminFreezeWindow = :: core :: primitive :: u16 ; } pub mod owner_hyperparam_rate_limit { use super :: runtime_types ; pub type OwnerHyperparamRateLimit = :: core :: primitive :: u16 ; } pub mod coldkey_swap_schedule_duration { use super :: runtime_types ; pub type ColdkeySwapScheduleDuration = :: core :: primitive :: u32 ; } pub mod coldkey_swap_reschedule_duration { use super :: runtime_types ; pub type ColdkeySwapRescheduleDuration = :: core :: primitive :: u32 ; } pub mod dissolve_network_schedule_duration { use super :: runtime_types ; pub type DissolveNetworkScheduleDuration = :: core :: primitive :: u32 ; } pub mod last_hotkey_swap_on_netuid { use super :: runtime_types ; pub type LastHotkeySwapOnNetuid = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod next_stake_job_id { use super :: runtime_types ; pub type NextStakeJobId = :: core :: primitive :: u64 ; } pub mod tao_weight { use super :: runtime_types ; pub type TaoWeight = :: core :: primitive :: u64 ; } pub mod ck_burn { use super :: runtime_types ; pub type CkBurn = :: core :: primitive :: u64 ; } pub mod max_delegate_take { use super :: runtime_types ; pub type MaxDelegateTake = :: core :: primitive :: u16 ; } pub mod min_delegate_take { use super :: runtime_types ; pub type MinDelegateTake = :: core :: primitive :: u16 ; } pub mod max_childkey_take { use super :: runtime_types ; pub type MaxChildkeyTake = :: core :: primitive :: u16 ; } pub mod min_childkey_take { use super :: runtime_types ; pub type MinChildkeyTake = :: core :: primitive :: u16 ; } pub mod owner { use super :: runtime_types ; pub type Owner = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod delegates { use super :: runtime_types ; pub type Delegates = :: core :: primitive :: u16 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod childkey_take { use super :: runtime_types ; pub type ChildkeyTake = :: core :: primitive :: u16 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod pending_child_keys { use super :: runtime_types ; pub type PendingChildKeys = (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > , :: core :: primitive :: u64 ,) ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod child_keys { use super :: runtime_types ; pub type ChildKeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod parent_keys { use super :: runtime_types ; pub type ParentKeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod alpha_dividends_per_subnet { use super :: runtime_types ; pub type AlphaDividendsPerSubnet = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod root_alpha_dividends_per_subnet { use super :: runtime_types ; pub type RootAlphaDividendsPerSubnet = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod block_emission { use super :: runtime_types ; pub type BlockEmission = :: core :: primitive :: u64 ; } pub mod last_hotkey_emission_on_netuid { use super :: runtime_types ; pub type LastHotkeyEmissionOnNetuid = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod subnet_limit { use super :: runtime_types ; pub type SubnetLimit = :: core :: primitive :: u16 ; } pub mod total_issuance { use super :: runtime_types ; pub type TotalIssuance = :: core :: primitive :: u64 ; } pub mod total_stake { use super :: runtime_types ; pub type TotalStake = :: core :: primitive :: u64 ; } pub mod subnet_moving_alpha { use super :: runtime_types ; pub type SubnetMovingAlpha = runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; } pub mod subnet_moving_price { use super :: runtime_types ; pub type SubnetMovingPrice = runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod root_prop { use super :: runtime_types ; pub type RootProp = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_volume { use super :: runtime_types ; pub type SubnetVolume = :: core :: primitive :: u128 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_tao { use super :: runtime_types ; pub type SubnetTao = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_tao_provided { use super :: runtime_types ; pub type SubnetTaoProvided = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_alpha_in_emission { use super :: runtime_types ; pub type SubnetAlphaInEmission = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_alpha_out_emission { use super :: runtime_types ; pub type SubnetAlphaOutEmission = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_tao_in_emission { use super :: runtime_types ; pub type SubnetTaoInEmission = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_alpha_in { use super :: runtime_types ; pub type SubnetAlphaIn = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_alpha_in_provided { use super :: runtime_types ; pub type SubnetAlphaInProvided = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_alpha_out { use super :: runtime_types ; pub type SubnetAlphaOut = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod staking_hotkeys { use super :: runtime_types ; pub type StakingHotkeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod owned_hotkeys { use super :: runtime_types ; pub type OwnedHotkeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod auto_stake_destination { use super :: runtime_types ; pub type AutoStakeDestination = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod auto_stake_destination_coldkeys { use super :: runtime_types ; pub type AutoStakeDestinationColdkeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod coldkey_swap_scheduled { use super :: runtime_types ; pub type ColdkeySwapScheduled = (:: core :: primitive :: u32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod total_hotkey_alpha { use super :: runtime_types ; pub type TotalHotkeyAlpha = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod total_hotkey_alpha_last_epoch { use super :: runtime_types ; pub type TotalHotkeyAlphaLastEpoch = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod total_hotkey_shares { use super :: runtime_types ; pub type TotalHotkeyShares = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod alpha { use super :: runtime_types ; pub type Alpha = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param2 = :: core :: primitive :: u16 ; } pub mod alpha_map_last_key { use super :: runtime_types ; pub type AlphaMapLastKey = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; } pub mod token_symbol { use super :: runtime_types ; pub type TokenSymbol = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_tao_flow { use super :: runtime_types ; pub type SubnetTaoFlow = :: core :: primitive :: i64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_ema_tao_flow { use super :: runtime_types ; pub type SubnetEmaTaoFlow = (:: core :: primitive :: u64 , runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ,) ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod tao_flow_cutoff { use super :: runtime_types ; pub type TaoFlowCutoff = runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; } pub mod flow_norm_exponent { use super :: runtime_types ; pub type FlowNormExponent = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; } pub mod flow_ema_smoothing_factor { use super :: runtime_types ; pub type FlowEmaSmoothingFactor = :: core :: primitive :: u64 ; } pub mod used_work { use super :: runtime_types ; pub type UsedWork = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } pub mod max_registrations_per_block { use super :: runtime_types ; pub type MaxRegistrationsPerBlock = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod total_networks { use super :: runtime_types ; pub type TotalNetworks = :: core :: primitive :: u16 ; } pub mod network_immunity_period { use super :: runtime_types ; pub type NetworkImmunityPeriod = :: core :: primitive :: u64 ; } pub mod network_min_lock_cost { use super :: runtime_types ; pub type NetworkMinLockCost = :: core :: primitive :: u64 ; } pub mod network_last_lock_cost { use super :: runtime_types ; pub type NetworkLastLockCost = :: core :: primitive :: u64 ; } pub mod network_lock_reduction_interval { use super :: runtime_types ; pub type NetworkLockReductionInterval = :: core :: primitive :: u64 ; } pub mod subnet_owner_cut { use super :: runtime_types ; pub type SubnetOwnerCut = :: core :: primitive :: u16 ; } pub mod network_rate_limit { use super :: runtime_types ; pub type NetworkRateLimit = :: core :: primitive :: u64 ; } pub mod nominator_min_required_stake { use super :: runtime_types ; pub type NominatorMinRequiredStake = :: core :: primitive :: u64 ; } pub mod weights_version_key_rate_limit { use super :: runtime_types ; pub type WeightsVersionKeyRateLimit = :: core :: primitive :: u64 ; } pub mod last_rate_limited_block { use super :: runtime_types ; pub type LastRateLimitedBlock = :: core :: primitive :: u64 ; pub type Param0 = runtime_types :: pallet_subtensor :: RateLimitKey < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } pub mod transfer_toggle { use super :: runtime_types ; pub type TransferToggle = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_locked { use super :: runtime_types ; pub type SubnetLocked = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod largest_locked { use super :: runtime_types ; pub type LargestLocked = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod tempo { use super :: runtime_types ; pub type Tempo = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod first_emission_block_number { use super :: runtime_types ; pub type FirstEmissionBlockNumber = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_mechanism { use super :: runtime_types ; pub type SubnetMechanism = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnetwork_n { use super :: runtime_types ; pub type SubnetworkN = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod networks_added { use super :: runtime_types ; pub type NetworksAdded = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod is_network_member { use super :: runtime_types ; pub type IsNetworkMember = :: core :: primitive :: bool ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod network_registration_allowed { use super :: runtime_types ; pub type NetworkRegistrationAllowed = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod network_pow_registration_allowed { use super :: runtime_types ; pub type NetworkPowRegistrationAllowed = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod network_registered_at { use super :: runtime_types ; pub type NetworkRegisteredAt = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod pending_server_emission { use super :: runtime_types ; pub type PendingServerEmission = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod pending_validator_emission { use super :: runtime_types ; pub type PendingValidatorEmission = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod pending_root_alpha_divs { use super :: runtime_types ; pub type PendingRootAlphaDivs = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod pending_owner_cut { use super :: runtime_types ; pub type PendingOwnerCut = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod blocks_since_last_step { use super :: runtime_types ; pub type BlocksSinceLastStep = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod last_mechansim_step_block { use super :: runtime_types ; pub type LastMechansimStepBlock = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_owner { use super :: runtime_types ; pub type SubnetOwner = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_owner_hotkey { use super :: runtime_types ; pub type SubnetOwnerHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod recycle_or_burn { use super :: runtime_types ; pub type RecycleOrBurn = runtime_types :: pallet_subtensor :: pallet :: RecycleOrBurnEnum ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod serving_rate_limit { use super :: runtime_types ; pub type ServingRateLimit = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod rho { use super :: runtime_types ; pub type Rho = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod alpha_sigmoid_steepness { use super :: runtime_types ; pub type AlphaSigmoidSteepness = :: core :: primitive :: i16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod kappa { use super :: runtime_types ; pub type Kappa = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod registrations_this_interval { use super :: runtime_types ; pub type RegistrationsThisInterval = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod pow_registrations_this_interval { use super :: runtime_types ; pub type PowRegistrationsThisInterval = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod burn_registrations_this_interval { use super :: runtime_types ; pub type BurnRegistrationsThisInterval = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod min_allowed_uids { use super :: runtime_types ; pub type MinAllowedUids = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod max_allowed_uids { use super :: runtime_types ; pub type MaxAllowedUids = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod immunity_period { use super :: runtime_types ; pub type ImmunityPeriod = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod activity_cutoff { use super :: runtime_types ; pub type ActivityCutoff = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod max_weights_limit { use super :: runtime_types ; pub type MaxWeightsLimit = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod weights_version_key { use super :: runtime_types ; pub type WeightsVersionKey = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod min_allowed_weights { use super :: runtime_types ; pub type MinAllowedWeights = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod max_allowed_validators { use super :: runtime_types ; pub type MaxAllowedValidators = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod adjustment_interval { use super :: runtime_types ; pub type AdjustmentInterval = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod bonds_moving_average { use super :: runtime_types ; pub type BondsMovingAverage = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod bonds_penalty { use super :: runtime_types ; pub type BondsPenalty = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod bonds_reset_on { use super :: runtime_types ; pub type BondsResetOn = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod weights_set_rate_limit { use super :: runtime_types ; pub type WeightsSetRateLimit = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod validator_prune_len { use super :: runtime_types ; pub type ValidatorPruneLen = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod scaling_law_power { use super :: runtime_types ; pub type ScalingLawPower = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod target_registrations_per_interval { use super :: runtime_types ; pub type TargetRegistrationsPerInterval = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod adjustment_alpha { use super :: runtime_types ; pub type AdjustmentAlpha = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod commit_reveal_weights_enabled { use super :: runtime_types ; pub type CommitRevealWeightsEnabled = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod burn { use super :: runtime_types ; pub type Burn = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod difficulty { use super :: runtime_types ; pub type Difficulty = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod min_burn { use super :: runtime_types ; pub type MinBurn = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod max_burn { use super :: runtime_types ; pub type MaxBurn = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod min_difficulty { use super :: runtime_types ; pub type MinDifficulty = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod max_difficulty { use super :: runtime_types ; pub type MaxDifficulty = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod last_adjustment_block { use super :: runtime_types ; pub type LastAdjustmentBlock = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod registrations_this_block { use super :: runtime_types ; pub type RegistrationsThisBlock = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod ema_price_halving_blocks { use super :: runtime_types ; pub type EmaPriceHalvingBlocks = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod rao_recycled_for_registration { use super :: runtime_types ; pub type RaoRecycledForRegistration = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod tx_rate_limit { use super :: runtime_types ; pub type TxRateLimit = :: core :: primitive :: u64 ; } pub mod tx_delegate_take_rate_limit { use super :: runtime_types ; pub type TxDelegateTakeRateLimit = :: core :: primitive :: u64 ; } pub mod tx_childkey_take_rate_limit { use super :: runtime_types ; pub type TxChildkeyTakeRateLimit = :: core :: primitive :: u64 ; } pub mod liquid_alpha_on { use super :: runtime_types ; pub type LiquidAlphaOn = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod yuma3_on { use super :: runtime_types ; pub type Yuma3On = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod alpha_values { use super :: runtime_types ; pub type AlphaValues = (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subtoken_enabled { use super :: runtime_types ; pub type SubtokenEnabled = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod immune_owner_uids_limit { use super :: runtime_types ; pub type ImmuneOwnerUidsLimit = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod stake_weight { use super :: runtime_types ; pub type StakeWeight = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod uids { use super :: runtime_types ; pub type Uids = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod keys { use super :: runtime_types ; pub type Keys = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod loaded_emission { use super :: runtime_types ; pub type LoadedEmission = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u64 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod active { use super :: runtime_types ; pub type Active = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod rank { use super :: runtime_types ; pub type Rank = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod trust { use super :: runtime_types ; pub type Trust = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod consensus { use super :: runtime_types ; pub type Consensus = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod incentive { use super :: runtime_types ; pub type Incentive = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod dividends { use super :: runtime_types ; pub type Dividends = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod emission { use super :: runtime_types ; pub type Emission = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod last_update { use super :: runtime_types ; pub type LastUpdate = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod validator_trust { use super :: runtime_types ; pub type ValidatorTrust = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod pruning_scores { use super :: runtime_types ; pub type PruningScores = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod validator_permit { use super :: runtime_types ; pub type ValidatorPermit = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod weights { use super :: runtime_types ; pub type Weights = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod bonds { use super :: runtime_types ; pub type Bonds = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod block_at_registration { use super :: runtime_types ; pub type BlockAtRegistration = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod axons { use super :: runtime_types ; pub type Axons = runtime_types :: pallet_subtensor :: pallet :: AxonInfo ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod neuron_certificates { use super :: runtime_types ; pub type NeuronCertificates = runtime_types :: pallet_subtensor :: pallet :: NeuronCertificate ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod prometheus { use super :: runtime_types ; pub type Prometheus = runtime_types :: pallet_subtensor :: pallet :: PrometheusInfo ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod identities_v2 { use super :: runtime_types ; pub type IdentitiesV2 = runtime_types :: pallet_subtensor :: pallet :: ChainIdentityV2 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod subnet_identities_v3 { use super :: runtime_types ; pub type SubnetIdentitiesV3 = runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod transaction_key_last_block { use super :: runtime_types ; pub type TransactionKeyLastBlock = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; pub type Param2 = :: core :: primitive :: u16 ; } pub mod last_tx_block { use super :: runtime_types ; pub type LastTxBlock = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod last_tx_block_child_key_take { use super :: runtime_types ; pub type LastTxBlockChildKeyTake = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod last_tx_block_delegate_take { use super :: runtime_types ; pub type LastTxBlockDelegateTake = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod stake_threshold { use super :: runtime_types ; pub type StakeThreshold = :: core :: primitive :: u64 ; } pub mod weight_commits { use super :: runtime_types ; pub type WeightCommits = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u64 , :: core :: primitive :: u64 , :: core :: primitive :: u64 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod timelocked_weight_commits { use super :: runtime_types ; pub type TimelockedWeightCommits = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , :: core :: primitive :: u64 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u64 ; } pub mod crv3_weight_commits { use super :: runtime_types ; pub type Crv3WeightCommits = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , :: core :: primitive :: u64 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u64 ; } pub mod crv3_weight_commits_v2 { use super :: runtime_types ; pub type Crv3WeightCommitsV2 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , :: core :: primitive :: u64 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u64 ; } pub mod reveal_period_epochs { use super :: runtime_types ; pub type RevealPeriodEpochs = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod last_coldkey_hotkey_stake_block { use super :: runtime_types ; pub type LastColdkeyHotkeyStakeBlock = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod staking_operation_rate_limiter { use super :: runtime_types ; pub type StakingOperationRateLimiter = :: core :: primitive :: bool ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param2 = :: core :: primitive :: u16 ; } pub mod root_claimable_threshold { use super :: runtime_types ; pub type RootClaimableThreshold = runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod root_claimable { use super :: runtime_types ; pub type RootClaimable = :: subxt :: ext :: subxt_core :: utils :: KeyedVec < :: core :: primitive :: u16 , runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod root_claimed { use super :: runtime_types ; pub type RootClaimed = :: core :: primitive :: u128 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param2 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod root_claim_type { use super :: runtime_types ; pub type RootClaimType = runtime_types :: pallet_subtensor :: pallet :: RootClaimTypeEnum ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod staking_coldkeys_by_index { use super :: runtime_types ; pub type StakingColdkeysByIndex = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: core :: primitive :: u64 ; } pub mod staking_coldkeys { use super :: runtime_types ; pub type StakingColdkeys = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod num_staking_coldkeys { use super :: runtime_types ; pub type NumStakingColdkeys = :: core :: primitive :: u64 ; } pub mod num_root_claim { use super :: runtime_types ; pub type NumRootClaim = :: core :: primitive :: u64 ; } pub mod associated_evm_address { use super :: runtime_types ; pub type AssociatedEvmAddress = (:: subxt :: ext :: subxt_core :: utils :: H160 , :: core :: primitive :: u64 ,) ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod subnet_leases { use super :: runtime_types ; pub type SubnetLeases = runtime_types :: pallet_subtensor :: subnets :: leasing :: SubnetLease < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 , :: core :: primitive :: u64 > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod subnet_lease_shares { use super :: runtime_types ; pub type SubnetLeaseShares = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod subnet_uid_to_lease_id { use super :: runtime_types ; pub type SubnetUidToLeaseId = :: core :: primitive :: u32 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod next_subnet_lease_id { use super :: runtime_types ; pub type NextSubnetLeaseId = :: core :: primitive :: u32 ; } pub mod accumulated_lease_dividends { use super :: runtime_types ; pub type AccumulatedLeaseDividends = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod commit_reveal_weights_version { use super :: runtime_types ; pub type CommitRevealWeightsVersion = :: core :: primitive :: u16 ; } pub mod network_registration_start_block { use super :: runtime_types ; pub type NetworkRegistrationStartBlock = :: core :: primitive :: u64 ; } pub mod min_non_immune_uids { use super :: runtime_types ; pub type MinNonImmuneUids = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod mechanism_count_current { use super :: runtime_types ; pub type MechanismCountCurrent = :: core :: primitive :: u8 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod mechanism_emission_split { use super :: runtime_types ; pub type MechanismEmissionSplit = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod has_migration_run { use super :: runtime_types ; pub type HasMigrationRun = :: core :: primitive :: bool ; pub type Param0 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } pub mod pending_child_key_cooldown { use super :: runtime_types ; pub type PendingChildKeyCooldown = :: core :: primitive :: u64 ; } } pub struct StorageApi ; impl StorageApi { pub fn min_activity_cutoff (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_activity_cutoff :: MinActivityCutoff , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinActivityCutoff" , () , [21u8 , 123u8 , 162u8 , 205u8 , 232u8 , 171u8 , 55u8 , 152u8 , 86u8 , 37u8 , 65u8 , 186u8 , 63u8 , 248u8 , 155u8 , 234u8 , 244u8 , 180u8 , 236u8 , 101u8 , 64u8 , 232u8 , 43u8 , 181u8 , 36u8 , 18u8 , 30u8 , 120u8 , 210u8 , 183u8 , 4u8 , 82u8 ,]) } # [doc = " Global window (in blocks) at the end of each tempo where admin ops are disallowed"] pub fn admin_freeze_window (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: admin_freeze_window :: AdminFreezeWindow , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AdminFreezeWindow" , () , [151u8 , 97u8 , 132u8 , 224u8 , 168u8 , 58u8 , 155u8 , 55u8 , 253u8 , 209u8 , 114u8 , 83u8 , 132u8 , 130u8 , 22u8 , 28u8 , 84u8 , 157u8 , 133u8 , 238u8 , 70u8 , 240u8 , 4u8 , 61u8 , 115u8 , 55u8 , 141u8 , 8u8 , 14u8 , 77u8 , 18u8 , 25u8 ,]) } # [doc = " Global number of epochs used to rate limit subnet owner hyperparameter updates"] pub fn owner_hyperparam_rate_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: owner_hyperparam_rate_limit :: OwnerHyperparamRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "OwnerHyperparamRateLimit" , () , [248u8 , 49u8 , 158u8 , 212u8 , 44u8 , 238u8 , 239u8 , 34u8 , 176u8 , 110u8 , 65u8 , 49u8 , 63u8 , 249u8 , 37u8 , 255u8 , 163u8 , 176u8 , 170u8 , 84u8 , 31u8 , 200u8 , 247u8 , 152u8 , 32u8 , 178u8 , 152u8 , 96u8 , 80u8 , 21u8 , 137u8 , 220u8 ,]) } # [doc = " Duration of coldkey swap schedule before execution"] pub fn coldkey_swap_schedule_duration (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: coldkey_swap_schedule_duration :: ColdkeySwapScheduleDuration , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ColdkeySwapScheduleDuration" , () , [135u8 , 38u8 , 13u8 , 187u8 , 124u8 , 153u8 , 35u8 , 200u8 , 169u8 , 106u8 , 128u8 , 162u8 , 134u8 , 165u8 , 63u8 , 169u8 , 96u8 , 65u8 , 222u8 , 42u8 , 31u8 , 9u8 , 12u8 , 42u8 , 84u8 , 13u8 , 24u8 , 221u8 , 186u8 , 245u8 , 126u8 , 4u8 ,]) } # [doc = " Duration of coldkey swap reschedule before execution"] pub fn coldkey_swap_reschedule_duration (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: coldkey_swap_reschedule_duration :: ColdkeySwapRescheduleDuration , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ColdkeySwapRescheduleDuration" , () , [115u8 , 173u8 , 172u8 , 119u8 , 70u8 , 246u8 , 8u8 , 217u8 , 21u8 , 150u8 , 24u8 , 119u8 , 201u8 , 249u8 , 112u8 , 200u8 , 219u8 , 79u8 , 187u8 , 250u8 , 173u8 , 88u8 , 226u8 , 50u8 , 137u8 , 47u8 , 51u8 , 206u8 , 1u8 , 187u8 , 184u8 , 201u8 ,]) } # [doc = " Duration of dissolve network schedule before execution"] pub fn dissolve_network_schedule_duration (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: dissolve_network_schedule_duration :: DissolveNetworkScheduleDuration , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "DissolveNetworkScheduleDuration" , () , [211u8 , 28u8 , 73u8 , 53u8 , 21u8 , 221u8 , 68u8 , 103u8 , 73u8 , 81u8 , 235u8 , 185u8 , 185u8 , 120u8 , 64u8 , 149u8 , 189u8 , 49u8 , 250u8 , 173u8 , 74u8 , 31u8 , 228u8 , 139u8 , 187u8 , 6u8 , 77u8 , 242u8 , 15u8 , 41u8 , 184u8 , 27u8 ,]) } # [doc = " --- DMap ( netuid, coldkey ) --> blocknumber | last hotkey swap on network."] pub fn last_hotkey_swap_on_netuid_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_hotkey_swap_on_netuid :: LastHotkeySwapOnNetuid , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastHotkeySwapOnNetuid" , () , [114u8 , 241u8 , 130u8 , 146u8 , 97u8 , 174u8 , 213u8 , 147u8 , 4u8 , 68u8 , 221u8 , 219u8 , 136u8 , 199u8 , 62u8 , 69u8 , 243u8 , 208u8 , 101u8 , 234u8 , 95u8 , 167u8 , 30u8 , 154u8 , 6u8 , 185u8 , 75u8 , 247u8 , 49u8 , 102u8 , 10u8 , 130u8 ,]) } # [doc = " --- DMap ( netuid, coldkey ) --> blocknumber | last hotkey swap on network."] pub fn last_hotkey_swap_on_netuid_iter1 (& self , _0 : types :: last_hotkey_swap_on_netuid :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_hotkey_swap_on_netuid :: Param0 > , types :: last_hotkey_swap_on_netuid :: LastHotkeySwapOnNetuid , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastHotkeySwapOnNetuid" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [114u8 , 241u8 , 130u8 , 146u8 , 97u8 , 174u8 , 213u8 , 147u8 , 4u8 , 68u8 , 221u8 , 219u8 , 136u8 , 199u8 , 62u8 , 69u8 , 243u8 , 208u8 , 101u8 , 234u8 , 95u8 , 167u8 , 30u8 , 154u8 , 6u8 , 185u8 , 75u8 , 247u8 , 49u8 , 102u8 , 10u8 , 130u8 ,]) } # [doc = " --- DMap ( netuid, coldkey ) --> blocknumber | last hotkey swap on network."] pub fn last_hotkey_swap_on_netuid (& self , _0 : types :: last_hotkey_swap_on_netuid :: Param0 , _1 : types :: last_hotkey_swap_on_netuid :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_hotkey_swap_on_netuid :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_hotkey_swap_on_netuid :: Param1 > ,) , types :: last_hotkey_swap_on_netuid :: LastHotkeySwapOnNetuid , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastHotkeySwapOnNetuid" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [114u8 , 241u8 , 130u8 , 146u8 , 97u8 , 174u8 , 213u8 , 147u8 , 4u8 , 68u8 , 221u8 , 219u8 , 136u8 , 199u8 , 62u8 , 69u8 , 243u8 , 208u8 , 101u8 , 234u8 , 95u8 , 167u8 , 30u8 , 154u8 , 6u8 , 185u8 , 75u8 , 247u8 , 49u8 , 102u8 , 10u8 , 130u8 ,]) } # [doc = " Ensures unique IDs for StakeJobs storage map"] pub fn next_stake_job_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_stake_job_id :: NextStakeJobId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NextStakeJobId" , () , [204u8 , 249u8 , 198u8 , 215u8 , 96u8 , 117u8 , 180u8 , 208u8 , 179u8 , 132u8 , 75u8 , 66u8 , 248u8 , 86u8 , 158u8 , 79u8 , 214u8 , 117u8 , 165u8 , 204u8 , 49u8 , 87u8 , 250u8 , 242u8 , 242u8 , 151u8 , 41u8 , 28u8 , 200u8 , 47u8 , 30u8 , 223u8 ,]) } # [doc = " ============================"] # [doc = " ==== Staking Variables ===="] # [doc = " ============================"] # [doc = " The Subtensor [`TotalIssuance`] represents the total issuance of tokens on the Bittensor network."] # [doc = ""] # [doc = " It is comprised of three parts:"] # [doc = " - The total amount of issued tokens, tracked in the TotalIssuance of the Balances pallet"] # [doc = " - The total amount of tokens staked in the system, tracked in [`TotalStake`]"] # [doc = " - The total amount of tokens locked up for subnet reg, tracked in [`TotalSubnetLocked`] attained by iterating over subnet lock."] # [doc = ""] # [doc = " Eventually, Bittensor should migrate to using Holds afterwhich time we will not require this"] # [doc = " separate accounting."] # [doc = " --- ITEM --> Global weight"] pub fn tao_weight (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tao_weight :: TaoWeight , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TaoWeight" , () , [199u8 , 31u8 , 192u8 , 20u8 , 182u8 , 250u8 , 81u8 , 63u8 , 167u8 , 58u8 , 238u8 , 35u8 , 220u8 , 52u8 , 52u8 , 197u8 , 121u8 , 156u8 , 186u8 , 251u8 , 209u8 , 84u8 , 217u8 , 107u8 , 239u8 , 100u8 , 188u8 , 234u8 , 22u8 , 119u8 , 226u8 , 47u8 ,]) } # [doc = " --- ITEM --> CK burn"] pub fn ck_burn (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: ck_burn :: CkBurn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CKBurn" , () , [193u8 , 71u8 , 203u8 , 37u8 , 183u8 , 175u8 , 55u8 , 94u8 , 76u8 , 64u8 , 158u8 , 64u8 , 26u8 , 31u8 , 179u8 , 64u8 , 238u8 , 35u8 , 244u8 , 50u8 , 107u8 , 105u8 , 98u8 , 33u8 , 247u8 , 148u8 , 119u8 , 34u8 , 215u8 , 48u8 , 50u8 , 114u8 ,]) } # [doc = " --- ITEM ( default_delegate_take )"] pub fn max_delegate_take (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_delegate_take :: MaxDelegateTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxDelegateTake" , () , [140u8 , 164u8 , 254u8 , 107u8 , 142u8 , 50u8 , 152u8 , 230u8 , 173u8 , 9u8 , 98u8 , 65u8 , 238u8 , 216u8 , 232u8 , 162u8 , 68u8 , 74u8 , 9u8 , 88u8 , 99u8 , 40u8 , 69u8 , 238u8 , 60u8 , 137u8 , 184u8 , 169u8 , 173u8 , 29u8 , 203u8 , 190u8 ,]) } # [doc = " --- ITEM ( min_delegate_take )"] pub fn min_delegate_take (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_delegate_take :: MinDelegateTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinDelegateTake" , () , [253u8 , 210u8 , 73u8 , 231u8 , 97u8 , 29u8 , 51u8 , 11u8 , 3u8 , 233u8 , 117u8 , 175u8 , 223u8 , 31u8 , 81u8 , 246u8 , 186u8 , 58u8 , 255u8 , 62u8 , 65u8 , 236u8 , 204u8 , 200u8 , 42u8 , 125u8 , 127u8 , 209u8 , 113u8 , 241u8 , 165u8 , 234u8 ,]) } # [doc = " --- ITEM ( default_childkey_take )"] pub fn max_childkey_take (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_childkey_take :: MaxChildkeyTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxChildkeyTake" , () , [232u8 , 205u8 , 201u8 , 56u8 , 228u8 , 129u8 , 26u8 , 148u8 , 26u8 , 152u8 , 98u8 , 38u8 , 249u8 , 185u8 , 100u8 , 185u8 , 221u8 , 16u8 , 150u8 , 192u8 , 48u8 , 103u8 , 29u8 , 183u8 , 241u8 , 152u8 , 234u8 , 210u8 , 179u8 , 100u8 , 213u8 , 108u8 ,]) } # [doc = " --- ITEM ( min_childkey_take )"] pub fn min_childkey_take (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_childkey_take :: MinChildkeyTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinChildkeyTake" , () , [34u8 , 107u8 , 136u8 , 127u8 , 157u8 , 247u8 , 199u8 , 54u8 , 84u8 , 226u8 , 206u8 , 246u8 , 19u8 , 95u8 , 3u8 , 152u8 , 190u8 , 207u8 , 171u8 , 143u8 , 224u8 , 125u8 , 113u8 , 50u8 , 201u8 , 229u8 , 144u8 , 172u8 , 64u8 , 182u8 , 228u8 , 107u8 ,]) } # [doc = " MAP ( hot ) --> cold | Returns the controlling coldkey for a hotkey"] pub fn owner_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: owner :: Owner , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Owner" , () , [42u8 , 187u8 , 183u8 , 236u8 , 168u8 , 211u8 , 164u8 , 206u8 , 104u8 , 89u8 , 156u8 , 12u8 , 1u8 , 65u8 , 130u8 , 16u8 , 104u8 , 229u8 , 168u8 , 245u8 , 123u8 , 31u8 , 228u8 , 72u8 , 122u8 , 14u8 , 38u8 , 188u8 , 45u8 , 35u8 , 16u8 , 132u8 ,]) } # [doc = " MAP ( hot ) --> cold | Returns the controlling coldkey for a hotkey"] pub fn owner (& self , _0 : types :: owner :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: owner :: Param0 > , types :: owner :: Owner , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Owner" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [42u8 , 187u8 , 183u8 , 236u8 , 168u8 , 211u8 , 164u8 , 206u8 , 104u8 , 89u8 , 156u8 , 12u8 , 1u8 , 65u8 , 130u8 , 16u8 , 104u8 , 229u8 , 168u8 , 245u8 , 123u8 , 31u8 , 228u8 , 72u8 , 122u8 , 14u8 , 38u8 , 188u8 , 45u8 , 35u8 , 16u8 , 132u8 ,]) } # [doc = " MAP ( hot ) --> take | Returns the hotkey delegation take. And signals that this key is open for delegation"] pub fn delegates_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: delegates :: Delegates , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Delegates" , () , [44u8 , 10u8 , 104u8 , 255u8 , 105u8 , 110u8 , 131u8 , 174u8 , 247u8 , 100u8 , 165u8 , 220u8 , 198u8 , 71u8 , 212u8 , 83u8 , 238u8 , 109u8 , 61u8 , 53u8 , 175u8 , 29u8 , 233u8 , 38u8 , 56u8 , 76u8 , 41u8 , 207u8 , 169u8 , 70u8 , 141u8 , 251u8 ,]) } # [doc = " MAP ( hot ) --> take | Returns the hotkey delegation take. And signals that this key is open for delegation"] pub fn delegates (& self , _0 : types :: delegates :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: delegates :: Param0 > , types :: delegates :: Delegates , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Delegates" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [44u8 , 10u8 , 104u8 , 255u8 , 105u8 , 110u8 , 131u8 , 174u8 , 247u8 , 100u8 , 165u8 , 220u8 , 198u8 , 71u8 , 212u8 , 83u8 , 238u8 , 109u8 , 61u8 , 53u8 , 175u8 , 29u8 , 233u8 , 38u8 , 56u8 , 76u8 , 41u8 , 207u8 , 169u8 , 70u8 , 141u8 , 251u8 ,]) } # [doc = " DMAP ( hot, netuid ) --> take | Returns the hotkey childkey take for a specific subnet"] pub fn childkey_take_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: childkey_take :: ChildkeyTake , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ChildkeyTake" , () , [130u8 , 71u8 , 111u8 , 167u8 , 104u8 , 2u8 , 244u8 , 86u8 , 145u8 , 164u8 , 235u8 , 205u8 , 163u8 , 63u8 , 188u8 , 204u8 , 147u8 , 179u8 , 72u8 , 153u8 , 247u8 , 116u8 , 17u8 , 228u8 , 121u8 , 77u8 , 172u8 , 133u8 , 164u8 , 248u8 , 158u8 , 54u8 ,]) } # [doc = " DMAP ( hot, netuid ) --> take | Returns the hotkey childkey take for a specific subnet"] pub fn childkey_take_iter1 (& self , _0 : types :: childkey_take :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: childkey_take :: Param0 > , types :: childkey_take :: ChildkeyTake , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ChildkeyTake" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [130u8 , 71u8 , 111u8 , 167u8 , 104u8 , 2u8 , 244u8 , 86u8 , 145u8 , 164u8 , 235u8 , 205u8 , 163u8 , 63u8 , 188u8 , 204u8 , 147u8 , 179u8 , 72u8 , 153u8 , 247u8 , 116u8 , 17u8 , 228u8 , 121u8 , 77u8 , 172u8 , 133u8 , 164u8 , 248u8 , 158u8 , 54u8 ,]) } # [doc = " DMAP ( hot, netuid ) --> take | Returns the hotkey childkey take for a specific subnet"] pub fn childkey_take (& self , _0 : types :: childkey_take :: Param0 , _1 : types :: childkey_take :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: childkey_take :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: childkey_take :: Param1 > ,) , types :: childkey_take :: ChildkeyTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ChildkeyTake" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [130u8 , 71u8 , 111u8 , 167u8 , 104u8 , 2u8 , 244u8 , 86u8 , 145u8 , 164u8 , 235u8 , 205u8 , 163u8 , 63u8 , 188u8 , 204u8 , 147u8 , 179u8 , 72u8 , 153u8 , 247u8 , 116u8 , 17u8 , 228u8 , 121u8 , 77u8 , 172u8 , 133u8 , 164u8 , 248u8 , 158u8 , 54u8 ,]) } # [doc = " DMAP ( netuid, parent ) --> (Vec<(proportion,child)>, cool_down_block)"] pub fn pending_child_keys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_child_keys :: PendingChildKeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingChildKeys" , () , [144u8 , 247u8 , 102u8 , 71u8 , 226u8 , 120u8 , 229u8 , 68u8 , 86u8 , 204u8 , 239u8 , 66u8 , 53u8 , 93u8 , 152u8 , 88u8 , 94u8 , 132u8 , 131u8 , 112u8 , 137u8 , 189u8 , 180u8 , 191u8 , 98u8 , 119u8 , 135u8 , 244u8 , 60u8 , 153u8 , 127u8 , 233u8 ,]) } # [doc = " DMAP ( netuid, parent ) --> (Vec<(proportion,child)>, cool_down_block)"] pub fn pending_child_keys_iter1 (& self , _0 : types :: pending_child_keys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_child_keys :: Param0 > , types :: pending_child_keys :: PendingChildKeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingChildKeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [144u8 , 247u8 , 102u8 , 71u8 , 226u8 , 120u8 , 229u8 , 68u8 , 86u8 , 204u8 , 239u8 , 66u8 , 53u8 , 93u8 , 152u8 , 88u8 , 94u8 , 132u8 , 131u8 , 112u8 , 137u8 , 189u8 , 180u8 , 191u8 , 98u8 , 119u8 , 135u8 , 244u8 , 60u8 , 153u8 , 127u8 , 233u8 ,]) } # [doc = " DMAP ( netuid, parent ) --> (Vec<(proportion,child)>, cool_down_block)"] pub fn pending_child_keys (& self , _0 : types :: pending_child_keys :: Param0 , _1 : types :: pending_child_keys :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_child_keys :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_child_keys :: Param1 > ,) , types :: pending_child_keys :: PendingChildKeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingChildKeys" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [144u8 , 247u8 , 102u8 , 71u8 , 226u8 , 120u8 , 229u8 , 68u8 , 86u8 , 204u8 , 239u8 , 66u8 , 53u8 , 93u8 , 152u8 , 88u8 , 94u8 , 132u8 , 131u8 , 112u8 , 137u8 , 189u8 , 180u8 , 191u8 , 98u8 , 119u8 , 135u8 , 244u8 , 60u8 , 153u8 , 127u8 , 233u8 ,]) } # [doc = " DMAP ( parent, netuid ) --> Vec<(proportion,child)>"] pub fn child_keys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: child_keys :: ChildKeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ChildKeys" , () , [249u8 , 196u8 , 42u8 , 188u8 , 225u8 , 115u8 , 85u8 , 228u8 , 212u8 , 248u8 , 101u8 , 244u8 , 223u8 , 151u8 , 219u8 , 128u8 , 204u8 , 176u8 , 52u8 , 61u8 , 59u8 , 213u8 , 97u8 , 8u8 , 237u8 , 228u8 , 39u8 , 11u8 , 109u8 , 141u8 , 67u8 , 46u8 ,]) } # [doc = " DMAP ( parent, netuid ) --> Vec<(proportion,child)>"] pub fn child_keys_iter1 (& self , _0 : types :: child_keys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: child_keys :: Param0 > , types :: child_keys :: ChildKeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ChildKeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [249u8 , 196u8 , 42u8 , 188u8 , 225u8 , 115u8 , 85u8 , 228u8 , 212u8 , 248u8 , 101u8 , 244u8 , 223u8 , 151u8 , 219u8 , 128u8 , 204u8 , 176u8 , 52u8 , 61u8 , 59u8 , 213u8 , 97u8 , 8u8 , 237u8 , 228u8 , 39u8 , 11u8 , 109u8 , 141u8 , 67u8 , 46u8 ,]) } # [doc = " DMAP ( parent, netuid ) --> Vec<(proportion,child)>"] pub fn child_keys (& self , _0 : types :: child_keys :: Param0 , _1 : types :: child_keys :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: child_keys :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: child_keys :: Param1 > ,) , types :: child_keys :: ChildKeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ChildKeys" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [249u8 , 196u8 , 42u8 , 188u8 , 225u8 , 115u8 , 85u8 , 228u8 , 212u8 , 248u8 , 101u8 , 244u8 , 223u8 , 151u8 , 219u8 , 128u8 , 204u8 , 176u8 , 52u8 , 61u8 , 59u8 , 213u8 , 97u8 , 8u8 , 237u8 , 228u8 , 39u8 , 11u8 , 109u8 , 141u8 , 67u8 , 46u8 ,]) } # [doc = " DMAP ( child, netuid ) --> Vec<(proportion,parent)>"] pub fn parent_keys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: parent_keys :: ParentKeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ParentKeys" , () , [37u8 , 132u8 , 47u8 , 160u8 , 174u8 , 62u8 , 94u8 , 18u8 , 202u8 , 134u8 , 247u8 , 75u8 , 69u8 , 168u8 , 234u8 , 174u8 , 184u8 , 81u8 , 240u8 , 141u8 , 155u8 , 158u8 , 120u8 , 153u8 , 121u8 , 49u8 , 217u8 , 208u8 , 136u8 , 15u8 , 98u8 , 246u8 ,]) } # [doc = " DMAP ( child, netuid ) --> Vec<(proportion,parent)>"] pub fn parent_keys_iter1 (& self , _0 : types :: parent_keys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: parent_keys :: Param0 > , types :: parent_keys :: ParentKeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ParentKeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [37u8 , 132u8 , 47u8 , 160u8 , 174u8 , 62u8 , 94u8 , 18u8 , 202u8 , 134u8 , 247u8 , 75u8 , 69u8 , 168u8 , 234u8 , 174u8 , 184u8 , 81u8 , 240u8 , 141u8 , 155u8 , 158u8 , 120u8 , 153u8 , 121u8 , 49u8 , 217u8 , 208u8 , 136u8 , 15u8 , 98u8 , 246u8 ,]) } # [doc = " DMAP ( child, netuid ) --> Vec<(proportion,parent)>"] pub fn parent_keys (& self , _0 : types :: parent_keys :: Param0 , _1 : types :: parent_keys :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: parent_keys :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: parent_keys :: Param1 > ,) , types :: parent_keys :: ParentKeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ParentKeys" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [37u8 , 132u8 , 47u8 , 160u8 , 174u8 , 62u8 , 94u8 , 18u8 , 202u8 , 134u8 , 247u8 , 75u8 , 69u8 , 168u8 , 234u8 , 174u8 , 184u8 , 81u8 , 240u8 , 141u8 , 155u8 , 158u8 , 120u8 , 153u8 , 121u8 , 49u8 , 217u8 , 208u8 , 136u8 , 15u8 , 98u8 , 246u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> u64 | Last alpha dividend this hotkey got on tempo."] pub fn alpha_dividends_per_subnet_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: alpha_dividends_per_subnet :: AlphaDividendsPerSubnet , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaDividendsPerSubnet" , () , [210u8 , 6u8 , 9u8 , 98u8 , 110u8 , 11u8 , 51u8 , 135u8 , 221u8 , 25u8 , 71u8 , 247u8 , 215u8 , 101u8 , 78u8 , 209u8 , 205u8 , 108u8 , 219u8 , 96u8 , 242u8 , 175u8 , 213u8 , 210u8 , 247u8 , 198u8 , 175u8 , 26u8 , 92u8 , 146u8 , 74u8 , 32u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> u64 | Last alpha dividend this hotkey got on tempo."] pub fn alpha_dividends_per_subnet_iter1 (& self , _0 : types :: alpha_dividends_per_subnet :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha_dividends_per_subnet :: Param0 > , types :: alpha_dividends_per_subnet :: AlphaDividendsPerSubnet , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaDividendsPerSubnet" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [210u8 , 6u8 , 9u8 , 98u8 , 110u8 , 11u8 , 51u8 , 135u8 , 221u8 , 25u8 , 71u8 , 247u8 , 215u8 , 101u8 , 78u8 , 209u8 , 205u8 , 108u8 , 219u8 , 96u8 , 242u8 , 175u8 , 213u8 , 210u8 , 247u8 , 198u8 , 175u8 , 26u8 , 92u8 , 146u8 , 74u8 , 32u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> u64 | Last alpha dividend this hotkey got on tempo."] pub fn alpha_dividends_per_subnet (& self , _0 : types :: alpha_dividends_per_subnet :: Param0 , _1 : types :: alpha_dividends_per_subnet :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha_dividends_per_subnet :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha_dividends_per_subnet :: Param1 > ,) , types :: alpha_dividends_per_subnet :: AlphaDividendsPerSubnet , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaDividendsPerSubnet" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [210u8 , 6u8 , 9u8 , 98u8 , 110u8 , 11u8 , 51u8 , 135u8 , 221u8 , 25u8 , 71u8 , 247u8 , 215u8 , 101u8 , 78u8 , 209u8 , 205u8 , 108u8 , 219u8 , 96u8 , 242u8 , 175u8 , 213u8 , 210u8 , 247u8 , 198u8 , 175u8 , 26u8 , 92u8 , 146u8 , 74u8 , 32u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> u64 | Last root alpha dividend this hotkey got on tempo."] pub fn root_alpha_dividends_per_subnet_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_alpha_dividends_per_subnet :: RootAlphaDividendsPerSubnet , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootAlphaDividendsPerSubnet" , () , [82u8 , 141u8 , 222u8 , 187u8 , 70u8 , 88u8 , 237u8 , 226u8 , 242u8 , 31u8 , 124u8 , 207u8 , 223u8 , 121u8 , 42u8 , 34u8 , 90u8 , 111u8 , 73u8 , 67u8 , 1u8 , 20u8 , 187u8 , 226u8 , 251u8 , 138u8 , 129u8 , 179u8 , 163u8 , 29u8 , 163u8 , 157u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> u64 | Last root alpha dividend this hotkey got on tempo."] pub fn root_alpha_dividends_per_subnet_iter1 (& self , _0 : types :: root_alpha_dividends_per_subnet :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_alpha_dividends_per_subnet :: Param0 > , types :: root_alpha_dividends_per_subnet :: RootAlphaDividendsPerSubnet , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootAlphaDividendsPerSubnet" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [82u8 , 141u8 , 222u8 , 187u8 , 70u8 , 88u8 , 237u8 , 226u8 , 242u8 , 31u8 , 124u8 , 207u8 , 223u8 , 121u8 , 42u8 , 34u8 , 90u8 , 111u8 , 73u8 , 67u8 , 1u8 , 20u8 , 187u8 , 226u8 , 251u8 , 138u8 , 129u8 , 179u8 , 163u8 , 29u8 , 163u8 , 157u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> u64 | Last root alpha dividend this hotkey got on tempo."] pub fn root_alpha_dividends_per_subnet (& self , _0 : types :: root_alpha_dividends_per_subnet :: Param0 , _1 : types :: root_alpha_dividends_per_subnet :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_alpha_dividends_per_subnet :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_alpha_dividends_per_subnet :: Param1 > ,) , types :: root_alpha_dividends_per_subnet :: RootAlphaDividendsPerSubnet , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootAlphaDividendsPerSubnet" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [82u8 , 141u8 , 222u8 , 187u8 , 70u8 , 88u8 , 237u8 , 226u8 , 242u8 , 31u8 , 124u8 , 207u8 , 223u8 , 121u8 , 42u8 , 34u8 , 90u8 , 111u8 , 73u8 , 67u8 , 1u8 , 20u8 , 187u8 , 226u8 , 251u8 , 138u8 , 129u8 , 179u8 , 163u8 , 29u8 , 163u8 , 157u8 ,]) } # [doc = " =================="] # [doc = " ==== Coinbase ===="] # [doc = " =================="] # [doc = " --- ITEM ( global_block_emission )    "] pub fn block_emission (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: block_emission :: BlockEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BlockEmission" , () , [223u8 , 151u8 , 249u8 , 123u8 , 202u8 , 93u8 , 99u8 , 232u8 , 117u8 , 221u8 , 57u8 , 50u8 , 104u8 , 65u8 , 167u8 , 199u8 , 188u8 , 167u8 , 146u8 , 32u8 , 97u8 , 156u8 , 192u8 , 88u8 , 82u8 , 228u8 , 88u8 , 171u8 , 139u8 , 207u8 , 28u8 , 183u8 ,]) } # [doc = " --- DMap ( hot, netuid ) --> emission | last hotkey emission on network."] pub fn last_hotkey_emission_on_netuid_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_hotkey_emission_on_netuid :: LastHotkeyEmissionOnNetuid , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastHotkeyEmissionOnNetuid" , () , [131u8 , 226u8 , 245u8 , 210u8 , 142u8 , 247u8 , 179u8 , 221u8 , 115u8 , 205u8 , 126u8 , 254u8 , 103u8 , 117u8 , 248u8 , 204u8 , 59u8 , 200u8 , 35u8 , 106u8 , 57u8 , 88u8 , 7u8 , 82u8 , 142u8 , 144u8 , 128u8 , 43u8 , 205u8 , 29u8 , 130u8 , 14u8 ,]) } # [doc = " --- DMap ( hot, netuid ) --> emission | last hotkey emission on network."] pub fn last_hotkey_emission_on_netuid_iter1 (& self , _0 : types :: last_hotkey_emission_on_netuid :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_hotkey_emission_on_netuid :: Param0 > , types :: last_hotkey_emission_on_netuid :: LastHotkeyEmissionOnNetuid , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastHotkeyEmissionOnNetuid" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [131u8 , 226u8 , 245u8 , 210u8 , 142u8 , 247u8 , 179u8 , 221u8 , 115u8 , 205u8 , 126u8 , 254u8 , 103u8 , 117u8 , 248u8 , 204u8 , 59u8 , 200u8 , 35u8 , 106u8 , 57u8 , 88u8 , 7u8 , 82u8 , 142u8 , 144u8 , 128u8 , 43u8 , 205u8 , 29u8 , 130u8 , 14u8 ,]) } # [doc = " --- DMap ( hot, netuid ) --> emission | last hotkey emission on network."] pub fn last_hotkey_emission_on_netuid (& self , _0 : types :: last_hotkey_emission_on_netuid :: Param0 , _1 : types :: last_hotkey_emission_on_netuid :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_hotkey_emission_on_netuid :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_hotkey_emission_on_netuid :: Param1 > ,) , types :: last_hotkey_emission_on_netuid :: LastHotkeyEmissionOnNetuid , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastHotkeyEmissionOnNetuid" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [131u8 , 226u8 , 245u8 , 210u8 , 142u8 , 247u8 , 179u8 , 221u8 , 115u8 , 205u8 , 126u8 , 254u8 , 103u8 , 117u8 , 248u8 , 204u8 , 59u8 , 200u8 , 35u8 , 106u8 , 57u8 , 88u8 , 7u8 , 82u8 , 142u8 , 144u8 , 128u8 , 43u8 , 205u8 , 29u8 , 130u8 , 14u8 ,]) } # [doc = " =========================="] # [doc = " ==== Staking Counters ===="] # [doc = " =========================="] # [doc = " The Subtensor [`TotalIssuance`] represents the total issuance of tokens on the Bittensor network."] # [doc = ""] # [doc = " It is comprised of three parts:"] # [doc = " - The total amount of issued tokens, tracked in the TotalIssuance of the Balances pallet"] # [doc = " - The total amount of tokens staked in the system, tracked in [`TotalStake`]"] # [doc = " - The total amount of tokens locked up for subnet reg, tracked in [`TotalSubnetLocked`] attained by iterating over subnet lock."] # [doc = ""] # [doc = " Eventually, Bittensor should migrate to using Holds afterwhich time we will not require this"] # [doc = " separate accounting."] # [doc = " --- ITEM ( maximum_number_of_networks )"] pub fn subnet_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_limit :: SubnetLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLimit" , () , [22u8 , 164u8 , 10u8 , 77u8 , 181u8 , 52u8 , 200u8 , 11u8 , 157u8 , 77u8 , 240u8 , 211u8 , 205u8 , 0u8 , 64u8 , 7u8 , 208u8 , 135u8 , 210u8 , 184u8 , 50u8 , 1u8 , 32u8 , 58u8 , 134u8 , 44u8 , 51u8 , 123u8 , 173u8 , 156u8 , 170u8 , 208u8 ,]) } # [doc = " --- ITEM ( total_issuance )"] pub fn total_issuance (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_issuance :: TotalIssuance , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalIssuance" , () , [157u8 , 166u8 , 49u8 , 95u8 , 245u8 , 38u8 , 96u8 , 83u8 , 23u8 , 203u8 , 246u8 , 208u8 , 251u8 , 175u8 , 40u8 , 92u8 , 163u8 , 112u8 , 43u8 , 190u8 , 14u8 , 128u8 , 45u8 , 22u8 , 157u8 , 205u8 , 181u8 , 84u8 , 79u8 , 132u8 , 160u8 , 149u8 ,]) } # [doc = " --- ITEM ( total_stake )"] pub fn total_stake (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_stake :: TotalStake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalStake" , () , [179u8 , 22u8 , 207u8 , 201u8 , 118u8 , 12u8 , 198u8 , 201u8 , 2u8 , 169u8 , 161u8 , 226u8 , 10u8 , 93u8 , 135u8 , 70u8 , 46u8 , 220u8 , 50u8 , 228u8 , 18u8 , 135u8 , 64u8 , 233u8 , 77u8 , 95u8 , 159u8 , 199u8 , 8u8 , 47u8 , 0u8 , 60u8 ,]) } # [doc = " --- ITEM ( moving_alpha ) -- subnet moving alpha.         "] pub fn subnet_moving_alpha (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_moving_alpha :: SubnetMovingAlpha , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetMovingAlpha" , () , [191u8 , 101u8 , 37u8 , 183u8 , 137u8 , 18u8 , 53u8 , 59u8 , 83u8 , 202u8 , 128u8 , 13u8 , 53u8 , 163u8 , 152u8 , 27u8 , 174u8 , 80u8 , 220u8 , 120u8 , 142u8 , 147u8 , 224u8 , 230u8 , 148u8 , 112u8 , 54u8 , 23u8 , 2u8 , 200u8 , 70u8 , 179u8 ,]) } # [doc = " --- MAP ( netuid ) --> moving_price | The subnet moving price."] pub fn subnet_moving_price_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_moving_price :: SubnetMovingPrice , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetMovingPrice" , () , [96u8 , 223u8 , 194u8 , 165u8 , 135u8 , 39u8 , 252u8 , 186u8 , 143u8 , 154u8 , 228u8 , 184u8 , 163u8 , 187u8 , 56u8 , 30u8 , 94u8 , 174u8 , 255u8 , 36u8 , 169u8 , 74u8 , 186u8 , 196u8 , 64u8 , 68u8 , 75u8 , 191u8 , 99u8 , 138u8 , 237u8 , 149u8 ,]) } # [doc = " --- MAP ( netuid ) --> moving_price | The subnet moving price."] pub fn subnet_moving_price (& self , _0 : types :: subnet_moving_price :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_moving_price :: Param0 > , types :: subnet_moving_price :: SubnetMovingPrice , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetMovingPrice" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [96u8 , 223u8 , 194u8 , 165u8 , 135u8 , 39u8 , 252u8 , 186u8 , 143u8 , 154u8 , 228u8 , 184u8 , 163u8 , 187u8 , 56u8 , 30u8 , 94u8 , 174u8 , 255u8 , 36u8 , 169u8 , 74u8 , 186u8 , 196u8 , 64u8 , 68u8 , 75u8 , 191u8 , 99u8 , 138u8 , 237u8 , 149u8 ,]) } # [doc = " --- MAP ( netuid ) --> root_prop | The subnet root proportion."] pub fn root_prop_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_prop :: RootProp , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootProp" , () , [239u8 , 31u8 , 103u8 , 167u8 , 159u8 , 124u8 , 160u8 , 20u8 , 228u8 , 225u8 , 232u8 , 221u8 , 91u8 , 199u8 , 152u8 , 66u8 , 238u8 , 113u8 , 189u8 , 149u8 , 232u8 , 63u8 , 134u8 , 2u8 , 231u8 , 128u8 , 2u8 , 31u8 , 1u8 , 66u8 , 181u8 , 160u8 ,]) } # [doc = " --- MAP ( netuid ) --> root_prop | The subnet root proportion."] pub fn root_prop (& self , _0 : types :: root_prop :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_prop :: Param0 > , types :: root_prop :: RootProp , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootProp" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [239u8 , 31u8 , 103u8 , 167u8 , 159u8 , 124u8 , 160u8 , 20u8 , 228u8 , 225u8 , 232u8 , 221u8 , 91u8 , 199u8 , 152u8 , 66u8 , 238u8 , 113u8 , 189u8 , 149u8 , 232u8 , 63u8 , 134u8 , 2u8 , 231u8 , 128u8 , 2u8 , 31u8 , 1u8 , 66u8 , 181u8 , 160u8 ,]) } # [doc = " --- MAP ( netuid ) --> total_volume | The total amount of TAO bought and sold since the start of the network."] pub fn subnet_volume_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_volume :: SubnetVolume , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetVolume" , () , [147u8 , 201u8 , 14u8 , 211u8 , 212u8 , 176u8 , 96u8 , 86u8 , 152u8 , 74u8 , 2u8 , 44u8 , 28u8 , 112u8 , 50u8 , 152u8 , 254u8 , 15u8 , 119u8 , 222u8 , 129u8 , 210u8 , 199u8 , 183u8 , 178u8 , 84u8 , 24u8 , 102u8 , 187u8 , 133u8 , 199u8 , 137u8 ,]) } # [doc = " --- MAP ( netuid ) --> total_volume | The total amount of TAO bought and sold since the start of the network."] pub fn subnet_volume (& self , _0 : types :: subnet_volume :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_volume :: Param0 > , types :: subnet_volume :: SubnetVolume , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetVolume" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [147u8 , 201u8 , 14u8 , 211u8 , 212u8 , 176u8 , 96u8 , 86u8 , 152u8 , 74u8 , 2u8 , 44u8 , 28u8 , 112u8 , 50u8 , 152u8 , 254u8 , 15u8 , 119u8 , 222u8 , 129u8 , 210u8 , 199u8 , 183u8 , 178u8 , 84u8 , 24u8 , 102u8 , 187u8 , 133u8 , 199u8 , 137u8 ,]) } # [doc = " --- MAP ( netuid ) --> tao_in_subnet | Returns the amount of TAO in the subnet."] pub fn subnet_tao_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_tao :: SubnetTao , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTAO" , () , [142u8 , 19u8 , 41u8 , 118u8 , 93u8 , 239u8 , 129u8 , 137u8 , 70u8 , 203u8 , 137u8 , 164u8 , 143u8 , 129u8 , 142u8 , 253u8 , 113u8 , 203u8 , 68u8 , 34u8 , 65u8 , 159u8 , 38u8 , 55u8 , 214u8 , 174u8 , 210u8 , 44u8 , 129u8 , 99u8 , 35u8 , 160u8 ,]) } # [doc = " --- MAP ( netuid ) --> tao_in_subnet | Returns the amount of TAO in the subnet."] pub fn subnet_tao (& self , _0 : types :: subnet_tao :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_tao :: Param0 > , types :: subnet_tao :: SubnetTao , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTAO" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [142u8 , 19u8 , 41u8 , 118u8 , 93u8 , 239u8 , 129u8 , 137u8 , 70u8 , 203u8 , 137u8 , 164u8 , 143u8 , 129u8 , 142u8 , 253u8 , 113u8 , 203u8 , 68u8 , 34u8 , 65u8 , 159u8 , 38u8 , 55u8 , 214u8 , 174u8 , 210u8 , 44u8 , 129u8 , 99u8 , 35u8 , 160u8 ,]) } # [doc = " --- MAP ( netuid ) --> tao_in_user_subnet | Returns the amount of TAO in the subnet reserve provided by users as liquidity."] pub fn subnet_tao_provided_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_tao_provided :: SubnetTaoProvided , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTaoProvided" , () , [13u8 , 45u8 , 41u8 , 229u8 , 165u8 , 249u8 , 98u8 , 134u8 , 88u8 , 232u8 , 91u8 , 32u8 , 20u8 , 239u8 , 93u8 , 193u8 , 143u8 , 146u8 , 47u8 , 249u8 , 192u8 , 238u8 , 139u8 , 212u8 , 235u8 , 255u8 , 170u8 , 79u8 , 119u8 , 39u8 , 194u8 , 46u8 ,]) } # [doc = " --- MAP ( netuid ) --> tao_in_user_subnet | Returns the amount of TAO in the subnet reserve provided by users as liquidity."] pub fn subnet_tao_provided (& self , _0 : types :: subnet_tao_provided :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_tao_provided :: Param0 > , types :: subnet_tao_provided :: SubnetTaoProvided , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTaoProvided" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [13u8 , 45u8 , 41u8 , 229u8 , 165u8 , 249u8 , 98u8 , 134u8 , 88u8 , 232u8 , 91u8 , 32u8 , 20u8 , 239u8 , 93u8 , 193u8 , 143u8 , 146u8 , 47u8 , 249u8 , 192u8 , 238u8 , 139u8 , 212u8 , 235u8 , 255u8 , 170u8 , 79u8 , 119u8 , 39u8 , 194u8 , 46u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_in_emission | Returns the amount of alph in  emission into the pool per block."] pub fn subnet_alpha_in_emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_alpha_in_emission :: SubnetAlphaInEmission , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaInEmission" , () , [144u8 , 23u8 , 128u8 , 253u8 , 124u8 , 32u8 , 171u8 , 4u8 , 202u8 , 193u8 , 63u8 , 25u8 , 185u8 , 234u8 , 83u8 , 236u8 , 245u8 , 187u8 , 6u8 , 76u8 , 74u8 , 215u8 , 58u8 , 59u8 , 236u8 , 164u8 , 60u8 , 35u8 , 8u8 , 159u8 , 75u8 , 45u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_in_emission | Returns the amount of alph in  emission into the pool per block."] pub fn subnet_alpha_in_emission (& self , _0 : types :: subnet_alpha_in_emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_alpha_in_emission :: Param0 > , types :: subnet_alpha_in_emission :: SubnetAlphaInEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaInEmission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [144u8 , 23u8 , 128u8 , 253u8 , 124u8 , 32u8 , 171u8 , 4u8 , 202u8 , 193u8 , 63u8 , 25u8 , 185u8 , 234u8 , 83u8 , 236u8 , 245u8 , 187u8 , 6u8 , 76u8 , 74u8 , 215u8 , 58u8 , 59u8 , 236u8 , 164u8 , 60u8 , 35u8 , 8u8 , 159u8 , 75u8 , 45u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_out_emission | Returns the amount of alpha out emission into the network per block."] pub fn subnet_alpha_out_emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_alpha_out_emission :: SubnetAlphaOutEmission , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaOutEmission" , () , [109u8 , 42u8 , 101u8 , 179u8 , 14u8 , 126u8 , 154u8 , 89u8 , 213u8 , 32u8 , 33u8 , 112u8 , 67u8 , 161u8 , 174u8 , 149u8 , 151u8 , 75u8 , 57u8 , 229u8 , 65u8 , 87u8 , 12u8 , 225u8 , 208u8 , 187u8 , 30u8 , 59u8 , 135u8 , 146u8 , 143u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_out_emission | Returns the amount of alpha out emission into the network per block."] pub fn subnet_alpha_out_emission (& self , _0 : types :: subnet_alpha_out_emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_alpha_out_emission :: Param0 > , types :: subnet_alpha_out_emission :: SubnetAlphaOutEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaOutEmission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [109u8 , 42u8 , 101u8 , 179u8 , 14u8 , 126u8 , 154u8 , 89u8 , 213u8 , 32u8 , 33u8 , 112u8 , 67u8 , 161u8 , 174u8 , 149u8 , 151u8 , 75u8 , 57u8 , 229u8 , 65u8 , 87u8 , 12u8 , 225u8 , 208u8 , 187u8 , 30u8 , 59u8 , 135u8 , 146u8 , 143u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> tao_in_emission | Returns the amount of tao emitted into this subent on the last block."] pub fn subnet_tao_in_emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_tao_in_emission :: SubnetTaoInEmission , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTaoInEmission" , () , [57u8 , 220u8 , 215u8 , 87u8 , 57u8 , 165u8 , 174u8 , 114u8 , 85u8 , 45u8 , 32u8 , 59u8 , 9u8 , 86u8 , 111u8 , 186u8 , 124u8 , 100u8 , 129u8 , 240u8 , 123u8 , 39u8 , 146u8 , 235u8 , 50u8 , 235u8 , 96u8 , 230u8 , 105u8 , 111u8 , 186u8 , 131u8 ,]) } # [doc = " --- MAP ( netuid ) --> tao_in_emission | Returns the amount of tao emitted into this subent on the last block."] pub fn subnet_tao_in_emission (& self , _0 : types :: subnet_tao_in_emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_tao_in_emission :: Param0 > , types :: subnet_tao_in_emission :: SubnetTaoInEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTaoInEmission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [57u8 , 220u8 , 215u8 , 87u8 , 57u8 , 165u8 , 174u8 , 114u8 , 85u8 , 45u8 , 32u8 , 59u8 , 9u8 , 86u8 , 111u8 , 186u8 , 124u8 , 100u8 , 129u8 , 240u8 , 123u8 , 39u8 , 146u8 , 235u8 , 50u8 , 235u8 , 96u8 , 230u8 , 105u8 , 111u8 , 186u8 , 131u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_supply_in_pool | Returns the amount of alpha in the pool."] pub fn subnet_alpha_in_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_alpha_in :: SubnetAlphaIn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaIn" , () , [51u8 , 120u8 , 151u8 , 177u8 , 58u8 , 115u8 , 119u8 , 132u8 , 95u8 , 223u8 , 14u8 , 121u8 , 132u8 , 206u8 , 151u8 , 166u8 , 101u8 , 138u8 , 142u8 , 29u8 , 151u8 , 100u8 , 165u8 , 86u8 , 145u8 , 52u8 , 174u8 , 66u8 , 180u8 , 87u8 , 72u8 , 81u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_supply_in_pool | Returns the amount of alpha in the pool."] pub fn subnet_alpha_in (& self , _0 : types :: subnet_alpha_in :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_alpha_in :: Param0 > , types :: subnet_alpha_in :: SubnetAlphaIn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaIn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [51u8 , 120u8 , 151u8 , 177u8 , 58u8 , 115u8 , 119u8 , 132u8 , 95u8 , 223u8 , 14u8 , 121u8 , 132u8 , 206u8 , 151u8 , 166u8 , 101u8 , 138u8 , 142u8 , 29u8 , 151u8 , 100u8 , 165u8 , 86u8 , 145u8 , 52u8 , 174u8 , 66u8 , 180u8 , 87u8 , 72u8 , 81u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_supply_user_in_pool | Returns the amount of alpha in the pool provided by users as liquidity."] pub fn subnet_alpha_in_provided_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_alpha_in_provided :: SubnetAlphaInProvided , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaInProvided" , () , [255u8 , 210u8 , 8u8 , 234u8 , 55u8 , 201u8 , 154u8 , 87u8 , 65u8 , 247u8 , 247u8 , 210u8 , 68u8 , 191u8 , 68u8 , 37u8 , 197u8 , 23u8 , 92u8 , 224u8 , 139u8 , 115u8 , 183u8 , 86u8 , 80u8 , 53u8 , 24u8 , 207u8 , 102u8 , 153u8 , 37u8 , 137u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_supply_user_in_pool | Returns the amount of alpha in the pool provided by users as liquidity."] pub fn subnet_alpha_in_provided (& self , _0 : types :: subnet_alpha_in_provided :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_alpha_in_provided :: Param0 > , types :: subnet_alpha_in_provided :: SubnetAlphaInProvided , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaInProvided" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [255u8 , 210u8 , 8u8 , 234u8 , 55u8 , 201u8 , 154u8 , 87u8 , 65u8 , 247u8 , 247u8 , 210u8 , 68u8 , 191u8 , 68u8 , 37u8 , 197u8 , 23u8 , 92u8 , 224u8 , 139u8 , 115u8 , 183u8 , 86u8 , 80u8 , 53u8 , 24u8 , 207u8 , 102u8 , 153u8 , 37u8 , 137u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_supply_in_subnet | Returns the amount of alpha in the subnet."] pub fn subnet_alpha_out_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_alpha_out :: SubnetAlphaOut , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaOut" , () , [83u8 , 200u8 , 153u8 , 120u8 , 109u8 , 117u8 , 57u8 , 155u8 , 148u8 , 5u8 , 195u8 , 31u8 , 30u8 , 69u8 , 237u8 , 113u8 , 153u8 , 18u8 , 146u8 , 120u8 , 242u8 , 0u8 , 134u8 , 13u8 , 47u8 , 49u8 , 17u8 , 142u8 , 86u8 , 62u8 , 91u8 , 227u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_supply_in_subnet | Returns the amount of alpha in the subnet."] pub fn subnet_alpha_out (& self , _0 : types :: subnet_alpha_out :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_alpha_out :: Param0 > , types :: subnet_alpha_out :: SubnetAlphaOut , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaOut" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [83u8 , 200u8 , 153u8 , 120u8 , 109u8 , 117u8 , 57u8 , 155u8 , 148u8 , 5u8 , 195u8 , 31u8 , 30u8 , 69u8 , 237u8 , 113u8 , 153u8 , 18u8 , 146u8 , 120u8 , 242u8 , 0u8 , 134u8 , 13u8 , 47u8 , 49u8 , 17u8 , 142u8 , 86u8 , 62u8 , 91u8 , 227u8 ,]) } # [doc = " --- MAP ( cold ) --> Vec<hot> | Maps coldkey to hotkeys that stake to it"] pub fn staking_hotkeys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: staking_hotkeys :: StakingHotkeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingHotkeys" , () , [152u8 , 192u8 , 98u8 , 183u8 , 211u8 , 153u8 , 63u8 , 135u8 , 238u8 , 232u8 , 90u8 , 75u8 , 210u8 , 127u8 , 124u8 , 190u8 , 145u8 , 153u8 , 73u8 , 14u8 , 55u8 , 205u8 , 149u8 , 247u8 , 92u8 , 100u8 , 128u8 , 165u8 , 252u8 , 96u8 , 124u8 , 189u8 ,]) } # [doc = " --- MAP ( cold ) --> Vec<hot> | Maps coldkey to hotkeys that stake to it"] pub fn staking_hotkeys (& self , _0 : types :: staking_hotkeys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_hotkeys :: Param0 > , types :: staking_hotkeys :: StakingHotkeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingHotkeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [152u8 , 192u8 , 98u8 , 183u8 , 211u8 , 153u8 , 63u8 , 135u8 , 238u8 , 232u8 , 90u8 , 75u8 , 210u8 , 127u8 , 124u8 , 190u8 , 145u8 , 153u8 , 73u8 , 14u8 , 55u8 , 205u8 , 149u8 , 247u8 , 92u8 , 100u8 , 128u8 , 165u8 , 252u8 , 96u8 , 124u8 , 189u8 ,]) } # [doc = " --- MAP ( cold ) --> Vec<hot> | Returns the vector of hotkeys controlled by this coldkey."] pub fn owned_hotkeys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: owned_hotkeys :: OwnedHotkeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "OwnedHotkeys" , () , [89u8 , 221u8 , 46u8 , 67u8 , 65u8 , 21u8 , 26u8 , 100u8 , 85u8 , 109u8 , 130u8 , 186u8 , 231u8 , 63u8 , 34u8 , 179u8 , 145u8 , 67u8 , 97u8 , 151u8 , 75u8 , 1u8 , 165u8 , 115u8 , 45u8 , 102u8 , 170u8 , 57u8 , 205u8 , 96u8 , 17u8 , 210u8 ,]) } # [doc = " --- MAP ( cold ) --> Vec<hot> | Returns the vector of hotkeys controlled by this coldkey."] pub fn owned_hotkeys (& self , _0 : types :: owned_hotkeys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: owned_hotkeys :: Param0 > , types :: owned_hotkeys :: OwnedHotkeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "OwnedHotkeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [89u8 , 221u8 , 46u8 , 67u8 , 65u8 , 21u8 , 26u8 , 100u8 , 85u8 , 109u8 , 130u8 , 186u8 , 231u8 , 63u8 , 34u8 , 179u8 , 145u8 , 67u8 , 97u8 , 151u8 , 75u8 , 1u8 , 165u8 , 115u8 , 45u8 , 102u8 , 170u8 , 57u8 , 205u8 , 96u8 , 17u8 , 210u8 ,]) } # [doc = " --- DMAP ( cold, netuid )--> hot | Returns the hotkey a coldkey will autostake to with mining rewards."] pub fn auto_stake_destination_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: auto_stake_destination :: AutoStakeDestination , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AutoStakeDestination" , () , [83u8 , 31u8 , 34u8 , 28u8 , 128u8 , 111u8 , 137u8 , 31u8 , 252u8 , 132u8 , 19u8 , 147u8 , 182u8 , 216u8 , 35u8 , 219u8 , 184u8 , 168u8 , 18u8 , 210u8 , 122u8 , 13u8 , 20u8 , 72u8 , 165u8 , 95u8 , 122u8 , 34u8 , 183u8 , 188u8 , 246u8 , 32u8 ,]) } # [doc = " --- DMAP ( cold, netuid )--> hot | Returns the hotkey a coldkey will autostake to with mining rewards."] pub fn auto_stake_destination_iter1 (& self , _0 : types :: auto_stake_destination :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: auto_stake_destination :: Param0 > , types :: auto_stake_destination :: AutoStakeDestination , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AutoStakeDestination" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [83u8 , 31u8 , 34u8 , 28u8 , 128u8 , 111u8 , 137u8 , 31u8 , 252u8 , 132u8 , 19u8 , 147u8 , 182u8 , 216u8 , 35u8 , 219u8 , 184u8 , 168u8 , 18u8 , 210u8 , 122u8 , 13u8 , 20u8 , 72u8 , 165u8 , 95u8 , 122u8 , 34u8 , 183u8 , 188u8 , 246u8 , 32u8 ,]) } # [doc = " --- DMAP ( cold, netuid )--> hot | Returns the hotkey a coldkey will autostake to with mining rewards."] pub fn auto_stake_destination (& self , _0 : types :: auto_stake_destination :: Param0 , _1 : types :: auto_stake_destination :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: auto_stake_destination :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: auto_stake_destination :: Param1 > ,) , types :: auto_stake_destination :: AutoStakeDestination , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AutoStakeDestination" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [83u8 , 31u8 , 34u8 , 28u8 , 128u8 , 111u8 , 137u8 , 31u8 , 252u8 , 132u8 , 19u8 , 147u8 , 182u8 , 216u8 , 35u8 , 219u8 , 184u8 , 168u8 , 18u8 , 210u8 , 122u8 , 13u8 , 20u8 , 72u8 , 165u8 , 95u8 , 122u8 , 34u8 , 183u8 , 188u8 , 246u8 , 32u8 ,]) } # [doc = " --- DMAP ( hot, netuid )--> Vec<cold> | Returns a list of coldkeys that are autostaking to a hotkey"] pub fn auto_stake_destination_coldkeys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: auto_stake_destination_coldkeys :: AutoStakeDestinationColdkeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AutoStakeDestinationColdkeys" , () , [221u8 , 115u8 , 210u8 , 108u8 , 27u8 , 251u8 , 197u8 , 244u8 , 35u8 , 38u8 , 103u8 , 83u8 , 118u8 , 251u8 , 157u8 , 143u8 , 52u8 , 22u8 , 17u8 , 60u8 , 40u8 , 157u8 , 29u8 , 212u8 , 202u8 , 36u8 , 85u8 , 179u8 , 53u8 , 87u8 , 219u8 , 65u8 ,]) } # [doc = " --- DMAP ( hot, netuid )--> Vec<cold> | Returns a list of coldkeys that are autostaking to a hotkey"] pub fn auto_stake_destination_coldkeys_iter1 (& self , _0 : types :: auto_stake_destination_coldkeys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: auto_stake_destination_coldkeys :: Param0 > , types :: auto_stake_destination_coldkeys :: AutoStakeDestinationColdkeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AutoStakeDestinationColdkeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [221u8 , 115u8 , 210u8 , 108u8 , 27u8 , 251u8 , 197u8 , 244u8 , 35u8 , 38u8 , 103u8 , 83u8 , 118u8 , 251u8 , 157u8 , 143u8 , 52u8 , 22u8 , 17u8 , 60u8 , 40u8 , 157u8 , 29u8 , 212u8 , 202u8 , 36u8 , 85u8 , 179u8 , 53u8 , 87u8 , 219u8 , 65u8 ,]) } # [doc = " --- DMAP ( hot, netuid )--> Vec<cold> | Returns a list of coldkeys that are autostaking to a hotkey"] pub fn auto_stake_destination_coldkeys (& self , _0 : types :: auto_stake_destination_coldkeys :: Param0 , _1 : types :: auto_stake_destination_coldkeys :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: auto_stake_destination_coldkeys :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: auto_stake_destination_coldkeys :: Param1 > ,) , types :: auto_stake_destination_coldkeys :: AutoStakeDestinationColdkeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AutoStakeDestinationColdkeys" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [221u8 , 115u8 , 210u8 , 108u8 , 27u8 , 251u8 , 197u8 , 244u8 , 35u8 , 38u8 , 103u8 , 83u8 , 118u8 , 251u8 , 157u8 , 143u8 , 52u8 , 22u8 , 17u8 , 60u8 , 40u8 , 157u8 , 29u8 , 212u8 , 202u8 , 36u8 , 85u8 , 179u8 , 53u8 , 87u8 , 219u8 , 65u8 ,]) } # [doc = " --- DMAP ( cold ) --> (block_expected, new_coldkey), Maps coldkey to the block to swap at and new coldkey."] pub fn coldkey_swap_scheduled_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: coldkey_swap_scheduled :: ColdkeySwapScheduled , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ColdkeySwapScheduled" , () , [154u8 , 174u8 , 147u8 , 36u8 , 205u8 , 252u8 , 131u8 , 96u8 , 148u8 , 65u8 , 193u8 , 83u8 , 187u8 , 1u8 , 58u8 , 102u8 , 93u8 , 76u8 , 45u8 , 10u8 , 210u8 , 37u8 , 147u8 , 162u8 , 113u8 , 145u8 , 208u8 , 122u8 , 31u8 , 77u8 , 114u8 , 66u8 ,]) } # [doc = " --- DMAP ( cold ) --> (block_expected, new_coldkey), Maps coldkey to the block to swap at and new coldkey."] pub fn coldkey_swap_scheduled (& self , _0 : types :: coldkey_swap_scheduled :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: coldkey_swap_scheduled :: Param0 > , types :: coldkey_swap_scheduled :: ColdkeySwapScheduled , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ColdkeySwapScheduled" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [154u8 , 174u8 , 147u8 , 36u8 , 205u8 , 252u8 , 131u8 , 96u8 , 148u8 , 65u8 , 193u8 , 83u8 , 187u8 , 1u8 , 58u8 , 102u8 , 93u8 , 76u8 , 45u8 , 10u8 , 210u8 , 37u8 , 147u8 , 162u8 , 113u8 , 145u8 , 208u8 , 122u8 , 31u8 , 77u8 , 114u8 , 66u8 ,]) } # [doc = " --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owns."] pub fn total_hotkey_alpha_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_hotkey_alpha :: TotalHotkeyAlpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyAlpha" , () , [211u8 , 142u8 , 51u8 , 239u8 , 59u8 , 186u8 , 234u8 , 28u8 , 223u8 , 49u8 , 202u8 , 206u8 , 191u8 , 151u8 , 90u8 , 91u8 , 206u8 , 104u8 , 94u8 , 7u8 , 149u8 , 54u8 , 194u8 , 138u8 , 136u8 , 45u8 , 252u8 , 61u8 , 119u8 , 77u8 , 179u8 , 24u8 ,]) } # [doc = " --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owns."] pub fn total_hotkey_alpha_iter1 (& self , _0 : types :: total_hotkey_alpha :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_alpha :: Param0 > , types :: total_hotkey_alpha :: TotalHotkeyAlpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyAlpha" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [211u8 , 142u8 , 51u8 , 239u8 , 59u8 , 186u8 , 234u8 , 28u8 , 223u8 , 49u8 , 202u8 , 206u8 , 191u8 , 151u8 , 90u8 , 91u8 , 206u8 , 104u8 , 94u8 , 7u8 , 149u8 , 54u8 , 194u8 , 138u8 , 136u8 , 45u8 , 252u8 , 61u8 , 119u8 , 77u8 , 179u8 , 24u8 ,]) } # [doc = " --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owns."] pub fn total_hotkey_alpha (& self , _0 : types :: total_hotkey_alpha :: Param0 , _1 : types :: total_hotkey_alpha :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_alpha :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_alpha :: Param1 > ,) , types :: total_hotkey_alpha :: TotalHotkeyAlpha , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyAlpha" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [211u8 , 142u8 , 51u8 , 239u8 , 59u8 , 186u8 , 234u8 , 28u8 , 223u8 , 49u8 , 202u8 , 206u8 , 191u8 , 151u8 , 90u8 , 91u8 , 206u8 , 104u8 , 94u8 , 7u8 , 149u8 , 54u8 , 194u8 , 138u8 , 136u8 , 45u8 , 252u8 , 61u8 , 119u8 , 77u8 , 179u8 , 24u8 ,]) } # [doc = " --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owned in the last epoch."] pub fn total_hotkey_alpha_last_epoch_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_hotkey_alpha_last_epoch :: TotalHotkeyAlphaLastEpoch , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyAlphaLastEpoch" , () , [208u8 , 216u8 , 246u8 , 151u8 , 105u8 , 127u8 , 232u8 , 18u8 , 186u8 , 180u8 , 160u8 , 51u8 , 105u8 , 195u8 , 44u8 , 111u8 , 23u8 , 137u8 , 136u8 , 194u8 , 183u8 , 41u8 , 54u8 , 156u8 , 132u8 , 143u8 , 139u8 , 47u8 , 216u8 , 140u8 , 64u8 , 170u8 ,]) } # [doc = " --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owned in the last epoch."] pub fn total_hotkey_alpha_last_epoch_iter1 (& self , _0 : types :: total_hotkey_alpha_last_epoch :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_alpha_last_epoch :: Param0 > , types :: total_hotkey_alpha_last_epoch :: TotalHotkeyAlphaLastEpoch , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyAlphaLastEpoch" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [208u8 , 216u8 , 246u8 , 151u8 , 105u8 , 127u8 , 232u8 , 18u8 , 186u8 , 180u8 , 160u8 , 51u8 , 105u8 , 195u8 , 44u8 , 111u8 , 23u8 , 137u8 , 136u8 , 194u8 , 183u8 , 41u8 , 54u8 , 156u8 , 132u8 , 143u8 , 139u8 , 47u8 , 216u8 , 140u8 , 64u8 , 170u8 ,]) } # [doc = " --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owned in the last epoch."] pub fn total_hotkey_alpha_last_epoch (& self , _0 : types :: total_hotkey_alpha_last_epoch :: Param0 , _1 : types :: total_hotkey_alpha_last_epoch :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_alpha_last_epoch :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_alpha_last_epoch :: Param1 > ,) , types :: total_hotkey_alpha_last_epoch :: TotalHotkeyAlphaLastEpoch , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyAlphaLastEpoch" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [208u8 , 216u8 , 246u8 , 151u8 , 105u8 , 127u8 , 232u8 , 18u8 , 186u8 , 180u8 , 160u8 , 51u8 , 105u8 , 195u8 , 44u8 , 111u8 , 23u8 , 137u8 , 136u8 , 194u8 , 183u8 , 41u8 , 54u8 , 156u8 , 132u8 , 143u8 , 139u8 , 47u8 , 216u8 , 140u8 , 64u8 , 170u8 ,]) } # [doc = " DMAP ( hot, netuid ) --> total_alpha_shares | Returns the number of alpha shares for a hotkey on a subnet."] pub fn total_hotkey_shares_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_hotkey_shares :: TotalHotkeyShares , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyShares" , () , [44u8 , 200u8 , 18u8 , 199u8 , 81u8 , 229u8 , 154u8 , 17u8 , 114u8 , 234u8 , 209u8 , 224u8 , 238u8 , 226u8 , 105u8 , 48u8 , 57u8 , 128u8 , 244u8 , 255u8 , 147u8 , 98u8 , 192u8 , 188u8 , 32u8 , 20u8 , 52u8 , 139u8 , 111u8 , 147u8 , 144u8 , 207u8 ,]) } # [doc = " DMAP ( hot, netuid ) --> total_alpha_shares | Returns the number of alpha shares for a hotkey on a subnet."] pub fn total_hotkey_shares_iter1 (& self , _0 : types :: total_hotkey_shares :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_shares :: Param0 > , types :: total_hotkey_shares :: TotalHotkeyShares , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyShares" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [44u8 , 200u8 , 18u8 , 199u8 , 81u8 , 229u8 , 154u8 , 17u8 , 114u8 , 234u8 , 209u8 , 224u8 , 238u8 , 226u8 , 105u8 , 48u8 , 57u8 , 128u8 , 244u8 , 255u8 , 147u8 , 98u8 , 192u8 , 188u8 , 32u8 , 20u8 , 52u8 , 139u8 , 111u8 , 147u8 , 144u8 , 207u8 ,]) } # [doc = " DMAP ( hot, netuid ) --> total_alpha_shares | Returns the number of alpha shares for a hotkey on a subnet."] pub fn total_hotkey_shares (& self , _0 : types :: total_hotkey_shares :: Param0 , _1 : types :: total_hotkey_shares :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_shares :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_shares :: Param1 > ,) , types :: total_hotkey_shares :: TotalHotkeyShares , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyShares" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [44u8 , 200u8 , 18u8 , 199u8 , 81u8 , 229u8 , 154u8 , 17u8 , 114u8 , 234u8 , 209u8 , 224u8 , 238u8 , 226u8 , 105u8 , 48u8 , 57u8 , 128u8 , 244u8 , 255u8 , 147u8 , 98u8 , 192u8 , 188u8 , 32u8 , 20u8 , 52u8 , 139u8 , 111u8 , 147u8 , 144u8 , 207u8 ,]) } # [doc = " --- NMAP ( hot, cold, netuid ) --> alpha | Returns the alpha shares for a hotkey, coldkey, netuid triplet."] pub fn alpha_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: alpha :: Alpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Alpha" , () , [106u8 , 36u8 , 34u8 , 211u8 , 132u8 , 244u8 , 216u8 , 251u8 , 199u8 , 133u8 , 216u8 , 100u8 , 199u8 , 11u8 , 47u8 , 33u8 , 35u8 , 74u8 , 204u8 , 136u8 , 180u8 , 10u8 , 144u8 , 165u8 , 252u8 , 67u8 , 119u8 , 239u8 , 238u8 , 36u8 , 76u8 , 83u8 ,]) } # [doc = " --- NMAP ( hot, cold, netuid ) --> alpha | Returns the alpha shares for a hotkey, coldkey, netuid triplet."] pub fn alpha_iter1 (& self , _0 : types :: alpha :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha :: Param0 > , types :: alpha :: Alpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Alpha" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [106u8 , 36u8 , 34u8 , 211u8 , 132u8 , 244u8 , 216u8 , 251u8 , 199u8 , 133u8 , 216u8 , 100u8 , 199u8 , 11u8 , 47u8 , 33u8 , 35u8 , 74u8 , 204u8 , 136u8 , 180u8 , 10u8 , 144u8 , 165u8 , 252u8 , 67u8 , 119u8 , 239u8 , 238u8 , 36u8 , 76u8 , 83u8 ,]) } # [doc = " --- NMAP ( hot, cold, netuid ) --> alpha | Returns the alpha shares for a hotkey, coldkey, netuid triplet."] pub fn alpha_iter2 (& self , _0 : types :: alpha :: Param0 , _1 : types :: alpha :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha :: Param1 > ,) , types :: alpha :: Alpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Alpha" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [106u8 , 36u8 , 34u8 , 211u8 , 132u8 , 244u8 , 216u8 , 251u8 , 199u8 , 133u8 , 216u8 , 100u8 , 199u8 , 11u8 , 47u8 , 33u8 , 35u8 , 74u8 , 204u8 , 136u8 , 180u8 , 10u8 , 144u8 , 165u8 , 252u8 , 67u8 , 119u8 , 239u8 , 238u8 , 36u8 , 76u8 , 83u8 ,]) } # [doc = " --- NMAP ( hot, cold, netuid ) --> alpha | Returns the alpha shares for a hotkey, coldkey, netuid triplet."] pub fn alpha (& self , _0 : types :: alpha :: Param0 , _1 : types :: alpha :: Param1 , _2 : types :: alpha :: Param2 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha :: Param2 > ,) , types :: alpha :: Alpha , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Alpha" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2) ,) , [106u8 , 36u8 , 34u8 , 211u8 , 132u8 , 244u8 , 216u8 , 251u8 , 199u8 , 133u8 , 216u8 , 100u8 , 199u8 , 11u8 , 47u8 , 33u8 , 35u8 , 74u8 , 204u8 , 136u8 , 180u8 , 10u8 , 144u8 , 165u8 , 252u8 , 67u8 , 119u8 , 239u8 , 238u8 , 36u8 , 76u8 , 83u8 ,]) } # [doc = " Contains last Alpha storage map key to iterate (check first)"] pub fn alpha_map_last_key (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: alpha_map_last_key :: AlphaMapLastKey , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaMapLastKey" , () , [56u8 , 88u8 , 231u8 , 193u8 , 139u8 , 96u8 , 159u8 , 20u8 , 242u8 , 28u8 , 124u8 , 149u8 , 255u8 , 79u8 , 34u8 , 24u8 , 9u8 , 20u8 , 197u8 , 186u8 , 111u8 , 180u8 , 152u8 , 22u8 , 198u8 , 15u8 , 250u8 , 91u8 , 41u8 , 136u8 , 11u8 , 15u8 ,]) } # [doc = " --- MAP ( netuid ) --> token_symbol | Returns the token symbol for a subnet."] pub fn token_symbol_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: token_symbol :: TokenSymbol , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TokenSymbol" , () , [184u8 , 249u8 , 234u8 , 88u8 , 90u8 , 36u8 , 102u8 , 134u8 , 1u8 , 210u8 , 25u8 , 26u8 , 22u8 , 151u8 , 111u8 , 190u8 , 7u8 , 17u8 , 6u8 , 218u8 , 190u8 , 219u8 , 198u8 , 83u8 , 202u8 , 161u8 , 2u8 , 147u8 , 111u8 , 107u8 , 101u8 , 47u8 ,]) } # [doc = " --- MAP ( netuid ) --> token_symbol | Returns the token symbol for a subnet."] pub fn token_symbol (& self , _0 : types :: token_symbol :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: token_symbol :: Param0 > , types :: token_symbol :: TokenSymbol , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TokenSymbol" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [184u8 , 249u8 , 234u8 , 88u8 , 90u8 , 36u8 , 102u8 , 134u8 , 1u8 , 210u8 , 25u8 , 26u8 , 22u8 , 151u8 , 111u8 , 190u8 , 7u8 , 17u8 , 6u8 , 218u8 , 190u8 , 219u8 , 198u8 , 83u8 , 202u8 , 161u8 , 2u8 , 147u8 , 111u8 , 107u8 , 101u8 , 47u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_tao_flow | Returns the TAO inflow-outflow balance."] pub fn subnet_tao_flow_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_tao_flow :: SubnetTaoFlow , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTaoFlow" , () , [73u8 , 212u8 , 45u8 , 232u8 , 198u8 , 54u8 , 164u8 , 31u8 , 39u8 , 90u8 , 46u8 , 109u8 , 108u8 , 253u8 , 42u8 , 173u8 , 89u8 , 44u8 , 138u8 , 190u8 , 29u8 , 18u8 , 45u8 , 189u8 , 14u8 , 200u8 , 93u8 , 40u8 , 164u8 , 26u8 , 133u8 , 160u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_tao_flow | Returns the TAO inflow-outflow balance."] pub fn subnet_tao_flow (& self , _0 : types :: subnet_tao_flow :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_tao_flow :: Param0 > , types :: subnet_tao_flow :: SubnetTaoFlow , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTaoFlow" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [73u8 , 212u8 , 45u8 , 232u8 , 198u8 , 54u8 , 164u8 , 31u8 , 39u8 , 90u8 , 46u8 , 109u8 , 108u8 , 253u8 , 42u8 , 173u8 , 89u8 , 44u8 , 138u8 , 190u8 , 29u8 , 18u8 , 45u8 , 189u8 , 14u8 , 200u8 , 93u8 , 40u8 , 164u8 , 26u8 , 133u8 , 160u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_ema_tao_flow | Returns the EMA of TAO inflow-outflow balance."] pub fn subnet_ema_tao_flow_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_ema_tao_flow :: SubnetEmaTaoFlow , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetEmaTaoFlow" , () , [4u8 , 118u8 , 217u8 , 29u8 , 163u8 , 198u8 , 248u8 , 152u8 , 235u8 , 218u8 , 3u8 , 91u8 , 187u8 , 242u8 , 76u8 , 24u8 , 8u8 , 251u8 , 255u8 , 45u8 , 48u8 , 18u8 , 211u8 , 20u8 , 60u8 , 187u8 , 137u8 , 34u8 , 102u8 , 45u8 , 1u8 , 163u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_ema_tao_flow | Returns the EMA of TAO inflow-outflow balance."] pub fn subnet_ema_tao_flow (& self , _0 : types :: subnet_ema_tao_flow :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_ema_tao_flow :: Param0 > , types :: subnet_ema_tao_flow :: SubnetEmaTaoFlow , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetEmaTaoFlow" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [4u8 , 118u8 , 217u8 , 29u8 , 163u8 , 198u8 , 248u8 , 152u8 , 235u8 , 218u8 , 3u8 , 91u8 , 187u8 , 242u8 , 76u8 , 24u8 , 8u8 , 251u8 , 255u8 , 45u8 , 48u8 , 18u8 , 211u8 , 20u8 , 60u8 , 187u8 , 137u8 , 34u8 , 102u8 , 45u8 , 1u8 , 163u8 ,]) } # [doc = " --- ITEM --> TAO Flow Cutoff"] pub fn tao_flow_cutoff (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tao_flow_cutoff :: TaoFlowCutoff , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TaoFlowCutoff" , () , [222u8 , 205u8 , 47u8 , 171u8 , 79u8 , 208u8 , 108u8 , 149u8 , 171u8 , 131u8 , 145u8 , 88u8 , 66u8 , 236u8 , 18u8 , 149u8 , 168u8 , 12u8 , 19u8 , 147u8 , 30u8 , 225u8 , 73u8 , 245u8 , 217u8 , 19u8 , 165u8 , 114u8 , 89u8 , 91u8 , 128u8 , 219u8 ,]) } # [doc = " --- ITEM --> Flow Normalization Exponent (p)"] pub fn flow_norm_exponent (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: flow_norm_exponent :: FlowNormExponent , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "FlowNormExponent" , () , [139u8 , 171u8 , 162u8 , 68u8 , 33u8 , 221u8 , 157u8 , 49u8 , 161u8 , 145u8 , 123u8 , 40u8 , 153u8 , 134u8 , 70u8 , 178u8 , 7u8 , 225u8 , 1u8 , 65u8 , 23u8 , 131u8 , 201u8 , 146u8 , 107u8 , 252u8 , 140u8 , 58u8 , 68u8 , 199u8 , 64u8 , 84u8 ,]) } # [doc = " --- ITEM --> Flow EMA smoothing factor (flow alpha), u64 normalized"] pub fn flow_ema_smoothing_factor (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: flow_ema_smoothing_factor :: FlowEmaSmoothingFactor , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "FlowEmaSmoothingFactor" , () , [170u8 , 216u8 , 102u8 , 96u8 , 64u8 , 75u8 , 133u8 , 8u8 , 202u8 , 51u8 , 119u8 , 172u8 , 11u8 , 129u8 , 221u8 , 205u8 , 210u8 , 248u8 , 159u8 , 184u8 , 127u8 , 159u8 , 121u8 , 50u8 , 137u8 , 78u8 , 82u8 , 157u8 , 153u8 , 193u8 , 225u8 , 150u8 ,]) } # [doc = " ============================"] # [doc = " ==== Global Parameters ====="] # [doc = " ============================"] # [doc = " --- StorageItem Global Used Work."] pub fn used_work_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: used_work :: UsedWork , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "UsedWork" , () , [59u8 , 93u8 , 120u8 , 178u8 , 19u8 , 194u8 , 54u8 , 240u8 , 132u8 , 243u8 , 106u8 , 24u8 , 176u8 , 106u8 , 59u8 , 130u8 , 174u8 , 127u8 , 79u8 , 107u8 , 253u8 , 172u8 , 238u8 , 193u8 , 180u8 , 221u8 , 154u8 , 66u8 , 179u8 , 190u8 , 192u8 , 202u8 ,]) } # [doc = " ============================"] # [doc = " ==== Global Parameters ====="] # [doc = " ============================"] # [doc = " --- StorageItem Global Used Work."] pub fn used_work (& self , _0 : types :: used_work :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: used_work :: Param0 > , types :: used_work :: UsedWork , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "UsedWork" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [59u8 , 93u8 , 120u8 , 178u8 , 19u8 , 194u8 , 54u8 , 240u8 , 132u8 , 243u8 , 106u8 , 24u8 , 176u8 , 106u8 , 59u8 , 130u8 , 174u8 , 127u8 , 79u8 , 107u8 , 253u8 , 172u8 , 238u8 , 193u8 , 180u8 , 221u8 , 154u8 , 66u8 , 179u8 , 190u8 , 192u8 , 202u8 ,]) } # [doc = " --- ITEM( global_max_registrations_per_block )"] pub fn max_registrations_per_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_registrations_per_block :: MaxRegistrationsPerBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxRegistrationsPerBlock" , () , [191u8 , 117u8 , 55u8 , 65u8 , 37u8 , 248u8 , 122u8 , 37u8 , 164u8 , 225u8 , 117u8 , 242u8 , 26u8 , 106u8 , 69u8 , 2u8 , 99u8 , 9u8 , 32u8 , 125u8 , 131u8 , 215u8 , 127u8 , 37u8 , 113u8 , 234u8 , 214u8 , 107u8 , 1u8 , 20u8 , 172u8 , 209u8 ,]) } # [doc = " --- ITEM( global_max_registrations_per_block )"] pub fn max_registrations_per_block (& self , _0 : types :: max_registrations_per_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: max_registrations_per_block :: Param0 > , types :: max_registrations_per_block :: MaxRegistrationsPerBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxRegistrationsPerBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [191u8 , 117u8 , 55u8 , 65u8 , 37u8 , 248u8 , 122u8 , 37u8 , 164u8 , 225u8 , 117u8 , 242u8 , 26u8 , 106u8 , 69u8 , 2u8 , 99u8 , 9u8 , 32u8 , 125u8 , 131u8 , 215u8 , 127u8 , 37u8 , 113u8 , 234u8 , 214u8 , 107u8 , 1u8 , 20u8 , 172u8 , 209u8 ,]) } # [doc = " --- ITEM( total_number_of_existing_networks )"] pub fn total_networks (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_networks :: TotalNetworks , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalNetworks" , () , [132u8 , 105u8 , 133u8 , 1u8 , 223u8 , 1u8 , 229u8 , 233u8 , 214u8 , 218u8 , 161u8 , 147u8 , 170u8 , 200u8 , 141u8 , 203u8 , 140u8 , 190u8 , 33u8 , 201u8 , 135u8 , 127u8 , 85u8 , 28u8 , 145u8 , 113u8 , 61u8 , 75u8 , 51u8 , 225u8 , 47u8 , 107u8 ,]) } # [doc = " ITEM( network_immunity_period )"] pub fn network_immunity_period (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_immunity_period :: NetworkImmunityPeriod , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkImmunityPeriod" , () , [148u8 , 253u8 , 144u8 , 188u8 , 122u8 , 21u8 , 208u8 , 145u8 , 44u8 , 150u8 , 156u8 , 160u8 , 102u8 , 86u8 , 53u8 , 181u8 , 250u8 , 70u8 , 226u8 , 33u8 , 63u8 , 74u8 , 84u8 , 231u8 , 131u8 , 107u8 , 225u8 , 208u8 , 71u8 , 137u8 , 208u8 , 232u8 ,]) } # [doc = " ITEM( min_network_lock_cost )"] pub fn network_min_lock_cost (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_min_lock_cost :: NetworkMinLockCost , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkMinLockCost" , () , [121u8 , 246u8 , 74u8 , 53u8 , 75u8 , 35u8 , 107u8 , 91u8 , 134u8 , 130u8 , 132u8 , 220u8 , 219u8 , 99u8 , 121u8 , 198u8 , 164u8 , 152u8 , 88u8 , 82u8 , 228u8 , 197u8 , 89u8 , 145u8 , 100u8 , 28u8 , 123u8 , 54u8 , 14u8 , 238u8 , 90u8 , 123u8 ,]) } # [doc = " ITEM( last_network_lock_cost )"] pub fn network_last_lock_cost (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_last_lock_cost :: NetworkLastLockCost , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkLastLockCost" , () , [204u8 , 201u8 , 165u8 , 119u8 , 228u8 , 146u8 , 239u8 , 232u8 , 251u8 , 98u8 , 7u8 , 78u8 , 57u8 , 16u8 , 50u8 , 12u8 , 121u8 , 144u8 , 185u8 , 4u8 , 1u8 , 5u8 , 172u8 , 48u8 , 128u8 , 154u8 , 198u8 , 55u8 , 81u8 , 154u8 , 96u8 , 140u8 ,]) } # [doc = " ITEM( network_lock_reduction_interval )"] pub fn network_lock_reduction_interval (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_lock_reduction_interval :: NetworkLockReductionInterval , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkLockReductionInterval" , () , [152u8 , 66u8 , 107u8 , 209u8 , 243u8 , 1u8 , 28u8 , 95u8 , 254u8 , 78u8 , 47u8 , 219u8 , 35u8 , 112u8 , 73u8 , 86u8 , 210u8 , 24u8 , 196u8 , 124u8 , 28u8 , 223u8 , 82u8 , 34u8 , 84u8 , 70u8 , 76u8 , 182u8 , 38u8 , 196u8 , 199u8 , 244u8 ,]) } # [doc = " ITEM( subnet_owner_cut )"] pub fn subnet_owner_cut (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_owner_cut :: SubnetOwnerCut , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetOwnerCut" , () , [121u8 , 122u8 , 222u8 , 69u8 , 52u8 , 72u8 , 210u8 , 26u8 , 120u8 , 3u8 , 126u8 , 203u8 , 87u8 , 116u8 , 72u8 , 25u8 , 142u8 , 231u8 , 36u8 , 26u8 , 121u8 , 174u8 , 151u8 , 102u8 , 2u8 , 104u8 , 178u8 , 168u8 , 76u8 , 255u8 , 139u8 , 3u8 ,]) } # [doc = " ITEM( network_rate_limit )"] pub fn network_rate_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_rate_limit :: NetworkRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkRateLimit" , () , [61u8 , 107u8 , 0u8 , 71u8 , 139u8 , 133u8 , 10u8 , 238u8 , 249u8 , 102u8 , 121u8 , 59u8 , 74u8 , 155u8 , 129u8 , 16u8 , 44u8 , 90u8 , 163u8 , 19u8 , 15u8 , 22u8 , 6u8 , 44u8 , 254u8 , 120u8 , 15u8 , 117u8 , 73u8 , 85u8 , 73u8 , 74u8 ,]) } # [doc = " --- ITEM( nominator_min_required_stake ) --- Factor of DefaultMinStake in per-mill format."] pub fn nominator_min_required_stake (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: nominator_min_required_stake :: NominatorMinRequiredStake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NominatorMinRequiredStake" , () , [25u8 , 60u8 , 15u8 , 61u8 , 202u8 , 65u8 , 157u8 , 188u8 , 225u8 , 173u8 , 91u8 , 204u8 , 252u8 , 105u8 , 243u8 , 30u8 , 194u8 , 185u8 , 127u8 , 230u8 , 12u8 , 7u8 , 76u8 , 185u8 , 44u8 , 154u8 , 150u8 , 192u8 , 114u8 , 2u8 , 162u8 , 86u8 ,]) } # [doc = " ITEM( weights_version_key_rate_limit ) --- Rate limit in tempos."] pub fn weights_version_key_rate_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: weights_version_key_rate_limit :: WeightsVersionKeyRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightsVersionKeyRateLimit" , () , [239u8 , 254u8 , 114u8 , 81u8 , 104u8 , 96u8 , 97u8 , 113u8 , 66u8 , 206u8 , 85u8 , 197u8 , 163u8 , 240u8 , 131u8 , 172u8 , 173u8 , 100u8 , 76u8 , 160u8 , 209u8 , 60u8 , 134u8 , 22u8 , 193u8 , 185u8 , 83u8 , 253u8 , 177u8 , 212u8 , 78u8 , 80u8 ,]) } # [doc = " ============================"] # [doc = " ==== Rate Limiting ====="] # [doc = " ============================"] # [doc = " --- MAP ( RateLimitKey ) --> Block number in which the last rate limited operation occured"] pub fn last_rate_limited_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_rate_limited_block :: LastRateLimitedBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastRateLimitedBlock" , () , [148u8 , 68u8 , 35u8 , 81u8 , 231u8 , 90u8 , 38u8 , 228u8 , 100u8 , 77u8 , 121u8 , 246u8 , 243u8 , 34u8 , 151u8 , 134u8 , 155u8 , 104u8 , 233u8 , 78u8 , 39u8 , 94u8 , 64u8 , 41u8 , 28u8 , 64u8 , 56u8 , 131u8 , 190u8 , 249u8 , 3u8 , 111u8 ,]) } # [doc = " ============================"] # [doc = " ==== Rate Limiting ====="] # [doc = " ============================"] # [doc = " --- MAP ( RateLimitKey ) --> Block number in which the last rate limited operation occured"] pub fn last_rate_limited_block (& self , _0 : types :: last_rate_limited_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_rate_limited_block :: Param0 > , types :: last_rate_limited_block :: LastRateLimitedBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastRateLimitedBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [148u8 , 68u8 , 35u8 , 81u8 , 231u8 , 90u8 , 38u8 , 228u8 , 100u8 , 77u8 , 121u8 , 246u8 , 243u8 , 34u8 , 151u8 , 134u8 , 155u8 , 104u8 , 233u8 , 78u8 , 39u8 , 94u8 , 64u8 , 41u8 , 28u8 , 64u8 , 56u8 , 131u8 , 190u8 , 249u8 , 3u8 , 111u8 ,]) } # [doc = " ============================"] # [doc = " ==== Subnet Locks ====="] # [doc = " ============================"] # [doc = " --- MAP ( netuid ) --> transfer_toggle"] pub fn transfer_toggle_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: transfer_toggle :: TransferToggle , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TransferToggle" , () , [97u8 , 196u8 , 228u8 , 191u8 , 57u8 , 26u8 , 147u8 , 173u8 , 231u8 , 138u8 , 92u8 , 47u8 , 193u8 , 222u8 , 46u8 , 15u8 , 127u8 , 123u8 , 211u8 , 230u8 , 227u8 , 204u8 , 209u8 , 189u8 , 148u8 , 231u8 , 4u8 , 92u8 , 68u8 , 71u8 , 43u8 , 253u8 ,]) } # [doc = " ============================"] # [doc = " ==== Subnet Locks ====="] # [doc = " ============================"] # [doc = " --- MAP ( netuid ) --> transfer_toggle"] pub fn transfer_toggle (& self , _0 : types :: transfer_toggle :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transfer_toggle :: Param0 > , types :: transfer_toggle :: TransferToggle , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TransferToggle" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [97u8 , 196u8 , 228u8 , 191u8 , 57u8 , 26u8 , 147u8 , 173u8 , 231u8 , 138u8 , 92u8 , 47u8 , 193u8 , 222u8 , 46u8 , 15u8 , 127u8 , 123u8 , 211u8 , 230u8 , 227u8 , 204u8 , 209u8 , 189u8 , 148u8 , 231u8 , 4u8 , 92u8 , 68u8 , 71u8 , 43u8 , 253u8 ,]) } # [doc = " --- MAP ( netuid ) --> total_subnet_locked"] pub fn subnet_locked_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_locked :: SubnetLocked , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLocked" , () , [30u8 , 43u8 , 18u8 , 122u8 , 32u8 , 192u8 , 68u8 , 191u8 , 178u8 , 157u8 , 100u8 , 155u8 , 254u8 , 246u8 , 87u8 , 39u8 , 252u8 , 73u8 , 76u8 , 199u8 , 255u8 , 50u8 , 203u8 , 168u8 , 207u8 , 203u8 , 7u8 , 177u8 , 160u8 , 108u8 , 188u8 , 98u8 ,]) } # [doc = " --- MAP ( netuid ) --> total_subnet_locked"] pub fn subnet_locked (& self , _0 : types :: subnet_locked :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_locked :: Param0 > , types :: subnet_locked :: SubnetLocked , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLocked" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [30u8 , 43u8 , 18u8 , 122u8 , 32u8 , 192u8 , 68u8 , 191u8 , 178u8 , 157u8 , 100u8 , 155u8 , 254u8 , 246u8 , 87u8 , 39u8 , 252u8 , 73u8 , 76u8 , 199u8 , 255u8 , 50u8 , 203u8 , 168u8 , 207u8 , 203u8 , 7u8 , 177u8 , 160u8 , 108u8 , 188u8 , 98u8 ,]) } # [doc = " --- MAP ( netuid ) --> largest_locked"] pub fn largest_locked_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: largest_locked :: LargestLocked , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LargestLocked" , () , [34u8 , 112u8 , 36u8 , 69u8 , 226u8 , 161u8 , 248u8 , 14u8 , 187u8 , 161u8 , 172u8 , 132u8 , 2u8 , 44u8 , 177u8 , 208u8 , 181u8 , 138u8 , 118u8 , 106u8 , 190u8 , 27u8 , 226u8 , 201u8 , 135u8 , 73u8 , 154u8 , 99u8 , 117u8 , 228u8 , 238u8 , 186u8 ,]) } # [doc = " --- MAP ( netuid ) --> largest_locked"] pub fn largest_locked (& self , _0 : types :: largest_locked :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: largest_locked :: Param0 > , types :: largest_locked :: LargestLocked , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LargestLocked" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [34u8 , 112u8 , 36u8 , 69u8 , 226u8 , 161u8 , 248u8 , 14u8 , 187u8 , 161u8 , 172u8 , 132u8 , 2u8 , 44u8 , 177u8 , 208u8 , 181u8 , 138u8 , 118u8 , 106u8 , 190u8 , 27u8 , 226u8 , 201u8 , 135u8 , 73u8 , 154u8 , 99u8 , 117u8 , 228u8 , 238u8 , 186u8 ,]) } # [doc = " ================="] # [doc = " ==== Tempos ====="] # [doc = " ================="] # [doc = " --- MAP ( netuid ) --> tempo"] pub fn tempo_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tempo :: Tempo , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Tempo" , () , [104u8 , 78u8 , 96u8 , 198u8 , 177u8 , 63u8 , 191u8 , 130u8 , 193u8 , 42u8 , 248u8 , 107u8 , 189u8 , 131u8 , 255u8 , 124u8 , 11u8 , 182u8 , 25u8 , 38u8 , 42u8 , 96u8 , 26u8 , 67u8 , 57u8 , 108u8 , 68u8 , 231u8 , 202u8 , 170u8 , 202u8 , 180u8 ,]) } # [doc = " ================="] # [doc = " ==== Tempos ====="] # [doc = " ================="] # [doc = " --- MAP ( netuid ) --> tempo"] pub fn tempo (& self , _0 : types :: tempo :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tempo :: Param0 > , types :: tempo :: Tempo , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Tempo" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [104u8 , 78u8 , 96u8 , 198u8 , 177u8 , 63u8 , 191u8 , 130u8 , 193u8 , 42u8 , 248u8 , 107u8 , 189u8 , 131u8 , 255u8 , 124u8 , 11u8 , 182u8 , 25u8 , 38u8 , 42u8 , 96u8 , 26u8 , 67u8 , 57u8 , 108u8 , 68u8 , 231u8 , 202u8 , 170u8 , 202u8 , 180u8 ,]) } # [doc = " ============================"] # [doc = " ==== Subnet Parameters ====="] # [doc = " ============================"] # [doc = " --- MAP ( netuid ) --> block number of first emission"] pub fn first_emission_block_number_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: first_emission_block_number :: FirstEmissionBlockNumber , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "FirstEmissionBlockNumber" , () , [239u8 , 152u8 , 93u8 , 218u8 , 110u8 , 136u8 , 3u8 , 212u8 , 67u8 , 234u8 , 119u8 , 242u8 , 81u8 , 255u8 , 10u8 , 143u8 , 234u8 , 2u8 , 189u8 , 212u8 , 209u8 , 210u8 , 115u8 , 204u8 , 227u8 , 164u8 , 193u8 , 90u8 , 122u8 , 27u8 , 139u8 , 86u8 ,]) } # [doc = " ============================"] # [doc = " ==== Subnet Parameters ====="] # [doc = " ============================"] # [doc = " --- MAP ( netuid ) --> block number of first emission"] pub fn first_emission_block_number (& self , _0 : types :: first_emission_block_number :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: first_emission_block_number :: Param0 > , types :: first_emission_block_number :: FirstEmissionBlockNumber , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "FirstEmissionBlockNumber" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [239u8 , 152u8 , 93u8 , 218u8 , 110u8 , 136u8 , 3u8 , 212u8 , 67u8 , 234u8 , 119u8 , 242u8 , 81u8 , 255u8 , 10u8 , 143u8 , 234u8 , 2u8 , 189u8 , 212u8 , 209u8 , 210u8 , 115u8 , 204u8 , 227u8 , 164u8 , 193u8 , 90u8 , 122u8 , 27u8 , 139u8 , 86u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet mechanism"] pub fn subnet_mechanism_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_mechanism :: SubnetMechanism , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetMechanism" , () , [212u8 , 73u8 , 184u8 , 246u8 , 148u8 , 118u8 , 59u8 , 253u8 , 96u8 , 199u8 , 197u8 , 84u8 , 9u8 , 156u8 , 125u8 , 140u8 , 54u8 , 78u8 , 233u8 , 48u8 , 213u8 , 233u8 , 187u8 , 138u8 , 26u8 , 135u8 , 34u8 , 236u8 , 75u8 , 169u8 , 37u8 , 23u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet mechanism"] pub fn subnet_mechanism (& self , _0 : types :: subnet_mechanism :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_mechanism :: Param0 > , types :: subnet_mechanism :: SubnetMechanism , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetMechanism" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [212u8 , 73u8 , 184u8 , 246u8 , 148u8 , 118u8 , 59u8 , 253u8 , 96u8 , 199u8 , 197u8 , 84u8 , 9u8 , 156u8 , 125u8 , 140u8 , 54u8 , 78u8 , 233u8 , 48u8 , 213u8 , 233u8 , 187u8 , 138u8 , 26u8 , 135u8 , 34u8 , 236u8 , 75u8 , 169u8 , 37u8 , 23u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnetwork_n (Number of UIDs in the network)."] pub fn subnetwork_n_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnetwork_n :: SubnetworkN , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetworkN" , () , [14u8 , 190u8 , 185u8 , 215u8 , 93u8 , 134u8 , 150u8 , 83u8 , 248u8 , 254u8 , 184u8 , 105u8 , 213u8 , 65u8 , 205u8 , 128u8 , 46u8 , 234u8 , 231u8 , 176u8 , 195u8 , 175u8 , 97u8 , 75u8 , 33u8 , 209u8 , 155u8 , 55u8 , 158u8 , 0u8 , 159u8 , 140u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnetwork_n (Number of UIDs in the network)."] pub fn subnetwork_n (& self , _0 : types :: subnetwork_n :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnetwork_n :: Param0 > , types :: subnetwork_n :: SubnetworkN , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetworkN" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [14u8 , 190u8 , 185u8 , 215u8 , 93u8 , 134u8 , 150u8 , 83u8 , 248u8 , 254u8 , 184u8 , 105u8 , 213u8 , 65u8 , 205u8 , 128u8 , 46u8 , 234u8 , 231u8 , 176u8 , 195u8 , 175u8 , 97u8 , 75u8 , 33u8 , 209u8 , 155u8 , 55u8 , 158u8 , 0u8 , 159u8 , 140u8 ,]) } # [doc = " --- MAP ( netuid ) --> network_is_added"] pub fn networks_added_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: networks_added :: NetworksAdded , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworksAdded" , () , [246u8 , 161u8 , 17u8 , 237u8 , 203u8 , 101u8 , 133u8 , 177u8 , 241u8 , 246u8 , 131u8 , 72u8 , 167u8 , 117u8 , 117u8 , 183u8 , 50u8 , 185u8 , 129u8 , 136u8 , 132u8 , 158u8 , 194u8 , 134u8 , 208u8 , 34u8 , 38u8 , 91u8 , 47u8 , 89u8 , 4u8 , 53u8 ,]) } # [doc = " --- MAP ( netuid ) --> network_is_added"] pub fn networks_added (& self , _0 : types :: networks_added :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: networks_added :: Param0 > , types :: networks_added :: NetworksAdded , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworksAdded" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [246u8 , 161u8 , 17u8 , 237u8 , 203u8 , 101u8 , 133u8 , 177u8 , 241u8 , 246u8 , 131u8 , 72u8 , 167u8 , 117u8 , 117u8 , 183u8 , 50u8 , 185u8 , 129u8 , 136u8 , 132u8 , 158u8 , 194u8 , 134u8 , 208u8 , 34u8 , 38u8 , 91u8 , 47u8 , 89u8 , 4u8 , 53u8 ,]) } # [doc = " --- DMAP ( hotkey, netuid ) --> bool"] pub fn is_network_member_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: is_network_member :: IsNetworkMember , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "IsNetworkMember" , () , [173u8 , 44u8 , 159u8 , 45u8 , 191u8 , 17u8 , 225u8 , 54u8 , 118u8 , 238u8 , 172u8 , 202u8 , 215u8 , 188u8 , 112u8 , 230u8 , 77u8 , 134u8 , 91u8 , 35u8 , 26u8 , 107u8 , 129u8 , 153u8 , 206u8 , 3u8 , 119u8 , 130u8 , 70u8 , 20u8 , 14u8 , 112u8 ,]) } # [doc = " --- DMAP ( hotkey, netuid ) --> bool"] pub fn is_network_member_iter1 (& self , _0 : types :: is_network_member :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: is_network_member :: Param0 > , types :: is_network_member :: IsNetworkMember , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "IsNetworkMember" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [173u8 , 44u8 , 159u8 , 45u8 , 191u8 , 17u8 , 225u8 , 54u8 , 118u8 , 238u8 , 172u8 , 202u8 , 215u8 , 188u8 , 112u8 , 230u8 , 77u8 , 134u8 , 91u8 , 35u8 , 26u8 , 107u8 , 129u8 , 153u8 , 206u8 , 3u8 , 119u8 , 130u8 , 70u8 , 20u8 , 14u8 , 112u8 ,]) } # [doc = " --- DMAP ( hotkey, netuid ) --> bool"] pub fn is_network_member (& self , _0 : types :: is_network_member :: Param0 , _1 : types :: is_network_member :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: is_network_member :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: is_network_member :: Param1 > ,) , types :: is_network_member :: IsNetworkMember , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "IsNetworkMember" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [173u8 , 44u8 , 159u8 , 45u8 , 191u8 , 17u8 , 225u8 , 54u8 , 118u8 , 238u8 , 172u8 , 202u8 , 215u8 , 188u8 , 112u8 , 230u8 , 77u8 , 134u8 , 91u8 , 35u8 , 26u8 , 107u8 , 129u8 , 153u8 , 206u8 , 3u8 , 119u8 , 130u8 , 70u8 , 20u8 , 14u8 , 112u8 ,]) } # [doc = " --- MAP ( netuid ) --> network_registration_allowed"] pub fn network_registration_allowed_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_registration_allowed :: NetworkRegistrationAllowed , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkRegistrationAllowed" , () , [224u8 , 105u8 , 165u8 , 248u8 , 234u8 , 83u8 , 131u8 , 157u8 , 108u8 , 19u8 , 162u8 , 135u8 , 9u8 , 122u8 , 220u8 , 112u8 , 178u8 , 220u8 , 131u8 , 75u8 , 227u8 , 112u8 , 213u8 , 135u8 , 164u8 , 28u8 , 169u8 , 122u8 , 218u8 , 122u8 , 0u8 , 175u8 ,]) } # [doc = " --- MAP ( netuid ) --> network_registration_allowed"] pub fn network_registration_allowed (& self , _0 : types :: network_registration_allowed :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: network_registration_allowed :: Param0 > , types :: network_registration_allowed :: NetworkRegistrationAllowed , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkRegistrationAllowed" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [224u8 , 105u8 , 165u8 , 248u8 , 234u8 , 83u8 , 131u8 , 157u8 , 108u8 , 19u8 , 162u8 , 135u8 , 9u8 , 122u8 , 220u8 , 112u8 , 178u8 , 220u8 , 131u8 , 75u8 , 227u8 , 112u8 , 213u8 , 135u8 , 164u8 , 28u8 , 169u8 , 122u8 , 218u8 , 122u8 , 0u8 , 175u8 ,]) } # [doc = " --- MAP ( netuid ) --> network_pow_allowed"] pub fn network_pow_registration_allowed_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_pow_registration_allowed :: NetworkPowRegistrationAllowed , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkPowRegistrationAllowed" , () , [198u8 , 138u8 , 159u8 , 113u8 , 220u8 , 211u8 , 97u8 , 81u8 , 188u8 , 209u8 , 130u8 , 28u8 , 59u8 , 226u8 , 39u8 , 166u8 , 237u8 , 173u8 , 82u8 , 61u8 , 47u8 , 203u8 , 117u8 , 218u8 , 249u8 , 39u8 , 79u8 , 127u8 , 156u8 , 117u8 , 201u8 , 103u8 ,]) } # [doc = " --- MAP ( netuid ) --> network_pow_allowed"] pub fn network_pow_registration_allowed (& self , _0 : types :: network_pow_registration_allowed :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: network_pow_registration_allowed :: Param0 > , types :: network_pow_registration_allowed :: NetworkPowRegistrationAllowed , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkPowRegistrationAllowed" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [198u8 , 138u8 , 159u8 , 113u8 , 220u8 , 211u8 , 97u8 , 81u8 , 188u8 , 209u8 , 130u8 , 28u8 , 59u8 , 226u8 , 39u8 , 166u8 , 237u8 , 173u8 , 82u8 , 61u8 , 47u8 , 203u8 , 117u8 , 218u8 , 249u8 , 39u8 , 79u8 , 127u8 , 156u8 , 117u8 , 201u8 , 103u8 ,]) } # [doc = " --- MAP ( netuid ) --> block_created"] pub fn network_registered_at_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_registered_at :: NetworkRegisteredAt , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkRegisteredAt" , () , [123u8 , 234u8 , 64u8 , 248u8 , 32u8 , 119u8 , 192u8 , 176u8 , 98u8 , 201u8 , 74u8 , 210u8 , 34u8 , 148u8 , 254u8 , 127u8 , 10u8 , 31u8 , 205u8 , 17u8 , 43u8 , 177u8 , 159u8 , 189u8 , 199u8 , 72u8 , 1u8 , 246u8 , 96u8 , 73u8 , 12u8 , 34u8 ,]) } # [doc = " --- MAP ( netuid ) --> block_created"] pub fn network_registered_at (& self , _0 : types :: network_registered_at :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: network_registered_at :: Param0 > , types :: network_registered_at :: NetworkRegisteredAt , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkRegisteredAt" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [123u8 , 234u8 , 64u8 , 248u8 , 32u8 , 119u8 , 192u8 , 176u8 , 98u8 , 201u8 , 74u8 , 210u8 , 34u8 , 148u8 , 254u8 , 127u8 , 10u8 , 31u8 , 205u8 , 17u8 , 43u8 , 177u8 , 159u8 , 189u8 , 199u8 , 72u8 , 1u8 , 246u8 , 96u8 , 73u8 , 12u8 , 34u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_server_emission"] pub fn pending_server_emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_server_emission :: PendingServerEmission , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingServerEmission" , () , [42u8 , 170u8 , 65u8 , 71u8 , 206u8 , 84u8 , 32u8 , 47u8 , 131u8 , 29u8 , 211u8 , 132u8 , 37u8 , 217u8 , 98u8 , 220u8 , 57u8 , 129u8 , 115u8 , 211u8 , 138u8 , 166u8 , 151u8 , 201u8 , 244u8 , 115u8 , 4u8 , 182u8 , 214u8 , 61u8 , 224u8 , 83u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_server_emission"] pub fn pending_server_emission (& self , _0 : types :: pending_server_emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_server_emission :: Param0 > , types :: pending_server_emission :: PendingServerEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingServerEmission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [42u8 , 170u8 , 65u8 , 71u8 , 206u8 , 84u8 , 32u8 , 47u8 , 131u8 , 29u8 , 211u8 , 132u8 , 37u8 , 217u8 , 98u8 , 220u8 , 57u8 , 129u8 , 115u8 , 211u8 , 138u8 , 166u8 , 151u8 , 201u8 , 244u8 , 115u8 , 4u8 , 182u8 , 214u8 , 61u8 , 224u8 , 83u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_validator_emission"] pub fn pending_validator_emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_validator_emission :: PendingValidatorEmission , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingValidatorEmission" , () , [69u8 , 125u8 , 248u8 , 71u8 , 123u8 , 119u8 , 199u8 , 153u8 , 85u8 , 165u8 , 128u8 , 228u8 , 158u8 , 208u8 , 107u8 , 36u8 , 109u8 , 70u8 , 246u8 , 114u8 , 17u8 , 88u8 , 143u8 , 149u8 , 184u8 , 159u8 , 151u8 , 10u8 , 191u8 , 106u8 , 16u8 , 183u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_validator_emission"] pub fn pending_validator_emission (& self , _0 : types :: pending_validator_emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_validator_emission :: Param0 > , types :: pending_validator_emission :: PendingValidatorEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingValidatorEmission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [69u8 , 125u8 , 248u8 , 71u8 , 123u8 , 119u8 , 199u8 , 153u8 , 85u8 , 165u8 , 128u8 , 228u8 , 158u8 , 208u8 , 107u8 , 36u8 , 109u8 , 70u8 , 246u8 , 114u8 , 17u8 , 88u8 , 143u8 , 149u8 , 184u8 , 159u8 , 151u8 , 10u8 , 191u8 , 106u8 , 16u8 , 183u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_root_alpha_emission"] pub fn pending_root_alpha_divs_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_root_alpha_divs :: PendingRootAlphaDivs , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingRootAlphaDivs" , () , [46u8 , 115u8 , 156u8 , 101u8 , 188u8 , 129u8 , 103u8 , 209u8 , 196u8 , 248u8 , 153u8 , 59u8 , 102u8 , 70u8 , 39u8 , 119u8 , 81u8 , 252u8 , 36u8 , 184u8 , 139u8 , 106u8 , 67u8 , 214u8 , 251u8 , 215u8 , 127u8 , 24u8 , 189u8 , 59u8 , 160u8 , 251u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_root_alpha_emission"] pub fn pending_root_alpha_divs (& self , _0 : types :: pending_root_alpha_divs :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_root_alpha_divs :: Param0 > , types :: pending_root_alpha_divs :: PendingRootAlphaDivs , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingRootAlphaDivs" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [46u8 , 115u8 , 156u8 , 101u8 , 188u8 , 129u8 , 103u8 , 209u8 , 196u8 , 248u8 , 153u8 , 59u8 , 102u8 , 70u8 , 39u8 , 119u8 , 81u8 , 252u8 , 36u8 , 184u8 , 139u8 , 106u8 , 67u8 , 214u8 , 251u8 , 215u8 , 127u8 , 24u8 , 189u8 , 59u8 , 160u8 , 251u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_owner_cut"] pub fn pending_owner_cut_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_owner_cut :: PendingOwnerCut , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingOwnerCut" , () , [136u8 , 188u8 , 33u8 , 177u8 , 166u8 , 227u8 , 185u8 , 163u8 , 221u8 , 53u8 , 74u8 , 240u8 , 13u8 , 229u8 , 161u8 , 133u8 , 255u8 , 157u8 , 12u8 , 238u8 , 240u8 , 199u8 , 64u8 , 35u8 , 199u8 , 208u8 , 91u8 , 101u8 , 113u8 , 73u8 , 178u8 , 55u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_owner_cut"] pub fn pending_owner_cut (& self , _0 : types :: pending_owner_cut :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_owner_cut :: Param0 > , types :: pending_owner_cut :: PendingOwnerCut , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingOwnerCut" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [136u8 , 188u8 , 33u8 , 177u8 , 166u8 , 227u8 , 185u8 , 163u8 , 221u8 , 53u8 , 74u8 , 240u8 , 13u8 , 229u8 , 161u8 , 133u8 , 255u8 , 157u8 , 12u8 , 238u8 , 240u8 , 199u8 , 64u8 , 35u8 , 199u8 , 208u8 , 91u8 , 101u8 , 113u8 , 73u8 , 178u8 , 55u8 ,]) } # [doc = " --- MAP ( netuid ) --> blocks_since_last_step"] pub fn blocks_since_last_step_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: blocks_since_last_step :: BlocksSinceLastStep , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BlocksSinceLastStep" , () , [109u8 , 129u8 , 181u8 , 218u8 , 224u8 , 135u8 , 137u8 , 119u8 , 202u8 , 22u8 , 243u8 , 181u8 , 118u8 , 30u8 , 154u8 , 247u8 , 188u8 , 140u8 , 187u8 , 62u8 , 30u8 , 224u8 , 126u8 , 253u8 , 47u8 , 63u8 , 4u8 , 55u8 , 74u8 , 41u8 , 156u8 , 126u8 ,]) } # [doc = " --- MAP ( netuid ) --> blocks_since_last_step"] pub fn blocks_since_last_step (& self , _0 : types :: blocks_since_last_step :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: blocks_since_last_step :: Param0 > , types :: blocks_since_last_step :: BlocksSinceLastStep , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BlocksSinceLastStep" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [109u8 , 129u8 , 181u8 , 218u8 , 224u8 , 135u8 , 137u8 , 119u8 , 202u8 , 22u8 , 243u8 , 181u8 , 118u8 , 30u8 , 154u8 , 247u8 , 188u8 , 140u8 , 187u8 , 62u8 , 30u8 , 224u8 , 126u8 , 253u8 , 47u8 , 63u8 , 4u8 , 55u8 , 74u8 , 41u8 , 156u8 , 126u8 ,]) } # [doc = " --- MAP ( netuid ) --> last_mechanism_step_block"] pub fn last_mechansim_step_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_mechansim_step_block :: LastMechansimStepBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastMechansimStepBlock" , () , [1u8 , 255u8 , 178u8 , 25u8 , 130u8 , 241u8 , 246u8 , 122u8 , 11u8 , 55u8 , 138u8 , 125u8 , 4u8 , 119u8 , 247u8 , 144u8 , 254u8 , 76u8 , 169u8 , 106u8 , 202u8 , 192u8 , 222u8 , 51u8 , 90u8 , 157u8 , 155u8 , 160u8 , 85u8 , 248u8 , 250u8 , 11u8 ,]) } # [doc = " --- MAP ( netuid ) --> last_mechanism_step_block"] pub fn last_mechansim_step_block (& self , _0 : types :: last_mechansim_step_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_mechansim_step_block :: Param0 > , types :: last_mechansim_step_block :: LastMechansimStepBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastMechansimStepBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [1u8 , 255u8 , 178u8 , 25u8 , 130u8 , 241u8 , 246u8 , 122u8 , 11u8 , 55u8 , 138u8 , 125u8 , 4u8 , 119u8 , 247u8 , 144u8 , 254u8 , 76u8 , 169u8 , 106u8 , 202u8 , 192u8 , 222u8 , 51u8 , 90u8 , 157u8 , 155u8 , 160u8 , 85u8 , 248u8 , 250u8 , 11u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_owner"] pub fn subnet_owner_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_owner :: SubnetOwner , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetOwner" , () , [17u8 , 66u8 , 162u8 , 10u8 , 172u8 , 179u8 , 149u8 , 54u8 , 233u8 , 98u8 , 237u8 , 13u8 , 148u8 , 126u8 , 66u8 , 29u8 , 242u8 , 85u8 , 112u8 , 201u8 , 76u8 , 90u8 , 68u8 , 156u8 , 207u8 , 190u8 , 242u8 , 175u8 , 178u8 , 137u8 , 82u8 , 137u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_owner"] pub fn subnet_owner (& self , _0 : types :: subnet_owner :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_owner :: Param0 > , types :: subnet_owner :: SubnetOwner , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetOwner" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [17u8 , 66u8 , 162u8 , 10u8 , 172u8 , 179u8 , 149u8 , 54u8 , 233u8 , 98u8 , 237u8 , 13u8 , 148u8 , 126u8 , 66u8 , 29u8 , 242u8 , 85u8 , 112u8 , 201u8 , 76u8 , 90u8 , 68u8 , 156u8 , 207u8 , 190u8 , 242u8 , 175u8 , 178u8 , 137u8 , 82u8 , 137u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_owner_hotkey"] pub fn subnet_owner_hotkey_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_owner_hotkey :: SubnetOwnerHotkey , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetOwnerHotkey" , () , [246u8 , 148u8 , 12u8 , 90u8 , 111u8 , 18u8 , 142u8 , 181u8 , 12u8 , 130u8 , 24u8 , 199u8 , 130u8 , 111u8 , 201u8 , 142u8 , 10u8 , 12u8 , 144u8 , 51u8 , 104u8 , 29u8 , 118u8 , 181u8 , 27u8 , 177u8 , 176u8 , 20u8 , 20u8 , 36u8 , 202u8 , 112u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_owner_hotkey"] pub fn subnet_owner_hotkey (& self , _0 : types :: subnet_owner_hotkey :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_owner_hotkey :: Param0 > , types :: subnet_owner_hotkey :: SubnetOwnerHotkey , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetOwnerHotkey" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [246u8 , 148u8 , 12u8 , 90u8 , 111u8 , 18u8 , 142u8 , 181u8 , 12u8 , 130u8 , 24u8 , 199u8 , 130u8 , 111u8 , 201u8 , 142u8 , 10u8 , 12u8 , 144u8 , 51u8 , 104u8 , 29u8 , 118u8 , 181u8 , 27u8 , 177u8 , 176u8 , 20u8 , 20u8 , 36u8 , 202u8 , 112u8 ,]) } # [doc = " --- MAP ( netuid ) --> recycle_or_burn"] pub fn recycle_or_burn_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: recycle_or_burn :: RecycleOrBurn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RecycleOrBurn" , () , [214u8 , 214u8 , 109u8 , 134u8 , 169u8 , 40u8 , 170u8 , 53u8 , 44u8 , 34u8 , 17u8 , 242u8 , 83u8 , 223u8 , 108u8 , 213u8 , 92u8 , 208u8 , 176u8 , 205u8 , 107u8 , 170u8 , 222u8 , 194u8 , 118u8 , 35u8 , 146u8 , 99u8 , 134u8 , 62u8 , 181u8 , 152u8 ,]) } # [doc = " --- MAP ( netuid ) --> recycle_or_burn"] pub fn recycle_or_burn (& self , _0 : types :: recycle_or_burn :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: recycle_or_burn :: Param0 > , types :: recycle_or_burn :: RecycleOrBurn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RecycleOrBurn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [214u8 , 214u8 , 109u8 , 134u8 , 169u8 , 40u8 , 170u8 , 53u8 , 44u8 , 34u8 , 17u8 , 242u8 , 83u8 , 223u8 , 108u8 , 213u8 , 92u8 , 208u8 , 176u8 , 205u8 , 107u8 , 170u8 , 222u8 , 194u8 , 118u8 , 35u8 , 146u8 , 99u8 , 134u8 , 62u8 , 181u8 , 152u8 ,]) } # [doc = " --- MAP ( netuid ) --> serving_rate_limit"] pub fn serving_rate_limit_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: serving_rate_limit :: ServingRateLimit , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ServingRateLimit" , () , [237u8 , 16u8 , 229u8 , 115u8 , 91u8 , 1u8 , 62u8 , 29u8 , 4u8 , 1u8 , 117u8 , 76u8 , 9u8 , 40u8 , 108u8 , 16u8 , 177u8 , 117u8 , 19u8 , 171u8 , 215u8 , 145u8 , 34u8 , 143u8 , 63u8 , 177u8 , 159u8 , 19u8 , 107u8 , 175u8 , 98u8 , 29u8 ,]) } # [doc = " --- MAP ( netuid ) --> serving_rate_limit"] pub fn serving_rate_limit (& self , _0 : types :: serving_rate_limit :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: serving_rate_limit :: Param0 > , types :: serving_rate_limit :: ServingRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ServingRateLimit" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [237u8 , 16u8 , 229u8 , 115u8 , 91u8 , 1u8 , 62u8 , 29u8 , 4u8 , 1u8 , 117u8 , 76u8 , 9u8 , 40u8 , 108u8 , 16u8 , 177u8 , 117u8 , 19u8 , 171u8 , 215u8 , 145u8 , 34u8 , 143u8 , 63u8 , 177u8 , 159u8 , 19u8 , 107u8 , 175u8 , 98u8 , 29u8 ,]) } # [doc = " --- MAP ( netuid ) --> Rho"] pub fn rho_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: rho :: Rho , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Rho" , () , [217u8 , 113u8 , 127u8 , 214u8 , 58u8 , 210u8 , 84u8 , 189u8 , 225u8 , 55u8 , 9u8 , 215u8 , 246u8 , 72u8 , 225u8 , 55u8 , 137u8 , 158u8 , 141u8 , 57u8 , 246u8 , 8u8 , 16u8 , 81u8 , 75u8 , 66u8 , 211u8 , 158u8 , 83u8 , 49u8 , 130u8 , 6u8 ,]) } # [doc = " --- MAP ( netuid ) --> Rho"] pub fn rho (& self , _0 : types :: rho :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: rho :: Param0 > , types :: rho :: Rho , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Rho" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [217u8 , 113u8 , 127u8 , 214u8 , 58u8 , 210u8 , 84u8 , 189u8 , 225u8 , 55u8 , 9u8 , 215u8 , 246u8 , 72u8 , 225u8 , 55u8 , 137u8 , 158u8 , 141u8 , 57u8 , 246u8 , 8u8 , 16u8 , 81u8 , 75u8 , 66u8 , 211u8 , 158u8 , 83u8 , 49u8 , 130u8 , 6u8 ,]) } # [doc = " --- MAP ( netuid ) --> AlphaSigmoidSteepness"] pub fn alpha_sigmoid_steepness_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: alpha_sigmoid_steepness :: AlphaSigmoidSteepness , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaSigmoidSteepness" , () , [22u8 , 49u8 , 191u8 , 106u8 , 126u8 , 130u8 , 160u8 , 216u8 , 21u8 , 193u8 , 72u8 , 252u8 , 163u8 , 254u8 , 222u8 , 158u8 , 26u8 , 97u8 , 246u8 , 51u8 , 206u8 , 65u8 , 10u8 , 196u8 , 81u8 , 252u8 , 157u8 , 90u8 , 221u8 , 244u8 , 128u8 , 37u8 ,]) } # [doc = " --- MAP ( netuid ) --> AlphaSigmoidSteepness"] pub fn alpha_sigmoid_steepness (& self , _0 : types :: alpha_sigmoid_steepness :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha_sigmoid_steepness :: Param0 > , types :: alpha_sigmoid_steepness :: AlphaSigmoidSteepness , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaSigmoidSteepness" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [22u8 , 49u8 , 191u8 , 106u8 , 126u8 , 130u8 , 160u8 , 216u8 , 21u8 , 193u8 , 72u8 , 252u8 , 163u8 , 254u8 , 222u8 , 158u8 , 26u8 , 97u8 , 246u8 , 51u8 , 206u8 , 65u8 , 10u8 , 196u8 , 81u8 , 252u8 , 157u8 , 90u8 , 221u8 , 244u8 , 128u8 , 37u8 ,]) } # [doc = " --- MAP ( netuid ) --> Kappa"] pub fn kappa_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: kappa :: Kappa , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Kappa" , () , [183u8 , 63u8 , 137u8 , 235u8 , 82u8 , 130u8 , 93u8 , 189u8 , 231u8 , 143u8 , 7u8 , 148u8 , 193u8 , 80u8 , 232u8 , 62u8 , 164u8 , 161u8 , 238u8 , 79u8 , 23u8 , 36u8 , 205u8 , 44u8 , 6u8 , 74u8 , 188u8 , 254u8 , 74u8 , 177u8 , 6u8 , 147u8 ,]) } # [doc = " --- MAP ( netuid ) --> Kappa"] pub fn kappa (& self , _0 : types :: kappa :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: kappa :: Param0 > , types :: kappa :: Kappa , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Kappa" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [183u8 , 63u8 , 137u8 , 235u8 , 82u8 , 130u8 , 93u8 , 189u8 , 231u8 , 143u8 , 7u8 , 148u8 , 193u8 , 80u8 , 232u8 , 62u8 , 164u8 , 161u8 , 238u8 , 79u8 , 23u8 , 36u8 , 205u8 , 44u8 , 6u8 , 74u8 , 188u8 , 254u8 , 74u8 , 177u8 , 6u8 , 147u8 ,]) } # [doc = " --- MAP ( netuid ) --> registrations_this_interval"] pub fn registrations_this_interval_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: registrations_this_interval :: RegistrationsThisInterval , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RegistrationsThisInterval" , () , [82u8 , 150u8 , 225u8 , 120u8 , 61u8 , 53u8 , 156u8 , 229u8 , 196u8 , 47u8 , 209u8 , 243u8 , 207u8 , 64u8 , 233u8 , 193u8 , 130u8 , 205u8 , 58u8 , 64u8 , 184u8 , 57u8 , 219u8 , 254u8 , 164u8 , 101u8 , 168u8 , 4u8 , 225u8 , 12u8 , 116u8 , 55u8 ,]) } # [doc = " --- MAP ( netuid ) --> registrations_this_interval"] pub fn registrations_this_interval (& self , _0 : types :: registrations_this_interval :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: registrations_this_interval :: Param0 > , types :: registrations_this_interval :: RegistrationsThisInterval , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RegistrationsThisInterval" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [82u8 , 150u8 , 225u8 , 120u8 , 61u8 , 53u8 , 156u8 , 229u8 , 196u8 , 47u8 , 209u8 , 243u8 , 207u8 , 64u8 , 233u8 , 193u8 , 130u8 , 205u8 , 58u8 , 64u8 , 184u8 , 57u8 , 219u8 , 254u8 , 164u8 , 101u8 , 168u8 , 4u8 , 225u8 , 12u8 , 116u8 , 55u8 ,]) } # [doc = " --- MAP ( netuid ) --> pow_registrations_this_interval"] pub fn pow_registrations_this_interval_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pow_registrations_this_interval :: PowRegistrationsThisInterval , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "POWRegistrationsThisInterval" , () , [137u8 , 0u8 , 128u8 , 92u8 , 62u8 , 201u8 , 248u8 , 253u8 , 92u8 , 50u8 , 81u8 , 86u8 , 59u8 , 216u8 , 49u8 , 61u8 , 120u8 , 197u8 , 237u8 , 172u8 , 97u8 , 101u8 , 249u8 , 122u8 , 169u8 , 246u8 , 23u8 , 69u8 , 98u8 , 74u8 , 108u8 , 183u8 ,]) } # [doc = " --- MAP ( netuid ) --> pow_registrations_this_interval"] pub fn pow_registrations_this_interval (& self , _0 : types :: pow_registrations_this_interval :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pow_registrations_this_interval :: Param0 > , types :: pow_registrations_this_interval :: PowRegistrationsThisInterval , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "POWRegistrationsThisInterval" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [137u8 , 0u8 , 128u8 , 92u8 , 62u8 , 201u8 , 248u8 , 253u8 , 92u8 , 50u8 , 81u8 , 86u8 , 59u8 , 216u8 , 49u8 , 61u8 , 120u8 , 197u8 , 237u8 , 172u8 , 97u8 , 101u8 , 249u8 , 122u8 , 169u8 , 246u8 , 23u8 , 69u8 , 98u8 , 74u8 , 108u8 , 183u8 ,]) } # [doc = " --- MAP ( netuid ) --> burn_registrations_this_interval"] pub fn burn_registrations_this_interval_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: burn_registrations_this_interval :: BurnRegistrationsThisInterval , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BurnRegistrationsThisInterval" , () , [41u8 , 170u8 , 250u8 , 166u8 , 41u8 , 18u8 , 190u8 , 42u8 , 45u8 , 103u8 , 105u8 , 137u8 , 86u8 , 241u8 , 101u8 , 43u8 , 205u8 , 174u8 , 251u8 , 227u8 , 82u8 , 119u8 , 19u8 , 94u8 , 41u8 , 10u8 , 132u8 , 0u8 , 171u8 , 248u8 , 147u8 , 114u8 ,]) } # [doc = " --- MAP ( netuid ) --> burn_registrations_this_interval"] pub fn burn_registrations_this_interval (& self , _0 : types :: burn_registrations_this_interval :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: burn_registrations_this_interval :: Param0 > , types :: burn_registrations_this_interval :: BurnRegistrationsThisInterval , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BurnRegistrationsThisInterval" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [41u8 , 170u8 , 250u8 , 166u8 , 41u8 , 18u8 , 190u8 , 42u8 , 45u8 , 103u8 , 105u8 , 137u8 , 86u8 , 241u8 , 101u8 , 43u8 , 205u8 , 174u8 , 251u8 , 227u8 , 82u8 , 119u8 , 19u8 , 94u8 , 41u8 , 10u8 , 132u8 , 0u8 , 171u8 , 248u8 , 147u8 , 114u8 ,]) } # [doc = " --- MAP ( netuid ) --> min_allowed_uids"] pub fn min_allowed_uids_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_allowed_uids :: MinAllowedUids , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinAllowedUids" , () , [22u8 , 167u8 , 24u8 , 40u8 , 166u8 , 199u8 , 192u8 , 241u8 , 126u8 , 68u8 , 90u8 , 103u8 , 92u8 , 227u8 , 250u8 , 22u8 , 216u8 , 214u8 , 26u8 , 238u8 , 248u8 , 51u8 , 29u8 , 165u8 , 146u8 , 131u8 , 199u8 , 102u8 , 9u8 , 161u8 , 75u8 , 246u8 ,]) } # [doc = " --- MAP ( netuid ) --> min_allowed_uids"] pub fn min_allowed_uids (& self , _0 : types :: min_allowed_uids :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: min_allowed_uids :: Param0 > , types :: min_allowed_uids :: MinAllowedUids , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinAllowedUids" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [22u8 , 167u8 , 24u8 , 40u8 , 166u8 , 199u8 , 192u8 , 241u8 , 126u8 , 68u8 , 90u8 , 103u8 , 92u8 , 227u8 , 250u8 , 22u8 , 216u8 , 214u8 , 26u8 , 238u8 , 248u8 , 51u8 , 29u8 , 165u8 , 146u8 , 131u8 , 199u8 , 102u8 , 9u8 , 161u8 , 75u8 , 246u8 ,]) } # [doc = " --- MAP ( netuid ) --> max_allowed_uids"] pub fn max_allowed_uids_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_allowed_uids :: MaxAllowedUids , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxAllowedUids" , () , [103u8 , 194u8 , 4u8 , 173u8 , 182u8 , 163u8 , 163u8 , 1u8 , 186u8 , 185u8 , 66u8 , 126u8 , 65u8 , 255u8 , 56u8 , 124u8 , 32u8 , 146u8 , 248u8 , 172u8 , 106u8 , 230u8 , 16u8 , 17u8 , 58u8 , 105u8 , 32u8 , 199u8 , 104u8 , 148u8 , 89u8 , 220u8 ,]) } # [doc = " --- MAP ( netuid ) --> max_allowed_uids"] pub fn max_allowed_uids (& self , _0 : types :: max_allowed_uids :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: max_allowed_uids :: Param0 > , types :: max_allowed_uids :: MaxAllowedUids , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxAllowedUids" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [103u8 , 194u8 , 4u8 , 173u8 , 182u8 , 163u8 , 163u8 , 1u8 , 186u8 , 185u8 , 66u8 , 126u8 , 65u8 , 255u8 , 56u8 , 124u8 , 32u8 , 146u8 , 248u8 , 172u8 , 106u8 , 230u8 , 16u8 , 17u8 , 58u8 , 105u8 , 32u8 , 199u8 , 104u8 , 148u8 , 89u8 , 220u8 ,]) } # [doc = " --- MAP ( netuid ) --> immunity_period"] pub fn immunity_period_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: immunity_period :: ImmunityPeriod , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ImmunityPeriod" , () , [70u8 , 128u8 , 190u8 , 139u8 , 24u8 , 7u8 , 169u8 , 148u8 , 152u8 , 190u8 , 182u8 , 15u8 , 153u8 , 243u8 , 173u8 , 164u8 , 90u8 , 126u8 , 88u8 , 147u8 , 204u8 , 184u8 , 113u8 , 40u8 , 239u8 , 243u8 , 172u8 , 127u8 , 255u8 , 98u8 , 163u8 , 185u8 ,]) } # [doc = " --- MAP ( netuid ) --> immunity_period"] pub fn immunity_period (& self , _0 : types :: immunity_period :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: immunity_period :: Param0 > , types :: immunity_period :: ImmunityPeriod , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ImmunityPeriod" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [70u8 , 128u8 , 190u8 , 139u8 , 24u8 , 7u8 , 169u8 , 148u8 , 152u8 , 190u8 , 182u8 , 15u8 , 153u8 , 243u8 , 173u8 , 164u8 , 90u8 , 126u8 , 88u8 , 147u8 , 204u8 , 184u8 , 113u8 , 40u8 , 239u8 , 243u8 , 172u8 , 127u8 , 255u8 , 98u8 , 163u8 , 185u8 ,]) } # [doc = " --- MAP ( netuid ) --> activity_cutoff"] pub fn activity_cutoff_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: activity_cutoff :: ActivityCutoff , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ActivityCutoff" , () , [89u8 , 224u8 , 144u8 , 219u8 , 103u8 , 178u8 , 43u8 , 161u8 , 8u8 , 116u8 , 75u8 , 181u8 , 177u8 , 97u8 , 38u8 , 12u8 , 230u8 , 202u8 , 240u8 , 40u8 , 163u8 , 225u8 , 236u8 , 151u8 , 197u8 , 24u8 , 193u8 , 70u8 , 47u8 , 214u8 , 240u8 , 83u8 ,]) } # [doc = " --- MAP ( netuid ) --> activity_cutoff"] pub fn activity_cutoff (& self , _0 : types :: activity_cutoff :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: activity_cutoff :: Param0 > , types :: activity_cutoff :: ActivityCutoff , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ActivityCutoff" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [89u8 , 224u8 , 144u8 , 219u8 , 103u8 , 178u8 , 43u8 , 161u8 , 8u8 , 116u8 , 75u8 , 181u8 , 177u8 , 97u8 , 38u8 , 12u8 , 230u8 , 202u8 , 240u8 , 40u8 , 163u8 , 225u8 , 236u8 , 151u8 , 197u8 , 24u8 , 193u8 , 70u8 , 47u8 , 214u8 , 240u8 , 83u8 ,]) } # [doc = " --- MAP ( netuid ) --> max_weight_limit"] pub fn max_weights_limit_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_weights_limit :: MaxWeightsLimit , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxWeightsLimit" , () , [196u8 , 51u8 , 76u8 , 19u8 , 131u8 , 191u8 , 47u8 , 164u8 , 180u8 , 137u8 , 42u8 , 212u8 , 29u8 , 30u8 , 252u8 , 121u8 , 140u8 , 117u8 , 191u8 , 205u8 , 247u8 , 192u8 , 136u8 , 228u8 , 186u8 , 237u8 , 220u8 , 17u8 , 233u8 , 153u8 , 46u8 , 61u8 ,]) } # [doc = " --- MAP ( netuid ) --> max_weight_limit"] pub fn max_weights_limit (& self , _0 : types :: max_weights_limit :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: max_weights_limit :: Param0 > , types :: max_weights_limit :: MaxWeightsLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxWeightsLimit" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [196u8 , 51u8 , 76u8 , 19u8 , 131u8 , 191u8 , 47u8 , 164u8 , 180u8 , 137u8 , 42u8 , 212u8 , 29u8 , 30u8 , 252u8 , 121u8 , 140u8 , 117u8 , 191u8 , 205u8 , 247u8 , 192u8 , 136u8 , 228u8 , 186u8 , 237u8 , 220u8 , 17u8 , 233u8 , 153u8 , 46u8 , 61u8 ,]) } # [doc = " --- MAP ( netuid ) --> weights_version_key"] pub fn weights_version_key_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: weights_version_key :: WeightsVersionKey , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightsVersionKey" , () , [21u8 , 190u8 , 212u8 , 229u8 , 10u8 , 128u8 , 146u8 , 53u8 , 14u8 , 95u8 , 216u8 , 17u8 , 0u8 , 196u8 , 96u8 , 121u8 , 100u8 , 183u8 , 80u8 , 81u8 , 116u8 , 83u8 , 3u8 , 105u8 , 49u8 , 82u8 , 37u8 , 43u8 , 15u8 , 225u8 , 181u8 , 13u8 ,]) } # [doc = " --- MAP ( netuid ) --> weights_version_key"] pub fn weights_version_key (& self , _0 : types :: weights_version_key :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weights_version_key :: Param0 > , types :: weights_version_key :: WeightsVersionKey , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightsVersionKey" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [21u8 , 190u8 , 212u8 , 229u8 , 10u8 , 128u8 , 146u8 , 53u8 , 14u8 , 95u8 , 216u8 , 17u8 , 0u8 , 196u8 , 96u8 , 121u8 , 100u8 , 183u8 , 80u8 , 81u8 , 116u8 , 83u8 , 3u8 , 105u8 , 49u8 , 82u8 , 37u8 , 43u8 , 15u8 , 225u8 , 181u8 , 13u8 ,]) } # [doc = " --- MAP ( netuid ) --> min_allowed_weights"] pub fn min_allowed_weights_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_allowed_weights :: MinAllowedWeights , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinAllowedWeights" , () , [113u8 , 188u8 , 139u8 , 178u8 , 162u8 , 34u8 , 89u8 , 245u8 , 248u8 , 78u8 , 152u8 , 110u8 , 240u8 , 138u8 , 117u8 , 226u8 , 247u8 , 84u8 , 43u8 , 89u8 , 219u8 , 75u8 , 228u8 , 50u8 , 212u8 , 17u8 , 128u8 , 228u8 , 4u8 , 247u8 , 173u8 , 138u8 ,]) } # [doc = " --- MAP ( netuid ) --> min_allowed_weights"] pub fn min_allowed_weights (& self , _0 : types :: min_allowed_weights :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: min_allowed_weights :: Param0 > , types :: min_allowed_weights :: MinAllowedWeights , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinAllowedWeights" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [113u8 , 188u8 , 139u8 , 178u8 , 162u8 , 34u8 , 89u8 , 245u8 , 248u8 , 78u8 , 152u8 , 110u8 , 240u8 , 138u8 , 117u8 , 226u8 , 247u8 , 84u8 , 43u8 , 89u8 , 219u8 , 75u8 , 228u8 , 50u8 , 212u8 , 17u8 , 128u8 , 228u8 , 4u8 , 247u8 , 173u8 , 138u8 ,]) } # [doc = " --- MAP ( netuid ) --> max_allowed_validators"] pub fn max_allowed_validators_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_allowed_validators :: MaxAllowedValidators , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxAllowedValidators" , () , [94u8 , 68u8 , 128u8 , 243u8 , 87u8 , 104u8 , 50u8 , 96u8 , 190u8 , 109u8 , 70u8 , 25u8 , 40u8 , 54u8 , 181u8 , 68u8 , 187u8 , 79u8 , 42u8 , 131u8 , 132u8 , 52u8 , 209u8 , 7u8 , 93u8 , 235u8 , 162u8 , 168u8 , 32u8 , 170u8 , 214u8 , 211u8 ,]) } # [doc = " --- MAP ( netuid ) --> max_allowed_validators"] pub fn max_allowed_validators (& self , _0 : types :: max_allowed_validators :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: max_allowed_validators :: Param0 > , types :: max_allowed_validators :: MaxAllowedValidators , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxAllowedValidators" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [94u8 , 68u8 , 128u8 , 243u8 , 87u8 , 104u8 , 50u8 , 96u8 , 190u8 , 109u8 , 70u8 , 25u8 , 40u8 , 54u8 , 181u8 , 68u8 , 187u8 , 79u8 , 42u8 , 131u8 , 132u8 , 52u8 , 209u8 , 7u8 , 93u8 , 235u8 , 162u8 , 168u8 , 32u8 , 170u8 , 214u8 , 211u8 ,]) } # [doc = " --- MAP ( netuid ) --> adjustment_interval"] pub fn adjustment_interval_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: adjustment_interval :: AdjustmentInterval , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AdjustmentInterval" , () , [15u8 , 129u8 , 107u8 , 246u8 , 81u8 , 165u8 , 110u8 , 41u8 , 213u8 , 47u8 , 234u8 , 166u8 , 249u8 , 35u8 , 197u8 , 152u8 , 31u8 , 7u8 , 189u8 , 120u8 , 17u8 , 254u8 , 156u8 , 91u8 , 135u8 , 51u8 , 166u8 , 229u8 , 115u8 , 41u8 , 33u8 , 7u8 ,]) } # [doc = " --- MAP ( netuid ) --> adjustment_interval"] pub fn adjustment_interval (& self , _0 : types :: adjustment_interval :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: adjustment_interval :: Param0 > , types :: adjustment_interval :: AdjustmentInterval , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AdjustmentInterval" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [15u8 , 129u8 , 107u8 , 246u8 , 81u8 , 165u8 , 110u8 , 41u8 , 213u8 , 47u8 , 234u8 , 166u8 , 249u8 , 35u8 , 197u8 , 152u8 , 31u8 , 7u8 , 189u8 , 120u8 , 17u8 , 254u8 , 156u8 , 91u8 , 135u8 , 51u8 , 166u8 , 229u8 , 115u8 , 41u8 , 33u8 , 7u8 ,]) } # [doc = " --- MAP ( netuid ) --> bonds_moving_average"] pub fn bonds_moving_average_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bonds_moving_average :: BondsMovingAverage , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BondsMovingAverage" , () , [180u8 , 93u8 , 149u8 , 65u8 , 179u8 , 150u8 , 79u8 , 96u8 , 198u8 , 26u8 , 139u8 , 204u8 , 144u8 , 76u8 , 179u8 , 99u8 , 57u8 , 231u8 , 43u8 , 202u8 , 40u8 , 230u8 , 192u8 , 248u8 , 53u8 , 225u8 , 201u8 , 143u8 , 48u8 , 161u8 , 90u8 , 111u8 ,]) } # [doc = " --- MAP ( netuid ) --> bonds_moving_average"] pub fn bonds_moving_average (& self , _0 : types :: bonds_moving_average :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonds_moving_average :: Param0 > , types :: bonds_moving_average :: BondsMovingAverage , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BondsMovingAverage" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [180u8 , 93u8 , 149u8 , 65u8 , 179u8 , 150u8 , 79u8 , 96u8 , 198u8 , 26u8 , 139u8 , 204u8 , 144u8 , 76u8 , 179u8 , 99u8 , 57u8 , 231u8 , 43u8 , 202u8 , 40u8 , 230u8 , 192u8 , 248u8 , 53u8 , 225u8 , 201u8 , 143u8 , 48u8 , 161u8 , 90u8 , 111u8 ,]) } # [doc = " --- MAP ( netuid ) --> bonds_penalty"] pub fn bonds_penalty_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bonds_penalty :: BondsPenalty , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BondsPenalty" , () , [102u8 , 148u8 , 115u8 , 31u8 , 250u8 , 197u8 , 164u8 , 114u8 , 203u8 , 2u8 , 247u8 , 7u8 , 206u8 , 185u8 , 159u8 , 184u8 , 219u8 , 171u8 , 255u8 , 162u8 , 57u8 , 135u8 , 201u8 , 147u8 , 179u8 , 40u8 , 252u8 , 170u8 , 232u8 , 47u8 , 201u8 , 75u8 ,]) } # [doc = " --- MAP ( netuid ) --> bonds_penalty"] pub fn bonds_penalty (& self , _0 : types :: bonds_penalty :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonds_penalty :: Param0 > , types :: bonds_penalty :: BondsPenalty , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BondsPenalty" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [102u8 , 148u8 , 115u8 , 31u8 , 250u8 , 197u8 , 164u8 , 114u8 , 203u8 , 2u8 , 247u8 , 7u8 , 206u8 , 185u8 , 159u8 , 184u8 , 219u8 , 171u8 , 255u8 , 162u8 , 57u8 , 135u8 , 201u8 , 147u8 , 179u8 , 40u8 , 252u8 , 170u8 , 232u8 , 47u8 , 201u8 , 75u8 ,]) } # [doc = " --- MAP ( netuid ) --> bonds_reset"] pub fn bonds_reset_on_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bonds_reset_on :: BondsResetOn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BondsResetOn" , () , [17u8 , 71u8 , 255u8 , 66u8 , 190u8 , 27u8 , 191u8 , 10u8 , 24u8 , 49u8 , 78u8 , 30u8 , 157u8 , 95u8 , 240u8 , 164u8 , 139u8 , 210u8 , 79u8 , 168u8 , 99u8 , 31u8 , 99u8 , 179u8 , 39u8 , 144u8 , 227u8 , 154u8 , 5u8 , 207u8 , 175u8 , 135u8 ,]) } # [doc = " --- MAP ( netuid ) --> bonds_reset"] pub fn bonds_reset_on (& self , _0 : types :: bonds_reset_on :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonds_reset_on :: Param0 > , types :: bonds_reset_on :: BondsResetOn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BondsResetOn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [17u8 , 71u8 , 255u8 , 66u8 , 190u8 , 27u8 , 191u8 , 10u8 , 24u8 , 49u8 , 78u8 , 30u8 , 157u8 , 95u8 , 240u8 , 164u8 , 139u8 , 210u8 , 79u8 , 168u8 , 99u8 , 31u8 , 99u8 , 179u8 , 39u8 , 144u8 , 227u8 , 154u8 , 5u8 , 207u8 , 175u8 , 135u8 ,]) } # [doc = " --- MAP ( netuid ) --> weights_set_rate_limit"] pub fn weights_set_rate_limit_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: weights_set_rate_limit :: WeightsSetRateLimit , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightsSetRateLimit" , () , [70u8 , 81u8 , 142u8 , 75u8 , 162u8 , 207u8 , 75u8 , 24u8 , 120u8 , 233u8 , 253u8 , 71u8 , 249u8 , 9u8 , 62u8 , 169u8 , 119u8 , 124u8 , 45u8 , 113u8 , 77u8 , 186u8 , 55u8 , 4u8 , 5u8 , 91u8 , 166u8 , 171u8 , 41u8 , 215u8 , 57u8 , 132u8 ,]) } # [doc = " --- MAP ( netuid ) --> weights_set_rate_limit"] pub fn weights_set_rate_limit (& self , _0 : types :: weights_set_rate_limit :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weights_set_rate_limit :: Param0 > , types :: weights_set_rate_limit :: WeightsSetRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightsSetRateLimit" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [70u8 , 81u8 , 142u8 , 75u8 , 162u8 , 207u8 , 75u8 , 24u8 , 120u8 , 233u8 , 253u8 , 71u8 , 249u8 , 9u8 , 62u8 , 169u8 , 119u8 , 124u8 , 45u8 , 113u8 , 77u8 , 186u8 , 55u8 , 4u8 , 5u8 , 91u8 , 166u8 , 171u8 , 41u8 , 215u8 , 57u8 , 132u8 ,]) } # [doc = " --- MAP ( netuid ) --> validator_prune_len"] pub fn validator_prune_len_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validator_prune_len :: ValidatorPruneLen , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ValidatorPruneLen" , () , [225u8 , 241u8 , 182u8 , 243u8 , 247u8 , 144u8 , 187u8 , 64u8 , 15u8 , 223u8 , 8u8 , 214u8 , 171u8 , 122u8 , 162u8 , 33u8 , 163u8 , 216u8 , 48u8 , 146u8 , 253u8 , 230u8 , 250u8 , 22u8 , 22u8 , 110u8 , 204u8 , 70u8 , 126u8 , 246u8 , 100u8 , 69u8 ,]) } # [doc = " --- MAP ( netuid ) --> validator_prune_len"] pub fn validator_prune_len (& self , _0 : types :: validator_prune_len :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: validator_prune_len :: Param0 > , types :: validator_prune_len :: ValidatorPruneLen , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ValidatorPruneLen" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [225u8 , 241u8 , 182u8 , 243u8 , 247u8 , 144u8 , 187u8 , 64u8 , 15u8 , 223u8 , 8u8 , 214u8 , 171u8 , 122u8 , 162u8 , 33u8 , 163u8 , 216u8 , 48u8 , 146u8 , 253u8 , 230u8 , 250u8 , 22u8 , 22u8 , 110u8 , 204u8 , 70u8 , 126u8 , 246u8 , 100u8 , 69u8 ,]) } # [doc = " --- MAP ( netuid ) --> scaling_law_power"] pub fn scaling_law_power_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: scaling_law_power :: ScalingLawPower , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ScalingLawPower" , () , [195u8 , 171u8 , 225u8 , 2u8 , 211u8 , 254u8 , 87u8 , 76u8 , 255u8 , 7u8 , 175u8 , 101u8 , 123u8 , 92u8 , 44u8 , 26u8 , 124u8 , 92u8 , 9u8 , 207u8 , 82u8 , 30u8 , 243u8 , 26u8 , 52u8 , 12u8 , 200u8 , 149u8 , 93u8 , 23u8 , 204u8 , 141u8 ,]) } # [doc = " --- MAP ( netuid ) --> scaling_law_power"] pub fn scaling_law_power (& self , _0 : types :: scaling_law_power :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: scaling_law_power :: Param0 > , types :: scaling_law_power :: ScalingLawPower , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ScalingLawPower" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [195u8 , 171u8 , 225u8 , 2u8 , 211u8 , 254u8 , 87u8 , 76u8 , 255u8 , 7u8 , 175u8 , 101u8 , 123u8 , 92u8 , 44u8 , 26u8 , 124u8 , 92u8 , 9u8 , 207u8 , 82u8 , 30u8 , 243u8 , 26u8 , 52u8 , 12u8 , 200u8 , 149u8 , 93u8 , 23u8 , 204u8 , 141u8 ,]) } # [doc = " --- MAP ( netuid ) --> target_registrations_this_interval"] pub fn target_registrations_per_interval_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: target_registrations_per_interval :: TargetRegistrationsPerInterval , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TargetRegistrationsPerInterval" , () , [247u8 , 135u8 , 194u8 , 5u8 , 122u8 , 104u8 , 128u8 , 94u8 , 82u8 , 135u8 , 63u8 , 72u8 , 251u8 , 3u8 , 214u8 , 85u8 , 135u8 , 197u8 , 37u8 , 148u8 , 25u8 , 94u8 , 245u8 , 248u8 , 154u8 , 200u8 , 14u8 , 171u8 , 123u8 , 45u8 , 120u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> target_registrations_this_interval"] pub fn target_registrations_per_interval (& self , _0 : types :: target_registrations_per_interval :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: target_registrations_per_interval :: Param0 > , types :: target_registrations_per_interval :: TargetRegistrationsPerInterval , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TargetRegistrationsPerInterval" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [247u8 , 135u8 , 194u8 , 5u8 , 122u8 , 104u8 , 128u8 , 94u8 , 82u8 , 135u8 , 63u8 , 72u8 , 251u8 , 3u8 , 214u8 , 85u8 , 135u8 , 197u8 , 37u8 , 148u8 , 25u8 , 94u8 , 245u8 , 248u8 , 154u8 , 200u8 , 14u8 , 171u8 , 123u8 , 45u8 , 120u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> adjustment_alpha"] pub fn adjustment_alpha_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: adjustment_alpha :: AdjustmentAlpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AdjustmentAlpha" , () , [196u8 , 142u8 , 243u8 , 223u8 , 191u8 , 243u8 , 62u8 , 46u8 , 192u8 , 200u8 , 86u8 , 147u8 , 223u8 , 1u8 , 114u8 , 131u8 , 243u8 , 132u8 , 109u8 , 102u8 , 227u8 , 126u8 , 100u8 , 135u8 , 200u8 , 31u8 , 16u8 , 3u8 , 232u8 , 169u8 , 50u8 , 202u8 ,]) } # [doc = " --- MAP ( netuid ) --> adjustment_alpha"] pub fn adjustment_alpha (& self , _0 : types :: adjustment_alpha :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: adjustment_alpha :: Param0 > , types :: adjustment_alpha :: AdjustmentAlpha , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AdjustmentAlpha" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [196u8 , 142u8 , 243u8 , 223u8 , 191u8 , 243u8 , 62u8 , 46u8 , 192u8 , 200u8 , 86u8 , 147u8 , 223u8 , 1u8 , 114u8 , 131u8 , 243u8 , 132u8 , 109u8 , 102u8 , 227u8 , 126u8 , 100u8 , 135u8 , 200u8 , 31u8 , 16u8 , 3u8 , 232u8 , 169u8 , 50u8 , 202u8 ,]) } # [doc = " --- MAP ( netuid ) --> commit reveal v2 weights are enabled"] pub fn commit_reveal_weights_enabled_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: commit_reveal_weights_enabled :: CommitRevealWeightsEnabled , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CommitRevealWeightsEnabled" , () , [115u8 , 71u8 , 75u8 , 243u8 , 16u8 , 98u8 , 64u8 , 197u8 , 211u8 , 75u8 , 38u8 , 221u8 , 145u8 , 3u8 , 99u8 , 1u8 , 153u8 , 209u8 , 140u8 , 159u8 , 169u8 , 102u8 , 242u8 , 134u8 , 107u8 , 117u8 , 115u8 , 43u8 , 200u8 , 74u8 , 192u8 , 76u8 ,]) } # [doc = " --- MAP ( netuid ) --> commit reveal v2 weights are enabled"] pub fn commit_reveal_weights_enabled (& self , _0 : types :: commit_reveal_weights_enabled :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: commit_reveal_weights_enabled :: Param0 > , types :: commit_reveal_weights_enabled :: CommitRevealWeightsEnabled , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CommitRevealWeightsEnabled" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [115u8 , 71u8 , 75u8 , 243u8 , 16u8 , 98u8 , 64u8 , 197u8 , 211u8 , 75u8 , 38u8 , 221u8 , 145u8 , 3u8 , 99u8 , 1u8 , 153u8 , 209u8 , 140u8 , 159u8 , 169u8 , 102u8 , 242u8 , 134u8 , 107u8 , 117u8 , 115u8 , 43u8 , 200u8 , 74u8 , 192u8 , 76u8 ,]) } # [doc = " --- MAP ( netuid ) --> Burn"] pub fn burn_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: burn :: Burn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Burn" , () , [22u8 , 89u8 , 235u8 , 119u8 , 145u8 , 244u8 , 118u8 , 236u8 , 30u8 , 146u8 , 250u8 , 149u8 , 48u8 , 241u8 , 220u8 , 100u8 , 68u8 , 54u8 , 30u8 , 112u8 , 170u8 , 183u8 , 11u8 , 25u8 , 55u8 , 68u8 , 88u8 , 93u8 , 108u8 , 10u8 , 107u8 , 50u8 ,]) } # [doc = " --- MAP ( netuid ) --> Burn"] pub fn burn (& self , _0 : types :: burn :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: burn :: Param0 > , types :: burn :: Burn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Burn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [22u8 , 89u8 , 235u8 , 119u8 , 145u8 , 244u8 , 118u8 , 236u8 , 30u8 , 146u8 , 250u8 , 149u8 , 48u8 , 241u8 , 220u8 , 100u8 , 68u8 , 54u8 , 30u8 , 112u8 , 170u8 , 183u8 , 11u8 , 25u8 , 55u8 , 68u8 , 88u8 , 93u8 , 108u8 , 10u8 , 107u8 , 50u8 ,]) } # [doc = " --- MAP ( netuid ) --> Difficulty"] pub fn difficulty_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: difficulty :: Difficulty , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Difficulty" , () , [251u8 , 34u8 , 39u8 , 171u8 , 188u8 , 29u8 , 213u8 , 224u8 , 58u8 , 140u8 , 159u8 , 80u8 , 99u8 , 174u8 , 82u8 , 230u8 , 30u8 , 53u8 , 104u8 , 185u8 , 51u8 , 144u8 , 121u8 , 225u8 , 20u8 , 128u8 , 197u8 , 237u8 , 179u8 , 243u8 , 169u8 , 16u8 ,]) } # [doc = " --- MAP ( netuid ) --> Difficulty"] pub fn difficulty (& self , _0 : types :: difficulty :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: difficulty :: Param0 > , types :: difficulty :: Difficulty , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Difficulty" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [251u8 , 34u8 , 39u8 , 171u8 , 188u8 , 29u8 , 213u8 , 224u8 , 58u8 , 140u8 , 159u8 , 80u8 , 99u8 , 174u8 , 82u8 , 230u8 , 30u8 , 53u8 , 104u8 , 185u8 , 51u8 , 144u8 , 121u8 , 225u8 , 20u8 , 128u8 , 197u8 , 237u8 , 179u8 , 243u8 , 169u8 , 16u8 ,]) } # [doc = " --- MAP ( netuid ) --> MinBurn"] pub fn min_burn_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_burn :: MinBurn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinBurn" , () , [100u8 , 172u8 , 88u8 , 86u8 , 61u8 , 108u8 , 115u8 , 220u8 , 96u8 , 210u8 , 51u8 , 111u8 , 23u8 , 4u8 , 67u8 , 80u8 , 161u8 , 139u8 , 87u8 , 216u8 , 127u8 , 236u8 , 99u8 , 215u8 , 20u8 , 50u8 , 201u8 , 151u8 , 159u8 , 124u8 , 69u8 , 224u8 ,]) } # [doc = " --- MAP ( netuid ) --> MinBurn"] pub fn min_burn (& self , _0 : types :: min_burn :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: min_burn :: Param0 > , types :: min_burn :: MinBurn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinBurn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [100u8 , 172u8 , 88u8 , 86u8 , 61u8 , 108u8 , 115u8 , 220u8 , 96u8 , 210u8 , 51u8 , 111u8 , 23u8 , 4u8 , 67u8 , 80u8 , 161u8 , 139u8 , 87u8 , 216u8 , 127u8 , 236u8 , 99u8 , 215u8 , 20u8 , 50u8 , 201u8 , 151u8 , 159u8 , 124u8 , 69u8 , 224u8 ,]) } # [doc = " --- MAP ( netuid ) --> MaxBurn"] pub fn max_burn_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_burn :: MaxBurn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxBurn" , () , [0u8 , 195u8 , 55u8 , 83u8 , 46u8 , 216u8 , 74u8 , 42u8 , 213u8 , 195u8 , 52u8 , 6u8 , 8u8 , 168u8 , 21u8 , 78u8 , 78u8 , 188u8 , 54u8 , 6u8 , 254u8 , 140u8 , 3u8 , 0u8 , 184u8 , 108u8 , 1u8 , 150u8 , 42u8 , 245u8 , 125u8 , 144u8 ,]) } # [doc = " --- MAP ( netuid ) --> MaxBurn"] pub fn max_burn (& self , _0 : types :: max_burn :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: max_burn :: Param0 > , types :: max_burn :: MaxBurn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxBurn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [0u8 , 195u8 , 55u8 , 83u8 , 46u8 , 216u8 , 74u8 , 42u8 , 213u8 , 195u8 , 52u8 , 6u8 , 8u8 , 168u8 , 21u8 , 78u8 , 78u8 , 188u8 , 54u8 , 6u8 , 254u8 , 140u8 , 3u8 , 0u8 , 184u8 , 108u8 , 1u8 , 150u8 , 42u8 , 245u8 , 125u8 , 144u8 ,]) } # [doc = " --- MAP ( netuid ) --> MinDifficulty"] pub fn min_difficulty_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_difficulty :: MinDifficulty , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinDifficulty" , () , [186u8 , 124u8 , 59u8 , 202u8 , 23u8 , 68u8 , 43u8 , 124u8 , 166u8 , 157u8 , 228u8 , 253u8 , 99u8 , 174u8 , 95u8 , 37u8 , 178u8 , 38u8 , 240u8 , 168u8 , 139u8 , 123u8 , 81u8 , 66u8 , 146u8 , 179u8 , 179u8 , 217u8 , 45u8 , 203u8 , 135u8 , 12u8 ,]) } # [doc = " --- MAP ( netuid ) --> MinDifficulty"] pub fn min_difficulty (& self , _0 : types :: min_difficulty :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: min_difficulty :: Param0 > , types :: min_difficulty :: MinDifficulty , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinDifficulty" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [186u8 , 124u8 , 59u8 , 202u8 , 23u8 , 68u8 , 43u8 , 124u8 , 166u8 , 157u8 , 228u8 , 253u8 , 99u8 , 174u8 , 95u8 , 37u8 , 178u8 , 38u8 , 240u8 , 168u8 , 139u8 , 123u8 , 81u8 , 66u8 , 146u8 , 179u8 , 179u8 , 217u8 , 45u8 , 203u8 , 135u8 , 12u8 ,]) } # [doc = " --- MAP ( netuid ) --> MaxDifficulty"] pub fn max_difficulty_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_difficulty :: MaxDifficulty , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxDifficulty" , () , [46u8 , 129u8 , 147u8 , 99u8 , 203u8 , 64u8 , 250u8 , 115u8 , 78u8 , 126u8 , 86u8 , 90u8 , 91u8 , 101u8 , 252u8 , 190u8 , 89u8 , 98u8 , 95u8 , 209u8 , 168u8 , 144u8 , 206u8 , 209u8 , 230u8 , 119u8 , 170u8 , 174u8 , 84u8 , 75u8 , 213u8 , 222u8 ,]) } # [doc = " --- MAP ( netuid ) --> MaxDifficulty"] pub fn max_difficulty (& self , _0 : types :: max_difficulty :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: max_difficulty :: Param0 > , types :: max_difficulty :: MaxDifficulty , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxDifficulty" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [46u8 , 129u8 , 147u8 , 99u8 , 203u8 , 64u8 , 250u8 , 115u8 , 78u8 , 126u8 , 86u8 , 90u8 , 91u8 , 101u8 , 252u8 , 190u8 , 89u8 , 98u8 , 95u8 , 209u8 , 168u8 , 144u8 , 206u8 , 209u8 , 230u8 , 119u8 , 170u8 , 174u8 , 84u8 , 75u8 , 213u8 , 222u8 ,]) } # [doc = " --- MAP ( netuid ) -->  Block at last adjustment."] pub fn last_adjustment_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_adjustment_block :: LastAdjustmentBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastAdjustmentBlock" , () , [144u8 , 153u8 , 243u8 , 4u8 , 76u8 , 97u8 , 87u8 , 84u8 , 16u8 , 101u8 , 8u8 , 162u8 , 236u8 , 213u8 , 60u8 , 161u8 , 131u8 , 22u8 , 249u8 , 109u8 , 242u8 , 70u8 , 138u8 , 19u8 , 19u8 , 224u8 , 199u8 , 163u8 , 240u8 , 219u8 , 187u8 , 201u8 ,]) } # [doc = " --- MAP ( netuid ) -->  Block at last adjustment."] pub fn last_adjustment_block (& self , _0 : types :: last_adjustment_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_adjustment_block :: Param0 > , types :: last_adjustment_block :: LastAdjustmentBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastAdjustmentBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [144u8 , 153u8 , 243u8 , 4u8 , 76u8 , 97u8 , 87u8 , 84u8 , 16u8 , 101u8 , 8u8 , 162u8 , 236u8 , 213u8 , 60u8 , 161u8 , 131u8 , 22u8 , 249u8 , 109u8 , 242u8 , 70u8 , 138u8 , 19u8 , 19u8 , 224u8 , 199u8 , 163u8 , 240u8 , 219u8 , 187u8 , 201u8 ,]) } # [doc = " --- MAP ( netuid ) --> Registrations of this Block."] pub fn registrations_this_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: registrations_this_block :: RegistrationsThisBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RegistrationsThisBlock" , () , [198u8 , 109u8 , 86u8 , 170u8 , 84u8 , 243u8 , 34u8 , 155u8 , 134u8 , 251u8 , 21u8 , 201u8 , 98u8 , 132u8 , 34u8 , 187u8 , 239u8 , 182u8 , 72u8 , 144u8 , 4u8 , 47u8 , 32u8 , 207u8 , 5u8 , 54u8 , 210u8 , 249u8 , 58u8 , 211u8 , 113u8 , 113u8 ,]) } # [doc = " --- MAP ( netuid ) --> Registrations of this Block."] pub fn registrations_this_block (& self , _0 : types :: registrations_this_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: registrations_this_block :: Param0 > , types :: registrations_this_block :: RegistrationsThisBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RegistrationsThisBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [198u8 , 109u8 , 86u8 , 170u8 , 84u8 , 243u8 , 34u8 , 155u8 , 134u8 , 251u8 , 21u8 , 201u8 , 98u8 , 132u8 , 34u8 , 187u8 , 239u8 , 182u8 , 72u8 , 144u8 , 4u8 , 47u8 , 32u8 , 207u8 , 5u8 , 54u8 , 210u8 , 249u8 , 58u8 , 211u8 , 113u8 , 113u8 ,]) } # [doc = " --- MAP ( netuid ) --> Halving time of average moving price."] pub fn ema_price_halving_blocks_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: ema_price_halving_blocks :: EmaPriceHalvingBlocks , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "EMAPriceHalvingBlocks" , () , [60u8 , 170u8 , 50u8 , 112u8 , 146u8 , 140u8 , 10u8 , 170u8 , 171u8 , 158u8 , 106u8 , 59u8 , 245u8 , 183u8 , 53u8 , 231u8 , 67u8 , 117u8 , 241u8 , 243u8 , 207u8 , 168u8 , 159u8 , 22u8 , 111u8 , 167u8 , 77u8 , 104u8 , 39u8 , 148u8 , 176u8 , 187u8 ,]) } # [doc = " --- MAP ( netuid ) --> Halving time of average moving price."] pub fn ema_price_halving_blocks (& self , _0 : types :: ema_price_halving_blocks :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: ema_price_halving_blocks :: Param0 > , types :: ema_price_halving_blocks :: EmaPriceHalvingBlocks , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "EMAPriceHalvingBlocks" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [60u8 , 170u8 , 50u8 , 112u8 , 146u8 , 140u8 , 10u8 , 170u8 , 171u8 , 158u8 , 106u8 , 59u8 , 245u8 , 183u8 , 53u8 , 231u8 , 67u8 , 117u8 , 241u8 , 243u8 , 207u8 , 168u8 , 159u8 , 22u8 , 111u8 , 167u8 , 77u8 , 104u8 , 39u8 , 148u8 , 176u8 , 187u8 ,]) } # [doc = " --- MAP ( netuid ) --> global_RAO_recycled_for_registration"] pub fn rao_recycled_for_registration_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: rao_recycled_for_registration :: RaoRecycledForRegistration , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RAORecycledForRegistration" , () , [124u8 , 58u8 , 21u8 , 4u8 , 81u8 , 158u8 , 21u8 , 117u8 , 241u8 , 67u8 , 244u8 , 109u8 , 179u8 , 60u8 , 157u8 , 209u8 , 46u8 , 76u8 , 232u8 , 89u8 , 152u8 , 61u8 , 230u8 , 85u8 , 32u8 , 213u8 , 63u8 , 161u8 , 129u8 , 143u8 , 234u8 , 250u8 ,]) } # [doc = " --- MAP ( netuid ) --> global_RAO_recycled_for_registration"] pub fn rao_recycled_for_registration (& self , _0 : types :: rao_recycled_for_registration :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: rao_recycled_for_registration :: Param0 > , types :: rao_recycled_for_registration :: RaoRecycledForRegistration , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RAORecycledForRegistration" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [124u8 , 58u8 , 21u8 , 4u8 , 81u8 , 158u8 , 21u8 , 117u8 , 241u8 , 67u8 , 244u8 , 109u8 , 179u8 , 60u8 , 157u8 , 209u8 , 46u8 , 76u8 , 232u8 , 89u8 , 152u8 , 61u8 , 230u8 , 85u8 , 32u8 , 213u8 , 63u8 , 161u8 , 129u8 , 143u8 , 234u8 , 250u8 ,]) } # [doc = " --- ITEM ( tx_rate_limit )"] pub fn tx_rate_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tx_rate_limit :: TxRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TxRateLimit" , () , [149u8 , 107u8 , 236u8 , 201u8 , 45u8 , 84u8 , 26u8 , 52u8 , 215u8 , 61u8 , 215u8 , 137u8 , 2u8 , 193u8 , 11u8 , 177u8 , 44u8 , 107u8 , 241u8 , 14u8 , 146u8 , 150u8 , 140u8 , 87u8 , 166u8 , 91u8 , 106u8 , 55u8 , 54u8 , 38u8 , 144u8 , 135u8 ,]) } # [doc = " --- ITEM ( tx_delegate_take_rate_limit )"] pub fn tx_delegate_take_rate_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tx_delegate_take_rate_limit :: TxDelegateTakeRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TxDelegateTakeRateLimit" , () , [35u8 , 50u8 , 47u8 , 168u8 , 70u8 , 43u8 , 231u8 , 96u8 , 101u8 , 158u8 , 34u8 , 209u8 , 65u8 , 244u8 , 40u8 , 13u8 , 247u8 , 24u8 , 44u8 , 249u8 , 223u8 , 235u8 , 131u8 , 169u8 , 40u8 , 145u8 , 67u8 , 204u8 , 158u8 , 187u8 , 232u8 , 12u8 ,]) } # [doc = " --- ITEM ( tx_childkey_take_rate_limit )"] pub fn tx_childkey_take_rate_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tx_childkey_take_rate_limit :: TxChildkeyTakeRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TxChildkeyTakeRateLimit" , () , [188u8 , 114u8 , 147u8 , 189u8 , 187u8 , 221u8 , 224u8 , 253u8 , 34u8 , 109u8 , 225u8 , 43u8 , 82u8 , 71u8 , 184u8 , 132u8 , 51u8 , 219u8 , 237u8 , 255u8 , 85u8 , 23u8 , 215u8 , 128u8 , 81u8 , 57u8 , 11u8 , 188u8 , 40u8 , 53u8 , 163u8 , 5u8 ,]) } # [doc = " --- MAP ( netuid ) --> Whether or not Liquid Alpha is enabled"] pub fn liquid_alpha_on_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: liquid_alpha_on :: LiquidAlphaOn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LiquidAlphaOn" , () , [163u8 , 44u8 , 143u8 , 121u8 , 172u8 , 79u8 , 198u8 , 64u8 , 45u8 , 150u8 , 212u8 , 4u8 , 77u8 , 48u8 , 41u8 , 44u8 , 26u8 , 120u8 , 241u8 , 133u8 , 10u8 , 166u8 , 41u8 , 158u8 , 78u8 , 25u8 , 47u8 , 239u8 , 113u8 , 220u8 , 109u8 , 194u8 ,]) } # [doc = " --- MAP ( netuid ) --> Whether or not Liquid Alpha is enabled"] pub fn liquid_alpha_on (& self , _0 : types :: liquid_alpha_on :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: liquid_alpha_on :: Param0 > , types :: liquid_alpha_on :: LiquidAlphaOn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LiquidAlphaOn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [163u8 , 44u8 , 143u8 , 121u8 , 172u8 , 79u8 , 198u8 , 64u8 , 45u8 , 150u8 , 212u8 , 4u8 , 77u8 , 48u8 , 41u8 , 44u8 , 26u8 , 120u8 , 241u8 , 133u8 , 10u8 , 166u8 , 41u8 , 158u8 , 78u8 , 25u8 , 47u8 , 239u8 , 113u8 , 220u8 , 109u8 , 194u8 ,]) } # [doc = " --- MAP ( netuid ) --> Whether or not Yuma3 is enabled"] pub fn yuma3_on_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: yuma3_on :: Yuma3On , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Yuma3On" , () , [208u8 , 177u8 , 216u8 , 152u8 , 250u8 , 210u8 , 118u8 , 11u8 , 172u8 , 232u8 , 164u8 , 212u8 , 202u8 , 115u8 , 136u8 , 109u8 , 114u8 , 110u8 , 189u8 , 201u8 , 45u8 , 109u8 , 109u8 , 31u8 , 190u8 , 134u8 , 33u8 , 155u8 , 14u8 , 116u8 , 191u8 , 11u8 ,]) } # [doc = " --- MAP ( netuid ) --> Whether or not Yuma3 is enabled"] pub fn yuma3_on (& self , _0 : types :: yuma3_on :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: yuma3_on :: Param0 > , types :: yuma3_on :: Yuma3On , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Yuma3On" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [208u8 , 177u8 , 216u8 , 152u8 , 250u8 , 210u8 , 118u8 , 11u8 , 172u8 , 232u8 , 164u8 , 212u8 , 202u8 , 115u8 , 136u8 , 109u8 , 114u8 , 110u8 , 189u8 , 201u8 , 45u8 , 109u8 , 109u8 , 31u8 , 190u8 , 134u8 , 33u8 , 155u8 , 14u8 , 116u8 , 191u8 , 11u8 ,]) } # [doc = "  MAP ( netuid ) --> (alpha_low, alpha_high)"] pub fn alpha_values_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: alpha_values :: AlphaValues , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaValues" , () , [172u8 , 118u8 , 42u8 , 110u8 , 137u8 , 250u8 , 125u8 , 146u8 , 214u8 , 245u8 , 167u8 , 25u8 , 67u8 , 46u8 , 246u8 , 87u8 , 156u8 , 158u8 , 138u8 , 90u8 , 78u8 , 155u8 , 107u8 , 107u8 , 231u8 , 197u8 , 212u8 , 170u8 , 182u8 , 86u8 , 106u8 , 190u8 ,]) } # [doc = "  MAP ( netuid ) --> (alpha_low, alpha_high)"] pub fn alpha_values (& self , _0 : types :: alpha_values :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha_values :: Param0 > , types :: alpha_values :: AlphaValues , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaValues" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [172u8 , 118u8 , 42u8 , 110u8 , 137u8 , 250u8 , 125u8 , 146u8 , 214u8 , 245u8 , 167u8 , 25u8 , 67u8 , 46u8 , 246u8 , 87u8 , 156u8 , 158u8 , 138u8 , 90u8 , 78u8 , 155u8 , 107u8 , 107u8 , 231u8 , 197u8 , 212u8 , 170u8 , 182u8 , 86u8 , 106u8 , 190u8 ,]) } # [doc = " --- MAP ( netuid ) --> If subtoken trading enabled"] pub fn subtoken_enabled_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subtoken_enabled :: SubtokenEnabled , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubtokenEnabled" , () , [204u8 , 67u8 , 253u8 , 2u8 , 227u8 , 152u8 , 231u8 , 171u8 , 182u8 , 110u8 , 48u8 , 23u8 , 254u8 , 25u8 , 173u8 , 149u8 , 118u8 , 22u8 , 196u8 , 18u8 , 35u8 , 82u8 , 109u8 , 75u8 , 126u8 , 150u8 , 50u8 , 214u8 , 181u8 , 16u8 , 234u8 , 132u8 ,]) } # [doc = " --- MAP ( netuid ) --> If subtoken trading enabled"] pub fn subtoken_enabled (& self , _0 : types :: subtoken_enabled :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subtoken_enabled :: Param0 > , types :: subtoken_enabled :: SubtokenEnabled , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubtokenEnabled" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [204u8 , 67u8 , 253u8 , 2u8 , 227u8 , 152u8 , 231u8 , 171u8 , 182u8 , 110u8 , 48u8 , 23u8 , 254u8 , 25u8 , 173u8 , 149u8 , 118u8 , 22u8 , 196u8 , 18u8 , 35u8 , 82u8 , 109u8 , 75u8 , 126u8 , 150u8 , 50u8 , 214u8 , 181u8 , 16u8 , 234u8 , 132u8 ,]) } # [doc = " --- MAP ( netuid ) --> Burn key limit"] pub fn immune_owner_uids_limit_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: immune_owner_uids_limit :: ImmuneOwnerUidsLimit , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ImmuneOwnerUidsLimit" , () , [18u8 , 85u8 , 53u8 , 145u8 , 109u8 , 130u8 , 114u8 , 89u8 , 118u8 , 49u8 , 15u8 , 12u8 , 89u8 , 93u8 , 177u8 , 216u8 , 180u8 , 68u8 , 219u8 , 215u8 , 195u8 , 32u8 , 176u8 , 82u8 , 227u8 , 200u8 , 191u8 , 65u8 , 80u8 , 241u8 , 39u8 , 92u8 ,]) } # [doc = " --- MAP ( netuid ) --> Burn key limit"] pub fn immune_owner_uids_limit (& self , _0 : types :: immune_owner_uids_limit :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: immune_owner_uids_limit :: Param0 > , types :: immune_owner_uids_limit :: ImmuneOwnerUidsLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ImmuneOwnerUidsLimit" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [18u8 , 85u8 , 53u8 , 145u8 , 109u8 , 130u8 , 114u8 , 89u8 , 118u8 , 49u8 , 15u8 , 12u8 , 89u8 , 93u8 , 177u8 , 216u8 , 180u8 , 68u8 , 219u8 , 215u8 , 195u8 , 32u8 , 176u8 , 82u8 , 227u8 , 200u8 , 191u8 , 65u8 , 80u8 , 241u8 , 39u8 , 92u8 ,]) } # [doc = " ======================================="] # [doc = " ==== Subnetwork Consensus Storage  ===="] # [doc = " ======================================="] # [doc = " --- DMAP ( netuid ) --> stake_weight | weight for stake used in YC."] pub fn stake_weight_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: stake_weight :: StakeWeight , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakeWeight" , () , [178u8 , 127u8 , 170u8 , 149u8 , 176u8 , 186u8 , 237u8 , 26u8 , 104u8 , 166u8 , 238u8 , 62u8 , 112u8 , 111u8 , 136u8 , 18u8 , 231u8 , 36u8 , 229u8 , 77u8 , 253u8 , 88u8 , 161u8 , 209u8 , 148u8 , 176u8 , 210u8 , 122u8 , 9u8 , 132u8 , 192u8 , 63u8 ,]) } # [doc = " ======================================="] # [doc = " ==== Subnetwork Consensus Storage  ===="] # [doc = " ======================================="] # [doc = " --- DMAP ( netuid ) --> stake_weight | weight for stake used in YC."] pub fn stake_weight (& self , _0 : types :: stake_weight :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: stake_weight :: Param0 > , types :: stake_weight :: StakeWeight , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakeWeight" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [178u8 , 127u8 , 170u8 , 149u8 , 176u8 , 186u8 , 237u8 , 26u8 , 104u8 , 166u8 , 238u8 , 62u8 , 112u8 , 111u8 , 136u8 , 18u8 , 231u8 , 36u8 , 229u8 , 77u8 , 253u8 , 88u8 , 161u8 , 209u8 , 148u8 , 176u8 , 210u8 , 122u8 , 9u8 , 132u8 , 192u8 , 63u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> uid"] pub fn uids_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: uids :: Uids , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Uids" , () , [33u8 , 64u8 , 48u8 , 239u8 , 201u8 , 205u8 , 31u8 , 252u8 , 134u8 , 235u8 , 58u8 , 176u8 , 244u8 , 181u8 , 9u8 , 16u8 , 21u8 , 92u8 , 2u8 , 171u8 , 13u8 , 215u8 , 67u8 , 212u8 , 139u8 , 193u8 , 145u8 , 164u8 , 186u8 , 86u8 , 163u8 , 44u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> uid"] pub fn uids_iter1 (& self , _0 : types :: uids :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: uids :: Param0 > , types :: uids :: Uids , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Uids" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [33u8 , 64u8 , 48u8 , 239u8 , 201u8 , 205u8 , 31u8 , 252u8 , 134u8 , 235u8 , 58u8 , 176u8 , 244u8 , 181u8 , 9u8 , 16u8 , 21u8 , 92u8 , 2u8 , 171u8 , 13u8 , 215u8 , 67u8 , 212u8 , 139u8 , 193u8 , 145u8 , 164u8 , 186u8 , 86u8 , 163u8 , 44u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> uid"] pub fn uids (& self , _0 : types :: uids :: Param0 , _1 : types :: uids :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: uids :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: uids :: Param1 > ,) , types :: uids :: Uids , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Uids" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [33u8 , 64u8 , 48u8 , 239u8 , 201u8 , 205u8 , 31u8 , 252u8 , 134u8 , 235u8 , 58u8 , 176u8 , 244u8 , 181u8 , 9u8 , 16u8 , 21u8 , 92u8 , 2u8 , 171u8 , 13u8 , 215u8 , 67u8 , 212u8 , 139u8 , 193u8 , 145u8 , 164u8 , 186u8 , 86u8 , 163u8 , 44u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> hotkey"] pub fn keys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: keys :: Keys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Keys" , () , [110u8 , 251u8 , 14u8 , 35u8 , 199u8 , 87u8 , 231u8 , 16u8 , 178u8 , 193u8 , 240u8 , 20u8 , 184u8 , 57u8 , 187u8 , 227u8 , 67u8 , 80u8 , 120u8 , 148u8 , 51u8 , 239u8 , 130u8 , 12u8 , 35u8 , 84u8 , 213u8 , 233u8 , 239u8 , 79u8 , 153u8 , 141u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> hotkey"] pub fn keys_iter1 (& self , _0 : types :: keys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: keys :: Param0 > , types :: keys :: Keys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Keys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [110u8 , 251u8 , 14u8 , 35u8 , 199u8 , 87u8 , 231u8 , 16u8 , 178u8 , 193u8 , 240u8 , 20u8 , 184u8 , 57u8 , 187u8 , 227u8 , 67u8 , 80u8 , 120u8 , 148u8 , 51u8 , 239u8 , 130u8 , 12u8 , 35u8 , 84u8 , 213u8 , 233u8 , 239u8 , 79u8 , 153u8 , 141u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> hotkey"] pub fn keys (& self , _0 : types :: keys :: Param0 , _1 : types :: keys :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: keys :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: keys :: Param1 > ,) , types :: keys :: Keys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Keys" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [110u8 , 251u8 , 14u8 , 35u8 , 199u8 , 87u8 , 231u8 , 16u8 , 178u8 , 193u8 , 240u8 , 20u8 , 184u8 , 57u8 , 187u8 , 227u8 , 67u8 , 80u8 , 120u8 , 148u8 , 51u8 , 239u8 , 130u8 , 12u8 , 35u8 , 84u8 , 213u8 , 233u8 , 239u8 , 79u8 , 153u8 , 141u8 ,]) } # [doc = " --- MAP ( netuid ) --> (hotkey, se, ve)"] pub fn loaded_emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: loaded_emission :: LoadedEmission , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LoadedEmission" , () , [99u8 , 238u8 , 26u8 , 122u8 , 183u8 , 3u8 , 163u8 , 126u8 , 63u8 , 141u8 , 224u8 , 228u8 , 59u8 , 73u8 , 241u8 , 12u8 , 25u8 , 95u8 , 185u8 , 31u8 , 35u8 , 168u8 , 166u8 , 104u8 , 233u8 , 10u8 , 246u8 , 80u8 , 62u8 , 8u8 , 187u8 , 16u8 ,]) } # [doc = " --- MAP ( netuid ) --> (hotkey, se, ve)"] pub fn loaded_emission (& self , _0 : types :: loaded_emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: loaded_emission :: Param0 > , types :: loaded_emission :: LoadedEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LoadedEmission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [99u8 , 238u8 , 26u8 , 122u8 , 183u8 , 3u8 , 163u8 , 126u8 , 63u8 , 141u8 , 224u8 , 228u8 , 59u8 , 73u8 , 241u8 , 12u8 , 25u8 , 95u8 , 185u8 , 31u8 , 35u8 , 168u8 , 166u8 , 104u8 , 233u8 , 10u8 , 246u8 , 80u8 , 62u8 , 8u8 , 187u8 , 16u8 ,]) } # [doc = " --- MAP ( netuid ) --> active"] pub fn active_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: active :: Active , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Active" , () , [109u8 , 164u8 , 208u8 , 202u8 , 150u8 , 33u8 , 250u8 , 59u8 , 200u8 , 234u8 , 174u8 , 246u8 , 204u8 , 164u8 , 219u8 , 4u8 , 30u8 , 216u8 , 35u8 , 171u8 , 114u8 , 26u8 , 160u8 , 36u8 , 0u8 , 44u8 , 242u8 , 135u8 , 105u8 , 101u8 , 94u8 , 193u8 ,]) } # [doc = " --- MAP ( netuid ) --> active"] pub fn active (& self , _0 : types :: active :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: active :: Param0 > , types :: active :: Active , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Active" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [109u8 , 164u8 , 208u8 , 202u8 , 150u8 , 33u8 , 250u8 , 59u8 , 200u8 , 234u8 , 174u8 , 246u8 , 204u8 , 164u8 , 219u8 , 4u8 , 30u8 , 216u8 , 35u8 , 171u8 , 114u8 , 26u8 , 160u8 , 36u8 , 0u8 , 44u8 , 242u8 , 135u8 , 105u8 , 101u8 , 94u8 , 193u8 ,]) } # [doc = " --- MAP ( netuid ) --> rank"] pub fn rank_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: rank :: Rank , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Rank" , () , [33u8 , 31u8 , 249u8 , 241u8 , 86u8 , 164u8 , 206u8 , 129u8 , 237u8 , 230u8 , 157u8 , 154u8 , 167u8 , 190u8 , 153u8 , 34u8 , 68u8 , 77u8 , 205u8 , 51u8 , 187u8 , 123u8 , 177u8 , 19u8 , 59u8 , 235u8 , 249u8 , 108u8 , 91u8 , 120u8 , 138u8 , 50u8 ,]) } # [doc = " --- MAP ( netuid ) --> rank"] pub fn rank (& self , _0 : types :: rank :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: rank :: Param0 > , types :: rank :: Rank , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Rank" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [33u8 , 31u8 , 249u8 , 241u8 , 86u8 , 164u8 , 206u8 , 129u8 , 237u8 , 230u8 , 157u8 , 154u8 , 167u8 , 190u8 , 153u8 , 34u8 , 68u8 , 77u8 , 205u8 , 51u8 , 187u8 , 123u8 , 177u8 , 19u8 , 59u8 , 235u8 , 249u8 , 108u8 , 91u8 , 120u8 , 138u8 , 50u8 ,]) } # [doc = " --- MAP ( netuid ) --> trust"] pub fn trust_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: trust :: Trust , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Trust" , () , [124u8 , 193u8 , 206u8 , 175u8 , 93u8 , 13u8 , 212u8 , 40u8 , 57u8 , 119u8 , 182u8 , 240u8 , 115u8 , 122u8 , 158u8 , 206u8 , 213u8 , 0u8 , 131u8 , 182u8 , 129u8 , 81u8 , 116u8 , 120u8 , 79u8 , 234u8 , 216u8 , 157u8 , 32u8 , 10u8 , 190u8 , 76u8 ,]) } # [doc = " --- MAP ( netuid ) --> trust"] pub fn trust (& self , _0 : types :: trust :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: trust :: Param0 > , types :: trust :: Trust , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Trust" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [124u8 , 193u8 , 206u8 , 175u8 , 93u8 , 13u8 , 212u8 , 40u8 , 57u8 , 119u8 , 182u8 , 240u8 , 115u8 , 122u8 , 158u8 , 206u8 , 213u8 , 0u8 , 131u8 , 182u8 , 129u8 , 81u8 , 116u8 , 120u8 , 79u8 , 234u8 , 216u8 , 157u8 , 32u8 , 10u8 , 190u8 , 76u8 ,]) } # [doc = " --- MAP ( netuid ) --> consensus"] pub fn consensus_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: consensus :: Consensus , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Consensus" , () , [93u8 , 54u8 , 160u8 , 28u8 , 186u8 , 64u8 , 70u8 , 52u8 , 248u8 , 65u8 , 214u8 , 233u8 , 206u8 , 104u8 , 178u8 , 232u8 , 241u8 , 242u8 , 206u8 , 207u8 , 247u8 , 43u8 , 4u8 , 120u8 , 97u8 , 48u8 , 148u8 , 9u8 , 223u8 , 240u8 , 172u8 , 147u8 ,]) } # [doc = " --- MAP ( netuid ) --> consensus"] pub fn consensus (& self , _0 : types :: consensus :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: consensus :: Param0 > , types :: consensus :: Consensus , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Consensus" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [93u8 , 54u8 , 160u8 , 28u8 , 186u8 , 64u8 , 70u8 , 52u8 , 248u8 , 65u8 , 214u8 , 233u8 , 206u8 , 104u8 , 178u8 , 232u8 , 241u8 , 242u8 , 206u8 , 207u8 , 247u8 , 43u8 , 4u8 , 120u8 , 97u8 , 48u8 , 148u8 , 9u8 , 223u8 , 240u8 , 172u8 , 147u8 ,]) } # [doc = " --- MAP ( netuid ) --> incentive"] pub fn incentive_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: incentive :: Incentive , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Incentive" , () , [24u8 , 160u8 , 83u8 , 255u8 , 196u8 , 69u8 , 170u8 , 68u8 , 16u8 , 239u8 , 220u8 , 198u8 , 137u8 , 89u8 , 222u8 , 247u8 , 198u8 , 16u8 , 120u8 , 147u8 , 63u8 , 186u8 , 113u8 , 137u8 , 106u8 , 143u8 , 254u8 , 211u8 , 205u8 , 217u8 , 232u8 , 64u8 ,]) } # [doc = " --- MAP ( netuid ) --> incentive"] pub fn incentive (& self , _0 : types :: incentive :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: incentive :: Param0 > , types :: incentive :: Incentive , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Incentive" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [24u8 , 160u8 , 83u8 , 255u8 , 196u8 , 69u8 , 170u8 , 68u8 , 16u8 , 239u8 , 220u8 , 198u8 , 137u8 , 89u8 , 222u8 , 247u8 , 198u8 , 16u8 , 120u8 , 147u8 , 63u8 , 186u8 , 113u8 , 137u8 , 106u8 , 143u8 , 254u8 , 211u8 , 205u8 , 217u8 , 232u8 , 64u8 ,]) } # [doc = " --- MAP ( netuid ) --> dividends"] pub fn dividends_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: dividends :: Dividends , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Dividends" , () , [192u8 , 174u8 , 115u8 , 10u8 , 78u8 , 219u8 , 26u8 , 255u8 , 247u8 , 93u8 , 212u8 , 176u8 , 96u8 , 104u8 , 218u8 , 130u8 , 200u8 , 16u8 , 119u8 , 7u8 , 184u8 , 207u8 , 12u8 , 210u8 , 128u8 , 46u8 , 252u8 , 79u8 , 236u8 , 44u8 , 148u8 , 171u8 ,]) } # [doc = " --- MAP ( netuid ) --> dividends"] pub fn dividends (& self , _0 : types :: dividends :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: dividends :: Param0 > , types :: dividends :: Dividends , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Dividends" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [192u8 , 174u8 , 115u8 , 10u8 , 78u8 , 219u8 , 26u8 , 255u8 , 247u8 , 93u8 , 212u8 , 176u8 , 96u8 , 104u8 , 218u8 , 130u8 , 200u8 , 16u8 , 119u8 , 7u8 , 184u8 , 207u8 , 12u8 , 210u8 , 128u8 , 46u8 , 252u8 , 79u8 , 236u8 , 44u8 , 148u8 , 171u8 ,]) } # [doc = " --- MAP ( netuid ) --> emission"] pub fn emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: emission :: Emission , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Emission" , () , [35u8 , 81u8 , 81u8 , 182u8 , 207u8 , 133u8 , 177u8 , 90u8 , 159u8 , 99u8 , 40u8 , 204u8 , 179u8 , 79u8 , 71u8 , 168u8 , 58u8 , 69u8 , 10u8 , 162u8 , 249u8 , 105u8 , 180u8 , 223u8 , 14u8 , 143u8 , 1u8 , 154u8 , 68u8 , 91u8 , 184u8 , 65u8 ,]) } # [doc = " --- MAP ( netuid ) --> emission"] pub fn emission (& self , _0 : types :: emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: emission :: Param0 > , types :: emission :: Emission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Emission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [35u8 , 81u8 , 81u8 , 182u8 , 207u8 , 133u8 , 177u8 , 90u8 , 159u8 , 99u8 , 40u8 , 204u8 , 179u8 , 79u8 , 71u8 , 168u8 , 58u8 , 69u8 , 10u8 , 162u8 , 249u8 , 105u8 , 180u8 , 223u8 , 14u8 , 143u8 , 1u8 , 154u8 , 68u8 , 91u8 , 184u8 , 65u8 ,]) } # [doc = " --- MAP ( netuid ) --> last_update"] pub fn last_update_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_update :: LastUpdate , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastUpdate" , () , [165u8 , 55u8 , 107u8 , 0u8 , 155u8 , 221u8 , 102u8 , 151u8 , 146u8 , 66u8 , 253u8 , 253u8 , 42u8 , 191u8 , 192u8 , 2u8 , 154u8 , 217u8 , 200u8 , 178u8 , 10u8 , 252u8 , 240u8 , 68u8 , 69u8 , 104u8 , 77u8 , 121u8 , 197u8 , 114u8 , 248u8 , 105u8 ,]) } # [doc = " --- MAP ( netuid ) --> last_update"] pub fn last_update (& self , _0 : types :: last_update :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_update :: Param0 > , types :: last_update :: LastUpdate , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastUpdate" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [165u8 , 55u8 , 107u8 , 0u8 , 155u8 , 221u8 , 102u8 , 151u8 , 146u8 , 66u8 , 253u8 , 253u8 , 42u8 , 191u8 , 192u8 , 2u8 , 154u8 , 217u8 , 200u8 , 178u8 , 10u8 , 252u8 , 240u8 , 68u8 , 69u8 , 104u8 , 77u8 , 121u8 , 197u8 , 114u8 , 248u8 , 105u8 ,]) } # [doc = " --- MAP ( netuid ) --> validator_trust"] pub fn validator_trust_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validator_trust :: ValidatorTrust , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ValidatorTrust" , () , [23u8 , 132u8 , 192u8 , 102u8 , 41u8 , 24u8 , 238u8 , 124u8 , 6u8 , 70u8 , 199u8 , 26u8 , 245u8 , 193u8 , 241u8 , 24u8 , 142u8 , 77u8 , 82u8 , 153u8 , 16u8 , 221u8 , 221u8 , 164u8 , 159u8 , 225u8 , 144u8 , 129u8 , 159u8 , 116u8 , 203u8 , 125u8 ,]) } # [doc = " --- MAP ( netuid ) --> validator_trust"] pub fn validator_trust (& self , _0 : types :: validator_trust :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: validator_trust :: Param0 > , types :: validator_trust :: ValidatorTrust , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ValidatorTrust" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [23u8 , 132u8 , 192u8 , 102u8 , 41u8 , 24u8 , 238u8 , 124u8 , 6u8 , 70u8 , 199u8 , 26u8 , 245u8 , 193u8 , 241u8 , 24u8 , 142u8 , 77u8 , 82u8 , 153u8 , 16u8 , 221u8 , 221u8 , 164u8 , 159u8 , 225u8 , 144u8 , 129u8 , 159u8 , 116u8 , 203u8 , 125u8 ,]) } # [doc = " --- MAP ( netuid ) --> pruning_scores"] pub fn pruning_scores_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pruning_scores :: PruningScores , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PruningScores" , () , [141u8 , 17u8 , 95u8 , 238u8 , 81u8 , 29u8 , 210u8 , 253u8 , 112u8 , 15u8 , 35u8 , 185u8 , 226u8 , 155u8 , 189u8 , 250u8 , 28u8 , 115u8 , 254u8 , 177u8 , 11u8 , 86u8 , 212u8 , 176u8 , 154u8 , 193u8 , 5u8 , 120u8 , 163u8 , 172u8 , 97u8 , 173u8 ,]) } # [doc = " --- MAP ( netuid ) --> pruning_scores"] pub fn pruning_scores (& self , _0 : types :: pruning_scores :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pruning_scores :: Param0 > , types :: pruning_scores :: PruningScores , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PruningScores" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [141u8 , 17u8 , 95u8 , 238u8 , 81u8 , 29u8 , 210u8 , 253u8 , 112u8 , 15u8 , 35u8 , 185u8 , 226u8 , 155u8 , 189u8 , 250u8 , 28u8 , 115u8 , 254u8 , 177u8 , 11u8 , 86u8 , 212u8 , 176u8 , 154u8 , 193u8 , 5u8 , 120u8 , 163u8 , 172u8 , 97u8 , 173u8 ,]) } # [doc = " --- MAP ( netuid ) --> validator_permit"] pub fn validator_permit_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validator_permit :: ValidatorPermit , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ValidatorPermit" , () , [237u8 , 135u8 , 31u8 , 115u8 , 236u8 , 108u8 , 3u8 , 83u8 , 142u8 , 232u8 , 250u8 , 100u8 , 140u8 , 89u8 , 128u8 , 24u8 , 85u8 , 68u8 , 214u8 , 111u8 , 152u8 , 203u8 , 105u8 , 6u8 , 38u8 , 154u8 , 124u8 , 176u8 , 119u8 , 181u8 , 246u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> validator_permit"] pub fn validator_permit (& self , _0 : types :: validator_permit :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: validator_permit :: Param0 > , types :: validator_permit :: ValidatorPermit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ValidatorPermit" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [237u8 , 135u8 , 31u8 , 115u8 , 236u8 , 108u8 , 3u8 , 83u8 , 142u8 , 232u8 , 250u8 , 100u8 , 140u8 , 89u8 , 128u8 , 24u8 , 85u8 , 68u8 , 214u8 , 111u8 , 152u8 , 203u8 , 105u8 , 6u8 , 38u8 , 154u8 , 124u8 , 176u8 , 119u8 , 181u8 , 246u8 , 169u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> weights"] pub fn weights_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: weights :: Weights , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Weights" , () , [33u8 , 30u8 , 129u8 , 94u8 , 20u8 , 105u8 , 255u8 , 240u8 , 125u8 , 124u8 , 139u8 , 22u8 , 163u8 , 227u8 , 39u8 , 55u8 , 220u8 , 33u8 , 130u8 , 250u8 , 42u8 , 61u8 , 200u8 , 244u8 , 125u8 , 63u8 , 228u8 , 35u8 , 183u8 , 43u8 , 7u8 , 184u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> weights"] pub fn weights_iter1 (& self , _0 : types :: weights :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weights :: Param0 > , types :: weights :: Weights , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Weights" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [33u8 , 30u8 , 129u8 , 94u8 , 20u8 , 105u8 , 255u8 , 240u8 , 125u8 , 124u8 , 139u8 , 22u8 , 163u8 , 227u8 , 39u8 , 55u8 , 220u8 , 33u8 , 130u8 , 250u8 , 42u8 , 61u8 , 200u8 , 244u8 , 125u8 , 63u8 , 228u8 , 35u8 , 183u8 , 43u8 , 7u8 , 184u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> weights"] pub fn weights (& self , _0 : types :: weights :: Param0 , _1 : types :: weights :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weights :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weights :: Param1 > ,) , types :: weights :: Weights , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Weights" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [33u8 , 30u8 , 129u8 , 94u8 , 20u8 , 105u8 , 255u8 , 240u8 , 125u8 , 124u8 , 139u8 , 22u8 , 163u8 , 227u8 , 39u8 , 55u8 , 220u8 , 33u8 , 130u8 , 250u8 , 42u8 , 61u8 , 200u8 , 244u8 , 125u8 , 63u8 , 228u8 , 35u8 , 183u8 , 43u8 , 7u8 , 184u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> bonds"] pub fn bonds_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bonds :: Bonds , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Bonds" , () , [11u8 , 36u8 , 139u8 , 245u8 , 90u8 , 20u8 , 111u8 , 189u8 , 60u8 , 65u8 , 247u8 , 126u8 , 209u8 , 110u8 , 104u8 , 140u8 , 171u8 , 248u8 , 40u8 , 94u8 , 193u8 , 61u8 , 129u8 , 130u8 , 128u8 , 114u8 , 60u8 , 60u8 , 231u8 , 227u8 , 223u8 , 202u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> bonds"] pub fn bonds_iter1 (& self , _0 : types :: bonds :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonds :: Param0 > , types :: bonds :: Bonds , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Bonds" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [11u8 , 36u8 , 139u8 , 245u8 , 90u8 , 20u8 , 111u8 , 189u8 , 60u8 , 65u8 , 247u8 , 126u8 , 209u8 , 110u8 , 104u8 , 140u8 , 171u8 , 248u8 , 40u8 , 94u8 , 193u8 , 61u8 , 129u8 , 130u8 , 128u8 , 114u8 , 60u8 , 60u8 , 231u8 , 227u8 , 223u8 , 202u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> bonds"] pub fn bonds (& self , _0 : types :: bonds :: Param0 , _1 : types :: bonds :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonds :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonds :: Param1 > ,) , types :: bonds :: Bonds , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Bonds" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [11u8 , 36u8 , 139u8 , 245u8 , 90u8 , 20u8 , 111u8 , 189u8 , 60u8 , 65u8 , 247u8 , 126u8 , 209u8 , 110u8 , 104u8 , 140u8 , 171u8 , 248u8 , 40u8 , 94u8 , 193u8 , 61u8 , 129u8 , 130u8 , 128u8 , 114u8 , 60u8 , 60u8 , 231u8 , 227u8 , 223u8 , 202u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> block_at_registration"] pub fn block_at_registration_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: block_at_registration :: BlockAtRegistration , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BlockAtRegistration" , () , [25u8 , 46u8 , 139u8 , 65u8 , 206u8 , 245u8 , 13u8 , 118u8 , 40u8 , 94u8 , 35u8 , 157u8 , 161u8 , 120u8 , 219u8 , 76u8 , 172u8 , 107u8 , 237u8 , 29u8 , 213u8 , 177u8 , 196u8 , 162u8 , 129u8 , 29u8 , 81u8 , 3u8 , 123u8 , 116u8 , 1u8 , 81u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> block_at_registration"] pub fn block_at_registration_iter1 (& self , _0 : types :: block_at_registration :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: block_at_registration :: Param0 > , types :: block_at_registration :: BlockAtRegistration , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BlockAtRegistration" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [25u8 , 46u8 , 139u8 , 65u8 , 206u8 , 245u8 , 13u8 , 118u8 , 40u8 , 94u8 , 35u8 , 157u8 , 161u8 , 120u8 , 219u8 , 76u8 , 172u8 , 107u8 , 237u8 , 29u8 , 213u8 , 177u8 , 196u8 , 162u8 , 129u8 , 29u8 , 81u8 , 3u8 , 123u8 , 116u8 , 1u8 , 81u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> block_at_registration"] pub fn block_at_registration (& self , _0 : types :: block_at_registration :: Param0 , _1 : types :: block_at_registration :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: block_at_registration :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: block_at_registration :: Param1 > ,) , types :: block_at_registration :: BlockAtRegistration , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BlockAtRegistration" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [25u8 , 46u8 , 139u8 , 65u8 , 206u8 , 245u8 , 13u8 , 118u8 , 40u8 , 94u8 , 35u8 , 157u8 , 161u8 , 120u8 , 219u8 , 76u8 , 172u8 , 107u8 , 237u8 , 29u8 , 213u8 , 177u8 , 196u8 , 162u8 , 129u8 , 29u8 , 81u8 , 3u8 , 123u8 , 116u8 , 1u8 , 81u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> axon_info"] pub fn axons_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: axons :: Axons , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Axons" , () , [88u8 , 108u8 , 102u8 , 2u8 , 44u8 , 234u8 , 133u8 , 231u8 , 190u8 , 19u8 , 185u8 , 26u8 , 74u8 , 162u8 , 11u8 , 232u8 , 85u8 , 75u8 , 180u8 , 178u8 , 220u8 , 211u8 , 60u8 , 22u8 , 66u8 , 5u8 , 78u8 , 68u8 , 70u8 , 126u8 , 125u8 , 227u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> axon_info"] pub fn axons_iter1 (& self , _0 : types :: axons :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: axons :: Param0 > , types :: axons :: Axons , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Axons" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [88u8 , 108u8 , 102u8 , 2u8 , 44u8 , 234u8 , 133u8 , 231u8 , 190u8 , 19u8 , 185u8 , 26u8 , 74u8 , 162u8 , 11u8 , 232u8 , 85u8 , 75u8 , 180u8 , 178u8 , 220u8 , 211u8 , 60u8 , 22u8 , 66u8 , 5u8 , 78u8 , 68u8 , 70u8 , 126u8 , 125u8 , 227u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> axon_info"] pub fn axons (& self , _0 : types :: axons :: Param0 , _1 : types :: axons :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: axons :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: axons :: Param1 > ,) , types :: axons :: Axons , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Axons" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [88u8 , 108u8 , 102u8 , 2u8 , 44u8 , 234u8 , 133u8 , 231u8 , 190u8 , 19u8 , 185u8 , 26u8 , 74u8 , 162u8 , 11u8 , 232u8 , 85u8 , 75u8 , 180u8 , 178u8 , 220u8 , 211u8 , 60u8 , 22u8 , 66u8 , 5u8 , 78u8 , 68u8 , 70u8 , 126u8 , 125u8 , 227u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> certificate"] pub fn neuron_certificates_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: neuron_certificates :: NeuronCertificates , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NeuronCertificates" , () , [184u8 , 21u8 , 56u8 , 81u8 , 139u8 , 123u8 , 169u8 , 40u8 , 160u8 , 55u8 , 182u8 , 47u8 , 123u8 , 20u8 , 176u8 , 174u8 , 64u8 , 234u8 , 102u8 , 244u8 , 23u8 , 125u8 , 118u8 , 152u8 , 82u8 , 51u8 , 243u8 , 97u8 , 222u8 , 215u8 , 190u8 , 19u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> certificate"] pub fn neuron_certificates_iter1 (& self , _0 : types :: neuron_certificates :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: neuron_certificates :: Param0 > , types :: neuron_certificates :: NeuronCertificates , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NeuronCertificates" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [184u8 , 21u8 , 56u8 , 81u8 , 139u8 , 123u8 , 169u8 , 40u8 , 160u8 , 55u8 , 182u8 , 47u8 , 123u8 , 20u8 , 176u8 , 174u8 , 64u8 , 234u8 , 102u8 , 244u8 , 23u8 , 125u8 , 118u8 , 152u8 , 82u8 , 51u8 , 243u8 , 97u8 , 222u8 , 215u8 , 190u8 , 19u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> certificate"] pub fn neuron_certificates (& self , _0 : types :: neuron_certificates :: Param0 , _1 : types :: neuron_certificates :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: neuron_certificates :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: neuron_certificates :: Param1 > ,) , types :: neuron_certificates :: NeuronCertificates , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NeuronCertificates" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [184u8 , 21u8 , 56u8 , 81u8 , 139u8 , 123u8 , 169u8 , 40u8 , 160u8 , 55u8 , 182u8 , 47u8 , 123u8 , 20u8 , 176u8 , 174u8 , 64u8 , 234u8 , 102u8 , 244u8 , 23u8 , 125u8 , 118u8 , 152u8 , 82u8 , 51u8 , 243u8 , 97u8 , 222u8 , 215u8 , 190u8 , 19u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> prometheus_info"] pub fn prometheus_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: prometheus :: Prometheus , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Prometheus" , () , [145u8 , 192u8 , 240u8 , 31u8 , 78u8 , 238u8 , 87u8 , 30u8 , 67u8 , 43u8 , 132u8 , 227u8 , 210u8 , 241u8 , 202u8 , 63u8 , 250u8 , 32u8 , 30u8 , 209u8 , 31u8 , 97u8 , 34u8 , 68u8 , 16u8 , 192u8 , 24u8 , 16u8 , 210u8 , 252u8 , 164u8 , 80u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> prometheus_info"] pub fn prometheus_iter1 (& self , _0 : types :: prometheus :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: prometheus :: Param0 > , types :: prometheus :: Prometheus , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Prometheus" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [145u8 , 192u8 , 240u8 , 31u8 , 78u8 , 238u8 , 87u8 , 30u8 , 67u8 , 43u8 , 132u8 , 227u8 , 210u8 , 241u8 , 202u8 , 63u8 , 250u8 , 32u8 , 30u8 , 209u8 , 31u8 , 97u8 , 34u8 , 68u8 , 16u8 , 192u8 , 24u8 , 16u8 , 210u8 , 252u8 , 164u8 , 80u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> prometheus_info"] pub fn prometheus (& self , _0 : types :: prometheus :: Param0 , _1 : types :: prometheus :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: prometheus :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: prometheus :: Param1 > ,) , types :: prometheus :: Prometheus , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Prometheus" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [145u8 , 192u8 , 240u8 , 31u8 , 78u8 , 238u8 , 87u8 , 30u8 , 67u8 , 43u8 , 132u8 , 227u8 , 210u8 , 241u8 , 202u8 , 63u8 , 250u8 , 32u8 , 30u8 , 209u8 , 31u8 , 97u8 , 34u8 , 68u8 , 16u8 , 192u8 , 24u8 , 16u8 , 210u8 , 252u8 , 164u8 , 80u8 ,]) } # [doc = " --- MAP ( coldkey ) --> identity"] pub fn identities_v2_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: identities_v2 :: IdentitiesV2 , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "IdentitiesV2" , () , [153u8 , 254u8 , 19u8 , 142u8 , 204u8 , 217u8 , 210u8 , 18u8 , 168u8 , 33u8 , 63u8 , 141u8 , 209u8 , 140u8 , 25u8 , 171u8 , 63u8 , 40u8 , 147u8 , 158u8 , 161u8 , 139u8 , 11u8 , 163u8 , 204u8 , 111u8 , 6u8 , 30u8 , 19u8 , 128u8 , 183u8 , 150u8 ,]) } # [doc = " --- MAP ( coldkey ) --> identity"] pub fn identities_v2 (& self , _0 : types :: identities_v2 :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: identities_v2 :: Param0 > , types :: identities_v2 :: IdentitiesV2 , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "IdentitiesV2" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [153u8 , 254u8 , 19u8 , 142u8 , 204u8 , 217u8 , 210u8 , 18u8 , 168u8 , 33u8 , 63u8 , 141u8 , 209u8 , 140u8 , 25u8 , 171u8 , 63u8 , 40u8 , 147u8 , 158u8 , 161u8 , 139u8 , 11u8 , 163u8 , 204u8 , 111u8 , 6u8 , 30u8 , 19u8 , 128u8 , 183u8 , 150u8 ,]) } # [doc = " --- MAP ( netuid ) --> SubnetIdentityOfV3"] pub fn subnet_identities_v3_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_identities_v3 :: SubnetIdentitiesV3 , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetIdentitiesV3" , () , [77u8 , 65u8 , 133u8 , 174u8 , 114u8 , 139u8 , 233u8 , 183u8 , 250u8 , 138u8 , 246u8 , 12u8 , 24u8 , 255u8 , 143u8 , 218u8 , 77u8 , 96u8 , 18u8 , 70u8 , 14u8 , 179u8 , 34u8 , 37u8 , 219u8 , 198u8 , 11u8 , 146u8 , 250u8 , 238u8 , 118u8 , 52u8 ,]) } # [doc = " --- MAP ( netuid ) --> SubnetIdentityOfV3"] pub fn subnet_identities_v3 (& self , _0 : types :: subnet_identities_v3 :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_identities_v3 :: Param0 > , types :: subnet_identities_v3 :: SubnetIdentitiesV3 , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetIdentitiesV3" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [77u8 , 65u8 , 133u8 , 174u8 , 114u8 , 139u8 , 233u8 , 183u8 , 250u8 , 138u8 , 246u8 , 12u8 , 24u8 , 255u8 , 143u8 , 218u8 , 77u8 , 96u8 , 18u8 , 70u8 , 14u8 , 179u8 , 34u8 , 37u8 , 219u8 , 198u8 , 11u8 , 146u8 , 250u8 , 238u8 , 118u8 , 52u8 ,]) } # [doc = " ================================="] # [doc = " ==== Axon / Promo Endpoints ====="] # [doc = " ================================="] # [doc = " --- NMAP ( hot, netuid, name ) --> last_block | Returns the last block of a transaction for a given key, netuid, and name."] pub fn transaction_key_last_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: transaction_key_last_block :: TransactionKeyLastBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TransactionKeyLastBlock" , () , [133u8 , 67u8 , 139u8 , 127u8 , 103u8 , 156u8 , 31u8 , 142u8 , 163u8 , 221u8 , 251u8 , 219u8 , 8u8 , 44u8 , 51u8 , 230u8 , 229u8 , 243u8 , 255u8 , 80u8 , 16u8 , 247u8 , 49u8 , 36u8 , 183u8 , 122u8 , 162u8 , 44u8 , 226u8 , 1u8 , 122u8 , 244u8 ,]) } # [doc = " ================================="] # [doc = " ==== Axon / Promo Endpoints ====="] # [doc = " ================================="] # [doc = " --- NMAP ( hot, netuid, name ) --> last_block | Returns the last block of a transaction for a given key, netuid, and name."] pub fn transaction_key_last_block_iter1 (& self , _0 : types :: transaction_key_last_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transaction_key_last_block :: Param0 > , types :: transaction_key_last_block :: TransactionKeyLastBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TransactionKeyLastBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [133u8 , 67u8 , 139u8 , 127u8 , 103u8 , 156u8 , 31u8 , 142u8 , 163u8 , 221u8 , 251u8 , 219u8 , 8u8 , 44u8 , 51u8 , 230u8 , 229u8 , 243u8 , 255u8 , 80u8 , 16u8 , 247u8 , 49u8 , 36u8 , 183u8 , 122u8 , 162u8 , 44u8 , 226u8 , 1u8 , 122u8 , 244u8 ,]) } # [doc = " ================================="] # [doc = " ==== Axon / Promo Endpoints ====="] # [doc = " ================================="] # [doc = " --- NMAP ( hot, netuid, name ) --> last_block | Returns the last block of a transaction for a given key, netuid, and name."] pub fn transaction_key_last_block_iter2 (& self , _0 : types :: transaction_key_last_block :: Param0 , _1 : types :: transaction_key_last_block :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transaction_key_last_block :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transaction_key_last_block :: Param1 > ,) , types :: transaction_key_last_block :: TransactionKeyLastBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TransactionKeyLastBlock" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [133u8 , 67u8 , 139u8 , 127u8 , 103u8 , 156u8 , 31u8 , 142u8 , 163u8 , 221u8 , 251u8 , 219u8 , 8u8 , 44u8 , 51u8 , 230u8 , 229u8 , 243u8 , 255u8 , 80u8 , 16u8 , 247u8 , 49u8 , 36u8 , 183u8 , 122u8 , 162u8 , 44u8 , 226u8 , 1u8 , 122u8 , 244u8 ,]) } # [doc = " ================================="] # [doc = " ==== Axon / Promo Endpoints ====="] # [doc = " ================================="] # [doc = " --- NMAP ( hot, netuid, name ) --> last_block | Returns the last block of a transaction for a given key, netuid, and name."] pub fn transaction_key_last_block (& self , _0 : types :: transaction_key_last_block :: Param0 , _1 : types :: transaction_key_last_block :: Param1 , _2 : types :: transaction_key_last_block :: Param2 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transaction_key_last_block :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transaction_key_last_block :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transaction_key_last_block :: Param2 > ,) , types :: transaction_key_last_block :: TransactionKeyLastBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TransactionKeyLastBlock" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2) ,) , [133u8 , 67u8 , 139u8 , 127u8 , 103u8 , 156u8 , 31u8 , 142u8 , 163u8 , 221u8 , 251u8 , 219u8 , 8u8 , 44u8 , 51u8 , 230u8 , 229u8 , 243u8 , 255u8 , 80u8 , 16u8 , 247u8 , 49u8 , 36u8 , 183u8 , 122u8 , 162u8 , 44u8 , 226u8 , 1u8 , 122u8 , 244u8 ,]) } # [doc = " --- MAP ( key ) --> last_block"] pub fn last_tx_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_tx_block :: LastTxBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastTxBlock" , () , [110u8 , 36u8 , 249u8 , 1u8 , 181u8 , 193u8 , 146u8 , 153u8 , 25u8 , 162u8 , 230u8 , 16u8 , 223u8 , 176u8 , 189u8 , 253u8 , 109u8 , 101u8 , 151u8 , 63u8 , 199u8 , 191u8 , 114u8 , 38u8 , 207u8 , 186u8 , 96u8 , 46u8 , 45u8 , 87u8 , 182u8 , 177u8 ,]) } # [doc = " --- MAP ( key ) --> last_block"] pub fn last_tx_block (& self , _0 : types :: last_tx_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_tx_block :: Param0 > , types :: last_tx_block :: LastTxBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastTxBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [110u8 , 36u8 , 249u8 , 1u8 , 181u8 , 193u8 , 146u8 , 153u8 , 25u8 , 162u8 , 230u8 , 16u8 , 223u8 , 176u8 , 189u8 , 253u8 , 109u8 , 101u8 , 151u8 , 63u8 , 199u8 , 191u8 , 114u8 , 38u8 , 207u8 , 186u8 , 96u8 , 46u8 , 45u8 , 87u8 , 182u8 , 177u8 ,]) } # [doc = " --- MAP ( key ) --> last_tx_block_childkey_take"] pub fn last_tx_block_child_key_take_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_tx_block_child_key_take :: LastTxBlockChildKeyTake , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastTxBlockChildKeyTake" , () , [235u8 , 75u8 , 165u8 , 153u8 , 97u8 , 11u8 , 159u8 , 51u8 , 229u8 , 39u8 , 75u8 , 75u8 , 178u8 , 71u8 , 31u8 , 124u8 , 159u8 , 107u8 , 250u8 , 58u8 , 165u8 , 87u8 , 10u8 , 233u8 , 253u8 , 200u8 , 206u8 , 158u8 , 75u8 , 150u8 , 199u8 , 228u8 ,]) } # [doc = " --- MAP ( key ) --> last_tx_block_childkey_take"] pub fn last_tx_block_child_key_take (& self , _0 : types :: last_tx_block_child_key_take :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_tx_block_child_key_take :: Param0 > , types :: last_tx_block_child_key_take :: LastTxBlockChildKeyTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastTxBlockChildKeyTake" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [235u8 , 75u8 , 165u8 , 153u8 , 97u8 , 11u8 , 159u8 , 51u8 , 229u8 , 39u8 , 75u8 , 75u8 , 178u8 , 71u8 , 31u8 , 124u8 , 159u8 , 107u8 , 250u8 , 58u8 , 165u8 , 87u8 , 10u8 , 233u8 , 253u8 , 200u8 , 206u8 , 158u8 , 75u8 , 150u8 , 199u8 , 228u8 ,]) } # [doc = " --- MAP ( key ) --> last_tx_block_delegate_take"] pub fn last_tx_block_delegate_take_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_tx_block_delegate_take :: LastTxBlockDelegateTake , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastTxBlockDelegateTake" , () , [12u8 , 222u8 , 74u8 , 237u8 , 136u8 , 118u8 , 12u8 , 175u8 , 121u8 , 238u8 , 132u8 , 170u8 , 227u8 , 140u8 , 109u8 , 218u8 , 3u8 , 133u8 , 250u8 , 125u8 , 141u8 , 211u8 , 45u8 , 120u8 , 22u8 , 94u8 , 166u8 , 100u8 , 104u8 , 51u8 , 65u8 , 252u8 ,]) } # [doc = " --- MAP ( key ) --> last_tx_block_delegate_take"] pub fn last_tx_block_delegate_take (& self , _0 : types :: last_tx_block_delegate_take :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_tx_block_delegate_take :: Param0 > , types :: last_tx_block_delegate_take :: LastTxBlockDelegateTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastTxBlockDelegateTake" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [12u8 , 222u8 , 74u8 , 237u8 , 136u8 , 118u8 , 12u8 , 175u8 , 121u8 , 238u8 , 132u8 , 170u8 , 227u8 , 140u8 , 109u8 , 218u8 , 3u8 , 133u8 , 250u8 , 125u8 , 141u8 , 211u8 , 45u8 , 120u8 , 22u8 , 94u8 , 166u8 , 100u8 , 104u8 , 51u8 , 65u8 , 252u8 ,]) } # [doc = " ITEM( weights_min_stake )"] pub fn stake_threshold (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: stake_threshold :: StakeThreshold , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakeThreshold" , () , [218u8 , 140u8 , 20u8 , 241u8 , 216u8 , 33u8 , 78u8 , 151u8 , 201u8 , 249u8 , 225u8 , 74u8 , 159u8 , 247u8 , 188u8 , 64u8 , 13u8 , 139u8 , 11u8 , 59u8 , 109u8 , 38u8 , 3u8 , 48u8 , 28u8 , 97u8 , 147u8 , 154u8 , 250u8 , 156u8 , 254u8 , 217u8 ,]) } # [doc = " --- MAP (netuid, who) --> VecDeque<(hash, commit_block, first_reveal_block, last_reveal_block)> | Stores a queue of commits for an account on a given netuid."] pub fn weight_commits_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: weight_commits :: WeightCommits , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightCommits" , () , [15u8 , 187u8 , 166u8 , 200u8 , 193u8 , 181u8 , 127u8 , 255u8 , 214u8 , 69u8 , 191u8 , 112u8 , 249u8 , 88u8 , 110u8 , 102u8 , 180u8 , 130u8 , 65u8 , 190u8 , 74u8 , 252u8 , 11u8 , 236u8 , 100u8 , 143u8 , 30u8 , 70u8 , 131u8 , 90u8 , 51u8 , 62u8 ,]) } # [doc = " --- MAP (netuid, who) --> VecDeque<(hash, commit_block, first_reveal_block, last_reveal_block)> | Stores a queue of commits for an account on a given netuid."] pub fn weight_commits_iter1 (& self , _0 : types :: weight_commits :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weight_commits :: Param0 > , types :: weight_commits :: WeightCommits , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightCommits" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [15u8 , 187u8 , 166u8 , 200u8 , 193u8 , 181u8 , 127u8 , 255u8 , 214u8 , 69u8 , 191u8 , 112u8 , 249u8 , 88u8 , 110u8 , 102u8 , 180u8 , 130u8 , 65u8 , 190u8 , 74u8 , 252u8 , 11u8 , 236u8 , 100u8 , 143u8 , 30u8 , 70u8 , 131u8 , 90u8 , 51u8 , 62u8 ,]) } # [doc = " --- MAP (netuid, who) --> VecDeque<(hash, commit_block, first_reveal_block, last_reveal_block)> | Stores a queue of commits for an account on a given netuid."] pub fn weight_commits (& self , _0 : types :: weight_commits :: Param0 , _1 : types :: weight_commits :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weight_commits :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weight_commits :: Param1 > ,) , types :: weight_commits :: WeightCommits , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightCommits" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [15u8 , 187u8 , 166u8 , 200u8 , 193u8 , 181u8 , 127u8 , 255u8 , 214u8 , 69u8 , 191u8 , 112u8 , 249u8 , 88u8 , 110u8 , 102u8 , 180u8 , 130u8 , 65u8 , 190u8 , 74u8 , 252u8 , 11u8 , 236u8 , 100u8 , 143u8 , 30u8 , 70u8 , 131u8 , 90u8 , 51u8 , 62u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)>"] # [doc = " Stores a queue of weight commits for an account on a given subnet."] pub fn timelocked_weight_commits_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: timelocked_weight_commits :: TimelockedWeightCommits , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TimelockedWeightCommits" , () , [142u8 , 95u8 , 3u8 , 128u8 , 158u8 , 142u8 , 161u8 , 150u8 , 157u8 , 172u8 , 161u8 , 78u8 , 128u8 , 69u8 , 202u8 , 119u8 , 157u8 , 118u8 , 18u8 , 67u8 , 8u8 , 250u8 , 222u8 , 56u8 , 107u8 , 216u8 , 168u8 , 44u8 , 197u8 , 144u8 , 52u8 , 217u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)>"] # [doc = " Stores a queue of weight commits for an account on a given subnet."] pub fn timelocked_weight_commits_iter1 (& self , _0 : types :: timelocked_weight_commits :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: timelocked_weight_commits :: Param0 > , types :: timelocked_weight_commits :: TimelockedWeightCommits , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TimelockedWeightCommits" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [142u8 , 95u8 , 3u8 , 128u8 , 158u8 , 142u8 , 161u8 , 150u8 , 157u8 , 172u8 , 161u8 , 78u8 , 128u8 , 69u8 , 202u8 , 119u8 , 157u8 , 118u8 , 18u8 , 67u8 , 8u8 , 250u8 , 222u8 , 56u8 , 107u8 , 216u8 , 168u8 , 44u8 , 197u8 , 144u8 , 52u8 , 217u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)>"] # [doc = " Stores a queue of weight commits for an account on a given subnet."] pub fn timelocked_weight_commits (& self , _0 : types :: timelocked_weight_commits :: Param0 , _1 : types :: timelocked_weight_commits :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: timelocked_weight_commits :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: timelocked_weight_commits :: Param1 > ,) , types :: timelocked_weight_commits :: TimelockedWeightCommits , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TimelockedWeightCommits" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [142u8 , 95u8 , 3u8 , 128u8 , 158u8 , 142u8 , 161u8 , 150u8 , 157u8 , 172u8 , 161u8 , 78u8 , 128u8 , 69u8 , 202u8 , 119u8 , 157u8 , 118u8 , 18u8 , 67u8 , 8u8 , 250u8 , 222u8 , 56u8 , 107u8 , 216u8 , 168u8 , 44u8 , 197u8 , 144u8 , 52u8 , 217u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, ciphertext, reveal_round)>"] # [doc = " DEPRECATED for CRV3WeightCommitsV2"] pub fn crv3_weight_commits_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: crv3_weight_commits :: Crv3WeightCommits , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CRV3WeightCommits" , () , [202u8 , 4u8 , 164u8 , 156u8 , 73u8 , 244u8 , 226u8 , 70u8 , 35u8 , 55u8 , 201u8 , 224u8 , 127u8 , 234u8 , 93u8 , 11u8 , 172u8 , 66u8 , 180u8 , 62u8 , 70u8 , 225u8 , 59u8 , 75u8 , 37u8 , 244u8 , 48u8 , 151u8 , 43u8 , 5u8 , 42u8 , 140u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, ciphertext, reveal_round)>"] # [doc = " DEPRECATED for CRV3WeightCommitsV2"] pub fn crv3_weight_commits_iter1 (& self , _0 : types :: crv3_weight_commits :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crv3_weight_commits :: Param0 > , types :: crv3_weight_commits :: Crv3WeightCommits , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CRV3WeightCommits" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [202u8 , 4u8 , 164u8 , 156u8 , 73u8 , 244u8 , 226u8 , 70u8 , 35u8 , 55u8 , 201u8 , 224u8 , 127u8 , 234u8 , 93u8 , 11u8 , 172u8 , 66u8 , 180u8 , 62u8 , 70u8 , 225u8 , 59u8 , 75u8 , 37u8 , 244u8 , 48u8 , 151u8 , 43u8 , 5u8 , 42u8 , 140u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, ciphertext, reveal_round)>"] # [doc = " DEPRECATED for CRV3WeightCommitsV2"] pub fn crv3_weight_commits (& self , _0 : types :: crv3_weight_commits :: Param0 , _1 : types :: crv3_weight_commits :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crv3_weight_commits :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crv3_weight_commits :: Param1 > ,) , types :: crv3_weight_commits :: Crv3WeightCommits , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CRV3WeightCommits" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [202u8 , 4u8 , 164u8 , 156u8 , 73u8 , 244u8 , 226u8 , 70u8 , 35u8 , 55u8 , 201u8 , 224u8 , 127u8 , 234u8 , 93u8 , 11u8 , 172u8 , 66u8 , 180u8 , 62u8 , 70u8 , 225u8 , 59u8 , 75u8 , 37u8 , 244u8 , 48u8 , 151u8 , 43u8 , 5u8 , 42u8 , 140u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)>"] # [doc = " DEPRECATED for TimelockedWeightCommits"] pub fn crv3_weight_commits_v2_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: crv3_weight_commits_v2 :: Crv3WeightCommitsV2 , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CRV3WeightCommitsV2" , () , [63u8 , 34u8 , 149u8 , 244u8 , 110u8 , 80u8 , 77u8 , 51u8 , 73u8 , 135u8 , 43u8 , 60u8 , 66u8 , 2u8 , 176u8 , 96u8 , 72u8 , 33u8 , 53u8 , 81u8 , 232u8 , 195u8 , 85u8 , 93u8 , 99u8 , 211u8 , 249u8 , 50u8 , 68u8 , 35u8 , 134u8 , 175u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)>"] # [doc = " DEPRECATED for TimelockedWeightCommits"] pub fn crv3_weight_commits_v2_iter1 (& self , _0 : types :: crv3_weight_commits_v2 :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crv3_weight_commits_v2 :: Param0 > , types :: crv3_weight_commits_v2 :: Crv3WeightCommitsV2 , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CRV3WeightCommitsV2" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [63u8 , 34u8 , 149u8 , 244u8 , 110u8 , 80u8 , 77u8 , 51u8 , 73u8 , 135u8 , 43u8 , 60u8 , 66u8 , 2u8 , 176u8 , 96u8 , 72u8 , 33u8 , 53u8 , 81u8 , 232u8 , 195u8 , 85u8 , 93u8 , 99u8 , 211u8 , 249u8 , 50u8 , 68u8 , 35u8 , 134u8 , 175u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)>"] # [doc = " DEPRECATED for TimelockedWeightCommits"] pub fn crv3_weight_commits_v2 (& self , _0 : types :: crv3_weight_commits_v2 :: Param0 , _1 : types :: crv3_weight_commits_v2 :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crv3_weight_commits_v2 :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crv3_weight_commits_v2 :: Param1 > ,) , types :: crv3_weight_commits_v2 :: Crv3WeightCommitsV2 , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CRV3WeightCommitsV2" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [63u8 , 34u8 , 149u8 , 244u8 , 110u8 , 80u8 , 77u8 , 51u8 , 73u8 , 135u8 , 43u8 , 60u8 , 66u8 , 2u8 , 176u8 , 96u8 , 72u8 , 33u8 , 53u8 , 81u8 , 232u8 , 195u8 , 85u8 , 93u8 , 99u8 , 211u8 , 249u8 , 50u8 , 68u8 , 35u8 , 134u8 , 175u8 ,]) } # [doc = " --- Map (netuid) --> Number of epochs allowed for commit reveal periods"] pub fn reveal_period_epochs_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: reveal_period_epochs :: RevealPeriodEpochs , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RevealPeriodEpochs" , () , [50u8 , 100u8 , 64u8 , 192u8 , 113u8 , 247u8 , 212u8 , 68u8 , 111u8 , 24u8 , 240u8 , 237u8 , 59u8 , 109u8 , 149u8 , 96u8 , 232u8 , 248u8 , 60u8 , 95u8 , 65u8 , 11u8 , 81u8 , 79u8 , 83u8 , 202u8 , 179u8 , 44u8 , 241u8 , 109u8 , 87u8 , 147u8 ,]) } # [doc = " --- Map (netuid) --> Number of epochs allowed for commit reveal periods"] pub fn reveal_period_epochs (& self , _0 : types :: reveal_period_epochs :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: reveal_period_epochs :: Param0 > , types :: reveal_period_epochs :: RevealPeriodEpochs , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RevealPeriodEpochs" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [50u8 , 100u8 , 64u8 , 192u8 , 113u8 , 247u8 , 212u8 , 68u8 , 111u8 , 24u8 , 240u8 , 237u8 , 59u8 , 109u8 , 149u8 , 96u8 , 232u8 , 248u8 , 60u8 , 95u8 , 65u8 , 11u8 , 81u8 , 79u8 , 83u8 , 202u8 , 179u8 , 44u8 , 241u8 , 109u8 , 87u8 , 147u8 ,]) } # [doc = " --- Map (coldkey, hotkey) --> u64 the last block at which stake was added/removed."] pub fn last_coldkey_hotkey_stake_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_coldkey_hotkey_stake_block :: LastColdkeyHotkeyStakeBlock , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastColdkeyHotkeyStakeBlock" , () , [252u8 , 113u8 , 239u8 , 148u8 , 17u8 , 111u8 , 212u8 , 224u8 , 138u8 , 74u8 , 125u8 , 118u8 , 141u8 , 158u8 , 45u8 , 177u8 , 55u8 , 222u8 , 39u8 , 80u8 , 36u8 , 62u8 , 158u8 , 157u8 , 57u8 , 37u8 , 116u8 , 164u8 , 86u8 , 215u8 , 214u8 , 152u8 ,]) } # [doc = " --- Map (coldkey, hotkey) --> u64 the last block at which stake was added/removed."] pub fn last_coldkey_hotkey_stake_block_iter1 (& self , _0 : types :: last_coldkey_hotkey_stake_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_coldkey_hotkey_stake_block :: Param0 > , types :: last_coldkey_hotkey_stake_block :: LastColdkeyHotkeyStakeBlock , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastColdkeyHotkeyStakeBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [252u8 , 113u8 , 239u8 , 148u8 , 17u8 , 111u8 , 212u8 , 224u8 , 138u8 , 74u8 , 125u8 , 118u8 , 141u8 , 158u8 , 45u8 , 177u8 , 55u8 , 222u8 , 39u8 , 80u8 , 36u8 , 62u8 , 158u8 , 157u8 , 57u8 , 37u8 , 116u8 , 164u8 , 86u8 , 215u8 , 214u8 , 152u8 ,]) } # [doc = " --- Map (coldkey, hotkey) --> u64 the last block at which stake was added/removed."] pub fn last_coldkey_hotkey_stake_block (& self , _0 : types :: last_coldkey_hotkey_stake_block :: Param0 , _1 : types :: last_coldkey_hotkey_stake_block :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_coldkey_hotkey_stake_block :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_coldkey_hotkey_stake_block :: Param1 > ,) , types :: last_coldkey_hotkey_stake_block :: LastColdkeyHotkeyStakeBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastColdkeyHotkeyStakeBlock" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [252u8 , 113u8 , 239u8 , 148u8 , 17u8 , 111u8 , 212u8 , 224u8 , 138u8 , 74u8 , 125u8 , 118u8 , 141u8 , 158u8 , 45u8 , 177u8 , 55u8 , 222u8 , 39u8 , 80u8 , 36u8 , 62u8 , 158u8 , 157u8 , 57u8 , 37u8 , 116u8 , 164u8 , 86u8 , 215u8 , 214u8 , 152u8 ,]) } # [doc = " DMAP ( hot, cold, netuid ) --> rate limits for staking operations"] # [doc = " Value contains just a marker: we use this map as a set."] pub fn staking_operation_rate_limiter_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: staking_operation_rate_limiter :: StakingOperationRateLimiter , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingOperationRateLimiter" , () , [17u8 , 129u8 , 141u8 , 110u8 , 112u8 , 160u8 , 39u8 , 49u8 , 166u8 , 1u8 , 109u8 , 42u8 , 81u8 , 70u8 , 115u8 , 200u8 , 224u8 , 30u8 , 68u8 , 254u8 , 239u8 , 109u8 , 129u8 , 181u8 , 19u8 , 83u8 , 240u8 , 6u8 , 94u8 , 64u8 , 239u8 , 164u8 ,]) } # [doc = " DMAP ( hot, cold, netuid ) --> rate limits for staking operations"] # [doc = " Value contains just a marker: we use this map as a set."] pub fn staking_operation_rate_limiter_iter1 (& self , _0 : types :: staking_operation_rate_limiter :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_operation_rate_limiter :: Param0 > , types :: staking_operation_rate_limiter :: StakingOperationRateLimiter , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingOperationRateLimiter" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [17u8 , 129u8 , 141u8 , 110u8 , 112u8 , 160u8 , 39u8 , 49u8 , 166u8 , 1u8 , 109u8 , 42u8 , 81u8 , 70u8 , 115u8 , 200u8 , 224u8 , 30u8 , 68u8 , 254u8 , 239u8 , 109u8 , 129u8 , 181u8 , 19u8 , 83u8 , 240u8 , 6u8 , 94u8 , 64u8 , 239u8 , 164u8 ,]) } # [doc = " DMAP ( hot, cold, netuid ) --> rate limits for staking operations"] # [doc = " Value contains just a marker: we use this map as a set."] pub fn staking_operation_rate_limiter_iter2 (& self , _0 : types :: staking_operation_rate_limiter :: Param0 , _1 : types :: staking_operation_rate_limiter :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_operation_rate_limiter :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_operation_rate_limiter :: Param1 > ,) , types :: staking_operation_rate_limiter :: StakingOperationRateLimiter , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingOperationRateLimiter" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [17u8 , 129u8 , 141u8 , 110u8 , 112u8 , 160u8 , 39u8 , 49u8 , 166u8 , 1u8 , 109u8 , 42u8 , 81u8 , 70u8 , 115u8 , 200u8 , 224u8 , 30u8 , 68u8 , 254u8 , 239u8 , 109u8 , 129u8 , 181u8 , 19u8 , 83u8 , 240u8 , 6u8 , 94u8 , 64u8 , 239u8 , 164u8 ,]) } # [doc = " DMAP ( hot, cold, netuid ) --> rate limits for staking operations"] # [doc = " Value contains just a marker: we use this map as a set."] pub fn staking_operation_rate_limiter (& self , _0 : types :: staking_operation_rate_limiter :: Param0 , _1 : types :: staking_operation_rate_limiter :: Param1 , _2 : types :: staking_operation_rate_limiter :: Param2 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_operation_rate_limiter :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_operation_rate_limiter :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_operation_rate_limiter :: Param2 > ,) , types :: staking_operation_rate_limiter :: StakingOperationRateLimiter , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingOperationRateLimiter" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2) ,) , [17u8 , 129u8 , 141u8 , 110u8 , 112u8 , 160u8 , 39u8 , 49u8 , 166u8 , 1u8 , 109u8 , 42u8 , 81u8 , 70u8 , 115u8 , 200u8 , 224u8 , 30u8 , 68u8 , 254u8 , 239u8 , 109u8 , 129u8 , 181u8 , 19u8 , 83u8 , 240u8 , 6u8 , 94u8 , 64u8 , 239u8 , 164u8 ,]) } pub fn root_claimable_threshold_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_claimable_threshold :: RootClaimableThreshold , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimableThreshold" , () , [189u8 , 175u8 , 21u8 , 115u8 , 184u8 , 153u8 , 143u8 , 29u8 , 85u8 , 65u8 , 8u8 , 160u8 , 134u8 , 141u8 , 192u8 , 23u8 , 224u8 , 122u8 , 200u8 , 60u8 , 184u8 , 45u8 , 169u8 , 153u8 , 42u8 , 0u8 , 162u8 , 6u8 , 32u8 , 64u8 , 72u8 , 116u8 ,]) } pub fn root_claimable_threshold (& self , _0 : types :: root_claimable_threshold :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimable_threshold :: Param0 > , types :: root_claimable_threshold :: RootClaimableThreshold , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimableThreshold" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [189u8 , 175u8 , 21u8 , 115u8 , 184u8 , 153u8 , 143u8 , 29u8 , 85u8 , 65u8 , 8u8 , 160u8 , 134u8 , 141u8 , 192u8 , 23u8 , 224u8 , 122u8 , 200u8 , 60u8 , 184u8 , 45u8 , 169u8 , 153u8 , 42u8 , 0u8 , 162u8 , 6u8 , 32u8 , 64u8 , 72u8 , 116u8 ,]) } pub fn root_claimable_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_claimable :: RootClaimable , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimable" , () , [249u8 , 251u8 , 241u8 , 55u8 , 52u8 , 87u8 , 214u8 , 123u8 , 192u8 , 230u8 , 88u8 , 243u8 , 6u8 , 178u8 , 39u8 , 217u8 , 248u8 , 228u8 , 28u8 , 100u8 , 198u8 , 228u8 , 132u8 , 233u8 , 141u8 , 158u8 , 248u8 , 72u8 , 195u8 , 192u8 , 163u8 , 207u8 ,]) } pub fn root_claimable (& self , _0 : types :: root_claimable :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimable :: Param0 > , types :: root_claimable :: RootClaimable , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimable" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [249u8 , 251u8 , 241u8 , 55u8 , 52u8 , 87u8 , 214u8 , 123u8 , 192u8 , 230u8 , 88u8 , 243u8 , 6u8 , 178u8 , 39u8 , 217u8 , 248u8 , 228u8 , 28u8 , 100u8 , 198u8 , 228u8 , 132u8 , 233u8 , 141u8 , 158u8 , 248u8 , 72u8 , 195u8 , 192u8 , 163u8 , 207u8 ,]) } pub fn root_claimed_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_claimed :: RootClaimed , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimed" , () , [179u8 , 100u8 , 51u8 , 12u8 , 35u8 , 102u8 , 27u8 , 142u8 , 24u8 , 59u8 , 111u8 , 201u8 , 145u8 , 78u8 , 233u8 , 66u8 , 217u8 , 158u8 , 26u8 , 188u8 , 103u8 , 139u8 , 68u8 , 230u8 , 190u8 , 124u8 , 221u8 , 92u8 , 130u8 , 17u8 , 9u8 , 125u8 ,]) } pub fn root_claimed_iter1 (& self , _0 : types :: root_claimed :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimed :: Param0 > , types :: root_claimed :: RootClaimed , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimed" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [179u8 , 100u8 , 51u8 , 12u8 , 35u8 , 102u8 , 27u8 , 142u8 , 24u8 , 59u8 , 111u8 , 201u8 , 145u8 , 78u8 , 233u8 , 66u8 , 217u8 , 158u8 , 26u8 , 188u8 , 103u8 , 139u8 , 68u8 , 230u8 , 190u8 , 124u8 , 221u8 , 92u8 , 130u8 , 17u8 , 9u8 , 125u8 ,]) } pub fn root_claimed_iter2 (& self , _0 : types :: root_claimed :: Param0 , _1 : types :: root_claimed :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimed :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimed :: Param1 > ,) , types :: root_claimed :: RootClaimed , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimed" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [179u8 , 100u8 , 51u8 , 12u8 , 35u8 , 102u8 , 27u8 , 142u8 , 24u8 , 59u8 , 111u8 , 201u8 , 145u8 , 78u8 , 233u8 , 66u8 , 217u8 , 158u8 , 26u8 , 188u8 , 103u8 , 139u8 , 68u8 , 230u8 , 190u8 , 124u8 , 221u8 , 92u8 , 130u8 , 17u8 , 9u8 , 125u8 ,]) } pub fn root_claimed (& self , _0 : types :: root_claimed :: Param0 , _1 : types :: root_claimed :: Param1 , _2 : types :: root_claimed :: Param2 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimed :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimed :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimed :: Param2 > ,) , types :: root_claimed :: RootClaimed , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimed" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2) ,) , [179u8 , 100u8 , 51u8 , 12u8 , 35u8 , 102u8 , 27u8 , 142u8 , 24u8 , 59u8 , 111u8 , 201u8 , 145u8 , 78u8 , 233u8 , 66u8 , 217u8 , 158u8 , 26u8 , 188u8 , 103u8 , 139u8 , 68u8 , 230u8 , 190u8 , 124u8 , 221u8 , 92u8 , 130u8 , 17u8 , 9u8 , 125u8 ,]) } pub fn root_claim_type_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_claim_type :: RootClaimType , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimType" , () , [207u8 , 34u8 , 152u8 , 101u8 , 126u8 , 44u8 , 24u8 , 10u8 , 126u8 , 159u8 , 149u8 , 139u8 , 252u8 , 74u8 , 105u8 , 172u8 , 195u8 , 199u8 , 109u8 , 237u8 , 53u8 , 46u8 , 165u8 , 251u8 , 112u8 , 246u8 , 157u8 , 174u8 , 225u8 , 208u8 , 84u8 , 106u8 ,]) } pub fn root_claim_type (& self , _0 : types :: root_claim_type :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claim_type :: Param0 > , types :: root_claim_type :: RootClaimType , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimType" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [207u8 , 34u8 , 152u8 , 101u8 , 126u8 , 44u8 , 24u8 , 10u8 , 126u8 , 159u8 , 149u8 , 139u8 , 252u8 , 74u8 , 105u8 , 172u8 , 195u8 , 199u8 , 109u8 , 237u8 , 53u8 , 46u8 , 165u8 , 251u8 , 112u8 , 246u8 , 157u8 , 174u8 , 225u8 , 208u8 , 84u8 , 106u8 ,]) } pub fn staking_coldkeys_by_index_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: staking_coldkeys_by_index :: StakingColdkeysByIndex , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingColdkeysByIndex" , () , [41u8 , 11u8 , 231u8 , 61u8 , 9u8 , 63u8 , 65u8 , 174u8 , 87u8 , 104u8 , 72u8 , 76u8 , 109u8 , 233u8 , 198u8 , 213u8 , 250u8 , 106u8 , 98u8 , 28u8 , 231u8 , 113u8 , 238u8 , 216u8 , 68u8 , 254u8 , 18u8 , 181u8 , 151u8 , 229u8 , 224u8 , 17u8 ,]) } pub fn staking_coldkeys_by_index (& self , _0 : types :: staking_coldkeys_by_index :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_coldkeys_by_index :: Param0 > , types :: staking_coldkeys_by_index :: StakingColdkeysByIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingColdkeysByIndex" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [41u8 , 11u8 , 231u8 , 61u8 , 9u8 , 63u8 , 65u8 , 174u8 , 87u8 , 104u8 , 72u8 , 76u8 , 109u8 , 233u8 , 198u8 , 213u8 , 250u8 , 106u8 , 98u8 , 28u8 , 231u8 , 113u8 , 238u8 , 216u8 , 68u8 , 254u8 , 18u8 , 181u8 , 151u8 , 229u8 , 224u8 , 17u8 ,]) } pub fn staking_coldkeys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: staking_coldkeys :: StakingColdkeys , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingColdkeys" , () , [22u8 , 86u8 , 202u8 , 3u8 , 85u8 , 88u8 , 84u8 , 38u8 , 149u8 , 127u8 , 136u8 , 115u8 , 60u8 , 189u8 , 117u8 , 74u8 , 105u8 , 132u8 , 232u8 , 218u8 , 87u8 , 36u8 , 172u8 , 38u8 , 107u8 , 154u8 , 89u8 , 191u8 , 155u8 , 51u8 , 177u8 , 7u8 ,]) } pub fn staking_coldkeys (& self , _0 : types :: staking_coldkeys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_coldkeys :: Param0 > , types :: staking_coldkeys :: StakingColdkeys , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingColdkeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [22u8 , 86u8 , 202u8 , 3u8 , 85u8 , 88u8 , 84u8 , 38u8 , 149u8 , 127u8 , 136u8 , 115u8 , 60u8 , 189u8 , 117u8 , 74u8 , 105u8 , 132u8 , 232u8 , 218u8 , 87u8 , 36u8 , 172u8 , 38u8 , 107u8 , 154u8 , 89u8 , 191u8 , 155u8 , 51u8 , 177u8 , 7u8 ,]) } pub fn num_staking_coldkeys (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: num_staking_coldkeys :: NumStakingColdkeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NumStakingColdkeys" , () , [11u8 , 7u8 , 197u8 , 93u8 , 41u8 , 48u8 , 2u8 , 166u8 , 26u8 , 158u8 , 30u8 , 228u8 , 20u8 , 227u8 , 240u8 , 99u8 , 88u8 , 48u8 , 199u8 , 208u8 , 94u8 , 123u8 , 228u8 , 201u8 , 120u8 , 118u8 , 200u8 , 92u8 , 151u8 , 60u8 , 249u8 , 159u8 ,]) } pub fn num_root_claim (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: num_root_claim :: NumRootClaim , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NumRootClaim" , () , [169u8 , 185u8 , 96u8 , 104u8 , 157u8 , 102u8 , 156u8 , 161u8 , 138u8 , 163u8 , 148u8 , 131u8 , 136u8 , 198u8 , 39u8 , 167u8 , 53u8 , 126u8 , 50u8 , 39u8 , 78u8 , 240u8 , 55u8 , 60u8 , 18u8 , 96u8 , 16u8 , 195u8 , 220u8 , 126u8 , 59u8 , 150u8 ,]) } # [doc = " ============================="] # [doc = " ==== EVM related storage ===="] # [doc = " ============================="] # [doc = " --- DMAP (netuid, uid) --> (H160, last_block_where_ownership_was_proven)"] pub fn associated_evm_address_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: associated_evm_address :: AssociatedEvmAddress , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AssociatedEvmAddress" , () , [182u8 , 241u8 , 150u8 , 23u8 , 6u8 , 54u8 , 8u8 , 76u8 , 140u8 , 250u8 , 35u8 , 248u8 , 91u8 , 239u8 , 52u8 , 175u8 , 164u8 , 228u8 , 93u8 , 33u8 , 194u8 , 100u8 , 249u8 , 88u8 , 126u8 , 83u8 , 57u8 , 201u8 , 167u8 , 71u8 , 7u8 , 81u8 ,]) } # [doc = " ============================="] # [doc = " ==== EVM related storage ===="] # [doc = " ============================="] # [doc = " --- DMAP (netuid, uid) --> (H160, last_block_where_ownership_was_proven)"] pub fn associated_evm_address_iter1 (& self , _0 : types :: associated_evm_address :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: associated_evm_address :: Param0 > , types :: associated_evm_address :: AssociatedEvmAddress , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AssociatedEvmAddress" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [182u8 , 241u8 , 150u8 , 23u8 , 6u8 , 54u8 , 8u8 , 76u8 , 140u8 , 250u8 , 35u8 , 248u8 , 91u8 , 239u8 , 52u8 , 175u8 , 164u8 , 228u8 , 93u8 , 33u8 , 194u8 , 100u8 , 249u8 , 88u8 , 126u8 , 83u8 , 57u8 , 201u8 , 167u8 , 71u8 , 7u8 , 81u8 ,]) } # [doc = " ============================="] # [doc = " ==== EVM related storage ===="] # [doc = " ============================="] # [doc = " --- DMAP (netuid, uid) --> (H160, last_block_where_ownership_was_proven)"] pub fn associated_evm_address (& self , _0 : types :: associated_evm_address :: Param0 , _1 : types :: associated_evm_address :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: associated_evm_address :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: associated_evm_address :: Param1 > ,) , types :: associated_evm_address :: AssociatedEvmAddress , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AssociatedEvmAddress" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [182u8 , 241u8 , 150u8 , 23u8 , 6u8 , 54u8 , 8u8 , 76u8 , 140u8 , 250u8 , 35u8 , 248u8 , 91u8 , 239u8 , 52u8 , 175u8 , 164u8 , 228u8 , 93u8 , 33u8 , 194u8 , 100u8 , 249u8 , 88u8 , 126u8 , 83u8 , 57u8 , 201u8 , 167u8 , 71u8 , 7u8 , 81u8 ,]) } # [doc = " ========================"] # [doc = " ==== Subnet Leasing ===="] # [doc = " ========================"] # [doc = " --- MAP ( lease_id ) --> subnet lease | The subnet lease for a given lease id."] pub fn subnet_leases_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_leases :: SubnetLeases , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLeases" , () , [167u8 , 107u8 , 220u8 , 65u8 , 138u8 , 251u8 , 5u8 , 174u8 , 193u8 , 72u8 , 177u8 , 147u8 , 102u8 , 185u8 , 209u8 , 89u8 , 47u8 , 80u8 , 116u8 , 104u8 , 53u8 , 18u8 , 132u8 , 127u8 , 100u8 , 228u8 , 179u8 , 84u8 , 19u8 , 96u8 , 245u8 , 15u8 ,]) } # [doc = " ========================"] # [doc = " ==== Subnet Leasing ===="] # [doc = " ========================"] # [doc = " --- MAP ( lease_id ) --> subnet lease | The subnet lease for a given lease id."] pub fn subnet_leases (& self , _0 : types :: subnet_leases :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_leases :: Param0 > , types :: subnet_leases :: SubnetLeases , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLeases" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [167u8 , 107u8 , 220u8 , 65u8 , 138u8 , 251u8 , 5u8 , 174u8 , 193u8 , 72u8 , 177u8 , 147u8 , 102u8 , 185u8 , 209u8 , 89u8 , 47u8 , 80u8 , 116u8 , 104u8 , 53u8 , 18u8 , 132u8 , 127u8 , 100u8 , 228u8 , 179u8 , 84u8 , 19u8 , 96u8 , 245u8 , 15u8 ,]) } # [doc = " --- DMAP ( lease_id, contributor ) --> shares | The shares of a contributor for a given lease."] pub fn subnet_lease_shares_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_lease_shares :: SubnetLeaseShares , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLeaseShares" , () , [175u8 , 10u8 , 110u8 , 170u8 , 152u8 , 234u8 , 186u8 , 32u8 , 239u8 , 111u8 , 205u8 , 133u8 , 16u8 , 29u8 , 178u8 , 91u8 , 194u8 , 86u8 , 69u8 , 251u8 , 148u8 , 255u8 , 9u8 , 140u8 , 47u8 , 74u8 , 122u8 , 160u8 , 155u8 , 29u8 , 126u8 , 58u8 ,]) } # [doc = " --- DMAP ( lease_id, contributor ) --> shares | The shares of a contributor for a given lease."] pub fn subnet_lease_shares_iter1 (& self , _0 : types :: subnet_lease_shares :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_lease_shares :: Param0 > , types :: subnet_lease_shares :: SubnetLeaseShares , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLeaseShares" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [175u8 , 10u8 , 110u8 , 170u8 , 152u8 , 234u8 , 186u8 , 32u8 , 239u8 , 111u8 , 205u8 , 133u8 , 16u8 , 29u8 , 178u8 , 91u8 , 194u8 , 86u8 , 69u8 , 251u8 , 148u8 , 255u8 , 9u8 , 140u8 , 47u8 , 74u8 , 122u8 , 160u8 , 155u8 , 29u8 , 126u8 , 58u8 ,]) } # [doc = " --- DMAP ( lease_id, contributor ) --> shares | The shares of a contributor for a given lease."] pub fn subnet_lease_shares (& self , _0 : types :: subnet_lease_shares :: Param0 , _1 : types :: subnet_lease_shares :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_lease_shares :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_lease_shares :: Param1 > ,) , types :: subnet_lease_shares :: SubnetLeaseShares , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLeaseShares" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [175u8 , 10u8 , 110u8 , 170u8 , 152u8 , 234u8 , 186u8 , 32u8 , 239u8 , 111u8 , 205u8 , 133u8 , 16u8 , 29u8 , 178u8 , 91u8 , 194u8 , 86u8 , 69u8 , 251u8 , 148u8 , 255u8 , 9u8 , 140u8 , 47u8 , 74u8 , 122u8 , 160u8 , 155u8 , 29u8 , 126u8 , 58u8 ,]) } # [doc = " --- MAP ( netuid ) --> lease_id | The lease id for a given netuid."] pub fn subnet_uid_to_lease_id_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_uid_to_lease_id :: SubnetUidToLeaseId , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetUidToLeaseId" , () , [102u8 , 178u8 , 137u8 , 50u8 , 65u8 , 41u8 , 25u8 , 35u8 , 5u8 , 177u8 , 95u8 , 180u8 , 203u8 , 63u8 , 57u8 , 7u8 , 20u8 , 226u8 , 119u8 , 187u8 , 213u8 , 214u8 , 130u8 , 188u8 , 9u8 , 222u8 , 181u8 , 158u8 , 172u8 , 183u8 , 90u8 , 194u8 ,]) } # [doc = " --- MAP ( netuid ) --> lease_id | The lease id for a given netuid."] pub fn subnet_uid_to_lease_id (& self , _0 : types :: subnet_uid_to_lease_id :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_uid_to_lease_id :: Param0 > , types :: subnet_uid_to_lease_id :: SubnetUidToLeaseId , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetUidToLeaseId" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [102u8 , 178u8 , 137u8 , 50u8 , 65u8 , 41u8 , 25u8 , 35u8 , 5u8 , 177u8 , 95u8 , 180u8 , 203u8 , 63u8 , 57u8 , 7u8 , 20u8 , 226u8 , 119u8 , 187u8 , 213u8 , 214u8 , 130u8 , 188u8 , 9u8 , 222u8 , 181u8 , 158u8 , 172u8 , 183u8 , 90u8 , 194u8 ,]) } # [doc = " --- ITEM ( next_lease_id ) | The next lease id."] pub fn next_subnet_lease_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_subnet_lease_id :: NextSubnetLeaseId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NextSubnetLeaseId" , () , [195u8 , 252u8 , 241u8 , 67u8 , 49u8 , 225u8 , 245u8 , 24u8 , 43u8 , 150u8 , 160u8 , 0u8 , 202u8 , 91u8 , 187u8 , 202u8 , 117u8 , 194u8 , 127u8 , 176u8 , 101u8 , 110u8 , 3u8 , 198u8 , 217u8 , 111u8 , 227u8 , 141u8 , 59u8 , 131u8 , 23u8 , 118u8 ,]) } # [doc = " --- MAP ( lease_id ) --> accumulated_dividends | The accumulated dividends for a given lease that needs to be distributed."] pub fn accumulated_lease_dividends_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: accumulated_lease_dividends :: AccumulatedLeaseDividends , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AccumulatedLeaseDividends" , () , [162u8 , 130u8 , 186u8 , 72u8 , 238u8 , 109u8 , 43u8 , 112u8 , 11u8 , 75u8 , 121u8 , 87u8 , 197u8 , 129u8 , 227u8 , 206u8 , 141u8 , 153u8 , 79u8 , 236u8 , 179u8 , 138u8 , 110u8 , 131u8 , 128u8 , 24u8 , 177u8 , 67u8 , 60u8 , 7u8 , 200u8 , 227u8 ,]) } # [doc = " --- MAP ( lease_id ) --> accumulated_dividends | The accumulated dividends for a given lease that needs to be distributed."] pub fn accumulated_lease_dividends (& self , _0 : types :: accumulated_lease_dividends :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: accumulated_lease_dividends :: Param0 > , types :: accumulated_lease_dividends :: AccumulatedLeaseDividends , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AccumulatedLeaseDividends" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [162u8 , 130u8 , 186u8 , 72u8 , 238u8 , 109u8 , 43u8 , 112u8 , 11u8 , 75u8 , 121u8 , 87u8 , 197u8 , 129u8 , 227u8 , 206u8 , 141u8 , 153u8 , 79u8 , 236u8 , 179u8 , 138u8 , 110u8 , 131u8 , 128u8 , 24u8 , 177u8 , 67u8 , 60u8 , 7u8 , 200u8 , 227u8 ,]) } # [doc = " --- ITEM ( CommitRevealWeightsVersion )"] pub fn commit_reveal_weights_version (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: commit_reveal_weights_version :: CommitRevealWeightsVersion , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CommitRevealWeightsVersion" , () , [55u8 , 62u8 , 124u8 , 80u8 , 145u8 , 16u8 , 153u8 , 11u8 , 71u8 , 218u8 , 244u8 , 6u8 , 229u8 , 67u8 , 237u8 , 198u8 , 26u8 , 49u8 , 170u8 , 185u8 , 61u8 , 107u8 , 117u8 , 81u8 , 36u8 , 167u8 , 47u8 , 50u8 , 14u8 , 1u8 , 124u8 , 56u8 ,]) } # [doc = " ITEM( NetworkRegistrationStartBlock )"] pub fn network_registration_start_block (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_registration_start_block :: NetworkRegistrationStartBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkRegistrationStartBlock" , () , [39u8 , 146u8 , 100u8 , 110u8 , 245u8 , 168u8 , 166u8 , 143u8 , 255u8 , 141u8 , 122u8 , 87u8 , 139u8 , 185u8 , 182u8 , 204u8 , 157u8 , 151u8 , 254u8 , 185u8 , 5u8 , 25u8 , 173u8 , 108u8 , 152u8 , 203u8 , 53u8 , 203u8 , 71u8 , 30u8 , 237u8 , 248u8 ,]) } # [doc = " --- MAP ( netuid ) --> minimum required number of non-immortal & non-immune UIDs"] pub fn min_non_immune_uids_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_non_immune_uids :: MinNonImmuneUids , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinNonImmuneUids" , () , [128u8 , 174u8 , 232u8 , 117u8 , 252u8 , 155u8 , 224u8 , 0u8 , 231u8 , 125u8 , 225u8 , 139u8 , 172u8 , 106u8 , 178u8 , 18u8 , 162u8 , 35u8 , 254u8 , 191u8 , 201u8 , 118u8 , 43u8 , 221u8 , 86u8 , 171u8 , 71u8 , 167u8 , 23u8 , 185u8 , 218u8 , 192u8 ,]) } # [doc = " --- MAP ( netuid ) --> minimum required number of non-immortal & non-immune UIDs"] pub fn min_non_immune_uids (& self , _0 : types :: min_non_immune_uids :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: min_non_immune_uids :: Param0 > , types :: min_non_immune_uids :: MinNonImmuneUids , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinNonImmuneUids" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [128u8 , 174u8 , 232u8 , 117u8 , 252u8 , 155u8 , 224u8 , 0u8 , 231u8 , 125u8 , 225u8 , 139u8 , 172u8 , 106u8 , 178u8 , 18u8 , 162u8 , 35u8 , 254u8 , 191u8 , 201u8 , 118u8 , 43u8 , 221u8 , 86u8 , 171u8 , 71u8 , 167u8 , 23u8 , 185u8 , 218u8 , 192u8 ,]) } # [doc = " --- MAP ( netuid ) --> Current number of subnet mechanisms"] pub fn mechanism_count_current_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: mechanism_count_current :: MechanismCountCurrent , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MechanismCountCurrent" , () , [249u8 , 248u8 , 63u8 , 149u8 , 75u8 , 146u8 , 125u8 , 161u8 , 164u8 , 78u8 , 239u8 , 175u8 , 41u8 , 112u8 , 97u8 , 201u8 , 60u8 , 213u8 , 144u8 , 227u8 , 166u8 , 147u8 , 246u8 , 184u8 , 248u8 , 30u8 , 241u8 , 110u8 , 184u8 , 194u8 , 98u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> Current number of subnet mechanisms"] pub fn mechanism_count_current (& self , _0 : types :: mechanism_count_current :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: mechanism_count_current :: Param0 > , types :: mechanism_count_current :: MechanismCountCurrent , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MechanismCountCurrent" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [249u8 , 248u8 , 63u8 , 149u8 , 75u8 , 146u8 , 125u8 , 161u8 , 164u8 , 78u8 , 239u8 , 175u8 , 41u8 , 112u8 , 97u8 , 201u8 , 60u8 , 213u8 , 144u8 , 227u8 , 166u8 , 147u8 , 246u8 , 184u8 , 248u8 , 30u8 , 241u8 , 110u8 , 184u8 , 194u8 , 98u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> Normalized vector of emission split proportion between subnet mechanisms"] pub fn mechanism_emission_split_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: mechanism_emission_split :: MechanismEmissionSplit , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MechanismEmissionSplit" , () , [75u8 , 195u8 , 126u8 , 83u8 , 159u8 , 202u8 , 75u8 , 131u8 , 33u8 , 142u8 , 0u8 , 190u8 , 213u8 , 87u8 , 0u8 , 171u8 , 80u8 , 13u8 , 143u8 , 202u8 , 30u8 , 240u8 , 6u8 , 157u8 , 189u8 , 111u8 , 119u8 , 196u8 , 59u8 , 86u8 , 204u8 , 102u8 ,]) } # [doc = " --- MAP ( netuid ) --> Normalized vector of emission split proportion between subnet mechanisms"] pub fn mechanism_emission_split (& self , _0 : types :: mechanism_emission_split :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: mechanism_emission_split :: Param0 > , types :: mechanism_emission_split :: MechanismEmissionSplit , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MechanismEmissionSplit" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [75u8 , 195u8 , 126u8 , 83u8 , 159u8 , 202u8 , 75u8 , 131u8 , 33u8 , 142u8 , 0u8 , 190u8 , 213u8 , 87u8 , 0u8 , 171u8 , 80u8 , 13u8 , 143u8 , 202u8 , 30u8 , 240u8 , 6u8 , 157u8 , 189u8 , 111u8 , 119u8 , 196u8 , 59u8 , 86u8 , 204u8 , 102u8 ,]) } # [doc = " =================="] # [doc = " ==== Genesis ====="] # [doc = " =================="] # [doc = " --- Storage for migration run status"] pub fn has_migration_run_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: has_migration_run :: HasMigrationRun , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "HasMigrationRun" , () , [218u8 , 208u8 , 248u8 , 140u8 , 220u8 , 160u8 , 153u8 , 63u8 , 27u8 , 120u8 , 32u8 , 30u8 , 124u8 , 8u8 , 170u8 , 223u8 , 163u8 , 9u8 , 67u8 , 3u8 , 209u8 , 162u8 , 207u8 , 222u8 , 168u8 , 11u8 , 229u8 , 80u8 , 24u8 , 253u8 , 154u8 , 199u8 ,]) } # [doc = " =================="] # [doc = " ==== Genesis ====="] # [doc = " =================="] # [doc = " --- Storage for migration run status"] pub fn has_migration_run (& self , _0 : types :: has_migration_run :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: has_migration_run :: Param0 > , types :: has_migration_run :: HasMigrationRun , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "HasMigrationRun" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [218u8 , 208u8 , 248u8 , 140u8 , 220u8 , 160u8 , 153u8 , 63u8 , 27u8 , 120u8 , 32u8 , 30u8 , 124u8 , 8u8 , 170u8 , 223u8 , 163u8 , 9u8 , 67u8 , 3u8 , 209u8 , 162u8 , 207u8 , 222u8 , 168u8 , 11u8 , 229u8 , 80u8 , 24u8 , 253u8 , 154u8 , 199u8 ,]) } # [doc = " Storage value for pending childkey cooldown, settable by root."] pub fn pending_child_key_cooldown (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_child_key_cooldown :: PendingChildKeyCooldown , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingChildKeyCooldown" , () , [244u8 , 57u8 , 176u8 , 55u8 , 165u8 , 114u8 , 55u8 , 28u8 , 210u8 , 190u8 , 125u8 , 37u8 , 133u8 , 221u8 , 187u8 , 181u8 , 47u8 , 50u8 , 1u8 , 212u8 , 241u8 , 169u8 , 153u8 , 130u8 , 16u8 , 12u8 , 129u8 , 5u8 , 185u8 , 182u8 , 217u8 , 47u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " ================================="] # [doc = " ==== Initial Value Constants ===="] # [doc = " ================================="] # [doc = " Initial currency issuance."] pub fn initial_issuance (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialIssuance" , [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 ,]) } # [doc = " Initial min allowed weights setting."] pub fn initial_min_allowed_weights (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMinAllowedWeights" , [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 ,]) } # [doc = " Initial Emission Ratio."] pub fn initial_emission_value (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialEmissionValue" , [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 ,]) } # [doc = " Tempo for each network."] pub fn initial_tempo (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialTempo" , [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 ,]) } # [doc = " Initial Difficulty."] pub fn initial_difficulty (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialDifficulty" , [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 ,]) } # [doc = " Initial Max Difficulty."] pub fn initial_max_difficulty (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMaxDifficulty" , [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 ,]) } # [doc = " Initial Min Difficulty."] pub fn initial_min_difficulty (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMinDifficulty" , [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 ,]) } # [doc = " Initial RAO Recycled."] pub fn initial_rao_recycled_for_registration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialRAORecycledForRegistration" , [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 ,]) } # [doc = " Initial Burn."] pub fn initial_burn (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialBurn" , [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 ,]) } # [doc = " Initial Max Burn."] pub fn initial_max_burn (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMaxBurn" , [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 ,]) } # [doc = " Initial Min Burn."] pub fn initial_min_burn (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMinBurn" , [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 ,]) } # [doc = " Min  burn upper bound."] pub fn min_burn_upper_bound (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinBurnUpperBound" , [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 ,]) } # [doc = " Max burn lower bound."] pub fn max_burn_lower_bound (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxBurnLowerBound" , [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 ,]) } # [doc = " Initial adjustment interval."] pub fn initial_adjustment_interval (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialAdjustmentInterval" , [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 ,]) } # [doc = " Initial bonds moving average."] pub fn initial_bonds_moving_average (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialBondsMovingAverage" , [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 ,]) } # [doc = " Initial bonds penalty."] pub fn initial_bonds_penalty (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialBondsPenalty" , [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 ,]) } # [doc = " Initial bonds reset."] pub fn initial_bonds_reset_on (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: bool > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialBondsResetOn" , [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 ,]) } # [doc = " Initial target registrations per interval."] pub fn initial_target_registrations_per_interval (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialTargetRegistrationsPerInterval" , [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 ,]) } # [doc = " Rho constant."] pub fn initial_rho (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialRho" , [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 ,]) } # [doc = " AlphaSigmoidSteepness constant."] pub fn initial_alpha_sigmoid_steepness (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: i16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialAlphaSigmoidSteepness" , [190u8 , 65u8 , 174u8 , 71u8 , 194u8 , 61u8 , 41u8 , 151u8 , 219u8 , 115u8 , 253u8 , 125u8 , 78u8 , 247u8 , 175u8 , 121u8 , 125u8 , 148u8 , 239u8 , 15u8 , 46u8 , 205u8 , 137u8 , 241u8 , 25u8 , 125u8 , 128u8 , 197u8 , 4u8 , 82u8 , 131u8 , 246u8 ,]) } # [doc = " Kappa constant."] pub fn initial_kappa (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialKappa" , [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 ,]) } # [doc = " Initial minimum allowed network UIDs"] pub fn initial_min_allowed_uids (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMinAllowedUids" , [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 ,]) } # [doc = " Initial maximum allowed network UIDs"] pub fn initial_max_allowed_uids (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMaxAllowedUids" , [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 ,]) } # [doc = " Initial validator context pruning length."] pub fn initial_validator_prune_len (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialValidatorPruneLen" , [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 ,]) } # [doc = " Initial scaling law power."] pub fn initial_scaling_law_power (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialScalingLawPower" , [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 ,]) } # [doc = " Immunity Period Constant."] pub fn initial_immunity_period (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialImmunityPeriod" , [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 ,]) } # [doc = " Activity constant."] pub fn initial_activity_cutoff (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialActivityCutoff" , [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 ,]) } # [doc = " Initial max registrations per block."] pub fn initial_max_registrations_per_block (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMaxRegistrationsPerBlock" , [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 ,]) } # [doc = " Initial pruning score for each neuron."] pub fn initial_pruning_score (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialPruningScore" , [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 ,]) } # [doc = " Initial maximum allowed validators per network."] pub fn initial_max_allowed_validators (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMaxAllowedValidators" , [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 ,]) } # [doc = " Initial default delegation take."] pub fn initial_default_delegate_take (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialDefaultDelegateTake" , [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 ,]) } # [doc = " Initial minimum delegation take."] pub fn initial_min_delegate_take (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMinDelegateTake" , [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 ,]) } # [doc = " Initial default childkey take."] pub fn initial_default_child_key_take (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialDefaultChildKeyTake" , [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 ,]) } # [doc = " Initial minimum childkey take."] pub fn initial_min_child_key_take (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMinChildKeyTake" , [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 ,]) } # [doc = " Initial maximum childkey take."] pub fn initial_max_child_key_take (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMaxChildKeyTake" , [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 ,]) } # [doc = " Initial weights version key."] pub fn initial_weights_version_key (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialWeightsVersionKey" , [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 ,]) } # [doc = " Initial serving rate limit."] pub fn initial_serving_rate_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialServingRateLimit" , [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 ,]) } # [doc = " Initial transaction rate limit."] pub fn initial_tx_rate_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialTxRateLimit" , [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 ,]) } # [doc = " Initial delegate take transaction rate limit."] pub fn initial_tx_delegate_take_rate_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialTxDelegateTakeRateLimit" , [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 ,]) } # [doc = " Initial childkey take transaction rate limit."] pub fn initial_tx_child_key_take_rate_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialTxChildKeyTakeRateLimit" , [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 ,]) } # [doc = " Initial adjustment alpha on burn and pow."] pub fn initial_adjustment_alpha (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialAdjustmentAlpha" , [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 ,]) } # [doc = " Initial network immunity period"] pub fn initial_network_immunity_period (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialNetworkImmunityPeriod" , [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 ,]) } # [doc = " Initial network minimum burn cost"] pub fn initial_network_min_lock_cost (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialNetworkMinLockCost" , [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 ,]) } # [doc = " Initial network subnet cut."] pub fn initial_subnet_owner_cut (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialSubnetOwnerCut" , [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 ,]) } # [doc = " Initial lock reduction interval."] pub fn initial_network_lock_reduction_interval (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialNetworkLockReductionInterval" , [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 ,]) } # [doc = " Initial network creation rate limit"] pub fn initial_network_rate_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialNetworkRateLimit" , [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 ,]) } # [doc = " Cost of swapping a hotkey."] pub fn key_swap_cost (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "KeySwapCost" , [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 ,]) } # [doc = " The upper bound for the alpha parameter. Used for Liquid Alpha."] pub fn alpha_high (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaHigh" , [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 ,]) } # [doc = " The lower bound for the alpha parameter. Used for Liquid Alpha."] pub fn alpha_low (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaLow" , [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 ,]) } # [doc = " A flag to indicate if Liquid Alpha is enabled."] pub fn liquid_alpha_on (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: bool > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "LiquidAlphaOn" , [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 ,]) } # [doc = " Coldkey swap schedule duartion."] pub fn initial_coldkey_swap_schedule_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialColdkeySwapScheduleDuration" , [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 ,]) } # [doc = " Coldkey swap reschedule duration."] pub fn initial_coldkey_swap_reschedule_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialColdkeySwapRescheduleDuration" , [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 ,]) } # [doc = " Dissolve network schedule duration"] pub fn initial_dissolve_network_schedule_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialDissolveNetworkScheduleDuration" , [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 ,]) } # [doc = " Initial TAO weight."] pub fn initial_tao_weight (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialTaoWeight" , [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 ,]) } # [doc = " Initial EMA price halving period"] pub fn initial_ema_price_halving_period (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialEmaPriceHalvingPeriod" , [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 ,]) } # [doc = " Block number after a new subnet accept the start call extrinsic."] pub fn duration_of_start_call (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "DurationOfStartCall" , [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 ,]) } # [doc = " Cost of swapping a hotkey in a subnet."] pub fn key_swap_on_subnet_cost (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "KeySwapOnSubnetCost" , [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 ,]) } # [doc = " Block number for a coldkey swap the hotkey in specific subnet."] pub fn hotkey_swap_on_subnet_interval (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "HotkeySwapOnSubnetInterval" , [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 ,]) } # [doc = " Number of blocks between dividends distribution."] pub fn lease_dividends_distribution_interval (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "LeaseDividendsDistributionInterval" , [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 ,]) } # [doc = " Maximum percentage of immune UIDs."] pub fn max_immune_uids_percentage (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_arithmetic :: per_things :: Percent > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxImmuneUidsPercentage" , [40u8 , 171u8 , 69u8 , 196u8 , 34u8 , 184u8 , 50u8 , 128u8 , 139u8 , 192u8 , 63u8 , 231u8 , 249u8 , 200u8 , 252u8 , 73u8 , 244u8 , 170u8 , 51u8 , 177u8 , 106u8 , 47u8 , 114u8 , 234u8 , 84u8 , 104u8 , 62u8 , 118u8 , 227u8 , 50u8 , 225u8 , 122u8 ,]) } } } } pub mod utility { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_subtensor_utility :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_subtensor_utility :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a batch of dispatch calls."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] # [doc = ""] # [doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] # [doc = "event is deposited. If a call failed and the batch was interrupted, then the"] # [doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] # [doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] # [doc = "event is deposited."] pub struct Batch { pub calls : batch :: Calls , } pub mod batch { use super :: runtime_types ; pub type Calls = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: node_subtensor_runtime :: RuntimeCall > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Batch { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "batch" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a call through an indexed pseudonym of the sender."] # [doc = ""] # [doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] # [doc = "use the same filter as the origin of this call."] # [doc = ""] # [doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] # [doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] # [doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] # [doc = "in the Multisig pallet instead."] # [doc = ""] # [doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub struct AsDerivative { pub index : as_derivative :: Index , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < as_derivative :: Call > , } pub mod as_derivative { use super :: runtime_types ; pub type Index = :: core :: primitive :: u16 ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AsDerivative { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "as_derivative" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a batch of dispatch calls and atomically execute them."] # [doc = "The whole transaction will rollback and fail if any of the calls failed."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] pub struct BatchAll { pub calls : batch_all :: Calls , } pub mod batch_all { use super :: runtime_types ; pub type Calls = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: node_subtensor_runtime :: RuntimeCall > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BatchAll { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "batch_all" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub struct DispatchAs { pub as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < dispatch_as :: AsOrigin > , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < dispatch_as :: Call > , } pub mod dispatch_as { use super :: runtime_types ; pub type AsOrigin = runtime_types :: node_subtensor_runtime :: OriginCaller ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DispatchAs { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "dispatch_as" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a batch of dispatch calls."] # [doc = "Unlike `batch`, it allows errors and won't interrupt."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] pub struct ForceBatch { pub calls : force_batch :: Calls , } pub mod force_batch { use super :: runtime_types ; pub type Calls = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: node_subtensor_runtime :: RuntimeCall > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceBatch { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "force_batch" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatch a function call with a specified weight."] # [doc = ""] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Root origin to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] pub struct WithWeight { pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < with_weight :: Call > , pub weight : with_weight :: Weight , } pub mod with_weight { use super :: runtime_types ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type Weight = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for WithWeight { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "with_weight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatch a fallback call in the event the main call fails to execute."] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "This function first attempts to dispatch the `main` call."] # [doc = "If the `main` call fails, the `fallback` is attemted."] # [doc = "if the fallback is successfully dispatched, the weights of both calls"] # [doc = "are accumulated and an event containing the main call error is deposited."] # [doc = ""] # [doc = "In the event of a fallback failure the whole call fails"] # [doc = "with the weights returned."] # [doc = ""] # [doc = "- `main`: The main call to be dispatched. This is the primary action to execute."] # [doc = "- `fallback`: The fallback call to be dispatched in case the `main` call fails."] # [doc = ""] # [doc = "## Dispatch Logic"] # [doc = "- If the origin is `root`, both the main and fallback calls are executed without"] # [doc = "  applying any origin filters."] # [doc = "- If the origin is not `root`, the origin filter is applied to both the `main` and"] # [doc = "  `fallback` calls."] # [doc = ""] # [doc = "## Use Case"] # [doc = "- Some use cases might involve submitting a `batch` type call in either main, fallback"] # [doc = "  or both."] pub struct IfElse { pub main : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < if_else :: Main > , pub fallback : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < if_else :: Fallback > , } pub mod if_else { use super :: runtime_types ; pub type Main = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type Fallback = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for IfElse { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "if_else" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] pub struct DispatchAsFallible { pub as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < dispatch_as_fallible :: AsOrigin > , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < dispatch_as_fallible :: Call > , } pub mod dispatch_as_fallible { use super :: runtime_types ; pub type AsOrigin = runtime_types :: node_subtensor_runtime :: OriginCaller ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DispatchAsFallible { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "dispatch_as_fallible" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Send a batch of dispatch calls."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] # [doc = ""] # [doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] # [doc = "event is deposited. If a call failed and the batch was interrupted, then the"] # [doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] # [doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] # [doc = "event is deposited."] pub fn batch (& self , calls : types :: batch :: Calls ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Batch > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "batch" , types :: Batch { calls , } , [197u8 , 139u8 , 117u8 , 180u8 , 191u8 , 186u8 , 46u8 , 226u8 , 15u8 , 63u8 , 62u8 , 177u8 , 96u8 , 161u8 , 186u8 , 133u8 , 174u8 , 102u8 , 187u8 , 160u8 , 225u8 , 189u8 , 112u8 , 232u8 , 201u8 , 109u8 , 242u8 , 157u8 , 15u8 , 130u8 , 178u8 , 139u8 ,]) } # [doc = "Send a call through an indexed pseudonym of the sender."] # [doc = ""] # [doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] # [doc = "use the same filter as the origin of this call."] # [doc = ""] # [doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] # [doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] # [doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] # [doc = "in the Multisig pallet instead."] # [doc = ""] # [doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub fn as_derivative (& self , index : types :: as_derivative :: Index , call : types :: as_derivative :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AsDerivative > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "as_derivative" , types :: AsDerivative { index , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [59u8 , 24u8 , 51u8 , 222u8 , 125u8 , 192u8 , 127u8 , 31u8 , 178u8 , 152u8 , 46u8 , 14u8 , 86u8 , 231u8 , 32u8 , 182u8 , 159u8 , 196u8 , 8u8 , 244u8 , 56u8 , 244u8 , 18u8 , 73u8 , 194u8 , 147u8 , 248u8 , 182u8 , 219u8 , 211u8 , 135u8 , 91u8 ,]) } # [doc = "Send a batch of dispatch calls and atomically execute them."] # [doc = "The whole transaction will rollback and fail if any of the calls failed."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] pub fn batch_all (& self , calls : types :: batch_all :: Calls ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BatchAll > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "batch_all" , types :: BatchAll { calls , } , [178u8 , 126u8 , 253u8 , 179u8 , 222u8 , 200u8 , 231u8 , 15u8 , 139u8 , 63u8 , 244u8 , 42u8 , 238u8 , 72u8 , 57u8 , 50u8 , 217u8 , 219u8 , 160u8 , 82u8 , 23u8 , 133u8 , 218u8 , 153u8 , 206u8 , 241u8 , 142u8 , 17u8 , 1u8 , 60u8 , 176u8 , 27u8 ,]) } # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub fn dispatch_as (& self , as_origin : types :: dispatch_as :: AsOrigin , call : types :: dispatch_as :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DispatchAs > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "dispatch_as" , types :: DispatchAs { as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (as_origin) , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [188u8 , 70u8 , 183u8 , 255u8 , 83u8 , 243u8 , 130u8 , 160u8 , 220u8 , 3u8 , 101u8 , 61u8 , 127u8 , 180u8 , 157u8 , 189u8 , 24u8 , 40u8 , 219u8 , 205u8 , 71u8 , 158u8 , 37u8 , 178u8 , 111u8 , 135u8 , 89u8 , 232u8 , 249u8 , 222u8 , 237u8 , 50u8 ,]) } # [doc = "Send a batch of dispatch calls."] # [doc = "Unlike `batch`, it allows errors and won't interrupt."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] pub fn force_batch (& self , calls : types :: force_batch :: Calls ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceBatch > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "force_batch" , types :: ForceBatch { calls , } , [210u8 , 120u8 , 52u8 , 118u8 , 231u8 , 130u8 , 142u8 , 100u8 , 46u8 , 2u8 , 94u8 , 93u8 , 5u8 , 78u8 , 99u8 , 86u8 , 91u8 , 203u8 , 158u8 , 190u8 , 207u8 , 190u8 , 100u8 , 240u8 , 63u8 , 45u8 , 229u8 , 118u8 , 173u8 , 7u8 , 54u8 , 79u8 ,]) } # [doc = "Dispatch a function call with a specified weight."] # [doc = ""] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Root origin to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] pub fn with_weight (& self , call : types :: with_weight :: Call , weight : types :: with_weight :: Weight ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: WithWeight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "with_weight" , types :: WithWeight { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , weight , } , [155u8 , 119u8 , 207u8 , 96u8 , 75u8 , 108u8 , 255u8 , 252u8 , 152u8 , 35u8 , 239u8 , 239u8 , 2u8 , 218u8 , 4u8 , 45u8 , 8u8 , 223u8 , 133u8 , 248u8 , 9u8 , 54u8 , 135u8 , 124u8 , 223u8 , 110u8 , 123u8 , 41u8 , 12u8 , 115u8 , 194u8 , 194u8 ,]) } # [doc = "Dispatch a fallback call in the event the main call fails to execute."] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "This function first attempts to dispatch the `main` call."] # [doc = "If the `main` call fails, the `fallback` is attemted."] # [doc = "if the fallback is successfully dispatched, the weights of both calls"] # [doc = "are accumulated and an event containing the main call error is deposited."] # [doc = ""] # [doc = "In the event of a fallback failure the whole call fails"] # [doc = "with the weights returned."] # [doc = ""] # [doc = "- `main`: The main call to be dispatched. This is the primary action to execute."] # [doc = "- `fallback`: The fallback call to be dispatched in case the `main` call fails."] # [doc = ""] # [doc = "## Dispatch Logic"] # [doc = "- If the origin is `root`, both the main and fallback calls are executed without"] # [doc = "  applying any origin filters."] # [doc = "- If the origin is not `root`, the origin filter is applied to both the `main` and"] # [doc = "  `fallback` calls."] # [doc = ""] # [doc = "## Use Case"] # [doc = "- Some use cases might involve submitting a `batch` type call in either main, fallback"] # [doc = "  or both."] pub fn if_else (& self , main : types :: if_else :: Main , fallback : types :: if_else :: Fallback ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: IfElse > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "if_else" , types :: IfElse { main : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (main) , fallback : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (fallback) , } , [148u8 , 66u8 , 178u8 , 13u8 , 76u8 , 80u8 , 145u8 , 207u8 , 180u8 , 52u8 , 193u8 , 230u8 , 244u8 , 172u8 , 74u8 , 163u8 , 215u8 , 151u8 , 93u8 , 79u8 , 41u8 , 12u8 , 110u8 , 63u8 , 89u8 , 21u8 , 154u8 , 98u8 , 26u8 , 212u8 , 58u8 , 13u8 ,]) } # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] pub fn dispatch_as_fallible (& self , as_origin : types :: dispatch_as_fallible :: AsOrigin , call : types :: dispatch_as_fallible :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DispatchAsFallible > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "dispatch_as_fallible" , types :: DispatchAsFallible { as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (as_origin) , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [232u8 , 1u8 , 241u8 , 221u8 , 72u8 , 82u8 , 196u8 , 219u8 , 230u8 , 72u8 , 207u8 , 186u8 , 122u8 , 118u8 , 29u8 , 253u8 , 191u8 , 175u8 , 165u8 , 39u8 , 207u8 , 101u8 , 235u8 , 135u8 , 149u8 , 63u8 , 91u8 , 191u8 , 162u8 , 46u8 , 74u8 , 73u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_subtensor_utility :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [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 : batch_interrupted :: Index , pub error : batch_interrupted :: Error , } pub mod batch_interrupted { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; pub type Error = runtime_types :: sp_runtime :: DispatchError ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchInterrupted { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "BatchInterrupted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Batch of dispatches completed fully with no error."] pub struct BatchCompleted ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchCompleted { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "BatchCompleted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Batch of dispatches completed but has errors."] pub struct BatchCompletedWithErrors ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchCompletedWithErrors { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "BatchCompletedWithErrors" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A single item within a Batch of dispatches has completed with no error."] pub struct ItemCompleted ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ItemCompleted { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "ItemCompleted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A single item within a Batch of dispatches has completed with error."] pub struct ItemFailed { pub error : item_failed :: Error , } pub mod item_failed { use super :: runtime_types ; pub type Error = runtime_types :: sp_runtime :: DispatchError ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ItemFailed { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "ItemFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A call was dispatched."] pub struct DispatchedAs { pub result : dispatched_as :: Result , } pub mod dispatched_as { use super :: runtime_types ; pub type Result = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DispatchedAs { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "DispatchedAs" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Main call was dispatched."] pub struct IfElseMainSuccess ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IfElseMainSuccess { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "IfElseMainSuccess" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The fallback call was dispatched."] pub struct IfElseFallbackCalled { pub main_error : if_else_fallback_called :: MainError , } pub mod if_else_fallback_called { use super :: runtime_types ; pub type MainError = runtime_types :: sp_runtime :: DispatchError ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IfElseFallbackCalled { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "IfElseFallbackCalled" ; } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The limit on the number of batched calls."] pub fn batched_calls_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 sudo { use super :: root_mod ; use super :: runtime_types ; # [doc = "Error for the Sudo pallet."] pub type Error = runtime_types :: pallet_sudo :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] pub struct Sudo { pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < sudo :: Call > , } pub mod sudo { use super :: runtime_types ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Sudo { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "sudo" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Sudo user to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub struct SudoUncheckedWeight { pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < sudo_unchecked_weight :: Call > , pub weight : sudo_unchecked_weight :: Weight , } pub mod sudo_unchecked_weight { use super :: runtime_types ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type Weight = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoUncheckedWeight { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "sudo_unchecked_weight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] # [doc = "key."] pub struct SetKey { pub new : set_key :: New , } pub mod set_key { use super :: runtime_types ; pub type New = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetKey { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "set_key" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] # [doc = "a given account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub struct SudoAs { pub who : sudo_as :: Who , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < sudo_as :: Call > , } pub mod sudo_as { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoAs { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "sudo_as" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Permanently removes the sudo key."] # [doc = ""] # [doc = "**This cannot be un-done.**"] pub struct RemoveKey ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveKey { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "remove_key" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] pub fn sudo (& self , call : types :: sudo :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Sudo > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "sudo" , types :: Sudo { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [123u8 , 235u8 , 193u8 , 137u8 , 201u8 , 159u8 , 144u8 , 91u8 , 168u8 , 108u8 , 14u8 , 241u8 , 227u8 , 114u8 , 179u8 , 242u8 , 103u8 , 129u8 , 194u8 , 91u8 , 46u8 , 61u8 , 119u8 , 17u8 , 102u8 , 67u8 , 186u8 , 219u8 , 13u8 , 196u8 , 86u8 , 88u8 ,]) } # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Sudo user to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub fn sudo_unchecked_weight (& self , call : types :: sudo_unchecked_weight :: Call , weight : types :: sudo_unchecked_weight :: Weight ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoUncheckedWeight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "sudo_unchecked_weight" , types :: SudoUncheckedWeight { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , weight , } , [82u8 , 160u8 , 50u8 , 222u8 , 97u8 , 68u8 , 156u8 , 249u8 , 223u8 , 176u8 , 173u8 , 164u8 , 252u8 , 102u8 , 15u8 , 26u8 , 60u8 , 216u8 , 133u8 , 120u8 , 37u8 , 88u8 , 251u8 , 5u8 , 102u8 , 30u8 , 189u8 , 86u8 , 165u8 , 224u8 , 151u8 , 10u8 ,]) } # [doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] # [doc = "key."] pub fn set_key (& self , new : types :: set_key :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetKey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "set_key" , types :: SetKey { new , } , [9u8 , 73u8 , 39u8 , 205u8 , 188u8 , 127u8 , 143u8 , 54u8 , 128u8 , 94u8 , 8u8 , 227u8 , 197u8 , 44u8 , 70u8 , 93u8 , 228u8 , 196u8 , 64u8 , 165u8 , 226u8 , 158u8 , 101u8 , 192u8 , 22u8 , 193u8 , 102u8 , 84u8 , 21u8 , 35u8 , 92u8 , 198u8 ,]) } # [doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] # [doc = "a given account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub fn sudo_as (& self , who : types :: sudo_as :: Who , call : types :: sudo_as :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoAs > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "sudo_as" , types :: SudoAs { who , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [129u8 , 27u8 , 34u8 , 70u8 , 20u8 , 206u8 , 107u8 , 77u8 , 217u8 , 221u8 , 184u8 , 81u8 , 130u8 , 18u8 , 198u8 , 80u8 , 74u8 , 145u8 , 197u8 , 139u8 , 11u8 , 5u8 , 183u8 , 154u8 , 213u8 , 13u8 , 142u8 , 235u8 , 78u8 , 243u8 , 172u8 , 5u8 ,]) } # [doc = "Permanently removes the sudo key."] # [doc = ""] # [doc = "**This cannot be un-done.**"] pub fn remove_key (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveKey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "remove_key" , types :: RemoveKey { } , [133u8 , 253u8 , 54u8 , 175u8 , 202u8 , 239u8 , 5u8 , 198u8 , 180u8 , 138u8 , 25u8 , 28u8 , 109u8 , 40u8 , 30u8 , 56u8 , 126u8 , 100u8 , 52u8 , 205u8 , 250u8 , 191u8 , 61u8 , 195u8 , 172u8 , 142u8 , 184u8 , 239u8 , 247u8 , 10u8 , 211u8 , 79u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A sudo call just took place."] pub struct Sudid { pub sudo_result : sudid :: SudoResult , } pub mod sudid { use super :: runtime_types ; pub type SudoResult = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Sudid { const PALLET : & 'static str = "Sudo" ; const EVENT : & 'static str = "Sudid" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The sudo key has been updated."] pub struct KeyChanged { pub old : key_changed :: Old , pub new : key_changed :: New , } pub mod key_changed { use super :: runtime_types ; pub type Old = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type New = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for KeyChanged { const PALLET : & 'static str = "Sudo" ; const EVENT : & 'static str = "KeyChanged" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The key was permanently removed."] pub struct KeyRemoved ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for KeyRemoved { const PALLET : & 'static str = "Sudo" ; const EVENT : & 'static str = "KeyRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A [sudo_as](Pallet::sudo_as) call just took place."] pub struct SudoAsDone { pub sudo_result : sudo_as_done :: SudoResult , } pub mod sudo_as_done { use super :: runtime_types ; pub type SudoResult = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SudoAsDone { const PALLET : & 'static str = "Sudo" ; const EVENT : & 'static str = "SudoAsDone" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod key { use super :: runtime_types ; pub type Key = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The `AccountId` of the sudo key."] pub fn key (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: key :: Key , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Sudo" , "Key" , () , [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 multisig { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_multisig :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "multi-signature, but do not participate in the approval process."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(Z + C) where Z is the length of the call and C its execution weight."] pub struct AsMultiThreshold1 { pub other_signatories : as_multi_threshold1 :: OtherSignatories , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < as_multi_threshold1 :: Call > , } pub mod as_multi_threshold1 { use super :: runtime_types ; pub type OtherSignatories = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AsMultiThreshold1 { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "as_multi_threshold_1" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "If there are enough, then dispatch the call."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "NOTE: Unless this is the final approval, you will generally want to use"] # [doc = "`approve_as_multi` instead, since it only requires a hash of the call."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] # [doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] # [doc = "may be found in the deposited `MultisigExecuted` event."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S + Z + Call)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- The weight of the `call`."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = "  taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub struct AsMulti { pub threshold : as_multi :: Threshold , pub other_signatories : as_multi :: OtherSignatories , pub maybe_timepoint : as_multi :: MaybeTimepoint , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < as_multi :: Call > , pub max_weight : as_multi :: MaxWeight , } pub mod as_multi { use super :: runtime_types ; pub type Threshold = :: core :: primitive :: u16 ; pub type OtherSignatories = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type MaybeTimepoint = :: core :: option :: Option < runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > > ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type MaxWeight = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AsMulti { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "as_multi" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = "  taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub struct ApproveAsMulti { pub threshold : approve_as_multi :: Threshold , pub other_signatories : approve_as_multi :: OtherSignatories , pub maybe_timepoint : approve_as_multi :: MaybeTimepoint , pub call_hash : approve_as_multi :: CallHash , pub max_weight : approve_as_multi :: MaxWeight , } pub mod approve_as_multi { use super :: runtime_types ; pub type Threshold = :: core :: primitive :: u16 ; pub type OtherSignatories = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type MaybeTimepoint = :: core :: option :: Option < runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > > ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; pub type MaxWeight = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ApproveAsMulti { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "approve_as_multi" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] # [doc = "for this operation will be unreserved on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] # [doc = "transaction for this dispatch."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- One event."] # [doc = "- I/O: 1 read `O(S)`, one remove."] # [doc = "- Storage: removes one item."] pub struct CancelAsMulti { pub threshold : cancel_as_multi :: Threshold , pub other_signatories : cancel_as_multi :: OtherSignatories , pub timepoint : cancel_as_multi :: Timepoint , pub call_hash : cancel_as_multi :: CallHash , } pub mod cancel_as_multi { use super :: runtime_types ; pub type Threshold = :: core :: primitive :: u16 ; pub type OtherSignatories = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Timepoint = runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelAsMulti { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "cancel_as_multi" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Poke the deposit reserved for an existing multisig operation."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the original depositor of"] # [doc = "the multisig operation."] # [doc = ""] # [doc = "The transaction fee is waived if the deposit amount has changed."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals needed for this multisig."] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "  multisig."] # [doc = "- `call_hash`: The hash of the call this deposit is reserved for."] # [doc = ""] # [doc = "Emits `DepositPoked` if successful."] pub struct PokeDeposit { pub threshold : poke_deposit :: Threshold , pub other_signatories : poke_deposit :: OtherSignatories , pub call_hash : poke_deposit :: CallHash , } pub mod poke_deposit { use super :: runtime_types ; pub type Threshold = :: core :: primitive :: u16 ; pub type OtherSignatories = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for PokeDeposit { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "poke_deposit" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "multi-signature, but do not participate in the approval process."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(Z + C) where Z is the length of the call and C its execution weight."] pub fn as_multi_threshold_1 (& self , other_signatories : types :: as_multi_threshold1 :: OtherSignatories , call : types :: as_multi_threshold1 :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AsMultiThreshold1 > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Multisig" , "as_multi_threshold_1" , types :: AsMultiThreshold1 { other_signatories , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [195u8 , 116u8 , 255u8 , 158u8 , 213u8 , 118u8 , 6u8 , 149u8 , 143u8 , 80u8 , 37u8 , 107u8 , 250u8 , 143u8 , 17u8 , 154u8 , 97u8 , 223u8 , 119u8 , 151u8 , 106u8 , 64u8 , 176u8 , 48u8 , 255u8 , 52u8 , 91u8 , 211u8 , 180u8 , 29u8 , 98u8 , 13u8 ,]) } # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "If there are enough, then dispatch the call."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "NOTE: Unless this is the final approval, you will generally want to use"] # [doc = "`approve_as_multi` instead, since it only requires a hash of the call."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] # [doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] # [doc = "may be found in the deposited `MultisigExecuted` event."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S + Z + Call)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- The weight of the `call`."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = "  taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub fn as_multi (& self , threshold : types :: as_multi :: Threshold , other_signatories : types :: as_multi :: OtherSignatories , maybe_timepoint : types :: as_multi :: MaybeTimepoint , call : types :: as_multi :: Call , max_weight : types :: as_multi :: MaxWeight ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AsMulti > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Multisig" , "as_multi" , types :: AsMulti { threshold , other_signatories , maybe_timepoint , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , max_weight , } , [40u8 , 129u8 , 165u8 , 172u8 , 202u8 , 198u8 , 230u8 , 95u8 , 231u8 , 130u8 , 235u8 , 7u8 , 161u8 , 42u8 , 136u8 , 148u8 , 40u8 , 133u8 , 210u8 , 211u8 , 242u8 , 161u8 , 129u8 , 61u8 , 158u8 , 236u8 , 91u8 , 172u8 , 223u8 , 82u8 , 10u8 , 66u8 ,]) } # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = "  taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub fn approve_as_multi (& self , threshold : types :: approve_as_multi :: Threshold , other_signatories : types :: approve_as_multi :: OtherSignatories , maybe_timepoint : types :: approve_as_multi :: MaybeTimepoint , call_hash : types :: approve_as_multi :: CallHash , max_weight : types :: approve_as_multi :: MaxWeight ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ApproveAsMulti > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Multisig" , "approve_as_multi" , types :: ApproveAsMulti { threshold , other_signatories , maybe_timepoint , call_hash , max_weight , } , [248u8 , 46u8 , 131u8 , 35u8 , 204u8 , 12u8 , 218u8 , 150u8 , 88u8 , 131u8 , 89u8 , 13u8 , 95u8 , 122u8 , 87u8 , 107u8 , 136u8 , 154u8 , 92u8 , 199u8 , 108u8 , 92u8 , 207u8 , 171u8 , 113u8 , 8u8 , 47u8 , 248u8 , 65u8 , 26u8 , 203u8 , 135u8 ,]) } # [doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] # [doc = "for this operation will be unreserved on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] # [doc = "transaction for this dispatch."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- One event."] # [doc = "- I/O: 1 read `O(S)`, one remove."] # [doc = "- Storage: removes one item."] pub fn cancel_as_multi (& self , threshold : types :: cancel_as_multi :: Threshold , other_signatories : types :: cancel_as_multi :: OtherSignatories , timepoint : types :: cancel_as_multi :: Timepoint , call_hash : types :: cancel_as_multi :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelAsMulti > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Multisig" , "cancel_as_multi" , types :: CancelAsMulti { threshold , other_signatories , timepoint , call_hash , } , [212u8 , 179u8 , 123u8 , 40u8 , 209u8 , 228u8 , 181u8 , 0u8 , 109u8 , 28u8 , 27u8 , 48u8 , 15u8 , 47u8 , 203u8 , 54u8 , 106u8 , 114u8 , 28u8 , 118u8 , 101u8 , 201u8 , 95u8 , 187u8 , 46u8 , 182u8 , 4u8 , 30u8 , 227u8 , 105u8 , 14u8 , 81u8 ,]) } # [doc = "Poke the deposit reserved for an existing multisig operation."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the original depositor of"] # [doc = "the multisig operation."] # [doc = ""] # [doc = "The transaction fee is waived if the deposit amount has changed."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals needed for this multisig."] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "  multisig."] # [doc = "- `call_hash`: The hash of the call this deposit is reserved for."] # [doc = ""] # [doc = "Emits `DepositPoked` if successful."] pub fn poke_deposit (& self , threshold : types :: poke_deposit :: Threshold , other_signatories : types :: poke_deposit :: OtherSignatories , call_hash : types :: poke_deposit :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PokeDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Multisig" , "poke_deposit" , types :: PokeDeposit { threshold , other_signatories , call_hash , } , [246u8 , 199u8 , 149u8 , 204u8 , 29u8 , 162u8 , 169u8 , 44u8 , 250u8 , 24u8 , 64u8 , 191u8 , 18u8 , 238u8 , 140u8 , 153u8 , 139u8 , 208u8 , 157u8 , 245u8 , 145u8 , 205u8 , 56u8 , 130u8 , 119u8 , 246u8 , 174u8 , 111u8 , 83u8 , 221u8 , 85u8 , 84u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A new multisig operation has begun."] pub struct NewMultisig { pub approving : new_multisig :: Approving , pub multisig : new_multisig :: Multisig , pub call_hash : new_multisig :: CallHash , } pub mod new_multisig { use super :: runtime_types ; pub type Approving = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Multisig = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewMultisig { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "NewMultisig" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A multisig operation has been approved by someone."] pub struct MultisigApproval { pub approving : multisig_approval :: Approving , pub timepoint : multisig_approval :: Timepoint , pub multisig : multisig_approval :: Multisig , pub call_hash : multisig_approval :: CallHash , } pub mod multisig_approval { use super :: runtime_types ; pub type Approving = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Timepoint = runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > ; pub type Multisig = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MultisigApproval { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "MultisigApproval" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A multisig operation has been executed."] pub struct MultisigExecuted { pub approving : multisig_executed :: Approving , pub timepoint : multisig_executed :: Timepoint , pub multisig : multisig_executed :: Multisig , pub call_hash : multisig_executed :: CallHash , pub result : multisig_executed :: Result , } pub mod multisig_executed { use super :: runtime_types ; pub type Approving = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Timepoint = runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > ; pub type Multisig = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; pub type Result = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MultisigExecuted { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "MultisigExecuted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A multisig operation has been cancelled."] pub struct MultisigCancelled { pub cancelling : multisig_cancelled :: Cancelling , pub timepoint : multisig_cancelled :: Timepoint , pub multisig : multisig_cancelled :: Multisig , pub call_hash : multisig_cancelled :: CallHash , } pub mod multisig_cancelled { use super :: runtime_types ; pub type Cancelling = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Timepoint = runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > ; pub type Multisig = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MultisigCancelled { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "MultisigCancelled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The deposit for a multisig operation has been updated/poked."] pub struct DepositPoked { pub who : deposit_poked :: Who , pub call_hash : deposit_poked :: CallHash , pub old_deposit : deposit_poked :: OldDeposit , pub new_deposit : deposit_poked :: NewDeposit , } pub mod deposit_poked { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; pub type OldDeposit = :: core :: primitive :: u64 ; pub type NewDeposit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DepositPoked { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "DepositPoked" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod multisigs { use super :: runtime_types ; pub type Multisigs = runtime_types :: pallet_multisig :: Multisig < :: core :: primitive :: u32 , :: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = [:: core :: primitive :: u8 ; 32usize] ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The set of open multisig operations."] pub fn multisigs_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: multisigs :: Multisigs , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Multisig" , "Multisigs" , () , [208u8 , 119u8 , 103u8 , 193u8 , 220u8 , 35u8 , 173u8 , 190u8 , 239u8 , 195u8 , 81u8 , 14u8 , 114u8 , 66u8 , 251u8 , 46u8 , 29u8 , 186u8 , 184u8 , 21u8 , 202u8 , 73u8 , 249u8 , 167u8 , 204u8 , 248u8 , 106u8 , 82u8 , 138u8 , 73u8 , 9u8 , 140u8 ,]) } # [doc = " The set of open multisig operations."] pub fn multisigs_iter1 (& self , _0 : types :: multisigs :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: multisigs :: Param0 > , types :: multisigs :: Multisigs , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Multisig" , "Multisigs" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [208u8 , 119u8 , 103u8 , 193u8 , 220u8 , 35u8 , 173u8 , 190u8 , 239u8 , 195u8 , 81u8 , 14u8 , 114u8 , 66u8 , 251u8 , 46u8 , 29u8 , 186u8 , 184u8 , 21u8 , 202u8 , 73u8 , 249u8 , 167u8 , 204u8 , 248u8 , 106u8 , 82u8 , 138u8 , 73u8 , 9u8 , 140u8 ,]) } # [doc = " The set of open multisig operations."] pub fn multisigs (& self , _0 : types :: multisigs :: Param0 , _1 : types :: multisigs :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: multisigs :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: multisigs :: Param1 > ,) , types :: multisigs :: Multisigs , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Multisig" , "Multisigs" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [208u8 , 119u8 , 103u8 , 193u8 , 220u8 , 35u8 , 173u8 , 190u8 , 239u8 , 195u8 , 81u8 , 14u8 , 114u8 , 66u8 , 251u8 , 46u8 , 29u8 , 186u8 , 184u8 , 21u8 , 202u8 , 73u8 , 249u8 , 167u8 , 204u8 , 248u8 , 106u8 , 82u8 , 138u8 , 73u8 , 9u8 , 140u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Multisig" , "DepositBase" , [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 ,]) } # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Multisig" , "DepositFactor" , [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 ,]) } # [doc = " The maximum amount of signatories allowed in the multisig."] pub fn max_signatories (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 preimage { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_preimage :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register a preimage on-chain."] # [doc = ""] # [doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] # [doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] pub struct NotePreimage { pub bytes : note_preimage :: Bytes , } pub mod note_preimage { use super :: runtime_types ; pub type Bytes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for NotePreimage { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "note_preimage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Clear an unrequested preimage from the runtime storage."] # [doc = ""] # [doc = "If `len` is provided, then it will be a much cheaper operation."] # [doc = ""] # [doc = "- `hash`: The hash of the preimage to be removed from the store."] # [doc = "- `len`: The length of the preimage of `hash`."] pub struct UnnotePreimage { pub hash : unnote_preimage :: Hash , } pub mod unnote_preimage { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UnnotePreimage { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "unnote_preimage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] # [doc = ""] # [doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] # [doc = "a user may have paid, and take the control of the preimage out of their hands."] pub struct RequestPreimage { pub hash : request_preimage :: Hash , } pub mod request_preimage { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RequestPreimage { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "request_preimage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Clear a previously made request for a preimage."] # [doc = ""] # [doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] pub struct UnrequestPreimage { pub hash : unrequest_preimage :: Hash , } pub mod unrequest_preimage { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UnrequestPreimage { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "unrequest_preimage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Ensure that the bulk of pre-images is upgraded."] # [doc = ""] # [doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."] pub struct EnsureUpdated { pub hashes : ensure_updated :: Hashes , } pub mod ensure_updated { use super :: runtime_types ; pub type Hashes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for EnsureUpdated { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "ensure_updated" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Register a preimage on-chain."] # [doc = ""] # [doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] # [doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] pub fn note_preimage (& self , bytes : types :: note_preimage :: Bytes ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: NotePreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Clear an unrequested preimage from the runtime storage."] # [doc = ""] # [doc = "If `len` is provided, then it will be a much cheaper operation."] # [doc = ""] # [doc = "- `hash`: The hash of the preimage to be removed from the store."] # [doc = "- `len`: The length of the preimage of `hash`."] pub fn unnote_preimage (& self , hash : types :: unnote_preimage :: Hash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UnnotePreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] # [doc = ""] # [doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] # [doc = "a user may have paid, and take the control of the preimage out of their hands."] pub fn request_preimage (& self , hash : types :: request_preimage :: Hash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RequestPreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Clear a previously made request for a preimage."] # [doc = ""] # [doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] pub fn unrequest_preimage (& self , hash : types :: unrequest_preimage :: Hash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UnrequestPreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Ensure that the bulk of pre-images is upgraded."] # [doc = ""] # [doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."] pub fn ensure_updated (& self , hashes : types :: ensure_updated :: Hashes ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: EnsureUpdated > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Preimage" , "ensure_updated" , types :: EnsureUpdated { hashes , } , [254u8 , 228u8 , 88u8 , 44u8 , 126u8 , 235u8 , 188u8 , 153u8 , 61u8 , 27u8 , 103u8 , 253u8 , 163u8 , 161u8 , 113u8 , 243u8 , 87u8 , 136u8 , 2u8 , 231u8 , 209u8 , 188u8 , 215u8 , 106u8 , 192u8 , 225u8 , 75u8 , 125u8 , 224u8 , 96u8 , 221u8 , 90u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A preimage has been noted."] pub struct Noted { pub hash : noted :: Hash , } pub mod noted { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Noted { const PALLET : & 'static str = "Preimage" ; const EVENT : & 'static str = "Noted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A preimage has been requested."] pub struct Requested { pub hash : requested :: Hash , } pub mod requested { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Requested { const PALLET : & 'static str = "Preimage" ; const EVENT : & 'static str = "Requested" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A preimage has ben cleared."] pub struct Cleared { pub hash : cleared :: Hash , } pub mod cleared { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Cleared { const PALLET : & 'static str = "Preimage" ; const EVENT : & 'static str = "Cleared" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod status_for { use super :: runtime_types ; pub type StatusFor = runtime_types :: pallet_preimage :: OldRequestStatus < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod request_status_for { use super :: runtime_types ; pub type RequestStatusFor = runtime_types :: pallet_preimage :: RequestStatus < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: frame_support :: traits :: tokens :: fungible :: HoldConsideration > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod preimage_for { use super :: runtime_types ; pub type PreimageFor = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type Param0 = (:: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 ,) ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The request status of a given hash."] pub fn status_for_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: status_for :: StatusFor , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "StatusFor" , () , [16u8 , 95u8 , 212u8 , 193u8 , 245u8 , 56u8 , 255u8 , 183u8 , 177u8 , 15u8 , 81u8 , 194u8 , 210u8 , 12u8 , 101u8 , 227u8 , 189u8 , 125u8 , 47u8 , 186u8 , 245u8 , 94u8 , 221u8 , 238u8 , 86u8 , 130u8 , 12u8 , 82u8 , 154u8 , 114u8 , 5u8 , 63u8 ,]) } # [doc = " The request status of a given hash."] pub fn status_for (& self , _0 : types :: status_for :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: status_for :: Param0 > , types :: status_for :: StatusFor , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "StatusFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [16u8 , 95u8 , 212u8 , 193u8 , 245u8 , 56u8 , 255u8 , 183u8 , 177u8 , 15u8 , 81u8 , 194u8 , 210u8 , 12u8 , 101u8 , 227u8 , 189u8 , 125u8 , 47u8 , 186u8 , 245u8 , 94u8 , 221u8 , 238u8 , 86u8 , 130u8 , 12u8 , 82u8 , 154u8 , 114u8 , 5u8 , 63u8 ,]) } # [doc = " The request status of a given hash."] pub fn request_status_for_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: request_status_for :: RequestStatusFor , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "RequestStatusFor" , () , [244u8 , 110u8 , 140u8 , 65u8 , 68u8 , 102u8 , 62u8 , 65u8 , 2u8 , 1u8 , 230u8 , 241u8 , 57u8 , 137u8 , 200u8 , 170u8 , 40u8 , 170u8 , 41u8 , 114u8 , 148u8 , 39u8 , 128u8 , 144u8 , 159u8 , 73u8 , 0u8 , 96u8 , 1u8 , 114u8 , 121u8 , 72u8 ,]) } # [doc = " The request status of a given hash."] pub fn request_status_for (& self , _0 : types :: request_status_for :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: request_status_for :: Param0 > , types :: request_status_for :: RequestStatusFor , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "RequestStatusFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [244u8 , 110u8 , 140u8 , 65u8 , 68u8 , 102u8 , 62u8 , 65u8 , 2u8 , 1u8 , 230u8 , 241u8 , 57u8 , 137u8 , 200u8 , 170u8 , 40u8 , 170u8 , 41u8 , 114u8 , 148u8 , 39u8 , 128u8 , 144u8 , 159u8 , 73u8 , 0u8 , 96u8 , 1u8 , 114u8 , 121u8 , 72u8 ,]) } pub fn preimage_for_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: preimage_for :: PreimageFor , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "PreimageFor" , () , [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 (& self , _0 : types :: preimage_for :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: preimage_for :: Param0 > , types :: preimage_for :: PreimageFor , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "PreimageFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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 scheduler { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_scheduler :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Anonymously schedule a task."] pub struct Schedule { pub when : schedule :: When , pub maybe_periodic : schedule :: MaybePeriodic , pub priority : schedule :: Priority , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < schedule :: Call > , } pub mod schedule { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; pub type MaybePeriodic = :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Priority = :: core :: primitive :: u8 ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Schedule { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "schedule" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel an anonymously scheduled task."] pub struct Cancel { pub when : cancel :: When , pub index : cancel :: Index , } pub mod cancel { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Cancel { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "cancel" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedule a named task."] pub struct ScheduleNamed { pub id : schedule_named :: Id , pub when : schedule_named :: When , pub maybe_periodic : schedule_named :: MaybePeriodic , pub priority : schedule_named :: Priority , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < schedule_named :: Call > , } pub mod schedule_named { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; pub type When = :: core :: primitive :: u32 ; pub type MaybePeriodic = :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Priority = :: core :: primitive :: u8 ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleNamed { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "schedule_named" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel a named scheduled task."] pub struct CancelNamed { pub id : cancel_named :: Id , } pub mod cancel_named { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelNamed { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "cancel_named" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Anonymously schedule a task after a delay."] pub struct ScheduleAfter { pub after : schedule_after :: After , pub maybe_periodic : schedule_after :: MaybePeriodic , pub priority : schedule_after :: Priority , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < schedule_after :: Call > , } pub mod schedule_after { use super :: runtime_types ; pub type After = :: core :: primitive :: u32 ; pub type MaybePeriodic = :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Priority = :: core :: primitive :: u8 ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleAfter { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "schedule_after" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedule a named task after a delay."] pub struct ScheduleNamedAfter { pub id : schedule_named_after :: Id , pub after : schedule_named_after :: After , pub maybe_periodic : schedule_named_after :: MaybePeriodic , pub priority : schedule_named_after :: Priority , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < schedule_named_after :: Call > , } pub mod schedule_named_after { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; pub type After = :: core :: primitive :: u32 ; pub type MaybePeriodic = :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Priority = :: core :: primitive :: u8 ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleNamedAfter { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "schedule_named_after" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"] # [doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"] # [doc = "succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] pub struct SetRetry { pub task : set_retry :: Task , pub retries : set_retry :: Retries , pub period : set_retry :: Period , } pub mod set_retry { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Retries = :: core :: primitive :: u8 ; pub type Period = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetRetry { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "set_retry" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"] # [doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"] # [doc = "it succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] pub struct SetRetryNamed { pub id : set_retry_named :: Id , pub retries : set_retry_named :: Retries , pub period : set_retry_named :: Period , } pub mod set_retry_named { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; pub type Retries = :: core :: primitive :: u8 ; pub type Period = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetRetryNamed { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "set_retry_named" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Removes the retry configuration of a task."] pub struct CancelRetry { pub task : cancel_retry :: Task , } pub mod cancel_retry { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelRetry { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "cancel_retry" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel the retry configuration of a named task."] pub struct CancelRetryNamed { pub id : cancel_retry_named :: Id , } pub mod cancel_retry_named { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelRetryNamed { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "cancel_retry_named" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Anonymously schedule a task."] pub fn schedule (& self , when : types :: schedule :: When , maybe_periodic : types :: schedule :: MaybePeriodic , priority : types :: schedule :: Priority , call : types :: schedule :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Schedule > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "schedule" , types :: Schedule { when , maybe_periodic , priority , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [13u8 , 93u8 , 201u8 , 55u8 , 175u8 , 148u8 , 14u8 , 121u8 , 66u8 , 132u8 , 41u8 , 30u8 , 160u8 , 74u8 , 6u8 , 246u8 , 81u8 , 70u8 , 182u8 , 255u8 , 187u8 , 205u8 , 23u8 , 214u8 , 52u8 , 160u8 , 204u8 , 87u8 , 170u8 , 13u8 , 53u8 , 179u8 ,]) } # [doc = "Cancel an anonymously scheduled task."] pub fn cancel (& self , when : types :: cancel :: When , index : types :: cancel :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Cancel > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "cancel" , types :: Cancel { when , index , } , [183u8 , 204u8 , 143u8 , 86u8 , 17u8 , 130u8 , 132u8 , 91u8 , 133u8 , 168u8 , 103u8 , 129u8 , 114u8 , 56u8 , 123u8 , 42u8 , 123u8 , 120u8 , 221u8 , 211u8 , 26u8 , 85u8 , 82u8 , 246u8 , 192u8 , 39u8 , 254u8 , 45u8 , 147u8 , 56u8 , 178u8 , 133u8 ,]) } # [doc = "Schedule a named task."] pub fn schedule_named (& self , id : types :: schedule_named :: Id , when : types :: schedule_named :: When , maybe_periodic : types :: schedule_named :: MaybePeriodic , priority : types :: schedule_named :: Priority , call : types :: schedule_named :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleNamed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "schedule_named" , types :: ScheduleNamed { id , when , maybe_periodic , priority , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [136u8 , 152u8 , 18u8 , 51u8 , 61u8 , 55u8 , 242u8 , 229u8 , 226u8 , 18u8 , 18u8 , 201u8 , 141u8 , 119u8 , 148u8 , 78u8 , 128u8 , 109u8 , 49u8 , 114u8 , 183u8 , 18u8 , 173u8 , 127u8 , 18u8 , 208u8 , 134u8 , 118u8 , 63u8 , 30u8 , 66u8 , 161u8 ,]) } # [doc = "Cancel a named scheduled task."] pub fn cancel_named (& self , id : types :: cancel_named :: Id ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelNamed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Anonymously schedule a task after a delay."] pub fn schedule_after (& self , after : types :: schedule_after :: After , maybe_periodic : types :: schedule_after :: MaybePeriodic , priority : types :: schedule_after :: Priority , call : types :: schedule_after :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleAfter > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "schedule_after" , types :: ScheduleAfter { after , maybe_periodic , priority , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [232u8 , 78u8 , 5u8 , 36u8 , 121u8 , 205u8 , 108u8 , 53u8 , 141u8 , 33u8 , 131u8 , 178u8 , 52u8 , 98u8 , 166u8 , 89u8 , 7u8 , 143u8 , 132u8 , 222u8 , 161u8 , 55u8 , 162u8 , 67u8 , 30u8 , 106u8 , 104u8 , 44u8 , 30u8 , 110u8 , 49u8 , 130u8 ,]) } # [doc = "Schedule a named task after a delay."] pub fn schedule_named_after (& self , id : types :: schedule_named_after :: Id , after : types :: schedule_named_after :: After , maybe_periodic : types :: schedule_named_after :: MaybePeriodic , priority : types :: schedule_named_after :: Priority , call : types :: schedule_named_after :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleNamedAfter > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "schedule_named_after" , types :: ScheduleNamedAfter { id , after , maybe_periodic , priority , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [99u8 , 217u8 , 177u8 , 36u8 , 62u8 , 120u8 , 233u8 , 105u8 , 180u8 , 96u8 , 101u8 , 146u8 , 60u8 , 143u8 , 157u8 , 182u8 , 70u8 , 53u8 , 103u8 , 93u8 , 74u8 , 243u8 , 205u8 , 29u8 , 33u8 , 39u8 , 249u8 , 189u8 , 17u8 , 196u8 , 70u8 , 82u8 ,]) } # [doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"] # [doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"] # [doc = "succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] pub fn set_retry (& self , task : types :: set_retry :: Task , retries : types :: set_retry :: Retries , period : types :: set_retry :: Period ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetRetry > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "set_retry" , types :: SetRetry { task , retries , period , } , [2u8 , 242u8 , 180u8 , 69u8 , 237u8 , 168u8 , 243u8 , 93u8 , 47u8 , 222u8 , 189u8 , 74u8 , 233u8 , 106u8 , 54u8 , 40u8 , 160u8 , 61u8 , 78u8 , 138u8 , 232u8 , 20u8 , 243u8 , 17u8 , 151u8 , 194u8 , 67u8 , 200u8 , 186u8 , 192u8 , 210u8 , 214u8 ,]) } # [doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"] # [doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"] # [doc = "it succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] pub fn set_retry_named (& self , id : types :: set_retry_named :: Id , retries : types :: set_retry_named :: Retries , period : types :: set_retry_named :: Period ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetRetryNamed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "set_retry_named" , types :: SetRetryNamed { id , retries , period , } , [240u8 , 102u8 , 255u8 , 253u8 , 52u8 , 81u8 , 164u8 , 170u8 , 184u8 , 178u8 , 254u8 , 126u8 , 41u8 , 247u8 , 121u8 , 22u8 , 254u8 , 136u8 , 237u8 , 37u8 , 11u8 , 42u8 , 227u8 , 234u8 , 132u8 , 83u8 , 109u8 , 168u8 , 31u8 , 44u8 , 231u8 , 70u8 ,]) } # [doc = "Removes the retry configuration of a task."] pub fn cancel_retry (& self , task : types :: cancel_retry :: Task ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelRetry > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "cancel_retry" , types :: CancelRetry { task , } , [142u8 , 126u8 , 127u8 , 216u8 , 64u8 , 189u8 , 42u8 , 126u8 , 63u8 , 249u8 , 211u8 , 202u8 , 224u8 , 197u8 , 199u8 , 240u8 , 58u8 , 94u8 , 219u8 , 177u8 , 20u8 , 210u8 , 153u8 , 0u8 , 127u8 , 255u8 , 235u8 , 238u8 , 170u8 , 240u8 , 44u8 , 49u8 ,]) } # [doc = "Cancel the retry configuration of a named task."] pub fn cancel_retry_named (& self , id : types :: cancel_retry_named :: Id ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelRetryNamed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "cancel_retry_named" , types :: CancelRetryNamed { id , } , [76u8 , 157u8 , 253u8 , 113u8 , 162u8 , 54u8 , 98u8 , 21u8 , 62u8 , 44u8 , 155u8 , 202u8 , 2u8 , 28u8 , 153u8 , 219u8 , 67u8 , 166u8 , 206u8 , 79u8 , 139u8 , 3u8 , 119u8 , 182u8 , 254u8 , 134u8 , 143u8 , 121u8 , 155u8 , 220u8 , 192u8 , 209u8 ,]) } } } # [doc = "Events type."] pub type Event = runtime_types :: pallet_scheduler :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Scheduled some task."] pub struct Scheduled { pub when : scheduled :: When , pub index : scheduled :: Index , } pub mod scheduled { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Scheduled { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "Scheduled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Canceled some task."] pub struct Canceled { pub when : canceled :: When , pub index : canceled :: Index , } pub mod canceled { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Canceled { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "Canceled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatched some task."] pub struct Dispatched { pub task : dispatched :: Task , pub id : dispatched :: Id , pub result : dispatched :: Result , } pub mod dispatched { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; pub type Result = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Dispatched { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "Dispatched" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a retry configuration for some task."] pub struct RetrySet { pub task : retry_set :: Task , pub id : retry_set :: Id , pub period : retry_set :: Period , pub retries : retry_set :: Retries , } pub mod retry_set { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; pub type Period = :: core :: primitive :: u32 ; pub type Retries = :: core :: primitive :: u8 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RetrySet { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "RetrySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel a retry configuration for some task."] pub struct RetryCancelled { pub task : retry_cancelled :: Task , pub id : retry_cancelled :: Id , } pub mod retry_cancelled { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RetryCancelled { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "RetryCancelled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The call for the provided hash was not found so the task has been aborted."] pub struct CallUnavailable { pub task : call_unavailable :: Task , pub id : call_unavailable :: Id , } pub mod call_unavailable { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CallUnavailable { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "CallUnavailable" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The given task was unable to be renewed since the agenda is full at that block."] pub struct PeriodicFailed { pub task : periodic_failed :: Task , pub id : periodic_failed :: Id , } pub mod periodic_failed { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PeriodicFailed { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "PeriodicFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The given task was unable to be retried since the agenda is full at that block or there"] # [doc = "was not enough weight to reschedule it."] pub struct RetryFailed { pub task : retry_failed :: Task , pub id : retry_failed :: Id , } pub mod retry_failed { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RetryFailed { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "RetryFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The given task can never be executed since it is overweight."] pub struct PermanentlyOverweight { pub task : permanently_overweight :: Task , pub id : permanently_overweight :: Id , } pub mod permanently_overweight { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PermanentlyOverweight { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "PermanentlyOverweight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Agenda is incomplete from `when`."] pub struct AgendaIncomplete { pub when : agenda_incomplete :: When , } pub mod agenda_incomplete { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AgendaIncomplete { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "AgendaIncomplete" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod incomplete_since { use super :: runtime_types ; pub type IncompleteSince = :: core :: primitive :: u32 ; } pub mod agenda { use super :: runtime_types ; pub type Agenda = 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 :: node_subtensor_runtime :: RuntimeCall , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , :: core :: primitive :: u32 , runtime_types :: node_subtensor_runtime :: OriginCaller , :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod retries { use super :: runtime_types ; pub type Retries = runtime_types :: pallet_scheduler :: RetryConfig < :: core :: primitive :: u32 > ; pub type Param0 = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; } pub mod lookup { use super :: runtime_types ; pub type Lookup = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Param0 = [:: core :: primitive :: u8 ; 32usize] ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Block number at which the agenda began incomplete execution."] pub fn incomplete_since (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: incomplete_since :: IncompleteSince , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "IncompleteSince" , () , [250u8 , 83u8 , 64u8 , 167u8 , 205u8 , 59u8 , 225u8 , 97u8 , 205u8 , 12u8 , 76u8 , 130u8 , 197u8 , 4u8 , 111u8 , 208u8 , 92u8 , 217u8 , 145u8 , 119u8 , 38u8 , 135u8 , 1u8 , 242u8 , 228u8 , 143u8 , 56u8 , 25u8 , 115u8 , 233u8 , 227u8 , 66u8 ,]) } # [doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: agenda :: Agenda , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Agenda" , () , [6u8 , 100u8 , 74u8 , 108u8 , 237u8 , 201u8 , 28u8 , 205u8 , 176u8 , 219u8 , 94u8 , 60u8 , 30u8 , 231u8 , 31u8 , 69u8 , 204u8 , 240u8 , 75u8 , 198u8 , 248u8 , 17u8 , 153u8 , 228u8 , 214u8 , 21u8 , 220u8 , 7u8 , 104u8 , 150u8 , 243u8 , 229u8 ,]) } # [doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda (& self , _0 : types :: agenda :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: agenda :: Param0 > , types :: agenda :: Agenda , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Agenda" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [6u8 , 100u8 , 74u8 , 108u8 , 237u8 , 201u8 , 28u8 , 205u8 , 176u8 , 219u8 , 94u8 , 60u8 , 30u8 , 231u8 , 31u8 , 69u8 , 204u8 , 240u8 , 75u8 , 198u8 , 248u8 , 17u8 , 153u8 , 228u8 , 214u8 , 21u8 , 220u8 , 7u8 , 104u8 , 150u8 , 243u8 , 229u8 ,]) } # [doc = " Retry configurations for items to be executed, indexed by task address."] pub fn retries_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: retries :: Retries , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Retries" , () , [164u8 , 27u8 , 208u8 , 185u8 , 19u8 , 232u8 , 190u8 , 97u8 , 137u8 , 73u8 , 146u8 , 10u8 , 241u8 , 176u8 , 251u8 , 140u8 , 133u8 , 65u8 , 190u8 , 162u8 , 59u8 , 32u8 , 77u8 , 201u8 , 27u8 , 78u8 , 183u8 , 164u8 , 74u8 , 46u8 , 139u8 , 145u8 ,]) } # [doc = " Retry configurations for items to be executed, indexed by task address."] pub fn retries (& self , _0 : types :: retries :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: retries :: Param0 > , types :: retries :: Retries , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Retries" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [164u8 , 27u8 , 208u8 , 185u8 , 19u8 , 232u8 , 190u8 , 97u8 , 137u8 , 73u8 , 146u8 , 10u8 , 241u8 , 176u8 , 251u8 , 140u8 , 133u8 , 65u8 , 190u8 , 162u8 , 59u8 , 32u8 , 77u8 , 201u8 , 27u8 , 78u8 , 183u8 , 164u8 , 74u8 , 46u8 , 139u8 , 145u8 ,]) } # [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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: lookup :: Lookup , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Lookup" , () , [24u8 , 87u8 , 96u8 , 127u8 , 136u8 , 205u8 , 238u8 , 174u8 , 71u8 , 110u8 , 65u8 , 98u8 , 228u8 , 167u8 , 99u8 , 71u8 , 171u8 , 186u8 , 12u8 , 218u8 , 137u8 , 70u8 , 70u8 , 228u8 , 153u8 , 111u8 , 165u8 , 114u8 , 229u8 , 136u8 , 118u8 , 131u8 ,]) } # [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 : types :: lookup :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: lookup :: Param0 > , types :: lookup :: Lookup , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Lookup" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [24u8 , 87u8 , 96u8 , 127u8 , 136u8 , 205u8 , 238u8 , 174u8 , 71u8 , 110u8 , 65u8 , 98u8 , 228u8 , 167u8 , 99u8 , 71u8 , 171u8 , 186u8 , 12u8 , 218u8 , 137u8 , 70u8 , 70u8 , 228u8 , 153u8 , 111u8 , 165u8 , 114u8 , 229u8 , 136u8 , 118u8 , 131u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The maximum weight that may be scheduled per block for any dispatchables."] pub fn maximum_weight (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_weights :: weight_v2 :: Weight > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 proxy { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_subtensor_proxy :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_subtensor_proxy :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatch the given `call` from an account that the sender is authorised for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] pub struct Proxy { pub real : proxy :: Real , pub force_proxy_type : proxy :: ForceProxyType , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < proxy :: Call > , } pub mod proxy { use super :: runtime_types ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ForceProxyType = :: core :: option :: Option < runtime_types :: subtensor_runtime_common :: ProxyType > ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Proxy { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "proxy" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register a proxy account for the sender that is able to make calls on its behalf."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to make a proxy."] # [doc = "- `proxy_type`: The permissions allowed for this proxy account."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] pub struct AddProxy { pub delegate : add_proxy :: Delegate , pub proxy_type : add_proxy :: ProxyType , pub delay : add_proxy :: Delay , } pub mod add_proxy { use super :: runtime_types ; pub type Delegate = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddProxy { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "add_proxy" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unregister a proxy account for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] # [doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] pub struct RemoveProxy { pub delegate : remove_proxy :: Delegate , pub proxy_type : remove_proxy :: ProxyType , pub delay : remove_proxy :: Delay , } pub mod remove_proxy { use super :: runtime_types ; pub type Delegate = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveProxy { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "remove_proxy" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unregister all proxy accounts for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "WARNING: This may be called on accounts created by `create_pure`, however if done, then"] # [doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] pub struct RemoveProxies ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveProxies { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "remove_proxies" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] # [doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] # [doc = ""] # [doc = "Requires a `Signed` origin."] # [doc = ""] # [doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] # [doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] # [doc = "allow for maximum flexibility."] # [doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] # [doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] # [doc = "want to use `0`."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] # [doc = ""] # [doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] # [doc = "same sender, with the same parameters."] # [doc = ""] # [doc = "Fails if there are insufficient funds to pay for deposit."] pub struct CreatePure { pub proxy_type : create_pure :: ProxyType , pub delay : create_pure :: Delay , pub index : create_pure :: Index , } pub mod create_pure { use super :: runtime_types ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; pub type Index = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CreatePure { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "create_pure" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Removes a previously spawned pure proxy."] # [doc = ""] # [doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] # [doc = "inaccessible."] # [doc = ""] # [doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] # [doc = "`create_pure` with corresponding parameters."] # [doc = ""] # [doc = "- `spawner`: The account that originally called `create_pure` to create this account."] # [doc = "- `index`: The disambiguation index originally passed to `create_pure`. Probably `0`."] # [doc = "- `proxy_type`: The proxy type originally passed to `create_pure`."] # [doc = "- `height`: The height of the chain when the call to `create_pure` was processed."] # [doc = "- `ext_index`: The extrinsic index in which the call to `create_pure` was processed."] # [doc = ""] # [doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] # [doc = "account whose `create_pure` call has corresponding parameters."] pub struct KillPure { pub spawner : kill_pure :: Spawner , pub proxy_type : kill_pure :: ProxyType , pub index : kill_pure :: Index , # [codec (compact)] pub height : kill_pure :: Height , # [codec (compact)] pub ext_index : kill_pure :: ExtIndex , } pub mod kill_pure { use super :: runtime_types ; pub type Spawner = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Index = :: core :: primitive :: u16 ; pub type Height = :: core :: primitive :: u32 ; pub type ExtIndex = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for KillPure { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "kill_pure" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Publish the hash of a proxy-call that will be made in the future."] # [doc = ""] # [doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] # [doc = "if the delay associated with the proxy relationship is greater than zero."] # [doc = ""] # [doc = "No more than `MaxPending` announcements may be made at any one time."] # [doc = ""] # [doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] # [doc = "`AnnouncementDepositBase` if there are no other pending announcements."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub struct Announce { pub real : announce :: Real , pub call_hash : announce :: CallHash , } pub mod announce { use super :: runtime_types ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Announce { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "announce" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove a given announcement."] # [doc = ""] # [doc = "May be called by a proxy account to remove a call they previously announced and return"] # [doc = "the deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub struct RemoveAnnouncement { pub real : remove_announcement :: Real , pub call_hash : remove_announcement :: CallHash , } pub mod remove_announcement { use super :: runtime_types ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveAnnouncement { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "remove_announcement" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove the given announcement of a delegate."] # [doc = ""] # [doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] # [doc = "(`delegate`) has announced they want to execute. The deposit is returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `delegate`: The account that previously announced the call."] # [doc = "- `call_hash`: The hash of the call to be made."] pub struct RejectAnnouncement { pub delegate : reject_announcement :: Delegate , pub call_hash : reject_announcement :: CallHash , } pub mod reject_announcement { use super :: runtime_types ; pub type Delegate = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RejectAnnouncement { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "reject_announcement" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatch the given `call` from an account that the sender is authorized for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "Removes any corresponding announcement(s)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] pub struct ProxyAnnounced { pub delegate : proxy_announced :: Delegate , pub real : proxy_announced :: Real , pub force_proxy_type : proxy_announced :: ForceProxyType , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < proxy_announced :: Call > , } pub mod proxy_announced { use super :: runtime_types ; pub type Delegate = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ForceProxyType = :: core :: option :: Option < runtime_types :: subtensor_runtime_common :: ProxyType > ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ProxyAnnounced { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "proxy_announced" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Poke / Adjust deposits made for proxies and announcements based on current values."] # [doc = "This can be used by accounts to possibly lower their locked amount."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "The transaction fee is waived if the deposit amount has changed."] # [doc = ""] # [doc = "Emits `DepositPoked` if successful."] pub struct PokeDeposit ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for PokeDeposit { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "poke_deposit" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Dispatch the given `call` from an account that the sender is authorised for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] pub fn proxy (& self , real : types :: proxy :: Real , force_proxy_type : types :: proxy :: ForceProxyType , call : types :: proxy :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Proxy > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "proxy" , types :: Proxy { real , force_proxy_type , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [166u8 , 196u8 , 222u8 , 245u8 , 141u8 , 191u8 , 144u8 , 89u8 , 133u8 , 247u8 , 143u8 , 126u8 , 189u8 , 79u8 , 182u8 , 245u8 , 230u8 , 208u8 , 119u8 , 62u8 , 72u8 , 115u8 , 176u8 , 243u8 , 75u8 , 172u8 , 200u8 , 196u8 , 60u8 , 134u8 , 230u8 , 66u8 ,]) } # [doc = "Register a proxy account for the sender that is able to make calls on its behalf."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to make a proxy."] # [doc = "- `proxy_type`: The permissions allowed for this proxy account."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] pub fn add_proxy (& self , delegate : types :: add_proxy :: Delegate , proxy_type : types :: add_proxy :: ProxyType , delay : types :: add_proxy :: Delay ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddProxy > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "add_proxy" , types :: AddProxy { delegate , proxy_type , delay , } , [41u8 , 20u8 , 119u8 , 72u8 , 148u8 , 5u8 , 60u8 , 129u8 , 74u8 , 153u8 , 133u8 , 186u8 , 41u8 , 72u8 , 162u8 , 67u8 , 0u8 , 115u8 , 10u8 , 148u8 , 150u8 , 49u8 , 178u8 , 212u8 , 169u8 , 77u8 , 109u8 , 110u8 , 56u8 , 26u8 , 61u8 , 123u8 ,]) } # [doc = "Unregister a proxy account for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] # [doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] pub fn remove_proxy (& self , delegate : types :: remove_proxy :: Delegate , proxy_type : types :: remove_proxy :: ProxyType , delay : types :: remove_proxy :: Delay ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveProxy > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "remove_proxy" , types :: RemoveProxy { delegate , proxy_type , delay , } , [124u8 , 92u8 , 165u8 , 104u8 , 12u8 , 55u8 , 125u8 , 89u8 , 212u8 , 70u8 , 90u8 , 193u8 , 150u8 , 74u8 , 68u8 , 91u8 , 83u8 , 209u8 , 193u8 , 233u8 , 157u8 , 241u8 , 99u8 , 32u8 , 82u8 , 64u8 , 175u8 , 202u8 , 179u8 , 209u8 , 106u8 , 141u8 ,]) } # [doc = "Unregister all proxy accounts for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "WARNING: This may be called on accounts created by `create_pure`, however if done, then"] # [doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] pub fn remove_proxies (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveProxies > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "remove_proxies" , types :: RemoveProxies { } , [1u8 , 126u8 , 36u8 , 227u8 , 185u8 , 34u8 , 218u8 , 236u8 , 125u8 , 231u8 , 68u8 , 185u8 , 145u8 , 63u8 , 250u8 , 225u8 , 103u8 , 3u8 , 189u8 , 37u8 , 172u8 , 195u8 , 197u8 , 216u8 , 99u8 , 210u8 , 240u8 , 162u8 , 158u8 , 132u8 , 24u8 , 6u8 ,]) } # [doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] # [doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] # [doc = ""] # [doc = "Requires a `Signed` origin."] # [doc = ""] # [doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] # [doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] # [doc = "allow for maximum flexibility."] # [doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] # [doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] # [doc = "want to use `0`."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] # [doc = ""] # [doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] # [doc = "same sender, with the same parameters."] # [doc = ""] # [doc = "Fails if there are insufficient funds to pay for deposit."] pub fn create_pure (& self , proxy_type : types :: create_pure :: ProxyType , delay : types :: create_pure :: Delay , index : types :: create_pure :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CreatePure > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "create_pure" , types :: CreatePure { proxy_type , delay , index , } , [217u8 , 249u8 , 104u8 , 64u8 , 2u8 , 151u8 , 37u8 , 44u8 , 37u8 , 79u8 , 228u8 , 96u8 , 63u8 , 32u8 , 214u8 , 135u8 , 131u8 , 249u8 , 90u8 , 138u8 , 204u8 , 19u8 , 222u8 , 178u8 , 86u8 , 11u8 , 124u8 , 204u8 , 224u8 , 142u8 , 238u8 , 28u8 ,]) } # [doc = "Removes a previously spawned pure proxy."] # [doc = ""] # [doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] # [doc = "inaccessible."] # [doc = ""] # [doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] # [doc = "`create_pure` with corresponding parameters."] # [doc = ""] # [doc = "- `spawner`: The account that originally called `create_pure` to create this account."] # [doc = "- `index`: The disambiguation index originally passed to `create_pure`. Probably `0`."] # [doc = "- `proxy_type`: The proxy type originally passed to `create_pure`."] # [doc = "- `height`: The height of the chain when the call to `create_pure` was processed."] # [doc = "- `ext_index`: The extrinsic index in which the call to `create_pure` was processed."] # [doc = ""] # [doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] # [doc = "account whose `create_pure` call has corresponding parameters."] pub fn kill_pure (& self , spawner : types :: kill_pure :: Spawner , proxy_type : types :: kill_pure :: ProxyType , index : types :: kill_pure :: Index , height : types :: kill_pure :: Height , ext_index : types :: kill_pure :: ExtIndex ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: KillPure > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "kill_pure" , types :: KillPure { spawner , proxy_type , index , height , ext_index , } , [229u8 , 239u8 , 72u8 , 103u8 , 122u8 , 141u8 , 136u8 , 201u8 , 172u8 , 243u8 , 99u8 , 76u8 , 61u8 , 188u8 , 45u8 , 44u8 , 63u8 , 33u8 , 3u8 , 238u8 , 128u8 , 94u8 , 192u8 , 138u8 , 134u8 , 51u8 , 221u8 , 17u8 , 86u8 , 57u8 , 144u8 , 184u8 ,]) } # [doc = "Publish the hash of a proxy-call that will be made in the future."] # [doc = ""] # [doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] # [doc = "if the delay associated with the proxy relationship is greater than zero."] # [doc = ""] # [doc = "No more than `MaxPending` announcements may be made at any one time."] # [doc = ""] # [doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] # [doc = "`AnnouncementDepositBase` if there are no other pending announcements."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub fn announce (& self , real : types :: announce :: Real , call_hash : types :: announce :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Announce > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "announce" , types :: Announce { real , call_hash , } , [105u8 , 218u8 , 232u8 , 82u8 , 80u8 , 10u8 , 11u8 , 1u8 , 93u8 , 241u8 , 121u8 , 198u8 , 167u8 , 218u8 , 95u8 , 15u8 , 75u8 , 122u8 , 155u8 , 233u8 , 10u8 , 175u8 , 145u8 , 73u8 , 214u8 , 230u8 , 67u8 , 107u8 , 23u8 , 239u8 , 69u8 , 240u8 ,]) } # [doc = "Remove a given announcement."] # [doc = ""] # [doc = "May be called by a proxy account to remove a call they previously announced and return"] # [doc = "the deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub fn remove_announcement (& self , real : types :: remove_announcement :: Real , call_hash : types :: remove_announcement :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveAnnouncement > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "remove_announcement" , types :: RemoveAnnouncement { real , call_hash , } , [40u8 , 237u8 , 179u8 , 128u8 , 201u8 , 183u8 , 20u8 , 47u8 , 99u8 , 182u8 , 81u8 , 31u8 , 27u8 , 212u8 , 133u8 , 36u8 , 8u8 , 248u8 , 57u8 , 230u8 , 138u8 , 80u8 , 241u8 , 147u8 , 69u8 , 236u8 , 156u8 , 167u8 , 205u8 , 49u8 , 60u8 , 16u8 ,]) } # [doc = "Remove the given announcement of a delegate."] # [doc = ""] # [doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] # [doc = "(`delegate`) has announced they want to execute. The deposit is returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `delegate`: The account that previously announced the call."] # [doc = "- `call_hash`: The hash of the call to be made."] pub fn reject_announcement (& self , delegate : types :: reject_announcement :: Delegate , call_hash : types :: reject_announcement :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RejectAnnouncement > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "reject_announcement" , types :: RejectAnnouncement { delegate , call_hash , } , [150u8 , 178u8 , 49u8 , 160u8 , 211u8 , 75u8 , 58u8 , 228u8 , 121u8 , 253u8 , 167u8 , 72u8 , 68u8 , 105u8 , 159u8 , 52u8 , 41u8 , 155u8 , 92u8 , 26u8 , 169u8 , 177u8 , 102u8 , 36u8 , 1u8 , 47u8 , 87u8 , 189u8 , 223u8 , 238u8 , 244u8 , 110u8 ,]) } # [doc = "Dispatch the given `call` from an account that the sender is authorized for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "Removes any corresponding announcement(s)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] pub fn proxy_announced (& self , delegate : types :: proxy_announced :: Delegate , real : types :: proxy_announced :: Real , force_proxy_type : types :: proxy_announced :: ForceProxyType , call : types :: proxy_announced :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ProxyAnnounced > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "proxy_announced" , types :: ProxyAnnounced { delegate , real , force_proxy_type , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [245u8 , 49u8 , 243u8 , 103u8 , 84u8 , 11u8 , 145u8 , 8u8 , 137u8 , 163u8 , 119u8 , 231u8 , 100u8 , 170u8 , 150u8 , 165u8 , 47u8 , 200u8 , 169u8 , 227u8 , 224u8 , 26u8 , 84u8 , 47u8 , 250u8 , 148u8 , 245u8 , 19u8 , 187u8 , 78u8 , 174u8 , 214u8 ,]) } # [doc = "Poke / Adjust deposits made for proxies and announcements based on current values."] # [doc = "This can be used by accounts to possibly lower their locked amount."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "The transaction fee is waived if the deposit amount has changed."] # [doc = ""] # [doc = "Emits `DepositPoked` if successful."] pub fn poke_deposit (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PokeDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "poke_deposit" , types :: PokeDeposit { } , [127u8 , 254u8 , 187u8 , 13u8 , 51u8 , 85u8 , 145u8 , 82u8 , 61u8 , 152u8 , 218u8 , 135u8 , 191u8 , 67u8 , 53u8 , 140u8 , 42u8 , 68u8 , 7u8 , 14u8 , 95u8 , 60u8 , 41u8 , 135u8 , 32u8 , 99u8 , 40u8 , 111u8 , 10u8 , 21u8 , 103u8 , 107u8 ,]) } } } pub mod view_functions { use super :: root_mod ; use super :: runtime_types ; pub struct ViewFunctionsApi ; impl ViewFunctionsApi { # [doc = " Check if a `RuntimeCall` is allowed for a given `ProxyType`."] pub fn check_permissions (& self , call : check_permissions :: Call , proxy_type : check_permissions :: ProxyType) -> :: subxt :: ext :: subxt_core :: view_functions :: payload :: StaticPayload < check_permissions :: Input , check_permissions :: output :: Output > { :: subxt :: ext :: subxt_core :: view_functions :: payload :: StaticPayload :: new_static ([24u8 , 9u8 , 215u8 , 131u8 , 70u8 , 114u8 , 122u8 , 14u8 , 245u8 , 140u8 , 15u8 , 160u8 , 59u8 , 175u8 , 163u8 , 35u8 , 203u8 , 197u8 , 20u8 , 136u8 , 217u8 , 42u8 , 26u8 , 167u8 , 19u8 , 123u8 , 3u8 , 191u8 , 181u8 , 14u8 , 252u8 , 23u8 ,] , check_permissions :: Input { call , proxy_type , } , [244u8 , 36u8 , 238u8 , 114u8 , 182u8 , 213u8 , 0u8 , 227u8 , 197u8 , 44u8 , 139u8 , 9u8 , 173u8 , 47u8 , 58u8 , 3u8 , 90u8 , 255u8 , 139u8 , 240u8 , 57u8 , 191u8 , 144u8 , 114u8 , 165u8 , 228u8 , 250u8 , 112u8 , 184u8 , 78u8 , 139u8 , 126u8 ,] ,) } # [doc = " Check if one `ProxyType` is a subset of another `ProxyType`."] pub fn is_superset (& self , to_check : is_superset :: ToCheck , against : is_superset :: Against) -> :: subxt :: ext :: subxt_core :: view_functions :: payload :: StaticPayload < is_superset :: Input , is_superset :: output :: Output > { :: subxt :: ext :: subxt_core :: view_functions :: payload :: StaticPayload :: new_static ([24u8 , 9u8 , 215u8 , 131u8 , 70u8 , 114u8 , 122u8 , 14u8 , 245u8 , 140u8 , 15u8 , 160u8 , 59u8 , 175u8 , 163u8 , 35u8 , 23u8 , 20u8 , 176u8 , 96u8 , 125u8 , 98u8 , 175u8 , 10u8 , 59u8 , 59u8 , 10u8 , 210u8 , 197u8 , 213u8 , 92u8 , 88u8 ,] , is_superset :: Input { to_check , against , } , [185u8 , 101u8 , 200u8 , 3u8 , 178u8 , 198u8 , 9u8 , 55u8 , 198u8 , 227u8 , 142u8 , 184u8 , 159u8 , 15u8 , 39u8 , 87u8 , 174u8 , 20u8 , 2u8 , 108u8 , 47u8 , 172u8 , 201u8 , 220u8 , 226u8 , 6u8 , 40u8 , 53u8 , 91u8 , 201u8 , 7u8 , 189u8 ,] ,) } } pub mod check_permissions { use super :: root_mod ; use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Input { pub call : Call , pub proxy_type : ProxyType , } pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: bool ; } } pub mod is_superset { use super :: root_mod ; use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Input { pub to_check : ToCheck , pub against : Against , } pub type ToCheck = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Against = runtime_types :: subtensor_runtime_common :: ProxyType ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: bool ; } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_subtensor_proxy :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A proxy was executed correctly, with the given."] pub struct ProxyExecuted { pub result : proxy_executed :: Result , } pub mod proxy_executed { use super :: runtime_types ; pub type Result = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ProxyExecuted { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "ProxyExecuted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A pure account has been created by new proxy with given"] # [doc = "disambiguation index and proxy type."] pub struct PureCreated { pub pure : pure_created :: Pure , pub who : pure_created :: Who , pub proxy_type : pure_created :: ProxyType , pub disambiguation_index : pure_created :: DisambiguationIndex , } pub mod pure_created { use super :: runtime_types ; pub type Pure = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type DisambiguationIndex = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PureCreated { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "PureCreated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A pure proxy was killed by its spawner."] pub struct PureKilled { pub pure : pure_killed :: Pure , pub spawner : pure_killed :: Spawner , pub proxy_type : pure_killed :: ProxyType , pub disambiguation_index : pure_killed :: DisambiguationIndex , } pub mod pure_killed { use super :: runtime_types ; pub type Pure = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Spawner = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type DisambiguationIndex = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PureKilled { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "PureKilled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An announcement was placed to make a call in the future."] pub struct Announced { pub real : announced :: Real , pub proxy : announced :: Proxy , pub call_hash : announced :: CallHash , } pub mod announced { use super :: runtime_types ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Proxy = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Announced { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "Announced" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A proxy was added."] pub struct ProxyAdded { pub delegator : proxy_added :: Delegator , pub delegatee : proxy_added :: Delegatee , pub proxy_type : proxy_added :: ProxyType , pub delay : proxy_added :: Delay , } pub mod proxy_added { use super :: runtime_types ; pub type Delegator = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Delegatee = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ProxyAdded { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "ProxyAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A proxy was removed."] pub struct ProxyRemoved { pub delegator : proxy_removed :: Delegator , pub delegatee : proxy_removed :: Delegatee , pub proxy_type : proxy_removed :: ProxyType , pub delay : proxy_removed :: Delay , } pub mod proxy_removed { use super :: runtime_types ; pub type Delegator = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Delegatee = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ProxyRemoved { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "ProxyRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A deposit stored for proxies or announcements was poked / updated."] pub struct DepositPoked { pub who : deposit_poked :: Who , pub kind : deposit_poked :: Kind , pub old_deposit : deposit_poked :: OldDeposit , pub new_deposit : deposit_poked :: NewDeposit , } pub mod deposit_poked { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Kind = runtime_types :: pallet_subtensor_proxy :: DepositKind ; pub type OldDeposit = :: core :: primitive :: u64 ; pub type NewDeposit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DepositPoked { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "DepositPoked" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod proxies { use super :: runtime_types ; pub type Proxies = (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_subtensor_proxy :: ProxyDefinition < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: subtensor_runtime_common :: ProxyType , :: core :: primitive :: u32 > > , :: core :: primitive :: u64 ,) ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod announcements { use super :: runtime_types ; pub type Announcements = (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_subtensor_proxy :: Announcement < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > , :: core :: primitive :: u64 ,) ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod last_call_result { use super :: runtime_types ; pub type LastCallResult = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The set of account proxies. Maps the account which has delegated to the accounts"] # [doc = " which are being delegated to, together with the amount held on deposit."] pub fn proxies_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: proxies :: Proxies , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "Proxies" , () , [53u8 , 52u8 , 112u8 , 212u8 , 25u8 , 10u8 , 47u8 , 210u8 , 249u8 , 3u8 , 119u8 , 140u8 , 116u8 , 207u8 , 237u8 , 117u8 , 6u8 , 6u8 , 65u8 , 4u8 , 219u8 , 43u8 , 84u8 , 212u8 , 58u8 , 103u8 , 184u8 , 201u8 , 34u8 , 240u8 , 218u8 , 3u8 ,]) } # [doc = " The set of account proxies. Maps the account which has delegated to the accounts"] # [doc = " which are being delegated to, together with the amount held on deposit."] pub fn proxies (& self , _0 : types :: proxies :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: proxies :: Param0 > , types :: proxies :: Proxies , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "Proxies" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [53u8 , 52u8 , 112u8 , 212u8 , 25u8 , 10u8 , 47u8 , 210u8 , 249u8 , 3u8 , 119u8 , 140u8 , 116u8 , 207u8 , 237u8 , 117u8 , 6u8 , 6u8 , 65u8 , 4u8 , 219u8 , 43u8 , 84u8 , 212u8 , 58u8 , 103u8 , 184u8 , 201u8 , 34u8 , 240u8 , 218u8 , 3u8 ,]) } # [doc = " The announcements made by the proxy (key)."] pub fn announcements_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: announcements :: Announcements , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "Announcements" , () , [251u8 , 80u8 , 94u8 , 70u8 , 96u8 , 57u8 , 22u8 , 10u8 , 63u8 , 93u8 , 186u8 , 160u8 , 55u8 , 117u8 , 39u8 , 125u8 , 210u8 , 52u8 , 117u8 , 94u8 , 24u8 , 109u8 , 217u8 , 55u8 , 2u8 , 30u8 , 8u8 , 177u8 , 56u8 , 155u8 , 71u8 , 227u8 ,]) } # [doc = " The announcements made by the proxy (key)."] pub fn announcements (& self , _0 : types :: announcements :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: announcements :: Param0 > , types :: announcements :: Announcements , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "Announcements" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [251u8 , 80u8 , 94u8 , 70u8 , 96u8 , 57u8 , 22u8 , 10u8 , 63u8 , 93u8 , 186u8 , 160u8 , 55u8 , 117u8 , 39u8 , 125u8 , 210u8 , 52u8 , 117u8 , 94u8 , 24u8 , 109u8 , 217u8 , 55u8 , 2u8 , 30u8 , 8u8 , 177u8 , 56u8 , 155u8 , 71u8 , 227u8 ,]) } # [doc = " The result of the last call made by the proxy (key)."] pub fn last_call_result_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_call_result :: LastCallResult , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "LastCallResult" , () , [5u8 , 147u8 , 48u8 , 23u8 , 195u8 , 78u8 , 152u8 , 229u8 , 179u8 , 25u8 , 27u8 , 149u8 , 243u8 , 241u8 , 224u8 , 221u8 , 252u8 , 191u8 , 30u8 , 178u8 , 129u8 , 116u8 , 171u8 , 108u8 , 241u8 , 244u8 , 87u8 , 117u8 , 195u8 , 235u8 , 154u8 , 223u8 ,]) } # [doc = " The result of the last call made by the proxy (key)."] pub fn last_call_result (& self , _0 : types :: last_call_result :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_call_result :: Param0 > , types :: last_call_result :: LastCallResult , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "LastCallResult" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [5u8 , 147u8 , 48u8 , 23u8 , 195u8 , 78u8 , 152u8 , 229u8 , 179u8 , 25u8 , 27u8 , 149u8 , 243u8 , 241u8 , 224u8 , 221u8 , 252u8 , 191u8 , 30u8 , 178u8 , 129u8 , 116u8 , 171u8 , 108u8 , 241u8 , 244u8 , 87u8 , 117u8 , 195u8 , 235u8 , 154u8 , 223u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The base amount of currency needed to reserve for creating a proxy."] # [doc = ""] # [doc = " This is held for an additional storage item whose value size is"] # [doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] pub fn proxy_deposit_base (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Proxy" , "ProxyDepositBase" , [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 ,]) } # [doc = " The amount of currency needed per proxy added."] # [doc = ""] # [doc = " This is held for adding 32 bytes plus an instance of `ProxyType` more into a"] # [doc = " pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take"] # [doc = " into account `32 + proxy_type.encode().len()` bytes of data."] pub fn proxy_deposit_factor (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Proxy" , "ProxyDepositFactor" , [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 ,]) } # [doc = " The maximum amount of proxies allowed for a single account."] pub fn max_proxies (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Proxy" , "MaxProxies" , [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 ,]) } # [doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] pub fn max_pending (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Proxy" , "MaxPending" , [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 ,]) } # [doc = " The base amount of currency needed to reserve for creating an announcement."] # [doc = ""] # [doc = " This is held when a new storage item holding a `Balance` is created (typically 16"] # [doc = " bytes)."] pub fn announcement_deposit_base (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Proxy" , "AnnouncementDepositBase" , [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 ,]) } # [doc = " The amount of currency needed per announcement made."] # [doc = ""] # [doc = " This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)"] # [doc = " into a pre-existing storage value."] pub fn announcement_deposit_factor (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Proxy" , "AnnouncementDepositFactor" , [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 registry { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_registry :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_registry :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register an identity for an account. This will overwrite any existing identity."] pub struct SetIdentity { pub identified : set_identity :: Identified , pub info : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < set_identity :: Info > , } pub mod set_identity { use super :: runtime_types ; pub type Identified = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Info = runtime_types :: pallet_registry :: types :: IdentityInfo ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetIdentity { const PALLET : & 'static str = "Registry" ; const CALL : & 'static str = "set_identity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Clear the identity of an account."] pub struct ClearIdentity { pub identified : clear_identity :: Identified , } pub mod clear_identity { use super :: runtime_types ; pub type Identified = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ClearIdentity { const PALLET : & 'static str = "Registry" ; const CALL : & 'static str = "clear_identity" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Register an identity for an account. This will overwrite any existing identity."] pub fn set_identity (& self , identified : types :: set_identity :: Identified , info : types :: set_identity :: Info ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetIdentity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Registry" , "set_identity" , types :: SetIdentity { identified , info : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (info) , } , [255u8 , 222u8 , 188u8 , 128u8 , 170u8 , 119u8 , 134u8 , 170u8 , 42u8 , 31u8 , 3u8 , 8u8 , 53u8 , 100u8 , 198u8 , 14u8 , 115u8 , 29u8 , 228u8 , 90u8 , 39u8 , 182u8 , 215u8 , 189u8 , 29u8 , 111u8 , 230u8 , 253u8 , 89u8 , 109u8 , 191u8 , 220u8 ,]) } # [doc = "Clear the identity of an account."] pub fn clear_identity (& self , identified : types :: clear_identity :: Identified ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ClearIdentity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Registry" , "clear_identity" , types :: ClearIdentity { identified , } , [216u8 , 203u8 , 30u8 , 205u8 , 153u8 , 152u8 , 123u8 , 37u8 , 208u8 , 167u8 , 25u8 , 221u8 , 243u8 , 138u8 , 31u8 , 222u8 , 64u8 , 207u8 , 68u8 , 74u8 , 131u8 , 236u8 , 156u8 , 9u8 , 30u8 , 190u8 , 66u8 , 119u8 , 161u8 , 154u8 , 5u8 , 65u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_registry :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Emitted when a user registers an identity"] pub struct IdentitySet { pub who : identity_set :: Who , } pub mod identity_set { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IdentitySet { const PALLET : & 'static str = "Registry" ; const EVENT : & 'static str = "IdentitySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Emitted when a user dissolves an identity"] pub struct IdentityDissolved { pub who : identity_dissolved :: Who , } pub mod identity_dissolved { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IdentityDissolved { const PALLET : & 'static str = "Registry" ; const EVENT : & 'static str = "IdentityDissolved" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod identity_of { use super :: runtime_types ; pub type IdentityOf = runtime_types :: pallet_registry :: types :: Registration < :: core :: primitive :: u64 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Identity data by account"] pub fn identity_of_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: identity_of :: IdentityOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Registry" , "IdentityOf" , () , [234u8 , 187u8 , 56u8 , 218u8 , 135u8 , 79u8 , 50u8 , 159u8 , 20u8 , 10u8 , 131u8 , 167u8 , 135u8 , 236u8 , 19u8 , 176u8 , 113u8 , 194u8 , 115u8 , 138u8 , 0u8 , 184u8 , 178u8 , 245u8 , 255u8 , 85u8 , 51u8 , 140u8 , 11u8 , 143u8 , 218u8 , 217u8 ,]) } # [doc = " Identity data by account"] pub fn identity_of (& self , _0 : types :: identity_of :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: identity_of :: Param0 > , types :: identity_of :: IdentityOf , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Registry" , "IdentityOf" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [234u8 , 187u8 , 56u8 , 218u8 , 135u8 , 79u8 , 50u8 , 159u8 , 20u8 , 10u8 , 131u8 , 167u8 , 135u8 , 236u8 , 19u8 , 176u8 , 113u8 , 194u8 , 115u8 , 138u8 , 0u8 , 184u8 , 178u8 , 245u8 , 255u8 , 85u8 , 51u8 , 140u8 , 11u8 , 143u8 , 218u8 , 217u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " Configuration fields"] # [doc = " Maximum user-configured additional fields"] pub fn max_additional_fields (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Registry" , "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 ,]) } # [doc = " The amount held on deposit for a registered identity"] pub fn initial_deposit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Registry" , "InitialDeposit" , [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 ,]) } # [doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Registry" , "FieldDeposit" , [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 commitments { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_commitments :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_commitments :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the commitment for a given netuid"] pub struct SetCommitment { pub netuid : set_commitment :: Netuid , pub info : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < set_commitment :: Info > , } pub mod set_commitment { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Info = runtime_types :: pallet_commitments :: types :: CommitmentInfo ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCommitment { const PALLET : & 'static str = "Commitments" ; const CALL : & 'static str = "set_commitment" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sudo-set MaxSpace"] pub struct SetMaxSpace { pub new_limit : set_max_space :: NewLimit , } pub mod set_max_space { use super :: runtime_types ; pub type NewLimit = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxSpace { const PALLET : & 'static str = "Commitments" ; const CALL : & 'static str = "set_max_space" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Set the commitment for a given netuid"] pub fn set_commitment (& self , netuid : types :: set_commitment :: Netuid , info : types :: set_commitment :: Info ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCommitment > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Commitments" , "set_commitment" , types :: SetCommitment { netuid , info : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (info) , } , [188u8 , 98u8 , 69u8 , 166u8 , 54u8 , 104u8 , 38u8 , 160u8 , 19u8 , 24u8 , 227u8 , 201u8 , 149u8 , 229u8 , 86u8 , 51u8 , 182u8 , 132u8 , 65u8 , 200u8 , 88u8 , 6u8 , 164u8 , 35u8 , 240u8 , 227u8 , 136u8 , 114u8 , 194u8 , 118u8 , 70u8 , 122u8 ,]) } # [doc = "Sudo-set MaxSpace"] pub fn set_max_space (& self , new_limit : types :: set_max_space :: NewLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxSpace > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Commitments" , "set_max_space" , types :: SetMaxSpace { new_limit , } , [194u8 , 149u8 , 204u8 , 12u8 , 197u8 , 80u8 , 68u8 , 8u8 , 41u8 , 197u8 , 213u8 , 222u8 , 150u8 , 0u8 , 149u8 , 61u8 , 232u8 , 41u8 , 185u8 , 85u8 , 174u8 , 205u8 , 126u8 , 72u8 , 151u8 , 89u8 , 27u8 , 233u8 , 45u8 , 69u8 , 56u8 , 167u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_commitments :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A commitment was set"] pub struct Commitment { pub netuid : commitment :: Netuid , pub who : commitment :: Who , } pub mod commitment { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Commitment { const PALLET : & 'static str = "Commitments" ; const EVENT : & 'static str = "Commitment" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A timelock-encrypted commitment was set"] pub struct TimelockCommitment { pub netuid : timelock_commitment :: Netuid , pub who : timelock_commitment :: Who , pub reveal_round : timelock_commitment :: RevealRound , } pub mod timelock_commitment { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type RevealRound = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TimelockCommitment { const PALLET : & 'static str = "Commitments" ; const EVENT : & 'static str = "TimelockCommitment" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A timelock-encrypted commitment was auto-revealed"] pub struct CommitmentRevealed { pub netuid : commitment_revealed :: Netuid , pub who : commitment_revealed :: Who , } pub mod commitment_revealed { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CommitmentRevealed { const PALLET : & 'static str = "Commitments" ; const EVENT : & 'static str = "CommitmentRevealed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod timelocked_index { use super :: runtime_types ; pub type TimelockedIndex = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ; } pub mod commitment_of { use super :: runtime_types ; pub type CommitmentOf = runtime_types :: pallet_commitments :: types :: Registration < :: core :: primitive :: u64 , :: core :: primitive :: u32 > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod last_commitment { use super :: runtime_types ; pub type LastCommitment = :: core :: primitive :: u32 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod last_bonds_reset { use super :: runtime_types ; pub type LastBondsReset = :: core :: primitive :: u32 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod revealed_commitments { use super :: runtime_types ; pub type RevealedCommitments = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , :: core :: primitive :: u64 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod used_space_of { use super :: runtime_types ; pub type UsedSpaceOf = runtime_types :: pallet_commitments :: types :: UsageTracker ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod max_space { use super :: runtime_types ; pub type MaxSpace = :: core :: primitive :: u32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Tracks all CommitmentOf that have at least one timelocked field."] pub fn timelocked_index (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: timelocked_index :: TimelockedIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "TimelockedIndex" , () , [238u8 , 133u8 , 144u8 , 233u8 , 81u8 , 247u8 , 174u8 , 114u8 , 23u8 , 107u8 , 191u8 , 192u8 , 74u8 , 26u8 , 42u8 , 157u8 , 37u8 , 223u8 , 113u8 , 71u8 , 244u8 , 228u8 , 166u8 , 196u8 , 250u8 , 249u8 , 170u8 , 40u8 , 87u8 , 138u8 , 25u8 , 72u8 ,]) } # [doc = " Identity data by account"] pub fn commitment_of_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: commitment_of :: CommitmentOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "CommitmentOf" , () , [16u8 , 21u8 , 151u8 , 21u8 , 196u8 , 166u8 , 177u8 , 116u8 , 20u8 , 99u8 , 7u8 , 219u8 , 35u8 , 17u8 , 56u8 , 247u8 , 20u8 , 8u8 , 99u8 , 101u8 , 230u8 , 217u8 , 226u8 , 133u8 , 201u8 , 149u8 , 159u8 , 140u8 , 80u8 , 187u8 , 35u8 , 208u8 ,]) } # [doc = " Identity data by account"] pub fn commitment_of_iter1 (& self , _0 : types :: commitment_of :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: commitment_of :: Param0 > , types :: commitment_of :: CommitmentOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "CommitmentOf" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [16u8 , 21u8 , 151u8 , 21u8 , 196u8 , 166u8 , 177u8 , 116u8 , 20u8 , 99u8 , 7u8 , 219u8 , 35u8 , 17u8 , 56u8 , 247u8 , 20u8 , 8u8 , 99u8 , 101u8 , 230u8 , 217u8 , 226u8 , 133u8 , 201u8 , 149u8 , 159u8 , 140u8 , 80u8 , 187u8 , 35u8 , 208u8 ,]) } # [doc = " Identity data by account"] pub fn commitment_of (& self , _0 : types :: commitment_of :: Param0 , _1 : types :: commitment_of :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: commitment_of :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: commitment_of :: Param1 > ,) , types :: commitment_of :: CommitmentOf , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "CommitmentOf" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [16u8 , 21u8 , 151u8 , 21u8 , 196u8 , 166u8 , 177u8 , 116u8 , 20u8 , 99u8 , 7u8 , 219u8 , 35u8 , 17u8 , 56u8 , 247u8 , 20u8 , 8u8 , 99u8 , 101u8 , 230u8 , 217u8 , 226u8 , 133u8 , 201u8 , 149u8 , 159u8 , 140u8 , 80u8 , 187u8 , 35u8 , 208u8 ,]) } pub fn last_commitment_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_commitment :: LastCommitment , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "LastCommitment" , () , [139u8 , 18u8 , 67u8 , 3u8 , 183u8 , 236u8 , 230u8 , 168u8 , 162u8 , 27u8 , 124u8 , 208u8 , 80u8 , 59u8 , 115u8 , 168u8 , 19u8 , 84u8 , 100u8 , 234u8 , 21u8 , 52u8 , 48u8 , 87u8 , 226u8 , 158u8 , 211u8 , 215u8 , 177u8 , 207u8 , 202u8 , 69u8 ,]) } pub fn last_commitment_iter1 (& self , _0 : types :: last_commitment :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_commitment :: Param0 > , types :: last_commitment :: LastCommitment , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "LastCommitment" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [139u8 , 18u8 , 67u8 , 3u8 , 183u8 , 236u8 , 230u8 , 168u8 , 162u8 , 27u8 , 124u8 , 208u8 , 80u8 , 59u8 , 115u8 , 168u8 , 19u8 , 84u8 , 100u8 , 234u8 , 21u8 , 52u8 , 48u8 , 87u8 , 226u8 , 158u8 , 211u8 , 215u8 , 177u8 , 207u8 , 202u8 , 69u8 ,]) } pub fn last_commitment (& self , _0 : types :: last_commitment :: Param0 , _1 : types :: last_commitment :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_commitment :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_commitment :: Param1 > ,) , types :: last_commitment :: LastCommitment , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "LastCommitment" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [139u8 , 18u8 , 67u8 , 3u8 , 183u8 , 236u8 , 230u8 , 168u8 , 162u8 , 27u8 , 124u8 , 208u8 , 80u8 , 59u8 , 115u8 , 168u8 , 19u8 , 84u8 , 100u8 , 234u8 , 21u8 , 52u8 , 48u8 , 87u8 , 226u8 , 158u8 , 211u8 , 215u8 , 177u8 , 207u8 , 202u8 , 69u8 ,]) } pub fn last_bonds_reset_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_bonds_reset :: LastBondsReset , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "LastBondsReset" , () , [230u8 , 104u8 , 27u8 , 159u8 , 209u8 , 43u8 , 222u8 , 155u8 , 59u8 , 17u8 , 42u8 , 47u8 , 125u8 , 70u8 , 253u8 , 179u8 , 223u8 , 11u8 , 194u8 , 47u8 , 241u8 , 26u8 , 34u8 , 5u8 , 121u8 , 155u8 , 20u8 , 5u8 , 168u8 , 127u8 , 146u8 , 197u8 ,]) } pub fn last_bonds_reset_iter1 (& self , _0 : types :: last_bonds_reset :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_bonds_reset :: Param0 > , types :: last_bonds_reset :: LastBondsReset , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "LastBondsReset" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [230u8 , 104u8 , 27u8 , 159u8 , 209u8 , 43u8 , 222u8 , 155u8 , 59u8 , 17u8 , 42u8 , 47u8 , 125u8 , 70u8 , 253u8 , 179u8 , 223u8 , 11u8 , 194u8 , 47u8 , 241u8 , 26u8 , 34u8 , 5u8 , 121u8 , 155u8 , 20u8 , 5u8 , 168u8 , 127u8 , 146u8 , 197u8 ,]) } pub fn last_bonds_reset (& self , _0 : types :: last_bonds_reset :: Param0 , _1 : types :: last_bonds_reset :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_bonds_reset :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_bonds_reset :: Param1 > ,) , types :: last_bonds_reset :: LastBondsReset , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "LastBondsReset" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [230u8 , 104u8 , 27u8 , 159u8 , 209u8 , 43u8 , 222u8 , 155u8 , 59u8 , 17u8 , 42u8 , 47u8 , 125u8 , 70u8 , 253u8 , 179u8 , 223u8 , 11u8 , 194u8 , 47u8 , 241u8 , 26u8 , 34u8 , 5u8 , 121u8 , 155u8 , 20u8 , 5u8 , 168u8 , 127u8 , 146u8 , 197u8 ,]) } pub fn revealed_commitments_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: revealed_commitments :: RevealedCommitments , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "RevealedCommitments" , () , [42u8 , 255u8 , 184u8 , 105u8 , 204u8 , 126u8 , 154u8 , 137u8 , 139u8 , 244u8 , 34u8 , 242u8 , 35u8 , 207u8 , 184u8 , 108u8 , 246u8 , 85u8 , 35u8 , 126u8 , 93u8 , 74u8 , 57u8 , 19u8 , 162u8 , 121u8 , 129u8 , 161u8 , 222u8 , 44u8 , 68u8 , 216u8 ,]) } pub fn revealed_commitments_iter1 (& self , _0 : types :: revealed_commitments :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: revealed_commitments :: Param0 > , types :: revealed_commitments :: RevealedCommitments , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "RevealedCommitments" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [42u8 , 255u8 , 184u8 , 105u8 , 204u8 , 126u8 , 154u8 , 137u8 , 139u8 , 244u8 , 34u8 , 242u8 , 35u8 , 207u8 , 184u8 , 108u8 , 246u8 , 85u8 , 35u8 , 126u8 , 93u8 , 74u8 , 57u8 , 19u8 , 162u8 , 121u8 , 129u8 , 161u8 , 222u8 , 44u8 , 68u8 , 216u8 ,]) } pub fn revealed_commitments (& self , _0 : types :: revealed_commitments :: Param0 , _1 : types :: revealed_commitments :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: revealed_commitments :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: revealed_commitments :: Param1 > ,) , types :: revealed_commitments :: RevealedCommitments , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "RevealedCommitments" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [42u8 , 255u8 , 184u8 , 105u8 , 204u8 , 126u8 , 154u8 , 137u8 , 139u8 , 244u8 , 34u8 , 242u8 , 35u8 , 207u8 , 184u8 , 108u8 , 246u8 , 85u8 , 35u8 , 126u8 , 93u8 , 74u8 , 57u8 , 19u8 , 162u8 , 121u8 , 129u8 , 161u8 , 222u8 , 44u8 , 68u8 , 216u8 ,]) } # [doc = " Maps (netuid, who) -> usage (how many “bytes” they've committed)"] # [doc = " in the RateLimit window"] pub fn used_space_of_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: used_space_of :: UsedSpaceOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "UsedSpaceOf" , () , [100u8 , 116u8 , 27u8 , 191u8 , 62u8 , 105u8 , 40u8 , 216u8 , 36u8 , 105u8 , 78u8 , 189u8 , 22u8 , 31u8 , 100u8 , 1u8 , 54u8 , 124u8 , 110u8 , 233u8 , 6u8 , 6u8 , 52u8 , 2u8 , 204u8 , 236u8 , 92u8 , 255u8 , 219u8 , 132u8 , 186u8 , 128u8 ,]) } # [doc = " Maps (netuid, who) -> usage (how many “bytes” they've committed)"] # [doc = " in the RateLimit window"] pub fn used_space_of_iter1 (& self , _0 : types :: used_space_of :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: used_space_of :: Param0 > , types :: used_space_of :: UsedSpaceOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "UsedSpaceOf" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [100u8 , 116u8 , 27u8 , 191u8 , 62u8 , 105u8 , 40u8 , 216u8 , 36u8 , 105u8 , 78u8 , 189u8 , 22u8 , 31u8 , 100u8 , 1u8 , 54u8 , 124u8 , 110u8 , 233u8 , 6u8 , 6u8 , 52u8 , 2u8 , 204u8 , 236u8 , 92u8 , 255u8 , 219u8 , 132u8 , 186u8 , 128u8 ,]) } # [doc = " Maps (netuid, who) -> usage (how many “bytes” they've committed)"] # [doc = " in the RateLimit window"] pub fn used_space_of (& self , _0 : types :: used_space_of :: Param0 , _1 : types :: used_space_of :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: used_space_of :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: used_space_of :: Param1 > ,) , types :: used_space_of :: UsedSpaceOf , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "UsedSpaceOf" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [100u8 , 116u8 , 27u8 , 191u8 , 62u8 , 105u8 , 40u8 , 216u8 , 36u8 , 105u8 , 78u8 , 189u8 , 22u8 , 31u8 , 100u8 , 1u8 , 54u8 , 124u8 , 110u8 , 233u8 , 6u8 , 6u8 , 52u8 , 2u8 , 204u8 , 236u8 , 92u8 , 255u8 , 219u8 , 132u8 , 186u8 , 128u8 ,]) } pub fn max_space (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_space :: MaxSpace , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "MaxSpace" , () , [153u8 , 157u8 , 81u8 , 225u8 , 81u8 , 180u8 , 65u8 , 209u8 , 198u8 , 34u8 , 33u8 , 195u8 , 131u8 , 124u8 , 137u8 , 204u8 , 135u8 , 133u8 , 130u8 , 171u8 , 241u8 , 244u8 , 101u8 , 235u8 , 247u8 , 212u8 , 181u8 , 219u8 , 95u8 , 230u8 , 145u8 , 135u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The maximum number of additional fields that can be added to a commitment"] pub fn max_fields (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Commitments" , "MaxFields" , [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 ,]) } # [doc = " The amount held on deposit for a registered identity"] pub fn initial_deposit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Commitments" , "InitialDeposit" , [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 ,]) } # [doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Commitments" , "FieldDeposit" , [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 admin_utils { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_admin_utils :: pallet :: Error ; # [doc = "Dispatchable functions allows users to interact with the pallet and invoke state changes."] pub type Call = runtime_types :: pallet_admin_utils :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the new authorities for Aura consensus."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Aura pallet to change the authorities."] pub struct SwapAuthorities { pub new_authorities : swap_authorities :: NewAuthorities , } pub mod swap_authorities { use super :: runtime_types ; pub type NewAuthorities = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SwapAuthorities { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "swap_authorities" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the default take for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the default take."] pub struct SudoSetDefaultTake { pub default_take : sudo_set_default_take :: DefaultTake , } pub mod sudo_set_default_take { use super :: runtime_types ; pub type DefaultTake = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetDefaultTake { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_default_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the transaction rate limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the transaction rate limit."] pub struct SudoSetTxRateLimit { pub tx_rate_limit : sudo_set_tx_rate_limit :: TxRateLimit , } pub mod sudo_set_tx_rate_limit { use super :: runtime_types ; pub type TxRateLimit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTxRateLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_tx_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the serving rate limit for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the serving rate limit."] pub struct SudoSetServingRateLimit { pub netuid : sudo_set_serving_rate_limit :: Netuid , pub serving_rate_limit : sudo_set_serving_rate_limit :: ServingRateLimit , } pub mod sudo_set_serving_rate_limit { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type ServingRateLimit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetServingRateLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_serving_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the minimum difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum difficulty."] pub struct SudoSetMinDifficulty { pub netuid : sudo_set_min_difficulty :: Netuid , pub min_difficulty : sudo_set_min_difficulty :: MinDifficulty , } pub mod sudo_set_min_difficulty { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MinDifficulty = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinDifficulty { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_min_difficulty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the maximum difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum difficulty."] pub struct SudoSetMaxDifficulty { pub netuid : sudo_set_max_difficulty :: Netuid , pub max_difficulty : sudo_set_max_difficulty :: MaxDifficulty , } pub mod sudo_set_max_difficulty { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaxDifficulty = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMaxDifficulty { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_max_difficulty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the weights version key for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights version key."] pub struct SudoSetWeightsVersionKey { pub netuid : sudo_set_weights_version_key :: Netuid , pub weights_version_key : sudo_set_weights_version_key :: WeightsVersionKey , } pub mod sudo_set_weights_version_key { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type WeightsVersionKey = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetWeightsVersionKey { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_weights_version_key" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the weights set rate limit for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights set rate limit."] pub struct SudoSetWeightsSetRateLimit { pub netuid : sudo_set_weights_set_rate_limit :: Netuid , pub weights_set_rate_limit : sudo_set_weights_set_rate_limit :: WeightsSetRateLimit , } pub mod sudo_set_weights_set_rate_limit { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type WeightsSetRateLimit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetWeightsSetRateLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_weights_set_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the adjustment interval for a subnet."] # [doc = "It is only callable by the root account, not changeable by the subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the adjustment interval."] pub struct SudoSetAdjustmentInterval { pub netuid : sudo_set_adjustment_interval :: Netuid , pub adjustment_interval : sudo_set_adjustment_interval :: AdjustmentInterval , } pub mod sudo_set_adjustment_interval { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type AdjustmentInterval = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetAdjustmentInterval { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_adjustment_interval" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the adjustment alpha for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the adjustment alpha."] pub struct SudoSetAdjustmentAlpha { pub netuid : sudo_set_adjustment_alpha :: Netuid , pub adjustment_alpha : sudo_set_adjustment_alpha :: AdjustmentAlpha , } pub mod sudo_set_adjustment_alpha { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type AdjustmentAlpha = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetAdjustmentAlpha { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_adjustment_alpha" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the immunity period for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the immunity period."] pub struct SudoSetImmunityPeriod { pub netuid : sudo_set_immunity_period :: Netuid , pub immunity_period : sudo_set_immunity_period :: ImmunityPeriod , } pub mod sudo_set_immunity_period { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type ImmunityPeriod = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetImmunityPeriod { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_immunity_period" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the minimum allowed weights for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum allowed weights."] pub struct SudoSetMinAllowedWeights { pub netuid : sudo_set_min_allowed_weights :: Netuid , pub min_allowed_weights : sudo_set_min_allowed_weights :: MinAllowedWeights , } pub mod sudo_set_min_allowed_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MinAllowedWeights = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinAllowedWeights { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_min_allowed_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the maximum allowed UIDs for a subnet."] # [doc = "It is only callable by the root account and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum allowed UIDs for a subnet."] pub struct SudoSetMaxAllowedUids { pub netuid : sudo_set_max_allowed_uids :: Netuid , pub max_allowed_uids : sudo_set_max_allowed_uids :: MaxAllowedUids , } pub mod sudo_set_max_allowed_uids { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaxAllowedUids = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMaxAllowedUids { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_max_allowed_uids" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the kappa for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the kappa."] pub struct SudoSetKappa { pub netuid : sudo_set_kappa :: Netuid , pub kappa : sudo_set_kappa :: Kappa , } pub mod sudo_set_kappa { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Kappa = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetKappa { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_kappa" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the rho for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the rho."] pub struct SudoSetRho { pub netuid : sudo_set_rho :: Netuid , pub rho : sudo_set_rho :: Rho , } pub mod sudo_set_rho { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Rho = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetRho { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_rho" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the activity cutoff for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the activity cutoff."] pub struct SudoSetActivityCutoff { pub netuid : sudo_set_activity_cutoff :: Netuid , pub activity_cutoff : sudo_set_activity_cutoff :: ActivityCutoff , } pub mod sudo_set_activity_cutoff { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type ActivityCutoff = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetActivityCutoff { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_activity_cutoff" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the network registration allowed for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the network registration allowed."] pub struct SudoSetNetworkRegistrationAllowed { pub netuid : sudo_set_network_registration_allowed :: Netuid , pub registration_allowed : sudo_set_network_registration_allowed :: RegistrationAllowed , } pub mod sudo_set_network_registration_allowed { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type RegistrationAllowed = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNetworkRegistrationAllowed { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_network_registration_allowed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the network PoW registration allowed for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the network PoW registration allowed."] pub struct SudoSetNetworkPowRegistrationAllowed { pub netuid : sudo_set_network_pow_registration_allowed :: Netuid , pub registration_allowed : sudo_set_network_pow_registration_allowed :: RegistrationAllowed , } pub mod sudo_set_network_pow_registration_allowed { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type RegistrationAllowed = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNetworkPowRegistrationAllowed { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_network_pow_registration_allowed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the target registrations per interval for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the target registrations per interval."] pub struct SudoSetTargetRegistrationsPerInterval { pub netuid : sudo_set_target_registrations_per_interval :: Netuid , pub target_registrations_per_interval : sudo_set_target_registrations_per_interval :: TargetRegistrationsPerInterval , } pub mod sudo_set_target_registrations_per_interval { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type TargetRegistrationsPerInterval = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTargetRegistrationsPerInterval { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_target_registrations_per_interval" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the minimum burn for a subnet."] # [doc = "It is only callable by root and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum burn."] pub struct SudoSetMinBurn { pub netuid : sudo_set_min_burn :: Netuid , pub min_burn : sudo_set_min_burn :: MinBurn , } pub mod sudo_set_min_burn { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MinBurn = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinBurn { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_min_burn" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the maximum burn for a subnet."] # [doc = "It is only callable by root and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum burn."] pub struct SudoSetMaxBurn { pub netuid : sudo_set_max_burn :: Netuid , pub max_burn : sudo_set_max_burn :: MaxBurn , } pub mod sudo_set_max_burn { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaxBurn = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMaxBurn { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_max_burn" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the difficulty."] pub struct SudoSetDifficulty { pub netuid : sudo_set_difficulty :: Netuid , pub difficulty : sudo_set_difficulty :: Difficulty , } pub mod sudo_set_difficulty { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Difficulty = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetDifficulty { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_difficulty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the maximum allowed validators for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum allowed validators."] pub struct SudoSetMaxAllowedValidators { pub netuid : sudo_set_max_allowed_validators :: Netuid , pub max_allowed_validators : sudo_set_max_allowed_validators :: MaxAllowedValidators , } pub mod sudo_set_max_allowed_validators { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaxAllowedValidators = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMaxAllowedValidators { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_max_allowed_validators" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the bonds moving average for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the bonds moving average."] pub struct SudoSetBondsMovingAverage { pub netuid : sudo_set_bonds_moving_average :: Netuid , pub bonds_moving_average : sudo_set_bonds_moving_average :: BondsMovingAverage , } pub mod sudo_set_bonds_moving_average { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type BondsMovingAverage = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetBondsMovingAverage { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_bonds_moving_average" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the bonds penalty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the bonds penalty."] pub struct SudoSetBondsPenalty { pub netuid : sudo_set_bonds_penalty :: Netuid , pub bonds_penalty : sudo_set_bonds_penalty :: BondsPenalty , } pub mod sudo_set_bonds_penalty { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type BondsPenalty = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetBondsPenalty { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_bonds_penalty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the maximum registrations per block for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum registrations per block."] pub struct SudoSetMaxRegistrationsPerBlock { pub netuid : sudo_set_max_registrations_per_block :: Netuid , pub max_registrations_per_block : sudo_set_max_registrations_per_block :: MaxRegistrationsPerBlock , } pub mod sudo_set_max_registrations_per_block { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaxRegistrationsPerBlock = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMaxRegistrationsPerBlock { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_max_registrations_per_block" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the subnet owner cut for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the subnet owner cut."] pub struct SudoSetSubnetOwnerCut { pub subnet_owner_cut : sudo_set_subnet_owner_cut :: SubnetOwnerCut , } pub mod sudo_set_subnet_owner_cut { use super :: runtime_types ; pub type SubnetOwnerCut = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetSubnetOwnerCut { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_subnet_owner_cut" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the network rate limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the network rate limit."] pub struct SudoSetNetworkRateLimit { pub rate_limit : sudo_set_network_rate_limit :: RateLimit , } pub mod sudo_set_network_rate_limit { use super :: runtime_types ; pub type RateLimit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNetworkRateLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_network_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the tempo for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the tempo."] pub struct SudoSetTempo { pub netuid : sudo_set_tempo :: Netuid , pub tempo : sudo_set_tempo :: Tempo , } pub mod sudo_set_tempo { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Tempo = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTempo { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_tempo" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the total issuance for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the issuance for the network."] pub struct SudoSetTotalIssuance { pub total_issuance : sudo_set_total_issuance :: TotalIssuance , } pub mod sudo_set_total_issuance { use super :: runtime_types ; pub type TotalIssuance = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTotalIssuance { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_total_issuance" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the immunity period for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the immunity period for the network."] pub struct SudoSetNetworkImmunityPeriod { pub immunity_period : sudo_set_network_immunity_period :: ImmunityPeriod , } pub mod sudo_set_network_immunity_period { use super :: runtime_types ; pub type ImmunityPeriod = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNetworkImmunityPeriod { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_network_immunity_period" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the min lock cost for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the min lock cost for the network."] pub struct SudoSetNetworkMinLockCost { pub lock_cost : sudo_set_network_min_lock_cost :: LockCost , } pub mod sudo_set_network_min_lock_cost { use super :: runtime_types ; pub type LockCost = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNetworkMinLockCost { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_network_min_lock_cost" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the subnet limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the subnet limit."] pub struct SudoSetSubnetLimit { pub max_subnets : sudo_set_subnet_limit :: MaxSubnets , } pub mod sudo_set_subnet_limit { use super :: runtime_types ; pub type MaxSubnets = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetSubnetLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_subnet_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the lock reduction interval for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the lock reduction interval."] pub struct SudoSetLockReductionInterval { pub interval : sudo_set_lock_reduction_interval :: Interval , } pub mod sudo_set_lock_reduction_interval { use super :: runtime_types ; pub type Interval = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetLockReductionInterval { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_lock_reduction_interval" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the recycled RAO for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the recycled RAO."] pub struct SudoSetRaoRecycled { pub netuid : sudo_set_rao_recycled :: Netuid , pub rao_recycled : sudo_set_rao_recycled :: RaoRecycled , } pub mod sudo_set_rao_recycled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type RaoRecycled = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetRaoRecycled { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_rao_recycled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the weights min stake."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights min stake."] pub struct SudoSetStakeThreshold { pub min_stake : sudo_set_stake_threshold :: MinStake , } pub mod sudo_set_stake_threshold { use super :: runtime_types ; pub type MinStake = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetStakeThreshold { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_stake_threshold" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the minimum stake required for nominators."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum stake required for nominators."] pub struct SudoSetNominatorMinRequiredStake { pub min_stake : sudo_set_nominator_min_required_stake :: MinStake , } pub mod sudo_set_nominator_min_required_stake { use super :: runtime_types ; pub type MinStake = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNominatorMinRequiredStake { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_nominator_min_required_stake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the rate limit for delegate take transactions."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the rate limit for delegate take transactions."] pub struct SudoSetTxDelegateTakeRateLimit { pub tx_rate_limit : sudo_set_tx_delegate_take_rate_limit :: TxRateLimit , } pub mod sudo_set_tx_delegate_take_rate_limit { use super :: runtime_types ; pub type TxRateLimit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTxDelegateTakeRateLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_tx_delegate_take_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the minimum delegate take."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum delegate take."] pub struct SudoSetMinDelegateTake { pub take : sudo_set_min_delegate_take :: Take , } pub mod sudo_set_min_delegate_take { use super :: runtime_types ; pub type Take = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinDelegateTake { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_min_delegate_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic enabled/disables commit/reaveal for a given subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the value."] pub struct SudoSetCommitRevealWeightsEnabled { pub netuid : sudo_set_commit_reveal_weights_enabled :: Netuid , pub enabled : sudo_set_commit_reveal_weights_enabled :: Enabled , } pub mod sudo_set_commit_reveal_weights_enabled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetCommitRevealWeightsEnabled { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_commit_reveal_weights_enabled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enables or disables Liquid Alpha for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Liquid Alpha."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub struct SudoSetLiquidAlphaEnabled { pub netuid : sudo_set_liquid_alpha_enabled :: Netuid , pub enabled : sudo_set_liquid_alpha_enabled :: Enabled , } pub mod sudo_set_liquid_alpha_enabled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetLiquidAlphaEnabled { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_liquid_alpha_enabled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets values for liquid alpha"] pub struct SudoSetAlphaValues { pub netuid : sudo_set_alpha_values :: Netuid , pub alpha_low : sudo_set_alpha_values :: AlphaLow , pub alpha_high : sudo_set_alpha_values :: AlphaHigh , } pub mod sudo_set_alpha_values { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type AlphaLow = :: core :: primitive :: u16 ; pub type AlphaHigh = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetAlphaValues { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_alpha_values" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the duration of the coldkey swap schedule."] # [doc = ""] # [doc = "This extrinsic allows the root account to set the duration for the coldkey swap schedule."] # [doc = "The coldkey swap schedule determines how long it takes for a coldkey swap operation to complete."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `duration` - The new duration for the coldkey swap schedule, in number of blocks."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetColdkeySwapScheduleDuration { pub duration : sudo_set_coldkey_swap_schedule_duration :: Duration , } pub mod sudo_set_coldkey_swap_schedule_duration { use super :: runtime_types ; pub type Duration = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetColdkeySwapScheduleDuration { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_coldkey_swap_schedule_duration" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the duration of the dissolve network schedule."] # [doc = ""] # [doc = "This extrinsic allows the root account to set the duration for the dissolve network schedule."] # [doc = "The dissolve network schedule determines how long it takes for a network dissolution operation to complete."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `duration` - The new duration for the dissolve network schedule, in number of blocks."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetDissolveNetworkScheduleDuration { pub duration : sudo_set_dissolve_network_schedule_duration :: Duration , } pub mod sudo_set_dissolve_network_schedule_duration { use super :: runtime_types ; pub type Duration = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetDissolveNetworkScheduleDuration { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_dissolve_network_schedule_duration" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the commit-reveal weights periods for a specific subnet."] # [doc = ""] # [doc = "This extrinsic allows the subnet owner or root account to set the duration (in epochs) during which committed weights must be revealed."] # [doc = "The commit-reveal mechanism ensures that users commit weights in advance and reveal them only within a specified period."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or the root account."] # [doc = "* `netuid` - The unique identifier of the subnet for which the periods are being set."] # [doc = "* `periods` - The number of epochs that define the commit-reveal period."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is neither the subnet owner nor the root account."] # [doc = "* `SubnetDoesNotExist` - If the specified subnet does not exist."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetCommitRevealWeightsInterval { pub netuid : sudo_set_commit_reveal_weights_interval :: Netuid , pub interval : sudo_set_commit_reveal_weights_interval :: Interval , } pub mod sudo_set_commit_reveal_weights_interval { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Interval = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetCommitRevealWeightsInterval { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_commit_reveal_weights_interval" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the EVM ChainID."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or the root account."] # [doc = "* `chainId` - The u64 chain ID"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is neither the subnet owner nor the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetEvmChainId { pub chain_id : sudo_set_evm_chain_id :: ChainId , } pub mod sudo_set_evm_chain_id { use super :: runtime_types ; pub type ChainId = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetEvmChainId { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_evm_chain_id" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A public interface for `pallet_grandpa::Pallet::schedule_grandpa_change`."] # [doc = ""] # [doc = "Schedule a change in the authorities."] # [doc = ""] # [doc = "The change will be applied at the end of execution of the block `in_blocks` after the"] # [doc = "current block. This value may be 0, in which case the change is applied at the end of"] # [doc = "the current block."] # [doc = ""] # [doc = "If the `forced` parameter is defined, this indicates that the current set has been"] # [doc = "synchronously determined to be offline and that after `in_blocks` the given change"] # [doc = "should be applied. The given block number indicates the median last finalized block"] # [doc = "number and it should be used as the canon block when starting the new grandpa voter."] # [doc = ""] # [doc = "No change should be signaled while any change is pending. Returns an error if a change"] # [doc = "is already pending."] pub struct ScheduleGrandpaChange { pub next_authorities : schedule_grandpa_change :: NextAuthorities , pub in_blocks : schedule_grandpa_change :: InBlocks , pub forced : schedule_grandpa_change :: Forced , } pub mod schedule_grandpa_change { use super :: runtime_types ; pub type NextAuthorities = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > ; pub type InBlocks = :: core :: primitive :: u32 ; pub type Forced = :: core :: option :: Option < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleGrandpaChange { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "schedule_grandpa_change" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enable or disable atomic alpha transfers for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Liquid Alpha."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub struct SudoSetToggleTransfer { pub netuid : sudo_set_toggle_transfer :: Netuid , pub toggle : sudo_set_toggle_transfer :: Toggle , } pub mod sudo_set_toggle_transfer { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Toggle = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetToggleTransfer { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_toggle_transfer" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the behaviour of the \"burn\" UID(s) for a given subnet."] # [doc = "If set to `Burn`, the miner emission sent to the burn UID(s) will be burned."] # [doc = "If set to `Recycle`, the miner emission sent to the burn UID(s) will be recycled."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `recycle_or_burn`: The desired behaviour of the \"burn\" UID(s) for the subnet."] # [doc = ""] pub struct SudoSetRecycleOrBurn { pub netuid : sudo_set_recycle_or_burn :: Netuid , pub recycle_or_burn : sudo_set_recycle_or_burn :: RecycleOrBurn , } pub mod sudo_set_recycle_or_burn { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type RecycleOrBurn = runtime_types :: pallet_subtensor :: pallet :: RecycleOrBurnEnum ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetRecycleOrBurn { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_recycle_or_burn" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Toggles the enablement of an EVM precompile."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `precompile_id` - The identifier of the EVM precompile to toggle."] # [doc = "* `enabled` - The new enablement state of the precompile."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoToggleEvmPrecompile { pub precompile_id : sudo_toggle_evm_precompile :: PrecompileId , pub enabled : sudo_toggle_evm_precompile :: Enabled , } pub mod sudo_toggle_evm_precompile { use super :: runtime_types ; pub type PrecompileId = runtime_types :: pallet_admin_utils :: pallet :: PrecompileEnum ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoToggleEvmPrecompile { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_toggle_evm_precompile" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `alpha` - The new moving alpha value for the SubnetMovingAlpha."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetSubnetMovingAlpha { pub alpha : sudo_set_subnet_moving_alpha :: Alpha , } pub mod sudo_set_subnet_moving_alpha { use super :: runtime_types ; pub type Alpha = runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetSubnetMovingAlpha { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_subnet_moving_alpha" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Change the SubnetOwnerHotkey for a given subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner."] # [doc = "* `netuid` - The unique identifier for the subnet."] # [doc = "* `hotkey` - The new hotkey for the subnet owner."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the subnet owner or root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetSubnetOwnerHotkey { pub netuid : sudo_set_subnet_owner_hotkey :: Netuid , pub hotkey : sudo_set_subnet_owner_hotkey :: Hotkey , } pub mod sudo_set_subnet_owner_hotkey { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetSubnetOwnerHotkey { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_subnet_owner_hotkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `ema_alpha_period` - Number of blocks for EMA price to halve"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetEmaPriceHalvingPeriod { pub netuid : sudo_set_ema_price_halving_period :: Netuid , pub ema_halving : sudo_set_ema_price_halving_period :: EmaHalving , } pub mod sudo_set_ema_price_halving_period { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type EmaHalving = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetEmaPriceHalvingPeriod { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_ema_price_halving_period" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `netuid` - The unique identifier for the subnet."] # [doc = "* `steepness` - The Steepness for the alpha sigmoid function. (range is 0-int16::MAX,"] # [doc = "negative values are reserved for future use)"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = "* `SubnetDoesNotExist` - If the specified subnet does not exist."] # [doc = "* `NegativeSigmoidSteepness` - If the steepness is negative and the caller is"] # [doc = "root."] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetAlphaSigmoidSteepness { pub netuid : sudo_set_alpha_sigmoid_steepness :: Netuid , pub steepness : sudo_set_alpha_sigmoid_steepness :: Steepness , } pub mod sudo_set_alpha_sigmoid_steepness { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Steepness = :: core :: primitive :: i16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetAlphaSigmoidSteepness { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_alpha_sigmoid_steepness" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enables or disables Yuma3 for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Yuma3."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub struct SudoSetYuma3Enabled { pub netuid : sudo_set_yuma3_enabled :: Netuid , pub enabled : sudo_set_yuma3_enabled :: Enabled , } pub mod sudo_set_yuma3_enabled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetYuma3Enabled { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_yuma3_enabled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enables or disables Bonds Reset for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Bonds Reset."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub struct SudoSetBondsResetEnabled { pub netuid : sudo_set_bonds_reset_enabled :: Netuid , pub enabled : sudo_set_bonds_reset_enabled :: Enabled , } pub mod sudo_set_bonds_reset_enabled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetBondsResetEnabled { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_bonds_reset_enabled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets or updates the hotkey account associated with the owner of a specific subnet."] # [doc = ""] # [doc = "This function allows either the root origin or the current subnet owner to set or update"] # [doc = "the hotkey for a given subnet. The subnet must already exist. To prevent abuse, the call is"] # [doc = "rate-limited to once per configured interval (default: one week) per subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The dispatch origin of the call. Must be either root or the current owner of the subnet."] # [doc = "- `netuid`: The unique identifier of the subnet whose owner hotkey is being set."] # [doc = "- `hotkey`: The new hotkey account to associate with the subnet owner."] # [doc = ""] # [doc = "# Returns"] # [doc = "- `DispatchResult`: Returns `Ok(())` if the hotkey was successfully set, or an appropriate error otherwise."] # [doc = ""] # [doc = "# Errors"] # [doc = "- `Error::SubnetNotExists`: If the specified subnet does not exist."] # [doc = "- `Error::TxRateLimitExceeded`: If the function is called more frequently than the allowed rate limit."] # [doc = ""] # [doc = "# Access Control"] # [doc = "Only callable by:"] # [doc = "- Root origin, or"] # [doc = "- The coldkey account that owns the subnet."] # [doc = ""] # [doc = "# Storage"] # [doc = "- Updates [`SubnetOwnerHotkey`] for the given `netuid`."] # [doc = "- Reads and updates [`LastRateLimitedBlock`] for rate-limiting."] # [doc = "- Reads [`DefaultSetSNOwnerHotkeyRateLimit`] to determine the interval between allowed updates."] # [doc = ""] # [doc = "# Rate Limiting"] # [doc = "This function is rate-limited to one call per subnet per interval (e.g., one week)."] pub struct SudoSetSnOwnerHotkey { pub netuid : sudo_set_sn_owner_hotkey :: Netuid , pub hotkey : sudo_set_sn_owner_hotkey :: Hotkey , } pub mod sudo_set_sn_owner_hotkey { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetSnOwnerHotkey { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_sn_owner_hotkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enables or disables subtoken trading for a given subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `netuid` - The unique identifier of the subnet."] # [doc = "* `subtoken_enabled` - A boolean indicating whether subtoken trading should be enabled or disabled."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetSubtokenEnabled { pub netuid : sudo_set_subtoken_enabled :: Netuid , pub subtoken_enabled : sudo_set_subtoken_enabled :: SubtokenEnabled , } pub mod sudo_set_subtoken_enabled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type SubtokenEnabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetSubtokenEnabled { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_subtoken_enabled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the commit-reveal weights version for all subnets"] pub struct SudoSetCommitRevealVersion { pub version : sudo_set_commit_reveal_version :: Version , } pub mod sudo_set_commit_reveal_version { use super :: runtime_types ; pub type Version = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetCommitRevealVersion { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_commit_reveal_version" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the number of immune owner neurons"] pub struct SudoSetOwnerImmuneNeuronLimit { pub netuid : sudo_set_owner_immune_neuron_limit :: Netuid , pub immune_neurons : sudo_set_owner_immune_neuron_limit :: ImmuneNeurons , } pub mod sudo_set_owner_immune_neuron_limit { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type ImmuneNeurons = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetOwnerImmuneNeuronLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_owner_immune_neuron_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the childkey burn for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the childkey burn."] pub struct SudoSetCkBurn { pub burn : sudo_set_ck_burn :: Burn , } pub mod sudo_set_ck_burn { use super :: runtime_types ; pub type Burn = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetCkBurn { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_ck_burn" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the admin freeze window length (in blocks) at the end of a tempo."] # [doc = "Only callable by root."] pub struct SudoSetAdminFreezeWindow { pub window : sudo_set_admin_freeze_window :: Window , } pub mod sudo_set_admin_freeze_window { use super :: runtime_types ; pub type Window = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetAdminFreezeWindow { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_admin_freeze_window" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the owner hyperparameter rate limit in epochs (global multiplier)."] # [doc = "Only callable by root."] pub struct SudoSetOwnerHparamRateLimit { pub epochs : sudo_set_owner_hparam_rate_limit :: Epochs , } pub mod sudo_set_owner_hparam_rate_limit { use super :: runtime_types ; pub type Epochs = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetOwnerHparamRateLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_owner_hparam_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the desired number of mechanisms in a subnet"] pub struct SudoSetMechanismCount { pub netuid : sudo_set_mechanism_count :: Netuid , pub mechanism_count : sudo_set_mechanism_count :: MechanismCount , } pub mod sudo_set_mechanism_count { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MechanismCount = :: core :: primitive :: u8 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMechanismCount { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_mechanism_count" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the emission split between mechanisms in a subnet"] pub struct SudoSetMechanismEmissionSplit { pub netuid : sudo_set_mechanism_emission_split :: Netuid , pub maybe_split : sudo_set_mechanism_emission_split :: MaybeSplit , } pub mod sudo_set_mechanism_emission_split { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaybeSplit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMechanismEmissionSplit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_mechanism_emission_split" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Trims the maximum number of UIDs for a subnet."] # [doc = ""] # [doc = "The trimming is done by sorting the UIDs by emission descending and then trimming"] # [doc = "the lowest emitters while preserving temporally and owner immune UIDs. The UIDs are"] # [doc = "then compressed to the left and storage is migrated to the new compressed UIDs."] pub struct SudoTrimToMaxAllowedUids { pub netuid : sudo_trim_to_max_allowed_uids :: Netuid , pub max_n : sudo_trim_to_max_allowed_uids :: MaxN , } pub mod sudo_trim_to_max_allowed_uids { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaxN = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoTrimToMaxAllowedUids { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_trim_to_max_allowed_uids" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the minimum allowed UIDs for a subnet."] # [doc = "It is only callable by the root account."] pub struct SudoSetMinAllowedUids { pub netuid : sudo_set_min_allowed_uids :: Netuid , pub min_allowed_uids : sudo_set_min_allowed_uids :: MinAllowedUids , } pub mod sudo_set_min_allowed_uids { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MinAllowedUids = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinAllowedUids { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_min_allowed_uids" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets TAO flow cutoff value (A)"] pub struct SudoSetTaoFlowCutoff { pub flow_cutoff : sudo_set_tao_flow_cutoff :: FlowCutoff , } pub mod sudo_set_tao_flow_cutoff { use super :: runtime_types ; pub type FlowCutoff = runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTaoFlowCutoff { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_tao_flow_cutoff" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets TAO flow normalization exponent (p)"] pub struct SudoSetTaoFlowNormalizationExponent { pub exponent : sudo_set_tao_flow_normalization_exponent :: Exponent , } pub mod sudo_set_tao_flow_normalization_exponent { use super :: runtime_types ; pub type Exponent = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTaoFlowNormalizationExponent { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_tao_flow_normalization_exponent" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets TAO flow smoothing factor (alpha)"] pub struct SudoSetTaoFlowSmoothingFactor { pub smoothing_factor : sudo_set_tao_flow_smoothing_factor :: SmoothingFactor , } pub mod sudo_set_tao_flow_smoothing_factor { use super :: runtime_types ; pub type SmoothingFactor = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTaoFlowSmoothingFactor { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_tao_flow_smoothing_factor" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the minimum number of non-immortal & non-immune UIDs that must remain in a subnet"] pub struct SudoSetMinNonImmuneUids { pub netuid : sudo_set_min_non_immune_uids :: Netuid , pub min : sudo_set_min_non_immune_uids :: Min , } pub mod sudo_set_min_non_immune_uids { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Min = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinNonImmuneUids { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_min_non_immune_uids" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "The extrinsic sets the new authorities for Aura consensus."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Aura pallet to change the authorities."] pub fn swap_authorities (& self , new_authorities : types :: swap_authorities :: NewAuthorities ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SwapAuthorities > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "swap_authorities" , types :: SwapAuthorities { new_authorities , } , [209u8 , 171u8 , 135u8 , 198u8 , 103u8 , 209u8 , 217u8 , 32u8 , 125u8 , 109u8 , 206u8 , 190u8 , 252u8 , 34u8 , 107u8 , 31u8 , 127u8 , 174u8 , 86u8 , 139u8 , 78u8 , 100u8 , 198u8 , 247u8 , 176u8 , 163u8 , 14u8 , 21u8 , 222u8 , 21u8 , 184u8 , 145u8 ,]) } # [doc = "The extrinsic sets the default take for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the default take."] pub fn sudo_set_default_take (& self , default_take : types :: sudo_set_default_take :: DefaultTake ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetDefaultTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_default_take" , types :: SudoSetDefaultTake { default_take , } , [20u8 , 46u8 , 121u8 , 192u8 , 232u8 , 72u8 , 1u8 , 150u8 , 114u8 , 185u8 , 165u8 , 156u8 , 92u8 , 214u8 , 142u8 , 98u8 , 119u8 , 133u8 , 26u8 , 226u8 , 76u8 , 209u8 , 95u8 , 186u8 , 147u8 , 191u8 , 164u8 , 248u8 , 6u8 , 65u8 , 64u8 , 191u8 ,]) } # [doc = "The extrinsic sets the transaction rate limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the transaction rate limit."] pub fn sudo_set_tx_rate_limit (& self , tx_rate_limit : types :: sudo_set_tx_rate_limit :: TxRateLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTxRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_tx_rate_limit" , types :: SudoSetTxRateLimit { tx_rate_limit , } , [199u8 , 37u8 , 33u8 , 84u8 , 249u8 , 149u8 , 136u8 , 131u8 , 137u8 , 100u8 , 230u8 , 52u8 , 9u8 , 112u8 , 245u8 , 250u8 , 51u8 , 181u8 , 76u8 , 192u8 , 150u8 , 249u8 , 128u8 , 232u8 , 52u8 , 41u8 , 177u8 , 114u8 , 8u8 , 44u8 , 255u8 , 119u8 ,]) } # [doc = "The extrinsic sets the serving rate limit for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the serving rate limit."] pub fn sudo_set_serving_rate_limit (& self , netuid : types :: sudo_set_serving_rate_limit :: Netuid , serving_rate_limit : types :: sudo_set_serving_rate_limit :: ServingRateLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetServingRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_serving_rate_limit" , types :: SudoSetServingRateLimit { netuid , serving_rate_limit , } , [29u8 , 43u8 , 79u8 , 187u8 , 65u8 , 190u8 , 80u8 , 41u8 , 51u8 , 255u8 , 205u8 , 47u8 , 189u8 , 13u8 , 45u8 , 255u8 , 79u8 , 95u8 , 48u8 , 153u8 , 218u8 , 18u8 , 241u8 , 248u8 , 37u8 , 94u8 , 29u8 , 229u8 , 130u8 , 34u8 , 253u8 , 125u8 ,]) } # [doc = "The extrinsic sets the minimum difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum difficulty."] pub fn sudo_set_min_difficulty (& self , netuid : types :: sudo_set_min_difficulty :: Netuid , min_difficulty : types :: sudo_set_min_difficulty :: MinDifficulty ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinDifficulty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_min_difficulty" , types :: SudoSetMinDifficulty { netuid , min_difficulty , } , [36u8 , 75u8 , 246u8 , 131u8 , 174u8 , 93u8 , 25u8 , 154u8 , 144u8 , 125u8 , 6u8 , 202u8 , 103u8 , 77u8 , 88u8 , 189u8 , 148u8 , 125u8 , 184u8 , 103u8 , 96u8 , 147u8 , 96u8 , 203u8 , 109u8 , 122u8 , 21u8 , 164u8 , 46u8 , 51u8 , 234u8 , 3u8 ,]) } # [doc = "The extrinsic sets the maximum difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum difficulty."] pub fn sudo_set_max_difficulty (& self , netuid : types :: sudo_set_max_difficulty :: Netuid , max_difficulty : types :: sudo_set_max_difficulty :: MaxDifficulty ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMaxDifficulty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_max_difficulty" , types :: SudoSetMaxDifficulty { netuid , max_difficulty , } , [247u8 , 167u8 , 239u8 , 82u8 , 41u8 , 50u8 , 244u8 , 3u8 , 94u8 , 66u8 , 187u8 , 44u8 , 6u8 , 115u8 , 161u8 , 197u8 , 185u8 , 146u8 , 196u8 , 175u8 , 232u8 , 42u8 , 231u8 , 226u8 , 9u8 , 40u8 , 115u8 , 35u8 , 40u8 , 59u8 , 227u8 , 159u8 ,]) } # [doc = "The extrinsic sets the weights version key for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights version key."] pub fn sudo_set_weights_version_key (& self , netuid : types :: sudo_set_weights_version_key :: Netuid , weights_version_key : types :: sudo_set_weights_version_key :: WeightsVersionKey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetWeightsVersionKey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_weights_version_key" , types :: SudoSetWeightsVersionKey { netuid , weights_version_key , } , [111u8 , 223u8 , 231u8 , 18u8 , 142u8 , 144u8 , 186u8 , 87u8 , 183u8 , 92u8 , 12u8 , 151u8 , 204u8 , 11u8 , 53u8 , 135u8 , 9u8 , 167u8 , 135u8 , 172u8 , 232u8 , 136u8 , 103u8 , 248u8 , 178u8 , 207u8 , 40u8 , 169u8 , 191u8 , 22u8 , 177u8 , 193u8 ,]) } # [doc = "The extrinsic sets the weights set rate limit for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights set rate limit."] pub fn sudo_set_weights_set_rate_limit (& self , netuid : types :: sudo_set_weights_set_rate_limit :: Netuid , weights_set_rate_limit : types :: sudo_set_weights_set_rate_limit :: WeightsSetRateLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetWeightsSetRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_weights_set_rate_limit" , types :: SudoSetWeightsSetRateLimit { netuid , weights_set_rate_limit , } , [208u8 , 189u8 , 207u8 , 207u8 , 173u8 , 44u8 , 136u8 , 125u8 , 108u8 , 147u8 , 240u8 , 45u8 , 159u8 , 129u8 , 162u8 , 87u8 , 204u8 , 248u8 , 79u8 , 14u8 , 34u8 , 193u8 , 72u8 , 119u8 , 154u8 , 32u8 , 63u8 , 123u8 , 48u8 , 10u8 , 107u8 , 16u8 ,]) } # [doc = "The extrinsic sets the adjustment interval for a subnet."] # [doc = "It is only callable by the root account, not changeable by the subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the adjustment interval."] pub fn sudo_set_adjustment_interval (& self , netuid : types :: sudo_set_adjustment_interval :: Netuid , adjustment_interval : types :: sudo_set_adjustment_interval :: AdjustmentInterval ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetAdjustmentInterval > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_adjustment_interval" , types :: SudoSetAdjustmentInterval { netuid , adjustment_interval , } , [167u8 , 14u8 , 61u8 , 114u8 , 173u8 , 242u8 , 209u8 , 221u8 , 233u8 , 144u8 , 106u8 , 175u8 , 105u8 , 46u8 , 242u8 , 178u8 , 48u8 , 55u8 , 136u8 , 173u8 , 161u8 , 115u8 , 6u8 , 87u8 , 124u8 , 213u8 , 101u8 , 112u8 , 233u8 , 120u8 , 130u8 , 47u8 ,]) } # [doc = "The extrinsic sets the adjustment alpha for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the adjustment alpha."] pub fn sudo_set_adjustment_alpha (& self , netuid : types :: sudo_set_adjustment_alpha :: Netuid , adjustment_alpha : types :: sudo_set_adjustment_alpha :: AdjustmentAlpha ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetAdjustmentAlpha > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_adjustment_alpha" , types :: SudoSetAdjustmentAlpha { netuid , adjustment_alpha , } , [84u8 , 151u8 , 85u8 , 94u8 , 49u8 , 2u8 , 238u8 , 226u8 , 27u8 , 139u8 , 122u8 , 25u8 , 175u8 , 162u8 , 163u8 , 251u8 , 17u8 , 50u8 , 117u8 , 85u8 , 201u8 , 174u8 , 235u8 , 135u8 , 174u8 , 106u8 , 239u8 , 209u8 , 120u8 , 114u8 , 217u8 , 214u8 ,]) } # [doc = "The extrinsic sets the immunity period for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the immunity period."] pub fn sudo_set_immunity_period (& self , netuid : types :: sudo_set_immunity_period :: Netuid , immunity_period : types :: sudo_set_immunity_period :: ImmunityPeriod ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetImmunityPeriod > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_immunity_period" , types :: SudoSetImmunityPeriod { netuid , immunity_period , } , [128u8 , 74u8 , 247u8 , 44u8 , 254u8 , 25u8 , 45u8 , 123u8 , 171u8 , 72u8 , 81u8 , 82u8 , 174u8 , 105u8 , 181u8 , 91u8 , 175u8 , 51u8 , 107u8 , 222u8 , 11u8 , 25u8 , 9u8 , 226u8 , 4u8 , 32u8 , 49u8 , 63u8 , 59u8 , 32u8 , 9u8 , 189u8 ,]) } # [doc = "The extrinsic sets the minimum allowed weights for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum allowed weights."] pub fn sudo_set_min_allowed_weights (& self , netuid : types :: sudo_set_min_allowed_weights :: Netuid , min_allowed_weights : types :: sudo_set_min_allowed_weights :: MinAllowedWeights ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinAllowedWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_min_allowed_weights" , types :: SudoSetMinAllowedWeights { netuid , min_allowed_weights , } , [27u8 , 73u8 , 15u8 , 199u8 , 177u8 , 128u8 , 254u8 , 102u8 , 28u8 , 132u8 , 47u8 , 244u8 , 20u8 , 57u8 , 7u8 , 7u8 , 209u8 , 19u8 , 130u8 , 178u8 , 40u8 , 130u8 , 65u8 , 5u8 , 107u8 , 78u8 , 216u8 , 54u8 , 163u8 , 49u8 , 35u8 , 78u8 ,]) } # [doc = "The extrinsic sets the maximum allowed UIDs for a subnet."] # [doc = "It is only callable by the root account and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum allowed UIDs for a subnet."] pub fn sudo_set_max_allowed_uids (& self , netuid : types :: sudo_set_max_allowed_uids :: Netuid , max_allowed_uids : types :: sudo_set_max_allowed_uids :: MaxAllowedUids ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMaxAllowedUids > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_max_allowed_uids" , types :: SudoSetMaxAllowedUids { netuid , max_allowed_uids , } , [231u8 , 110u8 , 75u8 , 66u8 , 160u8 , 211u8 , 212u8 , 120u8 , 24u8 , 204u8 , 147u8 , 44u8 , 230u8 , 135u8 , 143u8 , 231u8 , 142u8 , 22u8 , 220u8 , 107u8 , 12u8 , 224u8 , 206u8 , 117u8 , 203u8 , 36u8 , 233u8 , 159u8 , 60u8 , 126u8 , 0u8 , 148u8 ,]) } # [doc = "The extrinsic sets the kappa for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the kappa."] pub fn sudo_set_kappa (& self , netuid : types :: sudo_set_kappa :: Netuid , kappa : types :: sudo_set_kappa :: Kappa ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetKappa > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_kappa" , types :: SudoSetKappa { netuid , kappa , } , [38u8 , 246u8 , 140u8 , 183u8 , 207u8 , 121u8 , 74u8 , 45u8 , 74u8 , 208u8 , 89u8 , 136u8 , 65u8 , 164u8 , 132u8 , 211u8 , 225u8 , 188u8 , 219u8 , 3u8 , 68u8 , 68u8 , 208u8 , 224u8 , 135u8 , 105u8 , 39u8 , 181u8 , 84u8 , 78u8 , 255u8 , 187u8 ,]) } # [doc = "The extrinsic sets the rho for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the rho."] pub fn sudo_set_rho (& self , netuid : types :: sudo_set_rho :: Netuid , rho : types :: sudo_set_rho :: Rho ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetRho > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_rho" , types :: SudoSetRho { netuid , rho , } , [247u8 , 201u8 , 129u8 , 7u8 , 140u8 , 8u8 , 44u8 , 187u8 , 145u8 , 159u8 , 173u8 , 106u8 , 243u8 , 66u8 , 226u8 , 229u8 , 119u8 , 59u8 , 102u8 , 130u8 , 226u8 , 228u8 , 76u8 , 160u8 , 0u8 , 118u8 , 217u8 , 103u8 , 36u8 , 73u8 , 72u8 , 25u8 ,]) } # [doc = "The extrinsic sets the activity cutoff for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the activity cutoff."] pub fn sudo_set_activity_cutoff (& self , netuid : types :: sudo_set_activity_cutoff :: Netuid , activity_cutoff : types :: sudo_set_activity_cutoff :: ActivityCutoff ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetActivityCutoff > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_activity_cutoff" , types :: SudoSetActivityCutoff { netuid , activity_cutoff , } , [104u8 , 183u8 , 86u8 , 79u8 , 165u8 , 85u8 , 250u8 , 180u8 , 34u8 , 235u8 , 64u8 , 160u8 , 192u8 , 143u8 , 218u8 , 84u8 , 65u8 , 8u8 , 102u8 , 183u8 , 250u8 , 1u8 , 171u8 , 190u8 , 131u8 , 210u8 , 136u8 , 157u8 , 115u8 , 144u8 , 41u8 , 252u8 ,]) } # [doc = "The extrinsic sets the network registration allowed for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the network registration allowed."] pub fn sudo_set_network_registration_allowed (& self , netuid : types :: sudo_set_network_registration_allowed :: Netuid , registration_allowed : types :: sudo_set_network_registration_allowed :: RegistrationAllowed ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNetworkRegistrationAllowed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_network_registration_allowed" , types :: SudoSetNetworkRegistrationAllowed { netuid , registration_allowed , } , [21u8 , 19u8 , 90u8 , 214u8 , 44u8 , 12u8 , 34u8 , 154u8 , 195u8 , 31u8 , 158u8 , 78u8 , 86u8 , 6u8 , 195u8 , 72u8 , 203u8 , 151u8 , 35u8 , 137u8 , 211u8 , 134u8 , 36u8 , 19u8 , 54u8 , 29u8 , 198u8 , 63u8 , 244u8 , 143u8 , 23u8 , 49u8 ,]) } # [doc = "The extrinsic sets the network PoW registration allowed for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the network PoW registration allowed."] pub fn sudo_set_network_pow_registration_allowed (& self , netuid : types :: sudo_set_network_pow_registration_allowed :: Netuid , registration_allowed : types :: sudo_set_network_pow_registration_allowed :: RegistrationAllowed ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNetworkPowRegistrationAllowed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_network_pow_registration_allowed" , types :: SudoSetNetworkPowRegistrationAllowed { netuid , registration_allowed , } , [6u8 , 22u8 , 194u8 , 96u8 , 105u8 , 253u8 , 75u8 , 119u8 , 84u8 , 113u8 , 20u8 , 156u8 , 206u8 , 1u8 , 185u8 , 181u8 , 50u8 , 177u8 , 144u8 , 72u8 , 88u8 , 179u8 , 139u8 , 82u8 , 127u8 , 146u8 , 37u8 , 209u8 , 85u8 , 45u8 , 6u8 , 110u8 ,]) } # [doc = "The extrinsic sets the target registrations per interval for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the target registrations per interval."] pub fn sudo_set_target_registrations_per_interval (& self , netuid : types :: sudo_set_target_registrations_per_interval :: Netuid , target_registrations_per_interval : types :: sudo_set_target_registrations_per_interval :: TargetRegistrationsPerInterval ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTargetRegistrationsPerInterval > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_target_registrations_per_interval" , types :: SudoSetTargetRegistrationsPerInterval { netuid , target_registrations_per_interval , } , [10u8 , 181u8 , 63u8 , 81u8 , 249u8 , 102u8 , 123u8 , 158u8 , 153u8 , 17u8 , 103u8 , 169u8 , 67u8 , 218u8 , 209u8 , 100u8 , 35u8 , 128u8 , 199u8 , 192u8 , 33u8 , 132u8 , 246u8 , 45u8 , 26u8 , 93u8 , 217u8 , 44u8 , 229u8 , 99u8 , 115u8 , 163u8 ,]) } # [doc = "The extrinsic sets the minimum burn for a subnet."] # [doc = "It is only callable by root and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum burn."] pub fn sudo_set_min_burn (& self , netuid : types :: sudo_set_min_burn :: Netuid , min_burn : types :: sudo_set_min_burn :: MinBurn ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinBurn > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_min_burn" , types :: SudoSetMinBurn { netuid , min_burn , } , [39u8 , 205u8 , 135u8 , 231u8 , 239u8 , 14u8 , 206u8 , 154u8 , 11u8 , 23u8 , 136u8 , 38u8 , 231u8 , 204u8 , 93u8 , 14u8 , 135u8 , 177u8 , 230u8 , 85u8 , 229u8 , 132u8 , 47u8 , 161u8 , 2u8 , 44u8 , 234u8 , 67u8 , 7u8 , 186u8 , 26u8 , 194u8 ,]) } # [doc = "The extrinsic sets the maximum burn for a subnet."] # [doc = "It is only callable by root and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum burn."] pub fn sudo_set_max_burn (& self , netuid : types :: sudo_set_max_burn :: Netuid , max_burn : types :: sudo_set_max_burn :: MaxBurn ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMaxBurn > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_max_burn" , types :: SudoSetMaxBurn { netuid , max_burn , } , [148u8 , 250u8 , 58u8 , 11u8 , 129u8 , 254u8 , 179u8 , 252u8 , 145u8 , 7u8 , 188u8 , 191u8 , 240u8 , 62u8 , 82u8 , 187u8 , 208u8 , 165u8 , 17u8 , 60u8 , 78u8 , 44u8 , 92u8 , 116u8 , 182u8 , 115u8 , 6u8 , 248u8 , 156u8 , 12u8 , 36u8 , 233u8 ,]) } # [doc = "The extrinsic sets the difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the difficulty."] pub fn sudo_set_difficulty (& self , netuid : types :: sudo_set_difficulty :: Netuid , difficulty : types :: sudo_set_difficulty :: Difficulty ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetDifficulty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_difficulty" , types :: SudoSetDifficulty { netuid , difficulty , } , [170u8 , 244u8 , 171u8 , 250u8 , 20u8 , 230u8 , 59u8 , 184u8 , 1u8 , 145u8 , 114u8 , 127u8 , 244u8 , 54u8 , 53u8 , 208u8 , 128u8 , 168u8 , 168u8 , 73u8 , 144u8 , 5u8 , 125u8 , 128u8 , 165u8 , 245u8 , 77u8 , 51u8 , 132u8 , 72u8 , 177u8 , 67u8 ,]) } # [doc = "The extrinsic sets the maximum allowed validators for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum allowed validators."] pub fn sudo_set_max_allowed_validators (& self , netuid : types :: sudo_set_max_allowed_validators :: Netuid , max_allowed_validators : types :: sudo_set_max_allowed_validators :: MaxAllowedValidators ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMaxAllowedValidators > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_max_allowed_validators" , types :: SudoSetMaxAllowedValidators { netuid , max_allowed_validators , } , [168u8 , 63u8 , 121u8 , 5u8 , 59u8 , 103u8 , 224u8 , 178u8 , 73u8 , 5u8 , 41u8 , 18u8 , 91u8 , 161u8 , 167u8 , 98u8 , 197u8 , 94u8 , 115u8 , 232u8 , 124u8 , 40u8 , 149u8 , 130u8 , 219u8 , 133u8 , 163u8 , 90u8 , 127u8 , 36u8 , 116u8 , 56u8 ,]) } # [doc = "The extrinsic sets the bonds moving average for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the bonds moving average."] pub fn sudo_set_bonds_moving_average (& self , netuid : types :: sudo_set_bonds_moving_average :: Netuid , bonds_moving_average : types :: sudo_set_bonds_moving_average :: BondsMovingAverage ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetBondsMovingAverage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_bonds_moving_average" , types :: SudoSetBondsMovingAverage { netuid , bonds_moving_average , } , [197u8 , 228u8 , 187u8 , 217u8 , 129u8 , 241u8 , 28u8 , 86u8 , 3u8 , 118u8 , 108u8 , 85u8 , 27u8 , 210u8 , 96u8 , 62u8 , 112u8 , 36u8 , 120u8 , 18u8 , 5u8 , 21u8 , 177u8 , 202u8 , 237u8 , 156u8 , 15u8 , 239u8 , 135u8 , 128u8 , 123u8 , 80u8 ,]) } # [doc = "The extrinsic sets the bonds penalty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the bonds penalty."] pub fn sudo_set_bonds_penalty (& self , netuid : types :: sudo_set_bonds_penalty :: Netuid , bonds_penalty : types :: sudo_set_bonds_penalty :: BondsPenalty ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetBondsPenalty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_bonds_penalty" , types :: SudoSetBondsPenalty { netuid , bonds_penalty , } , [186u8 , 56u8 , 76u8 , 34u8 , 122u8 , 0u8 , 89u8 , 231u8 , 122u8 , 154u8 , 243u8 , 20u8 , 225u8 , 139u8 , 174u8 , 222u8 , 130u8 , 254u8 , 139u8 , 119u8 , 148u8 , 233u8 , 142u8 , 246u8 , 106u8 , 155u8 , 148u8 , 186u8 , 11u8 , 219u8 , 248u8 , 2u8 ,]) } # [doc = "The extrinsic sets the maximum registrations per block for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum registrations per block."] pub fn sudo_set_max_registrations_per_block (& self , netuid : types :: sudo_set_max_registrations_per_block :: Netuid , max_registrations_per_block : types :: sudo_set_max_registrations_per_block :: MaxRegistrationsPerBlock ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMaxRegistrationsPerBlock > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_max_registrations_per_block" , types :: SudoSetMaxRegistrationsPerBlock { netuid , max_registrations_per_block , } , [27u8 , 218u8 , 137u8 , 67u8 , 16u8 , 49u8 , 10u8 , 209u8 , 94u8 , 73u8 , 20u8 , 154u8 , 251u8 , 241u8 , 75u8 , 157u8 , 29u8 , 56u8 , 47u8 , 104u8 , 105u8 , 13u8 , 190u8 , 83u8 , 197u8 , 206u8 , 81u8 , 205u8 , 149u8 , 157u8 , 68u8 , 214u8 ,]) } # [doc = "The extrinsic sets the subnet owner cut for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the subnet owner cut."] pub fn sudo_set_subnet_owner_cut (& self , subnet_owner_cut : types :: sudo_set_subnet_owner_cut :: SubnetOwnerCut ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetSubnetOwnerCut > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_subnet_owner_cut" , types :: SudoSetSubnetOwnerCut { subnet_owner_cut , } , [132u8 , 55u8 , 182u8 , 19u8 , 106u8 , 89u8 , 17u8 , 245u8 , 176u8 , 85u8 , 108u8 , 251u8 , 178u8 , 248u8 , 58u8 , 149u8 , 239u8 , 181u8 , 123u8 , 10u8 , 133u8 , 163u8 , 162u8 , 41u8 , 111u8 , 136u8 , 175u8 , 214u8 , 224u8 , 246u8 , 49u8 , 182u8 ,]) } # [doc = "The extrinsic sets the network rate limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the network rate limit."] pub fn sudo_set_network_rate_limit (& self , rate_limit : types :: sudo_set_network_rate_limit :: RateLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNetworkRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_network_rate_limit" , types :: SudoSetNetworkRateLimit { rate_limit , } , [80u8 , 205u8 , 15u8 , 103u8 , 120u8 , 112u8 , 59u8 , 176u8 , 98u8 , 107u8 , 133u8 , 117u8 , 120u8 , 30u8 , 177u8 , 32u8 , 30u8 , 34u8 , 165u8 , 160u8 , 26u8 , 54u8 , 16u8 , 16u8 , 163u8 , 0u8 , 2u8 , 162u8 , 101u8 , 243u8 , 139u8 , 229u8 ,]) } # [doc = "The extrinsic sets the tempo for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the tempo."] pub fn sudo_set_tempo (& self , netuid : types :: sudo_set_tempo :: Netuid , tempo : types :: sudo_set_tempo :: Tempo ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTempo > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_tempo" , types :: SudoSetTempo { netuid , tempo , } , [247u8 , 138u8 , 12u8 , 190u8 , 212u8 , 116u8 , 202u8 , 23u8 , 211u8 , 97u8 , 119u8 , 181u8 , 146u8 , 75u8 , 46u8 , 220u8 , 22u8 , 204u8 , 141u8 , 52u8 , 88u8 , 214u8 , 135u8 , 182u8 , 164u8 , 193u8 , 45u8 , 15u8 , 241u8 , 66u8 , 54u8 , 228u8 ,]) } # [doc = "The extrinsic sets the total issuance for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the issuance for the network."] pub fn sudo_set_total_issuance (& self , total_issuance : types :: sudo_set_total_issuance :: TotalIssuance ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTotalIssuance > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_total_issuance" , types :: SudoSetTotalIssuance { total_issuance , } , [162u8 , 217u8 , 167u8 , 184u8 , 244u8 , 145u8 , 154u8 , 111u8 , 124u8 , 51u8 , 153u8 , 120u8 , 116u8 , 138u8 , 202u8 , 230u8 , 217u8 , 194u8 , 159u8 , 73u8 , 219u8 , 147u8 , 240u8 , 85u8 , 20u8 , 72u8 , 48u8 , 190u8 , 120u8 , 4u8 , 132u8 , 189u8 ,]) } # [doc = "The extrinsic sets the immunity period for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the immunity period for the network."] pub fn sudo_set_network_immunity_period (& self , immunity_period : types :: sudo_set_network_immunity_period :: ImmunityPeriod ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNetworkImmunityPeriod > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_network_immunity_period" , types :: SudoSetNetworkImmunityPeriod { immunity_period , } , [197u8 , 175u8 , 164u8 , 18u8 , 236u8 , 31u8 , 34u8 , 133u8 , 149u8 , 203u8 , 9u8 , 43u8 , 172u8 , 248u8 , 165u8 , 68u8 , 77u8 , 243u8 , 60u8 , 88u8 , 124u8 , 67u8 , 165u8 , 231u8 , 47u8 , 26u8 , 92u8 , 32u8 , 242u8 , 13u8 , 150u8 , 230u8 ,]) } # [doc = "The extrinsic sets the min lock cost for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the min lock cost for the network."] pub fn sudo_set_network_min_lock_cost (& self , lock_cost : types :: sudo_set_network_min_lock_cost :: LockCost ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNetworkMinLockCost > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_network_min_lock_cost" , types :: SudoSetNetworkMinLockCost { lock_cost , } , [189u8 , 57u8 , 157u8 , 251u8 , 196u8 , 232u8 , 67u8 , 90u8 , 55u8 , 145u8 , 212u8 , 174u8 , 101u8 , 242u8 , 233u8 , 222u8 , 64u8 , 194u8 , 61u8 , 159u8 , 110u8 , 244u8 , 170u8 , 227u8 , 26u8 , 183u8 , 126u8 , 206u8 , 149u8 , 47u8 , 103u8 , 54u8 ,]) } # [doc = "The extrinsic sets the subnet limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the subnet limit."] pub fn sudo_set_subnet_limit (& self , max_subnets : types :: sudo_set_subnet_limit :: MaxSubnets ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetSubnetLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_subnet_limit" , types :: SudoSetSubnetLimit { max_subnets , } , [25u8 , 217u8 , 173u8 , 189u8 , 91u8 , 60u8 , 174u8 , 105u8 , 65u8 , 140u8 , 218u8 , 197u8 , 188u8 , 203u8 , 41u8 , 4u8 , 140u8 , 16u8 , 9u8 , 20u8 , 199u8 , 17u8 , 45u8 , 38u8 , 179u8 , 254u8 , 105u8 , 187u8 , 76u8 , 139u8 , 50u8 , 166u8 ,]) } # [doc = "The extrinsic sets the lock reduction interval for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the lock reduction interval."] pub fn sudo_set_lock_reduction_interval (& self , interval : types :: sudo_set_lock_reduction_interval :: Interval ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetLockReductionInterval > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_lock_reduction_interval" , types :: SudoSetLockReductionInterval { interval , } , [221u8 , 171u8 , 225u8 , 229u8 , 131u8 , 163u8 , 89u8 , 4u8 , 118u8 , 105u8 , 118u8 , 208u8 , 70u8 , 30u8 , 56u8 , 43u8 , 254u8 , 99u8 , 219u8 , 252u8 , 185u8 , 104u8 , 248u8 , 199u8 , 101u8 , 97u8 , 65u8 , 203u8 , 25u8 , 137u8 , 34u8 , 11u8 ,]) } # [doc = "The extrinsic sets the recycled RAO for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the recycled RAO."] pub fn sudo_set_rao_recycled (& self , netuid : types :: sudo_set_rao_recycled :: Netuid , rao_recycled : types :: sudo_set_rao_recycled :: RaoRecycled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetRaoRecycled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_rao_recycled" , types :: SudoSetRaoRecycled { netuid , rao_recycled , } , [207u8 , 226u8 , 150u8 , 214u8 , 192u8 , 206u8 , 215u8 , 101u8 , 222u8 , 190u8 , 18u8 , 204u8 , 21u8 , 137u8 , 102u8 , 155u8 , 247u8 , 19u8 , 46u8 , 142u8 , 113u8 , 226u8 , 102u8 , 110u8 , 186u8 , 35u8 , 5u8 , 18u8 , 182u8 , 144u8 , 7u8 , 198u8 ,]) } # [doc = "The extrinsic sets the weights min stake."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights min stake."] pub fn sudo_set_stake_threshold (& self , min_stake : types :: sudo_set_stake_threshold :: MinStake ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetStakeThreshold > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_stake_threshold" , types :: SudoSetStakeThreshold { min_stake , } , [69u8 , 119u8 , 240u8 , 23u8 , 87u8 , 113u8 , 130u8 , 163u8 , 253u8 , 94u8 , 112u8 , 191u8 , 36u8 , 245u8 , 172u8 , 215u8 , 26u8 , 119u8 , 71u8 , 24u8 , 70u8 , 84u8 , 173u8 , 107u8 , 245u8 , 251u8 , 69u8 , 130u8 , 200u8 , 218u8 , 135u8 , 248u8 ,]) } # [doc = "The extrinsic sets the minimum stake required for nominators."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum stake required for nominators."] pub fn sudo_set_nominator_min_required_stake (& self , min_stake : types :: sudo_set_nominator_min_required_stake :: MinStake ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNominatorMinRequiredStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_nominator_min_required_stake" , types :: SudoSetNominatorMinRequiredStake { min_stake , } , [52u8 , 138u8 , 94u8 , 243u8 , 75u8 , 152u8 , 41u8 , 87u8 , 240u8 , 38u8 , 95u8 , 95u8 , 195u8 , 26u8 , 194u8 , 2u8 , 61u8 , 66u8 , 215u8 , 188u8 , 102u8 , 124u8 , 81u8 , 138u8 , 108u8 , 241u8 , 152u8 , 54u8 , 148u8 , 204u8 , 33u8 , 193u8 ,]) } # [doc = "The extrinsic sets the rate limit for delegate take transactions."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the rate limit for delegate take transactions."] pub fn sudo_set_tx_delegate_take_rate_limit (& self , tx_rate_limit : types :: sudo_set_tx_delegate_take_rate_limit :: TxRateLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTxDelegateTakeRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_tx_delegate_take_rate_limit" , types :: SudoSetTxDelegateTakeRateLimit { tx_rate_limit , } , [125u8 , 86u8 , 21u8 , 0u8 , 119u8 , 226u8 , 173u8 , 244u8 , 139u8 , 192u8 , 238u8 , 238u8 , 36u8 , 45u8 , 63u8 , 40u8 , 222u8 , 209u8 , 96u8 , 74u8 , 155u8 , 180u8 , 128u8 , 160u8 , 154u8 , 147u8 , 119u8 , 178u8 , 133u8 , 65u8 , 6u8 , 251u8 ,]) } # [doc = "The extrinsic sets the minimum delegate take."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum delegate take."] pub fn sudo_set_min_delegate_take (& self , take : types :: sudo_set_min_delegate_take :: Take ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinDelegateTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_min_delegate_take" , types :: SudoSetMinDelegateTake { take , } , [32u8 , 246u8 , 17u8 , 76u8 , 122u8 , 253u8 , 253u8 , 35u8 , 170u8 , 237u8 , 51u8 , 106u8 , 51u8 , 184u8 , 137u8 , 227u8 , 101u8 , 227u8 , 224u8 , 112u8 , 28u8 , 60u8 , 62u8 , 165u8 , 14u8 , 209u8 , 74u8 , 157u8 , 52u8 , 166u8 , 52u8 , 238u8 ,]) } # [doc = "The extrinsic enabled/disables commit/reaveal for a given subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the value."] pub fn sudo_set_commit_reveal_weights_enabled (& self , netuid : types :: sudo_set_commit_reveal_weights_enabled :: Netuid , enabled : types :: sudo_set_commit_reveal_weights_enabled :: Enabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetCommitRevealWeightsEnabled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_commit_reveal_weights_enabled" , types :: SudoSetCommitRevealWeightsEnabled { netuid , enabled , } , [100u8 , 156u8 , 214u8 , 108u8 , 188u8 , 232u8 , 181u8 , 31u8 , 116u8 , 58u8 , 182u8 , 165u8 , 116u8 , 253u8 , 112u8 , 89u8 , 50u8 , 80u8 , 234u8 , 230u8 , 194u8 , 38u8 , 191u8 , 56u8 , 122u8 , 183u8 , 196u8 , 246u8 , 197u8 , 234u8 , 157u8 , 58u8 ,]) } # [doc = "Enables or disables Liquid Alpha for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Liquid Alpha."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub fn sudo_set_liquid_alpha_enabled (& self , netuid : types :: sudo_set_liquid_alpha_enabled :: Netuid , enabled : types :: sudo_set_liquid_alpha_enabled :: Enabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetLiquidAlphaEnabled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_liquid_alpha_enabled" , types :: SudoSetLiquidAlphaEnabled { netuid , enabled , } , [242u8 , 8u8 , 226u8 , 26u8 , 57u8 , 134u8 , 135u8 , 70u8 , 116u8 , 96u8 , 123u8 , 109u8 , 177u8 , 0u8 , 154u8 , 52u8 , 66u8 , 33u8 , 239u8 , 8u8 , 70u8 , 30u8 , 183u8 , 55u8 , 193u8 , 89u8 , 44u8 , 193u8 , 149u8 , 225u8 , 17u8 , 58u8 ,]) } # [doc = "Sets values for liquid alpha"] pub fn sudo_set_alpha_values (& self , netuid : types :: sudo_set_alpha_values :: Netuid , alpha_low : types :: sudo_set_alpha_values :: AlphaLow , alpha_high : types :: sudo_set_alpha_values :: AlphaHigh ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetAlphaValues > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_alpha_values" , types :: SudoSetAlphaValues { netuid , alpha_low , alpha_high , } , [80u8 , 38u8 , 69u8 , 27u8 , 24u8 , 45u8 , 140u8 , 4u8 , 25u8 , 106u8 , 202u8 , 185u8 , 137u8 , 142u8 , 91u8 , 102u8 , 173u8 , 48u8 , 168u8 , 66u8 , 51u8 , 99u8 , 104u8 , 192u8 , 56u8 , 11u8 , 94u8 , 60u8 , 72u8 , 58u8 , 132u8 , 66u8 ,]) } # [doc = "Sets the duration of the coldkey swap schedule."] # [doc = ""] # [doc = "This extrinsic allows the root account to set the duration for the coldkey swap schedule."] # [doc = "The coldkey swap schedule determines how long it takes for a coldkey swap operation to complete."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `duration` - The new duration for the coldkey swap schedule, in number of blocks."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_coldkey_swap_schedule_duration (& self , duration : types :: sudo_set_coldkey_swap_schedule_duration :: Duration ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetColdkeySwapScheduleDuration > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_coldkey_swap_schedule_duration" , types :: SudoSetColdkeySwapScheduleDuration { duration , } , [199u8 , 201u8 , 247u8 , 19u8 , 96u8 , 161u8 , 154u8 , 250u8 , 35u8 , 223u8 , 124u8 , 42u8 , 248u8 , 27u8 , 33u8 , 92u8 , 156u8 , 4u8 , 124u8 , 167u8 , 119u8 , 192u8 , 3u8 , 185u8 , 2u8 , 128u8 , 216u8 , 52u8 , 203u8 , 168u8 , 16u8 , 15u8 ,]) } # [doc = "Sets the duration of the dissolve network schedule."] # [doc = ""] # [doc = "This extrinsic allows the root account to set the duration for the dissolve network schedule."] # [doc = "The dissolve network schedule determines how long it takes for a network dissolution operation to complete."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `duration` - The new duration for the dissolve network schedule, in number of blocks."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_dissolve_network_schedule_duration (& self , duration : types :: sudo_set_dissolve_network_schedule_duration :: Duration ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetDissolveNetworkScheduleDuration > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_dissolve_network_schedule_duration" , types :: SudoSetDissolveNetworkScheduleDuration { duration , } , [149u8 , 251u8 , 253u8 , 178u8 , 31u8 , 46u8 , 195u8 , 105u8 , 168u8 , 36u8 , 24u8 , 10u8 , 184u8 , 27u8 , 101u8 , 94u8 , 14u8 , 204u8 , 207u8 , 236u8 , 84u8 , 171u8 , 34u8 , 39u8 , 103u8 , 150u8 , 25u8 , 76u8 , 141u8 , 152u8 , 56u8 , 142u8 ,]) } # [doc = "Sets the commit-reveal weights periods for a specific subnet."] # [doc = ""] # [doc = "This extrinsic allows the subnet owner or root account to set the duration (in epochs) during which committed weights must be revealed."] # [doc = "The commit-reveal mechanism ensures that users commit weights in advance and reveal them only within a specified period."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or the root account."] # [doc = "* `netuid` - The unique identifier of the subnet for which the periods are being set."] # [doc = "* `periods` - The number of epochs that define the commit-reveal period."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is neither the subnet owner nor the root account."] # [doc = "* `SubnetDoesNotExist` - If the specified subnet does not exist."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_commit_reveal_weights_interval (& self , netuid : types :: sudo_set_commit_reveal_weights_interval :: Netuid , interval : types :: sudo_set_commit_reveal_weights_interval :: Interval ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetCommitRevealWeightsInterval > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_commit_reveal_weights_interval" , types :: SudoSetCommitRevealWeightsInterval { netuid , interval , } , [210u8 , 74u8 , 26u8 , 27u8 , 184u8 , 236u8 , 169u8 , 182u8 , 228u8 , 184u8 , 30u8 , 170u8 , 224u8 , 240u8 , 251u8 , 220u8 , 147u8 , 188u8 , 160u8 , 149u8 , 137u8 , 146u8 , 58u8 , 166u8 , 165u8 , 105u8 , 112u8 , 133u8 , 74u8 , 142u8 , 100u8 , 109u8 ,]) } # [doc = "Sets the EVM ChainID."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or the root account."] # [doc = "* `chainId` - The u64 chain ID"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is neither the subnet owner nor the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_evm_chain_id (& self , chain_id : types :: sudo_set_evm_chain_id :: ChainId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetEvmChainId > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_evm_chain_id" , types :: SudoSetEvmChainId { chain_id , } , [201u8 , 122u8 , 210u8 , 110u8 , 225u8 , 31u8 , 21u8 , 156u8 , 74u8 , 162u8 , 33u8 , 37u8 , 221u8 , 114u8 , 58u8 , 211u8 , 172u8 , 15u8 , 204u8 , 126u8 , 71u8 , 203u8 , 215u8 , 43u8 , 81u8 , 181u8 , 201u8 , 97u8 , 200u8 , 72u8 , 168u8 , 193u8 ,]) } # [doc = "A public interface for `pallet_grandpa::Pallet::schedule_grandpa_change`."] # [doc = ""] # [doc = "Schedule a change in the authorities."] # [doc = ""] # [doc = "The change will be applied at the end of execution of the block `in_blocks` after the"] # [doc = "current block. This value may be 0, in which case the change is applied at the end of"] # [doc = "the current block."] # [doc = ""] # [doc = "If the `forced` parameter is defined, this indicates that the current set has been"] # [doc = "synchronously determined to be offline and that after `in_blocks` the given change"] # [doc = "should be applied. The given block number indicates the median last finalized block"] # [doc = "number and it should be used as the canon block when starting the new grandpa voter."] # [doc = ""] # [doc = "No change should be signaled while any change is pending. Returns an error if a change"] # [doc = "is already pending."] pub fn schedule_grandpa_change (& self , next_authorities : types :: schedule_grandpa_change :: NextAuthorities , in_blocks : types :: schedule_grandpa_change :: InBlocks , forced : types :: schedule_grandpa_change :: Forced ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleGrandpaChange > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "schedule_grandpa_change" , types :: ScheduleGrandpaChange { next_authorities , in_blocks , forced , } , [91u8 , 167u8 , 149u8 , 184u8 , 159u8 , 154u8 , 123u8 , 132u8 , 126u8 , 50u8 , 105u8 , 45u8 , 29u8 , 163u8 , 18u8 , 235u8 , 25u8 , 5u8 , 226u8 , 68u8 , 168u8 , 3u8 , 23u8 , 243u8 , 252u8 , 83u8 , 232u8 , 170u8 , 183u8 , 172u8 , 174u8 , 228u8 ,]) } # [doc = "Enable or disable atomic alpha transfers for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Liquid Alpha."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub fn sudo_set_toggle_transfer (& self , netuid : types :: sudo_set_toggle_transfer :: Netuid , toggle : types :: sudo_set_toggle_transfer :: Toggle ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetToggleTransfer > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_toggle_transfer" , types :: SudoSetToggleTransfer { netuid , toggle , } , [233u8 , 177u8 , 124u8 , 3u8 , 229u8 , 180u8 , 214u8 , 161u8 , 228u8 , 42u8 , 47u8 , 119u8 , 49u8 , 170u8 , 148u8 , 167u8 , 191u8 , 60u8 , 66u8 , 177u8 , 137u8 , 156u8 , 92u8 , 27u8 , 187u8 , 193u8 , 241u8 , 32u8 , 90u8 , 124u8 , 230u8 , 251u8 ,]) } # [doc = "Set the behaviour of the \"burn\" UID(s) for a given subnet."] # [doc = "If set to `Burn`, the miner emission sent to the burn UID(s) will be burned."] # [doc = "If set to `Recycle`, the miner emission sent to the burn UID(s) will be recycled."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `recycle_or_burn`: The desired behaviour of the \"burn\" UID(s) for the subnet."] # [doc = ""] pub fn sudo_set_recycle_or_burn (& self , netuid : types :: sudo_set_recycle_or_burn :: Netuid , recycle_or_burn : types :: sudo_set_recycle_or_burn :: RecycleOrBurn ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetRecycleOrBurn > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_recycle_or_burn" , types :: SudoSetRecycleOrBurn { netuid , recycle_or_burn , } , [181u8 , 198u8 , 235u8 , 143u8 , 146u8 , 204u8 , 199u8 , 27u8 , 235u8 , 80u8 , 24u8 , 60u8 , 50u8 , 181u8 , 76u8 , 155u8 , 21u8 , 235u8 , 30u8 , 194u8 , 117u8 , 194u8 , 99u8 , 225u8 , 77u8 , 43u8 , 254u8 , 234u8 , 12u8 , 137u8 , 218u8 , 1u8 ,]) } # [doc = "Toggles the enablement of an EVM precompile."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `precompile_id` - The identifier of the EVM precompile to toggle."] # [doc = "* `enabled` - The new enablement state of the precompile."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_toggle_evm_precompile (& self , precompile_id : types :: sudo_toggle_evm_precompile :: PrecompileId , enabled : types :: sudo_toggle_evm_precompile :: Enabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoToggleEvmPrecompile > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_toggle_evm_precompile" , types :: SudoToggleEvmPrecompile { precompile_id , enabled , } , [163u8 , 129u8 , 166u8 , 54u8 , 35u8 , 33u8 , 70u8 , 161u8 , 90u8 , 87u8 , 32u8 , 36u8 , 92u8 , 89u8 , 170u8 , 237u8 , 12u8 , 173u8 , 182u8 , 99u8 , 21u8 , 41u8 , 137u8 , 240u8 , 232u8 , 131u8 , 68u8 , 33u8 , 12u8 , 128u8 , 140u8 , 117u8 ,]) } # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `alpha` - The new moving alpha value for the SubnetMovingAlpha."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_subnet_moving_alpha (& self , alpha : types :: sudo_set_subnet_moving_alpha :: Alpha ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetSubnetMovingAlpha > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_subnet_moving_alpha" , types :: SudoSetSubnetMovingAlpha { alpha , } , [239u8 , 32u8 , 0u8 , 8u8 , 176u8 , 138u8 , 71u8 , 142u8 , 7u8 , 5u8 , 161u8 , 50u8 , 67u8 , 88u8 , 18u8 , 137u8 , 185u8 , 208u8 , 51u8 , 215u8 , 15u8 , 149u8 , 52u8 , 182u8 , 227u8 , 250u8 , 157u8 , 8u8 , 225u8 , 113u8 , 224u8 , 219u8 ,]) } # [doc = "Change the SubnetOwnerHotkey for a given subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner."] # [doc = "* `netuid` - The unique identifier for the subnet."] # [doc = "* `hotkey` - The new hotkey for the subnet owner."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the subnet owner or root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_subnet_owner_hotkey (& self , netuid : types :: sudo_set_subnet_owner_hotkey :: Netuid , hotkey : types :: sudo_set_subnet_owner_hotkey :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetSubnetOwnerHotkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_subnet_owner_hotkey" , types :: SudoSetSubnetOwnerHotkey { netuid , hotkey , } , [21u8 , 33u8 , 250u8 , 9u8 , 25u8 , 221u8 , 16u8 , 19u8 , 205u8 , 42u8 , 42u8 , 9u8 , 142u8 , 170u8 , 173u8 , 80u8 , 163u8 , 5u8 , 39u8 , 252u8 , 125u8 , 209u8 , 179u8 , 177u8 , 214u8 , 30u8 , 57u8 , 174u8 , 86u8 , 170u8 , 126u8 , 146u8 ,]) } # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `ema_alpha_period` - Number of blocks for EMA price to halve"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_ema_price_halving_period (& self , netuid : types :: sudo_set_ema_price_halving_period :: Netuid , ema_halving : types :: sudo_set_ema_price_halving_period :: EmaHalving ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetEmaPriceHalvingPeriod > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_ema_price_halving_period" , types :: SudoSetEmaPriceHalvingPeriod { netuid , ema_halving , } , [168u8 , 129u8 , 185u8 , 44u8 , 156u8 , 79u8 , 21u8 , 184u8 , 112u8 , 125u8 , 39u8 , 79u8 , 246u8 , 77u8 , 136u8 , 29u8 , 74u8 , 110u8 , 91u8 , 161u8 , 209u8 , 234u8 , 118u8 , 46u8 , 139u8 , 229u8 , 110u8 , 118u8 , 150u8 , 225u8 , 165u8 , 178u8 ,]) } # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `netuid` - The unique identifier for the subnet."] # [doc = "* `steepness` - The Steepness for the alpha sigmoid function. (range is 0-int16::MAX,"] # [doc = "negative values are reserved for future use)"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = "* `SubnetDoesNotExist` - If the specified subnet does not exist."] # [doc = "* `NegativeSigmoidSteepness` - If the steepness is negative and the caller is"] # [doc = "root."] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_alpha_sigmoid_steepness (& self , netuid : types :: sudo_set_alpha_sigmoid_steepness :: Netuid , steepness : types :: sudo_set_alpha_sigmoid_steepness :: Steepness ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetAlphaSigmoidSteepness > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_alpha_sigmoid_steepness" , types :: SudoSetAlphaSigmoidSteepness { netuid , steepness , } , [182u8 , 116u8 , 175u8 , 159u8 , 15u8 , 26u8 , 180u8 , 138u8 , 252u8 , 92u8 , 185u8 , 101u8 , 13u8 , 141u8 , 152u8 , 81u8 , 129u8 , 75u8 , 88u8 , 124u8 , 108u8 , 17u8 , 104u8 , 118u8 , 252u8 , 35u8 , 173u8 , 121u8 , 38u8 , 170u8 , 139u8 , 249u8 ,]) } # [doc = "Enables or disables Yuma3 for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Yuma3."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub fn sudo_set_yuma3_enabled (& self , netuid : types :: sudo_set_yuma3_enabled :: Netuid , enabled : types :: sudo_set_yuma3_enabled :: Enabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetYuma3Enabled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_yuma3_enabled" , types :: SudoSetYuma3Enabled { netuid , enabled , } , [195u8 , 239u8 , 112u8 , 24u8 , 144u8 , 206u8 , 123u8 , 143u8 , 147u8 , 177u8 , 119u8 , 123u8 , 229u8 , 20u8 , 67u8 , 28u8 , 60u8 , 204u8 , 249u8 , 35u8 , 188u8 , 120u8 , 94u8 , 90u8 , 86u8 , 226u8 , 119u8 , 255u8 , 241u8 , 72u8 , 45u8 , 142u8 ,]) } # [doc = "Enables or disables Bonds Reset for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Bonds Reset."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub fn sudo_set_bonds_reset_enabled (& self , netuid : types :: sudo_set_bonds_reset_enabled :: Netuid , enabled : types :: sudo_set_bonds_reset_enabled :: Enabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetBondsResetEnabled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_bonds_reset_enabled" , types :: SudoSetBondsResetEnabled { netuid , enabled , } , [51u8 , 130u8 , 27u8 , 114u8 , 16u8 , 13u8 , 14u8 , 206u8 , 132u8 , 241u8 , 42u8 , 120u8 , 47u8 , 174u8 , 200u8 , 166u8 , 189u8 , 235u8 , 210u8 , 91u8 , 216u8 , 69u8 , 10u8 , 48u8 , 186u8 , 110u8 , 175u8 , 201u8 , 10u8 , 28u8 , 221u8 , 146u8 ,]) } # [doc = "Sets or updates the hotkey account associated with the owner of a specific subnet."] # [doc = ""] # [doc = "This function allows either the root origin or the current subnet owner to set or update"] # [doc = "the hotkey for a given subnet. The subnet must already exist. To prevent abuse, the call is"] # [doc = "rate-limited to once per configured interval (default: one week) per subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The dispatch origin of the call. Must be either root or the current owner of the subnet."] # [doc = "- `netuid`: The unique identifier of the subnet whose owner hotkey is being set."] # [doc = "- `hotkey`: The new hotkey account to associate with the subnet owner."] # [doc = ""] # [doc = "# Returns"] # [doc = "- `DispatchResult`: Returns `Ok(())` if the hotkey was successfully set, or an appropriate error otherwise."] # [doc = ""] # [doc = "# Errors"] # [doc = "- `Error::SubnetNotExists`: If the specified subnet does not exist."] # [doc = "- `Error::TxRateLimitExceeded`: If the function is called more frequently than the allowed rate limit."] # [doc = ""] # [doc = "# Access Control"] # [doc = "Only callable by:"] # [doc = "- Root origin, or"] # [doc = "- The coldkey account that owns the subnet."] # [doc = ""] # [doc = "# Storage"] # [doc = "- Updates [`SubnetOwnerHotkey`] for the given `netuid`."] # [doc = "- Reads and updates [`LastRateLimitedBlock`] for rate-limiting."] # [doc = "- Reads [`DefaultSetSNOwnerHotkeyRateLimit`] to determine the interval between allowed updates."] # [doc = ""] # [doc = "# Rate Limiting"] # [doc = "This function is rate-limited to one call per subnet per interval (e.g., one week)."] pub fn sudo_set_sn_owner_hotkey (& self , netuid : types :: sudo_set_sn_owner_hotkey :: Netuid , hotkey : types :: sudo_set_sn_owner_hotkey :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetSnOwnerHotkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_sn_owner_hotkey" , types :: SudoSetSnOwnerHotkey { netuid , hotkey , } , [208u8 , 143u8 , 227u8 , 92u8 , 240u8 , 253u8 , 27u8 , 173u8 , 186u8 , 206u8 , 4u8 , 172u8 , 197u8 , 112u8 , 18u8 , 123u8 , 134u8 , 11u8 , 58u8 , 86u8 , 149u8 , 55u8 , 153u8 , 39u8 , 140u8 , 153u8 , 92u8 , 13u8 , 201u8 , 147u8 , 196u8 , 128u8 ,]) } # [doc = "Enables or disables subtoken trading for a given subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `netuid` - The unique identifier of the subnet."] # [doc = "* `subtoken_enabled` - A boolean indicating whether subtoken trading should be enabled or disabled."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_subtoken_enabled (& self , netuid : types :: sudo_set_subtoken_enabled :: Netuid , subtoken_enabled : types :: sudo_set_subtoken_enabled :: SubtokenEnabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetSubtokenEnabled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_subtoken_enabled" , types :: SudoSetSubtokenEnabled { netuid , subtoken_enabled , } , [28u8 , 5u8 , 69u8 , 22u8 , 123u8 , 202u8 , 47u8 , 127u8 , 52u8 , 171u8 , 41u8 , 97u8 , 48u8 , 190u8 , 43u8 , 248u8 , 70u8 , 54u8 , 194u8 , 173u8 , 34u8 , 26u8 , 18u8 , 47u8 , 207u8 , 68u8 , 36u8 , 250u8 , 242u8 , 102u8 , 92u8 , 6u8 ,]) } # [doc = "Sets the commit-reveal weights version for all subnets"] pub fn sudo_set_commit_reveal_version (& self , version : types :: sudo_set_commit_reveal_version :: Version ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetCommitRevealVersion > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_commit_reveal_version" , types :: SudoSetCommitRevealVersion { version , } , [253u8 , 215u8 , 2u8 , 66u8 , 243u8 , 69u8 , 118u8 , 66u8 , 239u8 , 161u8 , 75u8 , 209u8 , 162u8 , 157u8 , 79u8 , 8u8 , 42u8 , 45u8 , 20u8 , 32u8 , 156u8 , 107u8 , 168u8 , 15u8 , 182u8 , 178u8 , 42u8 , 228u8 , 88u8 , 64u8 , 61u8 , 168u8 ,]) } # [doc = "Sets the number of immune owner neurons"] pub fn sudo_set_owner_immune_neuron_limit (& self , netuid : types :: sudo_set_owner_immune_neuron_limit :: Netuid , immune_neurons : types :: sudo_set_owner_immune_neuron_limit :: ImmuneNeurons ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetOwnerImmuneNeuronLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_owner_immune_neuron_limit" , types :: SudoSetOwnerImmuneNeuronLimit { netuid , immune_neurons , } , [80u8 , 212u8 , 242u8 , 91u8 , 142u8 , 99u8 , 27u8 , 55u8 , 13u8 , 204u8 , 149u8 , 7u8 , 26u8 , 106u8 , 69u8 , 166u8 , 186u8 , 238u8 , 45u8 , 26u8 , 244u8 , 87u8 , 123u8 , 136u8 , 35u8 , 197u8 , 63u8 , 9u8 , 232u8 , 102u8 , 22u8 , 230u8 ,]) } # [doc = "Sets the childkey burn for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the childkey burn."] pub fn sudo_set_ck_burn (& self , burn : types :: sudo_set_ck_burn :: Burn ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetCkBurn > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_ck_burn" , types :: SudoSetCkBurn { burn , } , [73u8 , 95u8 , 96u8 , 80u8 , 79u8 , 198u8 , 82u8 , 121u8 , 87u8 , 150u8 , 229u8 , 34u8 , 163u8 , 144u8 , 71u8 , 42u8 , 154u8 , 162u8 , 111u8 , 180u8 , 251u8 , 230u8 , 48u8 , 104u8 , 81u8 , 195u8 , 164u8 , 70u8 , 146u8 , 212u8 , 24u8 , 127u8 ,]) } # [doc = "Sets the admin freeze window length (in blocks) at the end of a tempo."] # [doc = "Only callable by root."] pub fn sudo_set_admin_freeze_window (& self , window : types :: sudo_set_admin_freeze_window :: Window ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetAdminFreezeWindow > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_admin_freeze_window" , types :: SudoSetAdminFreezeWindow { window , } , [165u8 , 212u8 , 248u8 , 14u8 , 47u8 , 198u8 , 127u8 , 115u8 , 149u8 , 126u8 , 222u8 , 34u8 , 100u8 , 182u8 , 170u8 , 96u8 , 243u8 , 106u8 , 89u8 , 8u8 , 206u8 , 149u8 , 104u8 , 60u8 , 122u8 , 165u8 , 66u8 , 254u8 , 140u8 , 75u8 , 121u8 , 47u8 ,]) } # [doc = "Sets the owner hyperparameter rate limit in epochs (global multiplier)."] # [doc = "Only callable by root."] pub fn sudo_set_owner_hparam_rate_limit (& self , epochs : types :: sudo_set_owner_hparam_rate_limit :: Epochs ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetOwnerHparamRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_owner_hparam_rate_limit" , types :: SudoSetOwnerHparamRateLimit { epochs , } , [7u8 , 216u8 , 14u8 , 222u8 , 157u8 , 84u8 , 234u8 , 157u8 , 207u8 , 216u8 , 212u8 , 42u8 , 207u8 , 146u8 , 192u8 , 10u8 , 252u8 , 198u8 , 180u8 , 231u8 , 43u8 , 149u8 , 78u8 , 215u8 , 202u8 , 102u8 , 113u8 , 130u8 , 53u8 , 254u8 , 59u8 , 18u8 ,]) } # [doc = "Sets the desired number of mechanisms in a subnet"] pub fn sudo_set_mechanism_count (& self , netuid : types :: sudo_set_mechanism_count :: Netuid , mechanism_count : types :: sudo_set_mechanism_count :: MechanismCount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMechanismCount > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_mechanism_count" , types :: SudoSetMechanismCount { netuid , mechanism_count , } , [109u8 , 216u8 , 122u8 , 67u8 , 128u8 , 190u8 , 10u8 , 86u8 , 47u8 , 149u8 , 19u8 , 210u8 , 16u8 , 68u8 , 193u8 , 217u8 , 215u8 , 239u8 , 160u8 , 121u8 , 254u8 , 18u8 , 193u8 , 110u8 , 143u8 , 34u8 , 35u8 , 57u8 , 119u8 , 114u8 , 46u8 , 79u8 ,]) } # [doc = "Sets the emission split between mechanisms in a subnet"] pub fn sudo_set_mechanism_emission_split (& self , netuid : types :: sudo_set_mechanism_emission_split :: Netuid , maybe_split : types :: sudo_set_mechanism_emission_split :: MaybeSplit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMechanismEmissionSplit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_mechanism_emission_split" , types :: SudoSetMechanismEmissionSplit { netuid , maybe_split , } , [87u8 , 172u8 , 168u8 , 64u8 , 28u8 , 2u8 , 77u8 , 92u8 , 155u8 , 6u8 , 116u8 , 121u8 , 13u8 , 114u8 , 242u8 , 19u8 , 231u8 , 132u8 , 17u8 , 68u8 , 32u8 , 7u8 , 41u8 , 60u8 , 147u8 , 23u8 , 212u8 , 86u8 , 189u8 , 154u8 , 64u8 , 36u8 ,]) } # [doc = "Trims the maximum number of UIDs for a subnet."] # [doc = ""] # [doc = "The trimming is done by sorting the UIDs by emission descending and then trimming"] # [doc = "the lowest emitters while preserving temporally and owner immune UIDs. The UIDs are"] # [doc = "then compressed to the left and storage is migrated to the new compressed UIDs."] pub fn sudo_trim_to_max_allowed_uids (& self , netuid : types :: sudo_trim_to_max_allowed_uids :: Netuid , max_n : types :: sudo_trim_to_max_allowed_uids :: MaxN ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoTrimToMaxAllowedUids > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_trim_to_max_allowed_uids" , types :: SudoTrimToMaxAllowedUids { netuid , max_n , } , [28u8 , 159u8 , 47u8 , 204u8 , 21u8 , 11u8 , 131u8 , 126u8 , 200u8 , 93u8 , 29u8 , 207u8 , 194u8 , 174u8 , 105u8 , 224u8 , 84u8 , 206u8 , 85u8 , 168u8 , 216u8 , 195u8 , 130u8 , 52u8 , 155u8 , 12u8 , 151u8 , 149u8 , 6u8 , 174u8 , 6u8 , 130u8 ,]) } # [doc = "The extrinsic sets the minimum allowed UIDs for a subnet."] # [doc = "It is only callable by the root account."] pub fn sudo_set_min_allowed_uids (& self , netuid : types :: sudo_set_min_allowed_uids :: Netuid , min_allowed_uids : types :: sudo_set_min_allowed_uids :: MinAllowedUids ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinAllowedUids > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_min_allowed_uids" , types :: SudoSetMinAllowedUids { netuid , min_allowed_uids , } , [224u8 , 172u8 , 89u8 , 28u8 , 135u8 , 86u8 , 244u8 , 53u8 , 240u8 , 56u8 , 111u8 , 201u8 , 150u8 , 65u8 , 185u8 , 79u8 , 32u8 , 188u8 , 179u8 , 39u8 , 79u8 , 98u8 , 21u8 , 60u8 , 134u8 , 191u8 , 75u8 , 164u8 , 25u8 , 159u8 , 75u8 , 20u8 ,]) } # [doc = "Sets TAO flow cutoff value (A)"] pub fn sudo_set_tao_flow_cutoff (& self , flow_cutoff : types :: sudo_set_tao_flow_cutoff :: FlowCutoff ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTaoFlowCutoff > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_tao_flow_cutoff" , types :: SudoSetTaoFlowCutoff { flow_cutoff , } , [27u8 , 207u8 , 122u8 , 195u8 , 219u8 , 169u8 , 110u8 , 183u8 , 120u8 , 132u8 , 75u8 , 158u8 , 147u8 , 5u8 , 126u8 , 216u8 , 149u8 , 164u8 , 8u8 , 1u8 , 192u8 , 171u8 , 50u8 , 91u8 , 123u8 , 109u8 , 5u8 , 189u8 , 132u8 , 120u8 , 114u8 , 12u8 ,]) } # [doc = "Sets TAO flow normalization exponent (p)"] pub fn sudo_set_tao_flow_normalization_exponent (& self , exponent : types :: sudo_set_tao_flow_normalization_exponent :: Exponent ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTaoFlowNormalizationExponent > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_tao_flow_normalization_exponent" , types :: SudoSetTaoFlowNormalizationExponent { exponent , } , [64u8 , 30u8 , 143u8 , 136u8 , 85u8 , 184u8 , 98u8 , 62u8 , 151u8 , 231u8 , 94u8 , 222u8 , 15u8 , 232u8 , 85u8 , 24u8 , 213u8 , 26u8 , 66u8 , 174u8 , 137u8 , 169u8 , 166u8 , 108u8 , 46u8 , 37u8 , 75u8 , 41u8 , 105u8 , 155u8 , 128u8 , 216u8 ,]) } # [doc = "Sets TAO flow smoothing factor (alpha)"] pub fn sudo_set_tao_flow_smoothing_factor (& self , smoothing_factor : types :: sudo_set_tao_flow_smoothing_factor :: SmoothingFactor ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTaoFlowSmoothingFactor > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_tao_flow_smoothing_factor" , types :: SudoSetTaoFlowSmoothingFactor { smoothing_factor , } , [146u8 , 232u8 , 174u8 , 146u8 , 68u8 , 145u8 , 173u8 , 91u8 , 20u8 , 102u8 , 57u8 , 98u8 , 89u8 , 201u8 , 212u8 , 183u8 , 54u8 , 118u8 , 232u8 , 32u8 , 63u8 , 183u8 , 143u8 , 161u8 , 28u8 , 236u8 , 27u8 , 186u8 , 51u8 , 104u8 , 168u8 , 28u8 ,]) } # [doc = "Sets the minimum number of non-immortal & non-immune UIDs that must remain in a subnet"] pub fn sudo_set_min_non_immune_uids (& self , netuid : types :: sudo_set_min_non_immune_uids :: Netuid , min : types :: sudo_set_min_non_immune_uids :: Min ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinNonImmuneUids > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_min_non_immune_uids" , types :: SudoSetMinNonImmuneUids { netuid , min , } , [168u8 , 59u8 , 235u8 , 98u8 , 249u8 , 193u8 , 91u8 , 255u8 , 45u8 , 106u8 , 238u8 , 129u8 , 97u8 , 249u8 , 1u8 , 77u8 , 98u8 , 239u8 , 155u8 , 139u8 , 127u8 , 65u8 , 51u8 , 226u8 , 248u8 , 215u8 , 167u8 , 155u8 , 3u8 , 229u8 , 202u8 , 165u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_admin_utils :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when a precompile operation is updated."] pub struct PrecompileUpdated { pub precompile_id : precompile_updated :: PrecompileId , pub enabled : precompile_updated :: Enabled , } pub mod precompile_updated { use super :: runtime_types ; pub type PrecompileId = runtime_types :: pallet_admin_utils :: pallet :: PrecompileEnum ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PrecompileUpdated { const PALLET : & 'static str = "AdminUtils" ; const EVENT : & 'static str = "PrecompileUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when the Yuma3 enable is toggled."] pub struct Yuma3EnableToggled { pub netuid : yuma3_enable_toggled :: Netuid , pub enabled : yuma3_enable_toggled :: Enabled , } pub mod yuma3_enable_toggled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Yuma3EnableToggled { const PALLET : & 'static str = "AdminUtils" ; const EVENT : & 'static str = "Yuma3EnableToggled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when Bonds Reset is toggled."] pub struct BondsResetToggled { pub netuid : bonds_reset_toggled :: Netuid , pub enabled : bonds_reset_toggled :: Enabled , } pub mod bonds_reset_toggled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BondsResetToggled { const PALLET : & 'static str = "AdminUtils" ; const EVENT : & 'static str = "BondsResetToggled" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod precompile_enable { use super :: runtime_types ; pub type PrecompileEnable = :: core :: primitive :: bool ; pub type Param0 = runtime_types :: pallet_admin_utils :: pallet :: PrecompileEnum ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Map PrecompileEnum --> enabled"] pub fn precompile_enable_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: precompile_enable :: PrecompileEnable , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("AdminUtils" , "PrecompileEnable" , () , [15u8 , 74u8 , 117u8 , 63u8 , 191u8 , 179u8 , 224u8 , 157u8 , 197u8 , 72u8 , 86u8 , 15u8 , 216u8 , 158u8 , 140u8 , 25u8 , 211u8 , 157u8 , 21u8 , 217u8 , 100u8 , 120u8 , 133u8 , 139u8 , 84u8 , 33u8 , 104u8 , 130u8 , 6u8 , 70u8 , 90u8 , 35u8 ,]) } # [doc = " Map PrecompileEnum --> enabled"] pub fn precompile_enable (& self , _0 : types :: precompile_enable :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: precompile_enable :: Param0 > , types :: precompile_enable :: PrecompileEnable , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("AdminUtils" , "PrecompileEnable" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [15u8 , 74u8 , 117u8 , 63u8 , 191u8 , 179u8 , 224u8 , 157u8 , 197u8 , 72u8 , 86u8 , 15u8 , 216u8 , 158u8 , 140u8 , 25u8 , 211u8 , 157u8 , 21u8 , 217u8 , 100u8 , 120u8 , 133u8 , 139u8 , 84u8 , 33u8 , 104u8 , 130u8 , 6u8 , 70u8 , 90u8 , 35u8 ,]) } } } } pub mod safe_mode { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_safe_mode :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_safe_mode :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enter safe-mode permissionlessly for [`Config::EnterDuration`] blocks."] # [doc = ""] # [doc = "Reserves [`Config::EnterDepositAmount`] from the caller's account."] # [doc = "Emits an [`Event::Entered`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is already entered."] # [doc = "Errors with [`Error::NotConfigured`] if the deposit amount is `None`."] pub struct Enter ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Enter { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "enter" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enter safe-mode by force for a per-origin configured number of blocks."] # [doc = ""] # [doc = "Emits an [`Event::Entered`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is already entered."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceEnterOrigin`] origin."] pub struct ForceEnter ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceEnter { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "force_enter" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Extend the safe-mode permissionlessly for [`Config::ExtendDuration`] blocks."] # [doc = ""] # [doc = "This accumulates on top of the current remaining duration."] # [doc = "Reserves [`Config::ExtendDepositAmount`] from the caller's account."] # [doc = "Emits an [`Event::Extended`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is entered."] # [doc = "Errors with [`Error::NotConfigured`] if the deposit amount is `None`."] # [doc = ""] # [doc = "This may be called by any signed origin with [`Config::ExtendDepositAmount`] free"] # [doc = "currency to reserve. This call can be disabled for all origins by configuring"] # [doc = "[`Config::ExtendDepositAmount`] to `None`."] pub struct Extend ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Extend { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "extend" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Extend the safe-mode by force for a per-origin configured number of blocks."] # [doc = ""] # [doc = "Emits an [`Event::Extended`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is inactive."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceExtendOrigin`] origin."] pub struct ForceExtend ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceExtend { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "force_extend" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Exit safe-mode by force."] # [doc = ""] # [doc = "Emits an [`Event::Exited`] with [`ExitReason::Force`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is inactive."] # [doc = ""] # [doc = "Note: `safe-mode` will be automatically deactivated by [`Pallet::on_initialize`] hook"] # [doc = "after the block height is greater than the [`EnteredUntil`] storage item."] # [doc = "Emits an [`Event::Exited`] with [`ExitReason::Timeout`] event when deactivated in the"] # [doc = "hook."] pub struct ForceExit ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceExit { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "force_exit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Slash a deposit for an account that entered or extended safe-mode at a given"] # [doc = "historical block."] # [doc = ""] # [doc = "This can only be called while safe-mode is entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositSlashed`] event on success."] # [doc = "Errors with [`Error::Entered`] if safe-mode is entered."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceDepositOrigin`] origin."] pub struct ForceSlashDeposit { pub account : force_slash_deposit :: Account , pub block : force_slash_deposit :: Block , } pub mod force_slash_deposit { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Block = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceSlashDeposit { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "force_slash_deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Permissionlessly release a deposit for an account that entered safe-mode at a"] # [doc = "given historical block."] # [doc = ""] # [doc = "The call can be completely disabled by setting [`Config::ReleaseDelay`] to `None`."] # [doc = "This cannot be called while safe-mode is entered and not until"] # [doc = "[`Config::ReleaseDelay`] blocks have passed since safe-mode was entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositReleased`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is entered."] # [doc = "Errors with [`Error::CannotReleaseYet`] if [`Config::ReleaseDelay`] block have not"] # [doc = "passed since safe-mode was entered. Errors with [`Error::NoDeposit`] if the payee has no"] # [doc = "reserved currency at the block specified."] pub struct ReleaseDeposit { pub account : release_deposit :: Account , pub block : release_deposit :: Block , } pub mod release_deposit { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Block = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReleaseDeposit { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "release_deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force to release a deposit for an account that entered safe-mode at a given"] # [doc = "historical block."] # [doc = ""] # [doc = "This can be called while safe-mode is still entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositReleased`] event on success."] # [doc = "Errors with [`Error::Entered`] if safe-mode is entered."] # [doc = "Errors with [`Error::NoDeposit`] if the payee has no reserved currency at the"] # [doc = "specified block."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceDepositOrigin`] origin."] pub struct ForceReleaseDeposit { pub account : force_release_deposit :: Account , pub block : force_release_deposit :: Block , } pub mod force_release_deposit { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Block = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceReleaseDeposit { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "force_release_deposit" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Enter safe-mode permissionlessly for [`Config::EnterDuration`] blocks."] # [doc = ""] # [doc = "Reserves [`Config::EnterDepositAmount`] from the caller's account."] # [doc = "Emits an [`Event::Entered`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is already entered."] # [doc = "Errors with [`Error::NotConfigured`] if the deposit amount is `None`."] pub fn enter (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Enter > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "enter" , types :: Enter { } , [143u8 , 123u8 , 102u8 , 22u8 , 143u8 , 240u8 , 102u8 , 20u8 , 99u8 , 56u8 , 137u8 , 160u8 , 145u8 , 237u8 , 239u8 , 13u8 , 116u8 , 150u8 , 190u8 , 85u8 , 39u8 , 235u8 , 252u8 , 175u8 , 118u8 , 60u8 , 231u8 , 161u8 , 61u8 , 100u8 , 140u8 , 15u8 ,]) } # [doc = "Enter safe-mode by force for a per-origin configured number of blocks."] # [doc = ""] # [doc = "Emits an [`Event::Entered`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is already entered."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceEnterOrigin`] origin."] pub fn force_enter (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceEnter > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "force_enter" , types :: ForceEnter { } , [226u8 , 76u8 , 165u8 , 0u8 , 74u8 , 155u8 , 226u8 , 0u8 , 184u8 , 63u8 , 229u8 , 216u8 , 13u8 , 44u8 , 211u8 , 141u8 , 82u8 , 33u8 , 38u8 , 220u8 , 228u8 , 13u8 , 105u8 , 40u8 , 3u8 , 101u8 , 98u8 , 149u8 , 169u8 , 196u8 , 135u8 , 108u8 ,]) } # [doc = "Extend the safe-mode permissionlessly for [`Config::ExtendDuration`] blocks."] # [doc = ""] # [doc = "This accumulates on top of the current remaining duration."] # [doc = "Reserves [`Config::ExtendDepositAmount`] from the caller's account."] # [doc = "Emits an [`Event::Extended`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is entered."] # [doc = "Errors with [`Error::NotConfigured`] if the deposit amount is `None`."] # [doc = ""] # [doc = "This may be called by any signed origin with [`Config::ExtendDepositAmount`] free"] # [doc = "currency to reserve. This call can be disabled for all origins by configuring"] # [doc = "[`Config::ExtendDepositAmount`] to `None`."] pub fn extend (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Extend > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "extend" , types :: Extend { } , [197u8 , 120u8 , 159u8 , 140u8 , 252u8 , 237u8 , 41u8 , 35u8 , 158u8 , 68u8 , 143u8 , 99u8 , 156u8 , 153u8 , 190u8 , 6u8 , 220u8 , 153u8 , 207u8 , 98u8 , 126u8 , 27u8 , 29u8 , 118u8 , 77u8 , 69u8 , 135u8 , 20u8 , 66u8 , 170u8 , 240u8 , 129u8 ,]) } # [doc = "Extend the safe-mode by force for a per-origin configured number of blocks."] # [doc = ""] # [doc = "Emits an [`Event::Extended`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is inactive."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceExtendOrigin`] origin."] pub fn force_extend (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceExtend > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "force_extend" , types :: ForceExtend { } , [117u8 , 88u8 , 218u8 , 135u8 , 217u8 , 109u8 , 142u8 , 56u8 , 165u8 , 247u8 , 37u8 , 236u8 , 158u8 , 153u8 , 199u8 , 154u8 , 70u8 , 17u8 , 19u8 , 225u8 , 184u8 , 126u8 , 169u8 , 246u8 , 187u8 , 96u8 , 124u8 , 117u8 , 3u8 , 122u8 , 185u8 , 255u8 ,]) } # [doc = "Exit safe-mode by force."] # [doc = ""] # [doc = "Emits an [`Event::Exited`] with [`ExitReason::Force`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is inactive."] # [doc = ""] # [doc = "Note: `safe-mode` will be automatically deactivated by [`Pallet::on_initialize`] hook"] # [doc = "after the block height is greater than the [`EnteredUntil`] storage item."] # [doc = "Emits an [`Event::Exited`] with [`ExitReason::Timeout`] event when deactivated in the"] # [doc = "hook."] pub fn force_exit (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceExit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "force_exit" , types :: ForceExit { } , [150u8 , 4u8 , 38u8 , 204u8 , 101u8 , 158u8 , 83u8 , 108u8 , 144u8 , 146u8 , 91u8 , 227u8 , 118u8 , 59u8 , 39u8 , 160u8 , 157u8 , 68u8 , 241u8 , 12u8 , 42u8 , 108u8 , 196u8 , 221u8 , 241u8 , 61u8 , 142u8 , 140u8 , 174u8 , 224u8 , 33u8 , 213u8 ,]) } # [doc = "Slash a deposit for an account that entered or extended safe-mode at a given"] # [doc = "historical block."] # [doc = ""] # [doc = "This can only be called while safe-mode is entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositSlashed`] event on success."] # [doc = "Errors with [`Error::Entered`] if safe-mode is entered."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceDepositOrigin`] origin."] pub fn force_slash_deposit (& self , account : types :: force_slash_deposit :: Account , block : types :: force_slash_deposit :: Block ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceSlashDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "force_slash_deposit" , types :: ForceSlashDeposit { account , block , } , [185u8 , 154u8 , 173u8 , 77u8 , 150u8 , 104u8 , 220u8 , 14u8 , 65u8 , 197u8 , 253u8 , 145u8 , 112u8 , 189u8 , 99u8 , 45u8 , 138u8 , 120u8 , 94u8 , 112u8 , 183u8 , 205u8 , 206u8 , 14u8 , 74u8 , 9u8 , 156u8 , 76u8 , 159u8 , 37u8 , 88u8 , 96u8 ,]) } # [doc = "Permissionlessly release a deposit for an account that entered safe-mode at a"] # [doc = "given historical block."] # [doc = ""] # [doc = "The call can be completely disabled by setting [`Config::ReleaseDelay`] to `None`."] # [doc = "This cannot be called while safe-mode is entered and not until"] # [doc = "[`Config::ReleaseDelay`] blocks have passed since safe-mode was entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositReleased`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is entered."] # [doc = "Errors with [`Error::CannotReleaseYet`] if [`Config::ReleaseDelay`] block have not"] # [doc = "passed since safe-mode was entered. Errors with [`Error::NoDeposit`] if the payee has no"] # [doc = "reserved currency at the block specified."] pub fn release_deposit (& self , account : types :: release_deposit :: Account , block : types :: release_deposit :: Block ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReleaseDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "release_deposit" , types :: ReleaseDeposit { account , block , } , [79u8 , 18u8 , 165u8 , 136u8 , 30u8 , 45u8 , 169u8 , 102u8 , 195u8 , 112u8 , 252u8 , 42u8 , 52u8 , 65u8 , 93u8 , 168u8 , 40u8 , 180u8 , 234u8 , 248u8 , 20u8 , 157u8 , 147u8 , 84u8 , 89u8 , 168u8 , 219u8 , 160u8 , 193u8 , 170u8 , 95u8 , 20u8 ,]) } # [doc = "Force to release a deposit for an account that entered safe-mode at a given"] # [doc = "historical block."] # [doc = ""] # [doc = "This can be called while safe-mode is still entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositReleased`] event on success."] # [doc = "Errors with [`Error::Entered`] if safe-mode is entered."] # [doc = "Errors with [`Error::NoDeposit`] if the payee has no reserved currency at the"] # [doc = "specified block."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceDepositOrigin`] origin."] pub fn force_release_deposit (& self , account : types :: force_release_deposit :: Account , block : types :: force_release_deposit :: Block ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceReleaseDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "force_release_deposit" , types :: ForceReleaseDeposit { account , block , } , [32u8 , 21u8 , 194u8 , 117u8 , 164u8 , 105u8 , 175u8 , 6u8 , 77u8 , 183u8 , 153u8 , 93u8 , 76u8 , 102u8 , 49u8 , 232u8 , 124u8 , 27u8 , 90u8 , 189u8 , 75u8 , 76u8 , 6u8 , 144u8 , 232u8 , 51u8 , 152u8 , 207u8 , 122u8 , 162u8 , 232u8 , 236u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_safe_mode :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The safe-mode was entered until inclusively this block."] pub struct Entered { pub until : entered :: Until , } pub mod entered { use super :: runtime_types ; pub type Until = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Entered { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "Entered" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The safe-mode was extended until inclusively this block."] pub struct Extended { pub until : extended :: Until , } pub mod extended { use super :: runtime_types ; pub type Until = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Extended { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "Extended" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Exited the safe-mode for a specific reason."] pub struct Exited { pub reason : exited :: Reason , } pub mod exited { use super :: runtime_types ; pub type Reason = runtime_types :: pallet_safe_mode :: pallet :: ExitReason ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Exited { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "Exited" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account reserved funds for either entering or extending the safe-mode."] pub struct DepositPlaced { pub account : deposit_placed :: Account , pub amount : deposit_placed :: Amount , } pub mod deposit_placed { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DepositPlaced { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "DepositPlaced" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account had a reserve released that was reserved."] pub struct DepositReleased { pub account : deposit_released :: Account , pub amount : deposit_released :: Amount , } pub mod deposit_released { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DepositReleased { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "DepositReleased" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account had reserve slashed that was reserved."] pub struct DepositSlashed { pub account : deposit_slashed :: Account , pub amount : deposit_slashed :: Amount , } pub mod deposit_slashed { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DepositSlashed { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "DepositSlashed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Could not hold funds for entering or extending the safe-mode."] # [doc = ""] # [doc = "This error comes from the underlying `Currency`."] pub struct CannotDeposit ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CannotDeposit { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "CannotDeposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Could not release funds for entering or extending the safe-mode."] # [doc = ""] # [doc = "This error comes from the underlying `Currency`."] pub struct CannotRelease ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CannotRelease { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "CannotRelease" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod entered_until { use super :: runtime_types ; pub type EnteredUntil = :: core :: primitive :: u32 ; } pub mod deposits { use super :: runtime_types ; pub type Deposits = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Contains the last block number that the safe-mode will remain entered in."] # [doc = ""] # [doc = "  Set to `None` when safe-mode is exited."] # [doc = ""] # [doc = " Safe-mode is automatically exited when the current block number exceeds this value."] pub fn entered_until (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: entered_until :: EnteredUntil , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SafeMode" , "EnteredUntil" , () , [149u8 , 83u8 , 42u8 , 40u8 , 74u8 , 142u8 , 60u8 , 30u8 , 84u8 , 16u8 , 188u8 , 31u8 , 142u8 , 15u8 , 123u8 , 243u8 , 224u8 , 219u8 , 21u8 , 109u8 , 199u8 , 124u8 , 169u8 , 154u8 , 35u8 , 198u8 , 136u8 , 36u8 , 202u8 , 218u8 , 15u8 , 107u8 ,]) } # [doc = " Holds the reserve that was taken from an account at a specific block number."] # [doc = ""] # [doc = " This helps governance to have an overview of outstanding deposits that should be returned or"] # [doc = " slashed."] pub fn deposits_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: deposits :: Deposits , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SafeMode" , "Deposits" , () , [176u8 , 188u8 , 87u8 , 205u8 , 141u8 , 232u8 , 186u8 , 203u8 , 180u8 , 156u8 , 184u8 , 200u8 , 6u8 , 114u8 , 214u8 , 126u8 , 136u8 , 106u8 , 101u8 , 42u8 , 25u8 , 127u8 , 61u8 , 171u8 , 50u8 , 143u8 , 221u8 , 176u8 , 245u8 , 232u8 , 30u8 , 3u8 ,]) } # [doc = " Holds the reserve that was taken from an account at a specific block number."] # [doc = ""] # [doc = " This helps governance to have an overview of outstanding deposits that should be returned or"] # [doc = " slashed."] pub fn deposits_iter1 (& self , _0 : types :: deposits :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: deposits :: Param0 > , types :: deposits :: Deposits , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SafeMode" , "Deposits" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [176u8 , 188u8 , 87u8 , 205u8 , 141u8 , 232u8 , 186u8 , 203u8 , 180u8 , 156u8 , 184u8 , 200u8 , 6u8 , 114u8 , 214u8 , 126u8 , 136u8 , 106u8 , 101u8 , 42u8 , 25u8 , 127u8 , 61u8 , 171u8 , 50u8 , 143u8 , 221u8 , 176u8 , 245u8 , 232u8 , 30u8 , 3u8 ,]) } # [doc = " Holds the reserve that was taken from an account at a specific block number."] # [doc = ""] # [doc = " This helps governance to have an overview of outstanding deposits that should be returned or"] # [doc = " slashed."] pub fn deposits (& self , _0 : types :: deposits :: Param0 , _1 : types :: deposits :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: deposits :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: deposits :: Param1 > ,) , types :: deposits :: Deposits , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SafeMode" , "Deposits" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [176u8 , 188u8 , 87u8 , 205u8 , 141u8 , 232u8 , 186u8 , 203u8 , 180u8 , 156u8 , 184u8 , 200u8 , 6u8 , 114u8 , 214u8 , 126u8 , 136u8 , 106u8 , 101u8 , 42u8 , 25u8 , 127u8 , 61u8 , 171u8 , 50u8 , 143u8 , 221u8 , 176u8 , 245u8 , 232u8 , 30u8 , 3u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " For how many blocks the safe-mode will be entered by [`Pallet::enter`]."] pub fn enter_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SafeMode" , "EnterDuration" , [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 ,]) } # [doc = " For how many blocks the safe-mode can be extended by each [`Pallet::extend`] call."] # [doc = ""] # [doc = " This does not impose a hard limit as the safe-mode can be extended multiple times."] pub fn extend_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SafeMode" , "ExtendDuration" , [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 ,]) } # [doc = " The amount that will be reserved upon calling [`Pallet::enter`]."] # [doc = ""] # [doc = " `None` disallows permissionlessly enabling the safe-mode and is a sane default."] pub fn enter_deposit_amount (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: option :: Option < :: core :: primitive :: u64 > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SafeMode" , "EnterDepositAmount" , [168u8 , 195u8 , 60u8 , 101u8 , 150u8 , 188u8 , 3u8 , 22u8 , 134u8 , 165u8 , 250u8 , 47u8 , 9u8 , 0u8 , 181u8 , 183u8 , 7u8 , 152u8 , 106u8 , 159u8 , 190u8 , 186u8 , 130u8 , 13u8 , 63u8 , 147u8 , 58u8 , 206u8 , 19u8 , 64u8 , 206u8 , 233u8 ,]) } # [doc = " The amount that will be reserved upon calling [`Pallet::extend`]."] # [doc = ""] # [doc = " `None` disallows permissionlessly extending the safe-mode and is a sane default."] pub fn extend_deposit_amount (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: option :: Option < :: core :: primitive :: u64 > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SafeMode" , "ExtendDepositAmount" , [168u8 , 195u8 , 60u8 , 101u8 , 150u8 , 188u8 , 3u8 , 22u8 , 134u8 , 165u8 , 250u8 , 47u8 , 9u8 , 0u8 , 181u8 , 183u8 , 7u8 , 152u8 , 106u8 , 159u8 , 190u8 , 186u8 , 130u8 , 13u8 , 63u8 , 147u8 , 58u8 , 206u8 , 19u8 , 64u8 , 206u8 , 233u8 ,]) } # [doc = " The minimal duration a deposit will remain reserved after safe-mode is entered or"] # [doc = " extended, unless [`Pallet::force_release_deposit`] is successfully called sooner."] # [doc = ""] # [doc = " Every deposit is tied to a specific activation or extension, thus each deposit can be"] # [doc = " released independently after the delay for it has passed."] # [doc = ""] # [doc = " `None` disallows permissionlessly releasing the safe-mode deposits and is a sane"] # [doc = " default."] pub fn release_delay (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: option :: Option < :: core :: primitive :: u32 > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SafeMode" , "ReleaseDelay" , [111u8 , 234u8 , 140u8 , 193u8 , 117u8 , 12u8 , 156u8 , 42u8 , 108u8 , 165u8 , 55u8 , 45u8 , 64u8 , 14u8 , 126u8 , 168u8 , 240u8 , 34u8 , 185u8 , 106u8 , 152u8 , 134u8 , 255u8 , 67u8 , 57u8 , 132u8 , 69u8 , 70u8 , 8u8 , 41u8 , 19u8 , 90u8 ,]) } } } } pub mod ethereum { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_ethereum :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transact an Ethereum transaction."] pub struct Transact { pub transaction : transact :: Transaction , } pub mod transact { use super :: runtime_types ; pub type Transaction = runtime_types :: ethereum :: transaction :: TransactionV3 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Transact { const PALLET : & 'static str = "Ethereum" ; const CALL : & 'static str = "transact" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Transact an Ethereum transaction."] pub fn transact (& self , transaction : types :: transact :: Transaction ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Transact > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Ethereum" , "transact" , types :: Transact { transaction , } , [90u8 , 251u8 , 70u8 , 140u8 , 135u8 , 174u8 , 223u8 , 121u8 , 39u8 , 14u8 , 77u8 , 28u8 , 187u8 , 16u8 , 239u8 , 238u8 , 81u8 , 208u8 , 192u8 , 169u8 , 205u8 , 33u8 , 197u8 , 32u8 , 242u8 , 164u8 , 154u8 , 87u8 , 29u8 , 138u8 , 211u8 , 62u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An ethereum transaction was successfully executed."] pub struct Executed { pub from : executed :: From , pub to : executed :: To , pub transaction_hash : executed :: TransactionHash , pub exit_reason : executed :: ExitReason , pub extra_data : executed :: ExtraData , } pub mod executed { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type TransactionHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type ExitReason = runtime_types :: evm_core :: error :: ExitReason ; pub type ExtraData = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Executed { const PALLET : & 'static str = "Ethereum" ; const EVENT : & 'static str = "Executed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod pending { use super :: runtime_types ; pub type Pending = (runtime_types :: ethereum :: transaction :: TransactionV3 , runtime_types :: fp_rpc :: TransactionStatus , runtime_types :: ethereum :: receipt :: ReceiptV4 ,) ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod counter_for_pending { use super :: runtime_types ; pub type CounterForPending = :: core :: primitive :: u32 ; } pub mod current_block { use super :: runtime_types ; pub type CurrentBlock = runtime_types :: ethereum :: block :: Block < runtime_types :: ethereum :: transaction :: TransactionV3 > ; } pub mod current_receipts { use super :: runtime_types ; pub type CurrentReceipts = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: receipt :: ReceiptV4 > ; } pub mod current_transaction_statuses { use super :: runtime_types ; pub type CurrentTransactionStatuses = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_rpc :: TransactionStatus > ; } pub mod block_hash { use super :: runtime_types ; pub type BlockHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Param0 = runtime_types :: primitive_types :: U256 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Mapping from transaction index to transaction in the current building block."] pub fn pending_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending :: Pending , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "Pending" , () , [7u8 , 49u8 , 119u8 , 102u8 , 113u8 , 21u8 , 253u8 , 154u8 , 28u8 , 25u8 , 195u8 , 86u8 , 116u8 , 122u8 , 98u8 , 39u8 , 27u8 , 206u8 , 250u8 , 209u8 , 110u8 , 215u8 , 215u8 , 103u8 , 215u8 , 92u8 , 89u8 , 50u8 , 57u8 , 221u8 , 248u8 , 53u8 ,]) } # [doc = " Mapping from transaction index to transaction in the current building block."] pub fn pending (& self , _0 : types :: pending :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending :: Param0 > , types :: pending :: Pending , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "Pending" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [7u8 , 49u8 , 119u8 , 102u8 , 113u8 , 21u8 , 253u8 , 154u8 , 28u8 , 25u8 , 195u8 , 86u8 , 116u8 , 122u8 , 98u8 , 39u8 , 27u8 , 206u8 , 250u8 , 209u8 , 110u8 , 215u8 , 215u8 , 103u8 , 215u8 , 92u8 , 89u8 , 50u8 , 57u8 , 221u8 , 248u8 , 53u8 ,]) } # [doc = "Counter for the related counted storage map"] pub fn counter_for_pending (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_pending :: CounterForPending , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "CounterForPending" , () , [21u8 , 138u8 , 134u8 , 198u8 , 67u8 , 16u8 , 47u8 , 160u8 , 231u8 , 19u8 , 255u8 , 186u8 , 23u8 , 87u8 , 65u8 , 182u8 , 16u8 , 205u8 , 35u8 , 19u8 , 129u8 , 18u8 , 14u8 , 212u8 , 25u8 , 86u8 , 204u8 , 196u8 , 38u8 , 196u8 , 28u8 , 217u8 ,]) } # [doc = " The current Ethereum block."] pub fn current_block (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_block :: CurrentBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "CurrentBlock" , () , [160u8 , 19u8 , 50u8 , 50u8 , 170u8 , 88u8 , 115u8 , 164u8 , 233u8 , 186u8 , 195u8 , 140u8 , 176u8 , 51u8 , 20u8 , 164u8 , 16u8 , 180u8 , 147u8 , 208u8 , 125u8 , 150u8 , 125u8 , 28u8 , 36u8 , 5u8 , 139u8 , 5u8 , 31u8 , 164u8 , 224u8 , 4u8 ,]) } # [doc = " The current Ethereum receipts."] pub fn current_receipts (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_receipts :: CurrentReceipts , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "CurrentReceipts" , () , [103u8 , 116u8 , 205u8 , 150u8 , 92u8 , 7u8 , 161u8 , 160u8 , 139u8 , 111u8 , 22u8 , 50u8 , 136u8 , 109u8 , 249u8 , 9u8 , 133u8 , 47u8 , 84u8 , 129u8 , 168u8 , 195u8 , 122u8 , 132u8 , 92u8 , 38u8 , 166u8 , 129u8 , 118u8 , 51u8 , 89u8 , 27u8 ,]) } # [doc = " The current transaction statuses."] pub fn current_transaction_statuses (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_transaction_statuses :: CurrentTransactionStatuses , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "CurrentTransactionStatuses" , () , [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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: block_hash :: BlockHash , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "BlockHash" , () , [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 (& self , _0 : types :: block_hash :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: block_hash :: Param0 > , types :: block_hash :: BlockHash , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "BlockHash" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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 ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_evm :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Withdraw balance from EVM into currency/balances pallet."] pub struct Withdraw { pub address : withdraw :: Address , pub value : withdraw :: Value , } pub mod withdraw { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Value = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Withdraw { const PALLET : & 'static str = "EVM" ; const CALL : & 'static str = "withdraw" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Issue an EVM call operation. This is similar to a message call transaction in Ethereum."] pub struct Call { pub source : call :: Source , pub target : call :: Target , pub input : call :: Input , pub value : call :: Value , pub gas_limit : call :: GasLimit , pub max_fee_per_gas : call :: MaxFeePerGas , pub max_priority_fee_per_gas : call :: MaxPriorityFeePerGas , pub nonce : call :: Nonce , pub access_list : call :: AccessList , pub authorization_list : call :: AuthorizationList , } pub mod call { use super :: runtime_types ; pub type Source = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Target = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Input = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Value = runtime_types :: primitive_types :: U256 ; pub type GasLimit = :: core :: primitive :: u64 ; pub type MaxFeePerGas = runtime_types :: primitive_types :: U256 ; pub type MaxPriorityFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Nonce = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type AccessList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > ; pub type AuthorizationList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Call { const PALLET : & 'static str = "EVM" ; const CALL : & 'static str = "call" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Issue an EVM create operation. This is similar to a contract creation transaction in"] # [doc = "Ethereum."] pub struct Create { pub source : create :: Source , pub init : create :: Init , pub value : create :: Value , pub gas_limit : create :: GasLimit , pub max_fee_per_gas : create :: MaxFeePerGas , pub max_priority_fee_per_gas : create :: MaxPriorityFeePerGas , pub nonce : create :: Nonce , pub access_list : create :: AccessList , pub authorization_list : create :: AuthorizationList , } pub mod create { use super :: runtime_types ; pub type Source = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Init = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Value = runtime_types :: primitive_types :: U256 ; pub type GasLimit = :: core :: primitive :: u64 ; pub type MaxFeePerGas = runtime_types :: primitive_types :: U256 ; pub type MaxPriorityFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Nonce = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type AccessList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > ; pub type AuthorizationList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Create { const PALLET : & 'static str = "EVM" ; const CALL : & 'static str = "create" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Issue an EVM create2 operation."] pub struct Create2 { pub source : create2 :: Source , pub init : create2 :: Init , pub salt : create2 :: Salt , pub value : create2 :: Value , pub gas_limit : create2 :: GasLimit , pub max_fee_per_gas : create2 :: MaxFeePerGas , pub max_priority_fee_per_gas : create2 :: MaxPriorityFeePerGas , pub nonce : create2 :: Nonce , pub access_list : create2 :: AccessList , pub authorization_list : create2 :: AuthorizationList , } pub mod create2 { use super :: runtime_types ; pub type Source = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Init = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Salt = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Value = runtime_types :: primitive_types :: U256 ; pub type GasLimit = :: core :: primitive :: u64 ; pub type MaxFeePerGas = runtime_types :: primitive_types :: U256 ; pub type MaxPriorityFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Nonce = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type AccessList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > ; pub type AuthorizationList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Create2 { const PALLET : & 'static str = "EVM" ; const CALL : & 'static str = "create2" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SetWhitelist { pub new : set_whitelist :: New , } pub mod set_whitelist { use super :: runtime_types ; pub type New = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H160 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetWhitelist { const PALLET : & 'static str = "EVM" ; const CALL : & 'static str = "set_whitelist" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DisableWhitelist { pub disabled : disable_whitelist :: Disabled , } pub mod disable_whitelist { use super :: runtime_types ; pub type Disabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DisableWhitelist { const PALLET : & 'static str = "EVM" ; const CALL : & 'static str = "disable_whitelist" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Withdraw balance from EVM into currency/balances pallet."] pub fn withdraw (& self , address : types :: withdraw :: Address , value : types :: withdraw :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Withdraw > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("EVM" , "withdraw" , types :: Withdraw { address , value , } , [135u8 , 188u8 , 45u8 , 31u8 , 97u8 , 13u8 , 204u8 , 72u8 , 188u8 , 45u8 , 61u8 , 246u8 , 4u8 , 165u8 , 30u8 , 1u8 , 30u8 , 109u8 , 117u8 , 205u8 , 148u8 , 196u8 , 131u8 , 216u8 , 23u8 , 152u8 , 18u8 , 165u8 , 133u8 , 20u8 , 65u8 , 210u8 ,]) } # [doc = "Issue an EVM call operation. This is similar to a message call transaction in Ethereum."] pub fn call (& self , source : types :: call :: Source , target : types :: call :: Target , input : types :: call :: Input , value : types :: call :: Value , gas_limit : types :: call :: GasLimit , max_fee_per_gas : types :: call :: MaxFeePerGas , max_priority_fee_per_gas : types :: call :: MaxPriorityFeePerGas , nonce : types :: call :: Nonce , access_list : types :: call :: AccessList , authorization_list : types :: call :: AuthorizationList ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Call > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("EVM" , "call" , types :: Call { source , target , input , value , gas_limit , max_fee_per_gas , max_priority_fee_per_gas , nonce , access_list , authorization_list , } , [43u8 , 131u8 , 117u8 , 176u8 , 189u8 , 205u8 , 125u8 , 21u8 , 100u8 , 175u8 , 63u8 , 241u8 , 179u8 , 22u8 , 13u8 , 85u8 , 130u8 , 42u8 , 240u8 , 181u8 , 202u8 , 150u8 , 223u8 , 57u8 , 189u8 , 144u8 , 211u8 , 173u8 , 4u8 , 189u8 , 139u8 , 229u8 ,]) } # [doc = "Issue an EVM create operation. This is similar to a contract creation transaction in"] # [doc = "Ethereum."] pub fn create (& self , source : types :: create :: Source , init : types :: create :: Init , value : types :: create :: Value , gas_limit : types :: create :: GasLimit , max_fee_per_gas : types :: create :: MaxFeePerGas , max_priority_fee_per_gas : types :: create :: MaxPriorityFeePerGas , nonce : types :: create :: Nonce , access_list : types :: create :: AccessList , authorization_list : types :: create :: AuthorizationList ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Create > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("EVM" , "create" , types :: Create { source , init , value , gas_limit , max_fee_per_gas , max_priority_fee_per_gas , nonce , access_list , authorization_list , } , [120u8 , 184u8 , 37u8 , 18u8 , 60u8 , 104u8 , 189u8 , 103u8 , 78u8 , 22u8 , 240u8 , 50u8 , 170u8 , 55u8 , 5u8 , 22u8 , 90u8 , 191u8 , 122u8 , 38u8 , 162u8 , 148u8 , 23u8 , 115u8 , 52u8 , 163u8 , 115u8 , 162u8 , 56u8 , 101u8 , 49u8 , 134u8 ,]) } # [doc = "Issue an EVM create2 operation."] pub fn create2 (& self , source : types :: create2 :: Source , init : types :: create2 :: Init , salt : types :: create2 :: Salt , value : types :: create2 :: Value , gas_limit : types :: create2 :: GasLimit , max_fee_per_gas : types :: create2 :: MaxFeePerGas , max_priority_fee_per_gas : types :: create2 :: MaxPriorityFeePerGas , nonce : types :: create2 :: Nonce , access_list : types :: create2 :: AccessList , authorization_list : types :: create2 :: AuthorizationList ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Create2 > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("EVM" , "create2" , types :: Create2 { source , init , salt , value , gas_limit , max_fee_per_gas , max_priority_fee_per_gas , nonce , access_list , authorization_list , } , [11u8 , 127u8 , 157u8 , 129u8 , 171u8 , 22u8 , 111u8 , 73u8 , 191u8 , 68u8 , 92u8 , 190u8 , 208u8 , 231u8 , 106u8 , 145u8 , 23u8 , 148u8 , 120u8 , 62u8 , 170u8 , 194u8 , 29u8 , 206u8 , 236u8 , 249u8 , 227u8 , 144u8 , 29u8 , 16u8 , 192u8 , 188u8 ,]) } pub fn set_whitelist (& self , new : types :: set_whitelist :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetWhitelist > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("EVM" , "set_whitelist" , types :: SetWhitelist { new , } , [185u8 , 172u8 , 14u8 , 148u8 , 66u8 , 98u8 , 55u8 , 22u8 , 81u8 , 114u8 , 181u8 , 143u8 , 110u8 , 100u8 , 136u8 , 249u8 , 179u8 , 232u8 , 55u8 , 168u8 , 49u8 , 129u8 , 95u8 , 180u8 , 213u8 , 247u8 , 160u8 , 230u8 , 83u8 , 83u8 , 166u8 , 62u8 ,]) } pub fn disable_whitelist (& self , disabled : types :: disable_whitelist :: Disabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DisableWhitelist > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("EVM" , "disable_whitelist" , types :: DisableWhitelist { disabled , } , [240u8 , 162u8 , 95u8 , 199u8 , 83u8 , 82u8 , 108u8 , 184u8 , 80u8 , 181u8 , 189u8 , 165u8 , 188u8 , 160u8 , 187u8 , 224u8 , 110u8 , 184u8 , 156u8 , 134u8 , 124u8 , 210u8 , 214u8 , 129u8 , 213u8 , 76u8 , 188u8 , 31u8 , 11u8 , 13u8 , 128u8 , 217u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Ethereum events from contracts."] pub struct Log { pub log : log :: Log , } pub mod log { use super :: runtime_types ; pub type Log = runtime_types :: ethereum :: log :: Log ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Log { const PALLET : & 'static str = "EVM" ; const EVENT : & 'static str = "Log" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract has been created at given address."] pub struct Created { pub address : created :: Address , } pub mod created { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Created { const PALLET : & 'static str = "EVM" ; const EVENT : & 'static str = "Created" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract was attempted to be created, but the execution failed."] pub struct CreatedFailed { pub address : created_failed :: Address , } pub mod created_failed { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CreatedFailed { const PALLET : & 'static str = "EVM" ; const EVENT : & 'static str = "CreatedFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract has been executed successfully with states applied."] pub struct Executed { pub address : executed :: Address , } pub mod executed { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Executed { const PALLET : & 'static str = "EVM" ; const EVENT : & 'static str = "Executed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract has been executed with errors. States are reverted with only gas fees applied."] pub struct ExecutedFailed { pub address : executed_failed :: Address , } pub mod executed_failed { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ExecutedFailed { const PALLET : & 'static str = "EVM" ; const EVENT : & 'static str = "ExecutedFailed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod account_codes { use super :: runtime_types ; pub type AccountCodes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H160 ; } pub mod account_codes_metadata { use super :: runtime_types ; pub type AccountCodesMetadata = runtime_types :: pallet_evm :: CodeMetadata ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H160 ; } pub mod account_storages { use super :: runtime_types ; pub type AccountStorages = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod whitelisted_creators { use super :: runtime_types ; pub type WhitelistedCreators = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H160 > ; } pub mod disable_whitelist_check { use super :: runtime_types ; pub type DisableWhitelistCheck = :: core :: primitive :: bool ; } } pub struct StorageApi ; impl StorageApi { pub fn account_codes_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account_codes :: AccountCodes , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountCodes" , () , [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 (& self , _0 : types :: account_codes :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account_codes :: Param0 > , types :: account_codes :: AccountCodes , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountCodes" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account_codes_metadata :: AccountCodesMetadata , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountCodesMetadata" , () , [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 (& self , _0 : types :: account_codes_metadata :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account_codes_metadata :: Param0 > , types :: account_codes_metadata :: AccountCodesMetadata , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountCodesMetadata" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account_storages :: AccountStorages , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountStorages" , () , [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_iter1 (& self , _0 : types :: account_storages :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account_storages :: Param0 > , types :: account_storages :: AccountStorages , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountStorages" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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 (& self , _0 : types :: account_storages :: Param0 , _1 : types :: account_storages :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account_storages :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account_storages :: Param1 > ,) , types :: account_storages :: AccountStorages , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountStorages" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [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 whitelisted_creators (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: whitelisted_creators :: WhitelistedCreators , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "WhitelistedCreators" , () , [32u8 , 0u8 , 241u8 , 215u8 , 20u8 , 25u8 , 60u8 , 48u8 , 117u8 , 249u8 , 187u8 , 27u8 , 115u8 , 127u8 , 173u8 , 7u8 , 222u8 , 56u8 , 102u8 , 254u8 , 253u8 , 177u8 , 166u8 , 9u8 , 78u8 , 167u8 , 173u8 , 84u8 , 181u8 , 162u8 , 153u8 , 151u8 ,]) } pub fn disable_whitelist_check (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: disable_whitelist_check :: DisableWhitelistCheck , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "DisableWhitelistCheck" , () , [95u8 , 63u8 , 29u8 , 211u8 , 247u8 , 16u8 , 115u8 , 86u8 , 99u8 , 56u8 , 237u8 , 138u8 , 220u8 , 162u8 , 86u8 , 46u8 , 101u8 , 167u8 , 148u8 , 132u8 , 218u8 , 40u8 , 157u8 , 134u8 , 13u8 , 103u8 , 160u8 , 23u8 , 110u8 , 230u8 , 226u8 , 27u8 ,]) } } } } pub mod evm_chain_id { use super :: root_mod ; use super :: runtime_types ; pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod chain_id { use super :: runtime_types ; pub type ChainId = :: core :: primitive :: u64 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The EVM chain ID."] pub fn chain_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: chain_id :: ChainId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVMChainId" , "ChainId" , () , [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 base_fee { use super :: root_mod ; use super :: runtime_types ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SetBaseFeePerGas { pub fee : set_base_fee_per_gas :: Fee , } pub mod set_base_fee_per_gas { use super :: runtime_types ; pub type Fee = runtime_types :: primitive_types :: U256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetBaseFeePerGas { const PALLET : & 'static str = "BaseFee" ; const CALL : & 'static str = "set_base_fee_per_gas" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SetElasticity { pub elasticity : set_elasticity :: Elasticity , } pub mod set_elasticity { use super :: runtime_types ; pub type Elasticity = runtime_types :: sp_arithmetic :: per_things :: Permill ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetElasticity { const PALLET : & 'static str = "BaseFee" ; const CALL : & 'static str = "set_elasticity" ; } } pub struct TransactionApi ; impl TransactionApi { pub fn set_base_fee_per_gas (& self , fee : types :: set_base_fee_per_gas :: Fee ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetBaseFeePerGas > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } pub fn set_elasticity (& self , elasticity : types :: set_elasticity :: Elasticity ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetElasticity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NewBaseFeePerGas { pub fee : new_base_fee_per_gas :: Fee , } pub mod new_base_fee_per_gas { use super :: runtime_types ; pub type Fee = runtime_types :: primitive_types :: U256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewBaseFeePerGas { const PALLET : & 'static str = "BaseFee" ; const EVENT : & 'static str = "NewBaseFeePerGas" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BaseFeeOverflow ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BaseFeeOverflow { const PALLET : & 'static str = "BaseFee" ; const EVENT : & 'static str = "BaseFeeOverflow" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NewElasticity { pub elasticity : new_elasticity :: Elasticity , } pub mod new_elasticity { use super :: runtime_types ; pub type Elasticity = runtime_types :: sp_arithmetic :: per_things :: Permill ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewElasticity { const PALLET : & 'static str = "BaseFee" ; const EVENT : & 'static str = "NewElasticity" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod base_fee_per_gas { use super :: runtime_types ; pub type BaseFeePerGas = runtime_types :: primitive_types :: U256 ; } pub mod elasticity { use super :: runtime_types ; pub type Elasticity = runtime_types :: sp_arithmetic :: per_things :: Permill ; } } pub struct StorageApi ; impl StorageApi { pub fn base_fee_per_gas (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: base_fee_per_gas :: BaseFeePerGas , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("BaseFee" , "BaseFeePerGas" , () , [163u8 , 83u8 , 190u8 , 204u8 , 112u8 , 186u8 , 110u8 , 189u8 , 86u8 , 226u8 , 192u8 , 127u8 , 139u8 , 72u8 , 96u8 , 204u8 , 173u8 , 174u8 , 158u8 , 163u8 , 140u8 , 168u8 , 159u8 , 186u8 , 140u8 , 110u8 , 61u8 , 151u8 , 201u8 , 172u8 , 233u8 , 199u8 ,]) } pub fn elasticity (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: elasticity :: Elasticity , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("BaseFee" , "Elasticity" , () , [196u8 , 184u8 , 245u8 , 90u8 , 25u8 , 50u8 , 66u8 , 69u8 , 140u8 , 128u8 , 179u8 , 63u8 , 197u8 , 133u8 , 135u8 , 141u8 , 56u8 , 0u8 , 143u8 , 241u8 , 200u8 , 114u8 , 73u8 , 157u8 , 85u8 , 190u8 , 1u8 , 2u8 , 208u8 , 235u8 , 62u8 , 16u8 ,]) } } } } pub mod drand { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_drand :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_drand :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Verify and write a pulse from the beacon into the runtime"] pub struct WritePulse { pub pulses_payload : write_pulse :: PulsesPayload , pub signature : write_pulse :: Signature , } pub mod write_pulse { use super :: runtime_types ; pub type PulsesPayload = runtime_types :: pallet_drand :: types :: PulsesPayload < runtime_types :: sp_runtime :: MultiSigner , :: core :: primitive :: u32 > ; pub type Signature = :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSignature > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for WritePulse { const PALLET : & 'static str = "Drand" ; const CALL : & 'static str = "write_pulse" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "allows the root user to set the beacon configuration"] # [doc = "generally this would be called from an offchain worker context."] # [doc = "there is no verification of configurations, so be careful with this."] # [doc = ""] # [doc = "* `origin`: the root user"] # [doc = "* `config`: the beacon configuration"] pub struct SetBeaconConfig { pub config_payload : set_beacon_config :: ConfigPayload , pub signature : set_beacon_config :: Signature , } pub mod set_beacon_config { use super :: runtime_types ; pub type ConfigPayload = runtime_types :: pallet_drand :: types :: BeaconConfigurationPayload < runtime_types :: sp_runtime :: MultiSigner , :: core :: primitive :: u32 > ; pub type Signature = :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSignature > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetBeaconConfig { const PALLET : & 'static str = "Drand" ; const CALL : & 'static str = "set_beacon_config" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "allows the root user to set the oldest stored round"] pub struct SetOldestStoredRound { pub oldest_round : set_oldest_stored_round :: OldestRound , } pub mod set_oldest_stored_round { use super :: runtime_types ; pub type OldestRound = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetOldestStoredRound { const PALLET : & 'static str = "Drand" ; const CALL : & 'static str = "set_oldest_stored_round" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Verify and write a pulse from the beacon into the runtime"] pub fn write_pulse (& self , pulses_payload : types :: write_pulse :: PulsesPayload , signature : types :: write_pulse :: Signature ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: WritePulse > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Drand" , "write_pulse" , types :: WritePulse { pulses_payload , signature , } , [221u8 , 164u8 , 46u8 , 186u8 , 141u8 , 92u8 , 200u8 , 194u8 , 198u8 , 147u8 , 243u8 , 155u8 , 161u8 , 220u8 , 28u8 , 118u8 , 185u8 , 79u8 , 32u8 , 221u8 , 220u8 , 59u8 , 231u8 , 236u8 , 147u8 , 48u8 , 148u8 , 2u8 , 134u8 , 128u8 , 79u8 , 227u8 ,]) } # [doc = "allows the root user to set the beacon configuration"] # [doc = "generally this would be called from an offchain worker context."] # [doc = "there is no verification of configurations, so be careful with this."] # [doc = ""] # [doc = "* `origin`: the root user"] # [doc = "* `config`: the beacon configuration"] pub fn set_beacon_config (& self , config_payload : types :: set_beacon_config :: ConfigPayload , signature : types :: set_beacon_config :: Signature ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetBeaconConfig > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Drand" , "set_beacon_config" , types :: SetBeaconConfig { config_payload , signature , } , [243u8 , 253u8 , 178u8 , 170u8 , 110u8 , 204u8 , 66u8 , 210u8 , 95u8 , 111u8 , 220u8 , 214u8 , 34u8 , 141u8 , 17u8 , 216u8 , 111u8 , 65u8 , 32u8 , 236u8 , 210u8 , 169u8 , 240u8 , 45u8 , 117u8 , 133u8 , 235u8 , 240u8 , 166u8 , 246u8 , 20u8 , 63u8 ,]) } # [doc = "allows the root user to set the oldest stored round"] pub fn set_oldest_stored_round (& self , oldest_round : types :: set_oldest_stored_round :: OldestRound ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetOldestStoredRound > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Drand" , "set_oldest_stored_round" , types :: SetOldestStoredRound { oldest_round , } , [73u8 , 193u8 , 136u8 , 48u8 , 145u8 , 157u8 , 215u8 , 8u8 , 246u8 , 115u8 , 44u8 , 66u8 , 104u8 , 79u8 , 62u8 , 12u8 , 92u8 , 192u8 , 202u8 , 69u8 , 42u8 , 219u8 , 57u8 , 173u8 , 112u8 , 174u8 , 249u8 , 29u8 , 171u8 , 251u8 , 36u8 , 84u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_drand :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Beacon Configuration has changed."] pub struct BeaconConfigChanged ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BeaconConfigChanged { const PALLET : & 'static str = "Drand" ; const EVENT : & 'static str = "BeaconConfigChanged" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Successfully set a new pulse(s)."] pub struct NewPulse { pub rounds : new_pulse :: Rounds , } pub mod new_pulse { use super :: runtime_types ; pub type Rounds = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewPulse { const PALLET : & 'static str = "Drand" ; const EVENT : & 'static str = "NewPulse" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Oldest Stored Round has been set."] pub struct SetOldestStoredRound (pub set_oldest_stored_round :: Field0 ,) ; pub mod set_oldest_stored_round { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SetOldestStoredRound { const PALLET : & 'static str = "Drand" ; const EVENT : & 'static str = "SetOldestStoredRound" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod beacon_config { use super :: runtime_types ; pub type BeaconConfig = runtime_types :: pallet_drand :: types :: BeaconConfiguration ; } pub mod has_migration_run { use super :: runtime_types ; pub type HasMigrationRun = :: core :: primitive :: bool ; pub type Param0 = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } pub mod pulses { use super :: runtime_types ; pub type Pulses = runtime_types :: pallet_drand :: types :: Pulse ; pub type Param0 = :: core :: primitive :: u64 ; } pub mod last_stored_round { use super :: runtime_types ; pub type LastStoredRound = :: core :: primitive :: u64 ; } pub mod oldest_stored_round { use super :: runtime_types ; pub type OldestStoredRound = :: core :: primitive :: u64 ; } pub mod next_unsigned_at { use super :: runtime_types ; pub type NextUnsignedAt = :: core :: primitive :: u32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " the drand beacon configuration"] pub fn beacon_config (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: beacon_config :: BeaconConfig , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "BeaconConfig" , () , [18u8 , 47u8 , 206u8 , 15u8 , 177u8 , 6u8 , 99u8 , 97u8 , 203u8 , 190u8 , 194u8 , 210u8 , 188u8 , 82u8 , 149u8 , 252u8 , 130u8 , 250u8 , 99u8 , 79u8 , 144u8 , 65u8 , 9u8 , 3u8 , 12u8 , 14u8 , 236u8 , 109u8 , 114u8 , 240u8 , 215u8 , 231u8 ,]) } # [doc = " Storage for migration run status"] pub fn has_migration_run_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: has_migration_run :: HasMigrationRun , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "HasMigrationRun" , () , [136u8 , 249u8 , 238u8 , 25u8 , 98u8 , 133u8 , 200u8 , 15u8 , 17u8 , 89u8 , 154u8 , 4u8 , 233u8 , 103u8 , 58u8 , 217u8 , 175u8 , 118u8 , 195u8 , 242u8 , 84u8 , 56u8 , 128u8 , 198u8 , 252u8 , 160u8 , 185u8 , 22u8 , 19u8 , 240u8 , 98u8 , 7u8 ,]) } # [doc = " Storage for migration run status"] pub fn has_migration_run (& self , _0 : types :: has_migration_run :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: has_migration_run :: Param0 > , types :: has_migration_run :: HasMigrationRun , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "HasMigrationRun" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [136u8 , 249u8 , 238u8 , 25u8 , 98u8 , 133u8 , 200u8 , 15u8 , 17u8 , 89u8 , 154u8 , 4u8 , 233u8 , 103u8 , 58u8 , 217u8 , 175u8 , 118u8 , 195u8 , 242u8 , 84u8 , 56u8 , 128u8 , 198u8 , 252u8 , 160u8 , 185u8 , 22u8 , 19u8 , 240u8 , 98u8 , 7u8 ,]) } # [doc = " map round number to pulse"] pub fn pulses_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pulses :: Pulses , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "Pulses" , () , [111u8 , 101u8 , 109u8 , 228u8 , 55u8 , 75u8 , 231u8 , 111u8 , 247u8 , 135u8 , 218u8 , 133u8 , 238u8 , 209u8 , 208u8 , 135u8 , 211u8 , 166u8 , 70u8 , 31u8 , 116u8 , 110u8 , 182u8 , 254u8 , 128u8 , 28u8 , 152u8 , 59u8 , 71u8 , 130u8 , 40u8 , 73u8 ,]) } # [doc = " map round number to pulse"] pub fn pulses (& self , _0 : types :: pulses :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pulses :: Param0 > , types :: pulses :: Pulses , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "Pulses" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [111u8 , 101u8 , 109u8 , 228u8 , 55u8 , 75u8 , 231u8 , 111u8 , 247u8 , 135u8 , 218u8 , 133u8 , 238u8 , 209u8 , 208u8 , 135u8 , 211u8 , 166u8 , 70u8 , 31u8 , 116u8 , 110u8 , 182u8 , 254u8 , 128u8 , 28u8 , 152u8 , 59u8 , 71u8 , 130u8 , 40u8 , 73u8 ,]) } pub fn last_stored_round (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_stored_round :: LastStoredRound , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "LastStoredRound" , () , [42u8 , 140u8 , 235u8 , 188u8 , 84u8 , 128u8 , 25u8 , 244u8 , 36u8 , 165u8 , 34u8 , 179u8 , 116u8 , 206u8 , 208u8 , 187u8 , 14u8 , 228u8 , 163u8 , 29u8 , 187u8 , 145u8 , 151u8 , 25u8 , 209u8 , 148u8 , 30u8 , 248u8 , 251u8 , 238u8 , 206u8 , 249u8 ,]) } # [doc = " oldest stored round"] pub fn oldest_stored_round (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: oldest_stored_round :: OldestStoredRound , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "OldestStoredRound" , () , [213u8 , 254u8 , 95u8 , 243u8 , 105u8 , 135u8 , 206u8 , 169u8 , 141u8 , 95u8 , 34u8 , 61u8 , 195u8 , 8u8 , 177u8 , 127u8 , 172u8 , 12u8 , 82u8 , 54u8 , 10u8 , 40u8 , 44u8 , 173u8 , 24u8 , 30u8 , 43u8 , 94u8 , 114u8 , 63u8 , 156u8 , 68u8 ,]) } # [doc = " Defines the block when next unsigned transaction will be accepted."] # [doc = ""] # [doc = " To prevent spam of unsigned (and unpaid!) transactions on the network,"] # [doc = " we only allow one transaction per block."] # [doc = " This storage entry defines when new transaction is going to be accepted."] pub fn next_unsigned_at (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_unsigned_at :: NextUnsignedAt , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "NextUnsignedAt" , () , [128u8 , 69u8 , 217u8 , 175u8 , 94u8 , 131u8 , 228u8 , 97u8 , 2u8 , 91u8 , 12u8 , 95u8 , 35u8 , 105u8 , 136u8 , 55u8 , 49u8 , 3u8 , 224u8 , 213u8 , 96u8 , 45u8 , 19u8 , 217u8 , 5u8 , 6u8 , 20u8 , 51u8 , 219u8 , 66u8 , 143u8 , 50u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Drand" , "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 ,]) } # [doc = " The maximum number of milliseconds we are willing to wait for the HTTP request to"] # [doc = " complete."] pub fn http_fetch_timeout (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Drand" , "HttpFetchTimeout" , [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 crowdloan { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_crowdloan :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_crowdloan :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Create a crowdloan that will raise funds up to a maximum cap and if successful,"] # [doc = "will transfer funds to the target address if provided and dispatch the call"] # [doc = "(using creator origin)."] # [doc = ""] # [doc = "The initial deposit will be transfered to the crowdloan account and will be refunded"] # [doc = "in case the crowdloan fails to raise the cap. Additionally, the creator will pay for"] # [doc = "the execution of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `deposit`: The initial deposit from the creator."] # [doc = "- `min_contribution`: The minimum contribution required to contribute to the crowdloan."] # [doc = "- `cap`: The maximum amount of funds that can be raised."] # [doc = "- `end`: The block number at which the crowdloan will end."] # [doc = "- `call`: The call to dispatch when the crowdloan is finalized."] # [doc = "- `target_address`: The address to transfer the raised funds to if provided."] pub struct Create { # [codec (compact)] pub deposit : create :: Deposit , # [codec (compact)] pub min_contribution : create :: MinContribution , # [codec (compact)] pub cap : create :: Cap , # [codec (compact)] pub end : create :: End , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < create :: Call > , pub target_address : create :: TargetAddress , } pub mod create { use super :: runtime_types ; pub type Deposit = :: core :: primitive :: u64 ; pub type MinContribution = :: core :: primitive :: u64 ; pub type Cap = :: core :: primitive :: u64 ; pub type End = :: core :: primitive :: u32 ; pub type Call = :: core :: option :: Option < runtime_types :: node_subtensor_runtime :: RuntimeCall > ; pub type TargetAddress = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Create { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "create" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contribute to an active crowdloan."] # [doc = ""] # [doc = "The contribution will be transfered to the crowdloan account and will be refunded"] # [doc = "if the crowdloan fails to raise the cap. If the contribution would raise the amount above the cap,"] # [doc = "the contribution will be set to the amount that is left to be raised."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to contribute to."] # [doc = "- `amount`: The amount to contribute."] pub struct Contribute { # [codec (compact)] pub crowdloan_id : contribute :: CrowdloanId , # [codec (compact)] pub amount : contribute :: Amount , } pub mod contribute { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Contribute { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "contribute" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Withdraw a contribution from an active (not yet finalized or dissolved) crowdloan."] # [doc = ""] # [doc = "Only contributions over the deposit can be withdrawn by the creator."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to withdraw from."] pub struct Withdraw { # [codec (compact)] pub crowdloan_id : withdraw :: CrowdloanId , } pub mod withdraw { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Withdraw { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "withdraw" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Finalize crowdloan that has reached the cap."] # [doc = ""] # [doc = "The call will transfer the raised amount to the target address if it was provided when the crowdloan was created"] # [doc = "and dispatch the call that was provided using the creator origin. The CurrentCrowdloanId will be set to the"] # [doc = "crowdloan id being finalized so the dispatched call can access it temporarily by accessing"] # [doc = "the `CurrentCrowdloanId` storage item."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to finalize."] pub struct Finalize { # [codec (compact)] pub crowdloan_id : finalize :: CrowdloanId , } pub mod finalize { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Finalize { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "finalize" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Refund contributors of a non-finalized crowdloan."] # [doc = ""] # [doc = "The call will try to refund all contributors (excluding the creator) up to the limit defined by the `RefundContributorsLimit`."] # [doc = "If the limit is reached, the call will stop and the crowdloan will be marked as partially refunded."] # [doc = "It may be needed to dispatch this call multiple times to refund all contributors."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and doesn't need to be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to refund."] pub struct Refund { # [codec (compact)] pub crowdloan_id : refund :: CrowdloanId , } pub mod refund { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Refund { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "refund" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dissolve a crowdloan."] # [doc = ""] # [doc = "The crowdloan will be removed from the storage."] # [doc = "All contributions must have been refunded before the crowdloan can be dissolved (except the creator's one)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to dissolve."] pub struct Dissolve { # [codec (compact)] pub crowdloan_id : dissolve :: CrowdloanId , } pub mod dissolve { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Dissolve { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "dissolve" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Update the minimum contribution of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the minimum contribution of."] # [doc = "- `new_min_contribution`: The new minimum contribution."] pub struct UpdateMinContribution { # [codec (compact)] pub crowdloan_id : update_min_contribution :: CrowdloanId , # [codec (compact)] pub new_min_contribution : update_min_contribution :: NewMinContribution , } pub mod update_min_contribution { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type NewMinContribution = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpdateMinContribution { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "update_min_contribution" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Update the end block of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the end block of."] # [doc = "- `new_end`: The new end block."] pub struct UpdateEnd { # [codec (compact)] pub crowdloan_id : update_end :: CrowdloanId , # [codec (compact)] pub new_end : update_end :: NewEnd , } pub mod update_end { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type NewEnd = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpdateEnd { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "update_end" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Update the cap of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the cap of."] # [doc = "- `new_cap`: The new cap."] pub struct UpdateCap { # [codec (compact)] pub crowdloan_id : update_cap :: CrowdloanId , # [codec (compact)] pub new_cap : update_cap :: NewCap , } pub mod update_cap { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type NewCap = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpdateCap { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "update_cap" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Create a crowdloan that will raise funds up to a maximum cap and if successful,"] # [doc = "will transfer funds to the target address if provided and dispatch the call"] # [doc = "(using creator origin)."] # [doc = ""] # [doc = "The initial deposit will be transfered to the crowdloan account and will be refunded"] # [doc = "in case the crowdloan fails to raise the cap. Additionally, the creator will pay for"] # [doc = "the execution of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `deposit`: The initial deposit from the creator."] # [doc = "- `min_contribution`: The minimum contribution required to contribute to the crowdloan."] # [doc = "- `cap`: The maximum amount of funds that can be raised."] # [doc = "- `end`: The block number at which the crowdloan will end."] # [doc = "- `call`: The call to dispatch when the crowdloan is finalized."] # [doc = "- `target_address`: The address to transfer the raised funds to if provided."] pub fn create (& self , deposit : types :: create :: Deposit , min_contribution : types :: create :: MinContribution , cap : types :: create :: Cap , end : types :: create :: End , call : types :: create :: Call , target_address : types :: create :: TargetAddress ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Create > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "create" , types :: Create { deposit , min_contribution , cap , end , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , target_address , } , [7u8 , 67u8 , 145u8 , 25u8 , 103u8 , 53u8 , 144u8 , 252u8 , 121u8 , 253u8 , 158u8 , 2u8 , 247u8 , 10u8 , 130u8 , 30u8 , 64u8 , 20u8 , 144u8 , 142u8 , 95u8 , 119u8 , 129u8 , 236u8 , 237u8 , 222u8 , 24u8 , 212u8 , 13u8 , 208u8 , 90u8 , 112u8 ,]) } # [doc = "Contribute to an active crowdloan."] # [doc = ""] # [doc = "The contribution will be transfered to the crowdloan account and will be refunded"] # [doc = "if the crowdloan fails to raise the cap. If the contribution would raise the amount above the cap,"] # [doc = "the contribution will be set to the amount that is left to be raised."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to contribute to."] # [doc = "- `amount`: The amount to contribute."] pub fn contribute (& self , crowdloan_id : types :: contribute :: CrowdloanId , amount : types :: contribute :: Amount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Contribute > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "contribute" , types :: Contribute { crowdloan_id , amount , } , [234u8 , 63u8 , 92u8 , 222u8 , 178u8 , 253u8 , 250u8 , 52u8 , 198u8 , 176u8 , 86u8 , 72u8 , 191u8 , 5u8 , 19u8 , 80u8 , 106u8 , 228u8 , 51u8 , 208u8 , 221u8 , 130u8 , 30u8 , 10u8 , 32u8 , 241u8 , 88u8 , 230u8 , 30u8 , 152u8 , 240u8 , 36u8 ,]) } # [doc = "Withdraw a contribution from an active (not yet finalized or dissolved) crowdloan."] # [doc = ""] # [doc = "Only contributions over the deposit can be withdrawn by the creator."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to withdraw from."] pub fn withdraw (& self , crowdloan_id : types :: withdraw :: CrowdloanId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Withdraw > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "withdraw" , types :: Withdraw { crowdloan_id , } , [20u8 , 54u8 , 243u8 , 253u8 , 51u8 , 189u8 , 108u8 , 142u8 , 179u8 , 51u8 , 210u8 , 120u8 , 63u8 , 46u8 , 85u8 , 169u8 , 142u8 , 119u8 , 217u8 , 2u8 , 146u8 , 187u8 , 167u8 , 208u8 , 239u8 , 165u8 , 78u8 , 79u8 , 242u8 , 219u8 , 102u8 , 126u8 ,]) } # [doc = "Finalize crowdloan that has reached the cap."] # [doc = ""] # [doc = "The call will transfer the raised amount to the target address if it was provided when the crowdloan was created"] # [doc = "and dispatch the call that was provided using the creator origin. The CurrentCrowdloanId will be set to the"] # [doc = "crowdloan id being finalized so the dispatched call can access it temporarily by accessing"] # [doc = "the `CurrentCrowdloanId` storage item."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to finalize."] pub fn finalize (& self , crowdloan_id : types :: finalize :: CrowdloanId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Finalize > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "finalize" , types :: Finalize { crowdloan_id , } , [111u8 , 193u8 , 246u8 , 10u8 , 133u8 , 89u8 , 252u8 , 36u8 , 248u8 , 130u8 , 77u8 , 192u8 , 151u8 , 153u8 , 206u8 , 50u8 , 17u8 , 237u8 , 74u8 , 98u8 , 57u8 , 141u8 , 213u8 , 42u8 , 230u8 , 221u8 , 130u8 , 112u8 , 147u8 , 51u8 , 193u8 , 128u8 ,]) } # [doc = "Refund contributors of a non-finalized crowdloan."] # [doc = ""] # [doc = "The call will try to refund all contributors (excluding the creator) up to the limit defined by the `RefundContributorsLimit`."] # [doc = "If the limit is reached, the call will stop and the crowdloan will be marked as partially refunded."] # [doc = "It may be needed to dispatch this call multiple times to refund all contributors."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and doesn't need to be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to refund."] pub fn refund (& self , crowdloan_id : types :: refund :: CrowdloanId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Refund > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "refund" , types :: Refund { crowdloan_id , } , [232u8 , 16u8 , 227u8 , 7u8 , 99u8 , 209u8 , 14u8 , 91u8 , 125u8 , 93u8 , 74u8 , 14u8 , 247u8 , 174u8 , 51u8 , 190u8 , 244u8 , 13u8 , 44u8 , 120u8 , 130u8 , 45u8 , 122u8 , 235u8 , 142u8 , 172u8 , 190u8 , 175u8 , 172u8 , 41u8 , 166u8 , 149u8 ,]) } # [doc = "Dissolve a crowdloan."] # [doc = ""] # [doc = "The crowdloan will be removed from the storage."] # [doc = "All contributions must have been refunded before the crowdloan can be dissolved (except the creator's one)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to dissolve."] pub fn dissolve (& self , crowdloan_id : types :: dissolve :: CrowdloanId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Dissolve > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "dissolve" , types :: Dissolve { crowdloan_id , } , [174u8 , 199u8 , 12u8 , 18u8 , 27u8 , 243u8 , 126u8 , 217u8 , 136u8 , 5u8 , 189u8 , 100u8 , 242u8 , 224u8 , 160u8 , 25u8 , 30u8 , 11u8 , 133u8 , 104u8 , 82u8 , 90u8 , 75u8 , 141u8 , 28u8 , 247u8 , 115u8 , 178u8 , 128u8 , 151u8 , 136u8 , 6u8 ,]) } # [doc = "Update the minimum contribution of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the minimum contribution of."] # [doc = "- `new_min_contribution`: The new minimum contribution."] pub fn update_min_contribution (& self , crowdloan_id : types :: update_min_contribution :: CrowdloanId , new_min_contribution : types :: update_min_contribution :: NewMinContribution ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpdateMinContribution > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "update_min_contribution" , types :: UpdateMinContribution { crowdloan_id , new_min_contribution , } , [171u8 , 52u8 , 147u8 , 112u8 , 17u8 , 193u8 , 79u8 , 81u8 , 236u8 , 223u8 , 214u8 , 140u8 , 184u8 , 56u8 , 33u8 , 82u8 , 58u8 , 235u8 , 124u8 , 165u8 , 125u8 , 9u8 , 130u8 , 110u8 , 255u8 , 2u8 , 226u8 , 95u8 , 243u8 , 137u8 , 178u8 , 5u8 ,]) } # [doc = "Update the end block of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the end block of."] # [doc = "- `new_end`: The new end block."] pub fn update_end (& self , crowdloan_id : types :: update_end :: CrowdloanId , new_end : types :: update_end :: NewEnd ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpdateEnd > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "update_end" , types :: UpdateEnd { crowdloan_id , new_end , } , [223u8 , 255u8 , 185u8 , 16u8 , 227u8 , 74u8 , 137u8 , 34u8 , 71u8 , 221u8 , 139u8 , 159u8 , 6u8 , 123u8 , 204u8 , 45u8 , 23u8 , 30u8 , 138u8 , 209u8 , 234u8 , 78u8 , 137u8 , 231u8 , 88u8 , 59u8 , 163u8 , 169u8 , 39u8 , 232u8 , 57u8 , 50u8 ,]) } # [doc = "Update the cap of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the cap of."] # [doc = "- `new_cap`: The new cap."] pub fn update_cap (& self , crowdloan_id : types :: update_cap :: CrowdloanId , new_cap : types :: update_cap :: NewCap ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpdateCap > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "update_cap" , types :: UpdateCap { crowdloan_id , new_cap , } , [214u8 , 212u8 , 218u8 , 183u8 , 239u8 , 110u8 , 162u8 , 121u8 , 243u8 , 126u8 , 95u8 , 144u8 , 203u8 , 192u8 , 82u8 , 103u8 , 227u8 , 22u8 , 199u8 , 215u8 , 154u8 , 25u8 , 52u8 , 90u8 , 238u8 , 93u8 , 238u8 , 62u8 , 60u8 , 91u8 , 65u8 , 136u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_crowdloan :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A crowdloan was created."] pub struct Created { pub crowdloan_id : created :: CrowdloanId , pub creator : created :: Creator , pub end : created :: End , pub cap : created :: Cap , } pub mod created { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type Creator = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type End = :: core :: primitive :: u32 ; pub type Cap = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Created { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Created" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contribution was made to an active crowdloan."] pub struct Contributed { pub crowdloan_id : contributed :: CrowdloanId , pub contributor : contributed :: Contributor , pub amount : contributed :: Amount , } pub mod contributed { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type Contributor = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Contributed { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Contributed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contribution was withdrawn from a failed crowdloan."] pub struct Withdrew { pub crowdloan_id : withdrew :: CrowdloanId , pub contributor : withdrew :: Contributor , pub amount : withdrew :: Amount , } pub mod withdrew { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type Contributor = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Withdrew { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Withdrew" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A refund was partially processed for a failed crowdloan."] pub struct PartiallyRefunded { pub crowdloan_id : partially_refunded :: CrowdloanId , } pub mod partially_refunded { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PartiallyRefunded { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "PartiallyRefunded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A refund was fully processed for a failed crowdloan."] pub struct AllRefunded { pub crowdloan_id : all_refunded :: CrowdloanId , } pub mod all_refunded { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AllRefunded { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "AllRefunded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A crowdloan was finalized, funds were transferred and the call was dispatched."] pub struct Finalized { pub crowdloan_id : finalized :: CrowdloanId , } pub mod finalized { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Finalized { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Finalized" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A crowdloan was dissolved."] pub struct Dissolved { pub crowdloan_id : dissolved :: CrowdloanId , } pub mod dissolved { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Dissolved { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Dissolved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The minimum contribution was updated."] pub struct MinContributionUpdated { pub crowdloan_id : min_contribution_updated :: CrowdloanId , pub new_min_contribution : min_contribution_updated :: NewMinContribution , } pub mod min_contribution_updated { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type NewMinContribution = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinContributionUpdated { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "MinContributionUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The end was updated."] pub struct EndUpdated { pub crowdloan_id : end_updated :: CrowdloanId , pub new_end : end_updated :: NewEnd , } pub mod end_updated { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type NewEnd = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for EndUpdated { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "EndUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The cap was updated."] pub struct CapUpdated { pub crowdloan_id : cap_updated :: CrowdloanId , pub new_cap : cap_updated :: NewCap , } pub mod cap_updated { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type NewCap = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CapUpdated { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "CapUpdated" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod crowdloans { use super :: runtime_types ; pub type Crowdloans = runtime_types :: pallet_crowdloan :: CrowdloanInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u32 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: node_subtensor_runtime :: RuntimeCall , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod next_crowdloan_id { use super :: runtime_types ; pub type NextCrowdloanId = :: core :: primitive :: u32 ; } pub mod contributions { use super :: runtime_types ; pub type Contributions = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod current_crowdloan_id { use super :: runtime_types ; pub type CurrentCrowdloanId = :: core :: primitive :: u32 ; } pub mod has_migration_run { use super :: runtime_types ; pub type HasMigrationRun = :: core :: primitive :: bool ; pub type Param0 = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } } pub struct StorageApi ; impl StorageApi { # [doc = " A map of crowdloan ids to their information."] pub fn crowdloans_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: crowdloans :: Crowdloans , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "Crowdloans" , () , [241u8 , 93u8 , 160u8 , 120u8 , 207u8 , 125u8 , 104u8 , 216u8 , 205u8 , 91u8 , 209u8 , 77u8 , 97u8 , 118u8 , 217u8 , 134u8 , 48u8 , 110u8 , 238u8 , 12u8 , 24u8 , 3u8 , 197u8 , 164u8 , 30u8 , 80u8 , 13u8 , 137u8 , 186u8 , 233u8 , 70u8 , 41u8 ,]) } # [doc = " A map of crowdloan ids to their information."] pub fn crowdloans (& self , _0 : types :: crowdloans :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crowdloans :: Param0 > , types :: crowdloans :: Crowdloans , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "Crowdloans" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [241u8 , 93u8 , 160u8 , 120u8 , 207u8 , 125u8 , 104u8 , 216u8 , 205u8 , 91u8 , 209u8 , 77u8 , 97u8 , 118u8 , 217u8 , 134u8 , 48u8 , 110u8 , 238u8 , 12u8 , 24u8 , 3u8 , 197u8 , 164u8 , 30u8 , 80u8 , 13u8 , 137u8 , 186u8 , 233u8 , 70u8 , 41u8 ,]) } # [doc = " The next incrementing crowdloan id."] pub fn next_crowdloan_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_crowdloan_id :: NextCrowdloanId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "NextCrowdloanId" , () , [114u8 , 79u8 , 85u8 , 84u8 , 219u8 , 14u8 , 110u8 , 60u8 , 27u8 , 220u8 , 77u8 , 200u8 , 95u8 , 61u8 , 235u8 , 39u8 , 205u8 , 251u8 , 5u8 , 91u8 , 141u8 , 56u8 , 129u8 , 11u8 , 61u8 , 40u8 , 30u8 , 127u8 , 214u8 , 28u8 , 192u8 , 137u8 ,]) } # [doc = " A map of crowdloan ids to their contributors and their contributions."] pub fn contributions_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: contributions :: Contributions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "Contributions" , () , [207u8 , 153u8 , 221u8 , 202u8 , 77u8 , 19u8 , 105u8 , 186u8 , 18u8 , 243u8 , 187u8 , 191u8 , 178u8 , 129u8 , 98u8 , 207u8 , 208u8 , 82u8 , 51u8 , 156u8 , 72u8 , 188u8 , 95u8 , 167u8 , 146u8 , 192u8 , 33u8 , 125u8 , 115u8 , 51u8 , 248u8 , 194u8 ,]) } # [doc = " A map of crowdloan ids to their contributors and their contributions."] pub fn contributions_iter1 (& self , _0 : types :: contributions :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: contributions :: Param0 > , types :: contributions :: Contributions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "Contributions" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [207u8 , 153u8 , 221u8 , 202u8 , 77u8 , 19u8 , 105u8 , 186u8 , 18u8 , 243u8 , 187u8 , 191u8 , 178u8 , 129u8 , 98u8 , 207u8 , 208u8 , 82u8 , 51u8 , 156u8 , 72u8 , 188u8 , 95u8 , 167u8 , 146u8 , 192u8 , 33u8 , 125u8 , 115u8 , 51u8 , 248u8 , 194u8 ,]) } # [doc = " A map of crowdloan ids to their contributors and their contributions."] pub fn contributions (& self , _0 : types :: contributions :: Param0 , _1 : types :: contributions :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: contributions :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: contributions :: Param1 > ,) , types :: contributions :: Contributions , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "Contributions" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [207u8 , 153u8 , 221u8 , 202u8 , 77u8 , 19u8 , 105u8 , 186u8 , 18u8 , 243u8 , 187u8 , 191u8 , 178u8 , 129u8 , 98u8 , 207u8 , 208u8 , 82u8 , 51u8 , 156u8 , 72u8 , 188u8 , 95u8 , 167u8 , 146u8 , 192u8 , 33u8 , 125u8 , 115u8 , 51u8 , 248u8 , 194u8 ,]) } # [doc = " The current crowdloan id that will be set during the finalize call, making it"] # [doc = " temporarily accessible to the dispatched call."] pub fn current_crowdloan_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_crowdloan_id :: CurrentCrowdloanId , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "CurrentCrowdloanId" , () , [95u8 , 134u8 , 212u8 , 25u8 , 243u8 , 101u8 , 152u8 , 192u8 , 1u8 , 208u8 , 230u8 , 72u8 , 127u8 , 232u8 , 179u8 , 82u8 , 49u8 , 239u8 , 201u8 , 207u8 , 83u8 , 0u8 , 70u8 , 54u8 , 249u8 , 119u8 , 225u8 , 25u8 , 238u8 , 245u8 , 120u8 , 219u8 ,]) } # [doc = " Storage for the migration run status."] pub fn has_migration_run_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: has_migration_run :: HasMigrationRun , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "HasMigrationRun" , () , [136u8 , 249u8 , 238u8 , 25u8 , 98u8 , 133u8 , 200u8 , 15u8 , 17u8 , 89u8 , 154u8 , 4u8 , 233u8 , 103u8 , 58u8 , 217u8 , 175u8 , 118u8 , 195u8 , 242u8 , 84u8 , 56u8 , 128u8 , 198u8 , 252u8 , 160u8 , 185u8 , 22u8 , 19u8 , 240u8 , 98u8 , 7u8 ,]) } # [doc = " Storage for the migration run status."] pub fn has_migration_run (& self , _0 : types :: has_migration_run :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: has_migration_run :: Param0 > , types :: has_migration_run :: HasMigrationRun , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "HasMigrationRun" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [136u8 , 249u8 , 238u8 , 25u8 , 98u8 , 133u8 , 200u8 , 15u8 , 17u8 , 89u8 , 154u8 , 4u8 , 233u8 , 103u8 , 58u8 , 217u8 , 175u8 , 118u8 , 195u8 , 242u8 , 84u8 , 56u8 , 128u8 , 198u8 , 252u8 , 160u8 , 185u8 , 22u8 , 19u8 , 240u8 , 98u8 , 7u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The pallet id that will be used to derive crowdloan account ids."] pub fn pallet_id (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_support :: PalletId > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "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 ,]) } # [doc = " The minimum deposit required to create a crowdloan."] pub fn minimum_deposit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "MinimumDeposit" , [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 ,]) } # [doc = " The absolute minimum contribution required to contribute to a crowdloan."] pub fn absolute_minimum_contribution (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "AbsoluteMinimumContribution" , [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 ,]) } # [doc = " The minimum block duration for a crowdloan."] pub fn minimum_block_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "MinimumBlockDuration" , [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 ,]) } # [doc = " The maximum block duration for a crowdloan."] pub fn maximum_block_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "MaximumBlockDuration" , [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 ,]) } # [doc = " The maximum number of contributors that can be refunded in a single refund."] pub fn refund_contributors_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "RefundContributorsLimit" , [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 max_contributors (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "MaxContributors" , [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 swap { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_subtensor_swap :: pallet :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_subtensor_swap :: pallet :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the fee rate for swaps on a specific subnet (normalized value)."] # [doc = "For example, 0.3% is approximately 196."] # [doc = ""] # [doc = "Only callable by the admin origin"] pub struct SetFeeRate { pub netuid : set_fee_rate :: Netuid , pub rate : set_fee_rate :: Rate , } pub mod set_fee_rate { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Rate = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetFeeRate { const PALLET : & 'static str = "Swap" ; const CALL : & 'static str = "set_fee_rate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enable user liquidity operations for a specific subnet. This switches the"] # [doc = "subnet from V2 to V3 swap mode. Thereafter, adding new user liquidity can be disabled"] # [doc = "by toggling this flag to false, but the swap mode will remain V3 because of existing"] # [doc = "user liquidity until all users withdraw their liquidity."] # [doc = ""] # [doc = "Only sudo or subnet owner can enable user liquidity."] # [doc = "Only sudo can disable user liquidity."] pub struct ToggleUserLiquidity { pub netuid : toggle_user_liquidity :: Netuid , pub enable : toggle_user_liquidity :: Enable , } pub mod toggle_user_liquidity { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enable = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ToggleUserLiquidity { const PALLET : & 'static str = "Swap" ; const CALL : & 'static str = "toggle_user_liquidity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Add liquidity to a specific price range for a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- tick_low: Lower bound of the price range"] # [doc = "- tick_high: Upper bound of the price range"] # [doc = "- liquidity: Amount of liquidity to add"] # [doc = ""] # [doc = "Emits `Event::LiquidityAdded` on success"] pub struct AddLiquidity { pub hotkey : add_liquidity :: Hotkey , pub netuid : add_liquidity :: Netuid , pub tick_low : add_liquidity :: TickLow , pub tick_high : add_liquidity :: TickHigh , pub liquidity : add_liquidity :: Liquidity , } pub mod add_liquidity { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type TickLow = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; pub type TickHigh = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; pub type Liquidity = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddLiquidity { const PALLET : & 'static str = "Swap" ; const CALL : & 'static str = "add_liquidity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove liquidity from a specific position."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- position_id: ID of the position to remove"] # [doc = ""] # [doc = "Emits `Event::LiquidityRemoved` on success"] pub struct RemoveLiquidity { pub hotkey : remove_liquidity :: Hotkey , pub netuid : remove_liquidity :: Netuid , pub position_id : remove_liquidity :: PositionId , } pub mod remove_liquidity { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type PositionId = runtime_types :: pallet_subtensor_swap :: position :: PositionId ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveLiquidity { const PALLET : & 'static str = "Swap" ; const CALL : & 'static str = "remove_liquidity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Modify a liquidity position."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- position_id: ID of the position to remove"] # [doc = "- liquidity_delta: Liquidity to add (if positive) or remove (if negative)"] # [doc = ""] # [doc = "Emits `Event::LiquidityRemoved` on success"] pub struct ModifyPosition { pub hotkey : modify_position :: Hotkey , pub netuid : modify_position :: Netuid , pub position_id : modify_position :: PositionId , pub liquidity_delta : modify_position :: LiquidityDelta , } pub mod modify_position { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type PositionId = runtime_types :: pallet_subtensor_swap :: position :: PositionId ; pub type LiquidityDelta = :: core :: primitive :: i64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ModifyPosition { const PALLET : & 'static str = "Swap" ; const CALL : & 'static str = "modify_position" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Disable user liquidity in all subnets."] # [doc = ""] # [doc = "Emits `Event::UserLiquidityToggled` on success"] pub struct DisableLp ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DisableLp { const PALLET : & 'static str = "Swap" ; const CALL : & 'static str = "disable_lp" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Set the fee rate for swaps on a specific subnet (normalized value)."] # [doc = "For example, 0.3% is approximately 196."] # [doc = ""] # [doc = "Only callable by the admin origin"] pub fn set_fee_rate (& self , netuid : types :: set_fee_rate :: Netuid , rate : types :: set_fee_rate :: Rate ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetFeeRate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Swap" , "set_fee_rate" , types :: SetFeeRate { netuid , rate , } , [114u8 , 2u8 , 211u8 , 244u8 , 114u8 , 7u8 , 154u8 , 160u8 , 232u8 , 195u8 , 62u8 , 134u8 , 172u8 , 203u8 , 61u8 , 75u8 , 66u8 , 239u8 , 173u8 , 120u8 , 53u8 , 123u8 , 209u8 , 124u8 , 236u8 , 145u8 , 114u8 , 88u8 , 59u8 , 43u8 , 172u8 , 84u8 ,]) } # [doc = "Enable user liquidity operations for a specific subnet. This switches the"] # [doc = "subnet from V2 to V3 swap mode. Thereafter, adding new user liquidity can be disabled"] # [doc = "by toggling this flag to false, but the swap mode will remain V3 because of existing"] # [doc = "user liquidity until all users withdraw their liquidity."] # [doc = ""] # [doc = "Only sudo or subnet owner can enable user liquidity."] # [doc = "Only sudo can disable user liquidity."] pub fn toggle_user_liquidity (& self , netuid : types :: toggle_user_liquidity :: Netuid , enable : types :: toggle_user_liquidity :: Enable ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ToggleUserLiquidity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Swap" , "toggle_user_liquidity" , types :: ToggleUserLiquidity { netuid , enable , } , [98u8 , 255u8 , 204u8 , 12u8 , 227u8 , 127u8 , 193u8 , 82u8 , 188u8 , 132u8 , 91u8 , 246u8 , 25u8 , 154u8 , 24u8 , 127u8 , 67u8 , 112u8 , 10u8 , 250u8 , 5u8 , 65u8 , 196u8 , 37u8 , 165u8 , 50u8 , 255u8 , 115u8 , 75u8 , 243u8 , 216u8 , 182u8 ,]) } # [doc = "Add liquidity to a specific price range for a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- tick_low: Lower bound of the price range"] # [doc = "- tick_high: Upper bound of the price range"] # [doc = "- liquidity: Amount of liquidity to add"] # [doc = ""] # [doc = "Emits `Event::LiquidityAdded` on success"] pub fn add_liquidity (& self , hotkey : types :: add_liquidity :: Hotkey , netuid : types :: add_liquidity :: Netuid , tick_low : types :: add_liquidity :: TickLow , tick_high : types :: add_liquidity :: TickHigh , liquidity : types :: add_liquidity :: Liquidity ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddLiquidity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Swap" , "add_liquidity" , types :: AddLiquidity { hotkey , netuid , tick_low , tick_high , liquidity , } , [196u8 , 170u8 , 187u8 , 214u8 , 108u8 , 36u8 , 21u8 , 25u8 , 228u8 , 168u8 , 122u8 , 86u8 , 71u8 , 92u8 , 112u8 , 206u8 , 35u8 , 31u8 , 144u8 , 21u8 , 143u8 , 244u8 , 231u8 , 208u8 , 133u8 , 166u8 , 177u8 , 43u8 , 209u8 , 187u8 , 33u8 , 147u8 ,]) } # [doc = "Remove liquidity from a specific position."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- position_id: ID of the position to remove"] # [doc = ""] # [doc = "Emits `Event::LiquidityRemoved` on success"] pub fn remove_liquidity (& self , hotkey : types :: remove_liquidity :: Hotkey , netuid : types :: remove_liquidity :: Netuid , position_id : types :: remove_liquidity :: PositionId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveLiquidity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Swap" , "remove_liquidity" , types :: RemoveLiquidity { hotkey , netuid , position_id , } , [98u8 , 161u8 , 37u8 , 21u8 , 227u8 , 203u8 , 31u8 , 56u8 , 38u8 , 5u8 , 121u8 , 194u8 , 36u8 , 235u8 , 98u8 , 160u8 , 232u8 , 239u8 , 227u8 , 102u8 , 68u8 , 39u8 , 65u8 , 134u8 , 90u8 , 172u8 , 195u8 , 207u8 , 57u8 , 102u8 , 186u8 , 126u8 ,]) } # [doc = "Modify a liquidity position."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- position_id: ID of the position to remove"] # [doc = "- liquidity_delta: Liquidity to add (if positive) or remove (if negative)"] # [doc = ""] # [doc = "Emits `Event::LiquidityRemoved` on success"] pub fn modify_position (& self , hotkey : types :: modify_position :: Hotkey , netuid : types :: modify_position :: Netuid , position_id : types :: modify_position :: PositionId , liquidity_delta : types :: modify_position :: LiquidityDelta ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ModifyPosition > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Swap" , "modify_position" , types :: ModifyPosition { hotkey , netuid , position_id , liquidity_delta , } , [124u8 , 80u8 , 81u8 , 93u8 , 160u8 , 15u8 , 34u8 , 150u8 , 245u8 , 103u8 , 153u8 , 122u8 , 32u8 , 158u8 , 15u8 , 20u8 , 6u8 , 111u8 , 202u8 , 17u8 , 235u8 , 72u8 , 85u8 , 110u8 , 49u8 , 162u8 , 163u8 , 145u8 , 241u8 , 9u8 , 59u8 , 129u8 ,]) } # [doc = "Disable user liquidity in all subnets."] # [doc = ""] # [doc = "Emits `Event::UserLiquidityToggled` on success"] pub fn disable_lp (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DisableLp > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Swap" , "disable_lp" , types :: DisableLp { } , [174u8 , 189u8 , 147u8 , 29u8 , 29u8 , 151u8 , 235u8 , 92u8 , 115u8 , 75u8 , 45u8 , 238u8 , 30u8 , 81u8 , 53u8 , 136u8 , 31u8 , 30u8 , 61u8 , 135u8 , 238u8 , 122u8 , 58u8 , 246u8 , 89u8 , 79u8 , 96u8 , 118u8 , 184u8 , 161u8 , 95u8 , 118u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_subtensor_swap :: pallet :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when the fee rate has been updated for a subnet"] pub struct FeeRateSet { pub netuid : fee_rate_set :: Netuid , pub rate : fee_rate_set :: Rate , } pub mod fee_rate_set { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Rate = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for FeeRateSet { const PALLET : & 'static str = "Swap" ; const EVENT : & 'static str = "FeeRateSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when user liquidity operations are enabled for a subnet."] # [doc = "First enable even indicates a switch from V2 to V3 swap."] pub struct UserLiquidityToggled { pub netuid : user_liquidity_toggled :: Netuid , pub enable : user_liquidity_toggled :: Enable , } pub mod user_liquidity_toggled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enable = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for UserLiquidityToggled { const PALLET : & 'static str = "Swap" ; const EVENT : & 'static str = "UserLiquidityToggled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when a liquidity position is added to a subnet's liquidity pool."] pub struct LiquidityAdded { pub coldkey : liquidity_added :: Coldkey , pub hotkey : liquidity_added :: Hotkey , pub netuid : liquidity_added :: Netuid , pub position_id : liquidity_added :: PositionId , pub liquidity : liquidity_added :: Liquidity , pub tao : liquidity_added :: Tao , pub alpha : liquidity_added :: Alpha , pub tick_low : liquidity_added :: TickLow , pub tick_high : liquidity_added :: TickHigh , } pub mod liquidity_added { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type PositionId = runtime_types :: pallet_subtensor_swap :: position :: PositionId ; pub type Liquidity = :: core :: primitive :: u64 ; pub type Tao = :: core :: primitive :: u64 ; pub type Alpha = :: core :: primitive :: u64 ; pub type TickLow = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; pub type TickHigh = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for LiquidityAdded { const PALLET : & 'static str = "Swap" ; const EVENT : & 'static str = "LiquidityAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when a liquidity position is removed from a subnet's liquidity pool."] pub struct LiquidityRemoved { pub coldkey : liquidity_removed :: Coldkey , pub hotkey : liquidity_removed :: Hotkey , pub netuid : liquidity_removed :: Netuid , pub position_id : liquidity_removed :: PositionId , pub liquidity : liquidity_removed :: Liquidity , pub tao : liquidity_removed :: Tao , pub alpha : liquidity_removed :: Alpha , pub fee_tao : liquidity_removed :: FeeTao , pub fee_alpha : liquidity_removed :: FeeAlpha , pub tick_low : liquidity_removed :: TickLow , pub tick_high : liquidity_removed :: TickHigh , } pub mod liquidity_removed { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type PositionId = runtime_types :: pallet_subtensor_swap :: position :: PositionId ; pub type Liquidity = :: core :: primitive :: u64 ; pub type Tao = :: core :: primitive :: u64 ; pub type Alpha = :: core :: primitive :: u64 ; pub type FeeTao = :: core :: primitive :: u64 ; pub type FeeAlpha = :: core :: primitive :: u64 ; pub type TickLow = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; pub type TickHigh = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for LiquidityRemoved { const PALLET : & 'static str = "Swap" ; const EVENT : & 'static str = "LiquidityRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when a liquidity position is modified in a subnet's liquidity pool."] # [doc = "Modifying causes the fees to be claimed."] pub struct LiquidityModified { pub coldkey : liquidity_modified :: Coldkey , pub hotkey : liquidity_modified :: Hotkey , pub netuid : liquidity_modified :: Netuid , pub position_id : liquidity_modified :: PositionId , pub liquidity : liquidity_modified :: Liquidity , pub tao : liquidity_modified :: Tao , pub alpha : liquidity_modified :: Alpha , pub fee_tao : liquidity_modified :: FeeTao , pub fee_alpha : liquidity_modified :: FeeAlpha , pub tick_low : liquidity_modified :: TickLow , pub tick_high : liquidity_modified :: TickHigh , } pub mod liquidity_modified { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type PositionId = runtime_types :: pallet_subtensor_swap :: position :: PositionId ; pub type Liquidity = :: core :: primitive :: i64 ; pub type Tao = :: core :: primitive :: i64 ; pub type Alpha = :: core :: primitive :: i64 ; pub type FeeTao = :: core :: primitive :: u64 ; pub type FeeAlpha = :: core :: primitive :: u64 ; pub type TickLow = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; pub type TickHigh = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for LiquidityModified { const PALLET : & 'static str = "Swap" ; const EVENT : & 'static str = "LiquidityModified" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod fee_rate { use super :: runtime_types ; pub type FeeRate = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod fee_global_tao { use super :: runtime_types ; pub type FeeGlobalTao = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod fee_global_alpha { use super :: runtime_types ; pub type FeeGlobalAlpha = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod ticks { use super :: runtime_types ; pub type Ticks = runtime_types :: pallet_subtensor_swap :: tick :: Tick ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; } pub mod swap_v3_initialized { use super :: runtime_types ; pub type SwapV3Initialized = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod alpha_sqrt_price { use super :: runtime_types ; pub type AlphaSqrtPrice = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod current_tick { use super :: runtime_types ; pub type CurrentTick = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod current_liquidity { use super :: runtime_types ; pub type CurrentLiquidity = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod enabled_user_liquidity { use super :: runtime_types ; pub type EnabledUserLiquidity = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod positions { use super :: runtime_types ; pub type Positions = runtime_types :: pallet_subtensor_swap :: position :: Position ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param2 = runtime_types :: pallet_subtensor_swap :: position :: PositionId ; } pub mod last_position_id { use super :: runtime_types ; pub type LastPositionId = :: core :: primitive :: u128 ; } pub mod tick_index_bitmap_words { use super :: runtime_types ; pub type TickIndexBitmapWords = :: core :: primitive :: u128 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = runtime_types :: pallet_subtensor_swap :: tick :: LayerLevel ; pub type Param2 = :: core :: primitive :: u32 ; } pub mod scrap_reservoir_tao { use super :: runtime_types ; pub type ScrapReservoirTao = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod scrap_reservoir_alpha { use super :: runtime_types ; pub type ScrapReservoirAlpha = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The fee rate applied to swaps per subnet, normalized value between 0 and u16::MAX"] pub fn fee_rate_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: fee_rate :: FeeRate , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "FeeRate" , () , [93u8 , 14u8 , 74u8 , 135u8 , 73u8 , 123u8 , 94u8 , 47u8 , 217u8 , 66u8 , 181u8 , 9u8 , 8u8 , 75u8 , 236u8 , 92u8 , 62u8 , 233u8 , 11u8 , 42u8 , 77u8 , 96u8 , 3u8 , 49u8 , 82u8 , 168u8 , 229u8 , 228u8 , 7u8 , 23u8 , 27u8 , 125u8 ,]) } # [doc = " The fee rate applied to swaps per subnet, normalized value between 0 and u16::MAX"] pub fn fee_rate (& self , _0 : types :: fee_rate :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: fee_rate :: Param0 > , types :: fee_rate :: FeeRate , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "FeeRate" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [93u8 , 14u8 , 74u8 , 135u8 , 73u8 , 123u8 , 94u8 , 47u8 , 217u8 , 66u8 , 181u8 , 9u8 , 8u8 , 75u8 , 236u8 , 92u8 , 62u8 , 233u8 , 11u8 , 42u8 , 77u8 , 96u8 , 3u8 , 49u8 , 82u8 , 168u8 , 229u8 , 228u8 , 7u8 , 23u8 , 27u8 , 125u8 ,]) } pub fn fee_global_tao_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: fee_global_tao :: FeeGlobalTao , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "FeeGlobalTao" , () , [48u8 , 88u8 , 203u8 , 227u8 , 251u8 , 177u8 , 241u8 , 159u8 , 80u8 , 252u8 , 87u8 , 16u8 , 85u8 , 244u8 , 152u8 , 124u8 , 7u8 , 77u8 , 47u8 , 3u8 , 205u8 , 134u8 , 230u8 , 215u8 , 9u8 , 223u8 , 45u8 , 7u8 , 171u8 , 149u8 , 159u8 , 30u8 ,]) } pub fn fee_global_tao (& self , _0 : types :: fee_global_tao :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: fee_global_tao :: Param0 > , types :: fee_global_tao :: FeeGlobalTao , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "FeeGlobalTao" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [48u8 , 88u8 , 203u8 , 227u8 , 251u8 , 177u8 , 241u8 , 159u8 , 80u8 , 252u8 , 87u8 , 16u8 , 85u8 , 244u8 , 152u8 , 124u8 , 7u8 , 77u8 , 47u8 , 3u8 , 205u8 , 134u8 , 230u8 , 215u8 , 9u8 , 223u8 , 45u8 , 7u8 , 171u8 , 149u8 , 159u8 , 30u8 ,]) } pub fn fee_global_alpha_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: fee_global_alpha :: FeeGlobalAlpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "FeeGlobalAlpha" , () , [66u8 , 104u8 , 213u8 , 219u8 , 156u8 , 224u8 , 221u8 , 133u8 , 167u8 , 191u8 , 69u8 , 42u8 , 38u8 , 150u8 , 23u8 , 162u8 , 249u8 , 212u8 , 51u8 , 53u8 , 243u8 , 238u8 , 227u8 , 161u8 , 34u8 , 231u8 , 54u8 , 230u8 , 252u8 , 159u8 , 55u8 , 191u8 ,]) } pub fn fee_global_alpha (& self , _0 : types :: fee_global_alpha :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: fee_global_alpha :: Param0 > , types :: fee_global_alpha :: FeeGlobalAlpha , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "FeeGlobalAlpha" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [66u8 , 104u8 , 213u8 , 219u8 , 156u8 , 224u8 , 221u8 , 133u8 , 167u8 , 191u8 , 69u8 , 42u8 , 38u8 , 150u8 , 23u8 , 162u8 , 249u8 , 212u8 , 51u8 , 53u8 , 243u8 , 238u8 , 227u8 , 161u8 , 34u8 , 231u8 , 54u8 , 230u8 , 252u8 , 159u8 , 55u8 , 191u8 ,]) } # [doc = " Storage for all ticks, using subnet ID as the primary key and tick index as the secondary key"] pub fn ticks_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: ticks :: Ticks , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Ticks" , () , [141u8 , 200u8 , 176u8 , 30u8 , 58u8 , 206u8 , 80u8 , 88u8 , 201u8 , 166u8 , 248u8 , 50u8 , 86u8 , 156u8 , 112u8 , 167u8 , 93u8 , 34u8 , 178u8 , 102u8 , 234u8 , 214u8 , 227u8 , 111u8 , 68u8 , 146u8 , 1u8 , 74u8 , 83u8 , 50u8 , 52u8 , 5u8 ,]) } # [doc = " Storage for all ticks, using subnet ID as the primary key and tick index as the secondary key"] pub fn ticks_iter1 (& self , _0 : types :: ticks :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: ticks :: Param0 > , types :: ticks :: Ticks , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Ticks" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [141u8 , 200u8 , 176u8 , 30u8 , 58u8 , 206u8 , 80u8 , 88u8 , 201u8 , 166u8 , 248u8 , 50u8 , 86u8 , 156u8 , 112u8 , 167u8 , 93u8 , 34u8 , 178u8 , 102u8 , 234u8 , 214u8 , 227u8 , 111u8 , 68u8 , 146u8 , 1u8 , 74u8 , 83u8 , 50u8 , 52u8 , 5u8 ,]) } # [doc = " Storage for all ticks, using subnet ID as the primary key and tick index as the secondary key"] pub fn ticks (& self , _0 : types :: ticks :: Param0 , _1 : types :: ticks :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: ticks :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: ticks :: Param1 > ,) , types :: ticks :: Ticks , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Ticks" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [141u8 , 200u8 , 176u8 , 30u8 , 58u8 , 206u8 , 80u8 , 88u8 , 201u8 , 166u8 , 248u8 , 50u8 , 86u8 , 156u8 , 112u8 , 167u8 , 93u8 , 34u8 , 178u8 , 102u8 , 234u8 , 214u8 , 227u8 , 111u8 , 68u8 , 146u8 , 1u8 , 74u8 , 83u8 , 50u8 , 52u8 , 5u8 ,]) } # [doc = " Storage to determine whether swap V3 was initialized for a specific subnet."] pub fn swap_v3_initialized_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: swap_v3_initialized :: SwapV3Initialized , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "SwapV3Initialized" , () , [191u8 , 192u8 , 152u8 , 99u8 , 54u8 , 166u8 , 77u8 , 45u8 , 106u8 , 182u8 , 228u8 , 22u8 , 228u8 , 179u8 , 193u8 , 21u8 , 74u8 , 155u8 , 234u8 , 254u8 , 239u8 , 110u8 , 57u8 , 97u8 , 223u8 , 131u8 , 19u8 , 112u8 , 78u8 , 239u8 , 113u8 , 239u8 ,]) } # [doc = " Storage to determine whether swap V3 was initialized for a specific subnet."] pub fn swap_v3_initialized (& self , _0 : types :: swap_v3_initialized :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: swap_v3_initialized :: Param0 > , types :: swap_v3_initialized :: SwapV3Initialized , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "SwapV3Initialized" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [191u8 , 192u8 , 152u8 , 99u8 , 54u8 , 166u8 , 77u8 , 45u8 , 106u8 , 182u8 , 228u8 , 22u8 , 228u8 , 179u8 , 193u8 , 21u8 , 74u8 , 155u8 , 234u8 , 254u8 , 239u8 , 110u8 , 57u8 , 97u8 , 223u8 , 131u8 , 19u8 , 112u8 , 78u8 , 239u8 , 113u8 , 239u8 ,]) } # [doc = " Storage for the square root price of Alpha token for each subnet."] pub fn alpha_sqrt_price_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: alpha_sqrt_price :: AlphaSqrtPrice , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "AlphaSqrtPrice" , () , [108u8 , 171u8 , 84u8 , 105u8 , 121u8 , 211u8 , 180u8 , 214u8 , 58u8 , 76u8 , 224u8 , 185u8 , 212u8 , 17u8 , 160u8 , 31u8 , 87u8 , 86u8 , 88u8 , 0u8 , 16u8 , 58u8 , 0u8 , 94u8 , 12u8 , 110u8 , 65u8 , 139u8 , 209u8 , 118u8 , 229u8 , 70u8 ,]) } # [doc = " Storage for the square root price of Alpha token for each subnet."] pub fn alpha_sqrt_price (& self , _0 : types :: alpha_sqrt_price :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha_sqrt_price :: Param0 > , types :: alpha_sqrt_price :: AlphaSqrtPrice , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "AlphaSqrtPrice" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [108u8 , 171u8 , 84u8 , 105u8 , 121u8 , 211u8 , 180u8 , 214u8 , 58u8 , 76u8 , 224u8 , 185u8 , 212u8 , 17u8 , 160u8 , 31u8 , 87u8 , 86u8 , 88u8 , 0u8 , 16u8 , 58u8 , 0u8 , 94u8 , 12u8 , 110u8 , 65u8 , 139u8 , 209u8 , 118u8 , 229u8 , 70u8 ,]) } # [doc = " Storage for the current price tick."] pub fn current_tick_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_tick :: CurrentTick , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "CurrentTick" , () , [141u8 , 29u8 , 59u8 , 103u8 , 27u8 , 25u8 , 5u8 , 204u8 , 251u8 , 61u8 , 173u8 , 215u8 , 46u8 , 38u8 , 103u8 , 193u8 , 38u8 , 51u8 , 67u8 , 183u8 , 165u8 , 89u8 , 199u8 , 102u8 , 158u8 , 14u8 , 39u8 , 182u8 , 137u8 , 226u8 , 164u8 , 76u8 ,]) } # [doc = " Storage for the current price tick."] pub fn current_tick (& self , _0 : types :: current_tick :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: current_tick :: Param0 > , types :: current_tick :: CurrentTick , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "CurrentTick" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [141u8 , 29u8 , 59u8 , 103u8 , 27u8 , 25u8 , 5u8 , 204u8 , 251u8 , 61u8 , 173u8 , 215u8 , 46u8 , 38u8 , 103u8 , 193u8 , 38u8 , 51u8 , 67u8 , 183u8 , 165u8 , 89u8 , 199u8 , 102u8 , 158u8 , 14u8 , 39u8 , 182u8 , 137u8 , 226u8 , 164u8 , 76u8 ,]) } # [doc = " Storage for the current liquidity amount for each subnet."] pub fn current_liquidity_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_liquidity :: CurrentLiquidity , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "CurrentLiquidity" , () , [135u8 , 151u8 , 124u8 , 190u8 , 152u8 , 255u8 , 44u8 , 196u8 , 136u8 , 171u8 , 105u8 , 223u8 , 83u8 , 68u8 , 5u8 , 24u8 , 22u8 , 30u8 , 208u8 , 4u8 , 215u8 , 229u8 , 233u8 , 33u8 , 130u8 , 99u8 , 136u8 , 39u8 , 224u8 , 42u8 , 52u8 , 20u8 ,]) } # [doc = " Storage for the current liquidity amount for each subnet."] pub fn current_liquidity (& self , _0 : types :: current_liquidity :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: current_liquidity :: Param0 > , types :: current_liquidity :: CurrentLiquidity , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "CurrentLiquidity" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [135u8 , 151u8 , 124u8 , 190u8 , 152u8 , 255u8 , 44u8 , 196u8 , 136u8 , 171u8 , 105u8 , 223u8 , 83u8 , 68u8 , 5u8 , 24u8 , 22u8 , 30u8 , 208u8 , 4u8 , 215u8 , 229u8 , 233u8 , 33u8 , 130u8 , 99u8 , 136u8 , 39u8 , 224u8 , 42u8 , 52u8 , 20u8 ,]) } # [doc = " Indicates whether a subnet has been switched to V3 swap from V2."] # [doc = " If `true`, the subnet is permanently on V3 swap mode allowing add/remove liquidity"] # [doc = " operations. Once set to `true` for a subnet, it cannot be changed back to `false`."] pub fn enabled_user_liquidity_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: enabled_user_liquidity :: EnabledUserLiquidity , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "EnabledUserLiquidity" , () , [167u8 , 225u8 , 152u8 , 219u8 , 169u8 , 231u8 , 121u8 , 233u8 , 192u8 , 157u8 , 122u8 , 178u8 , 36u8 , 169u8 , 234u8 , 48u8 , 213u8 , 42u8 , 33u8 , 191u8 , 230u8 , 152u8 , 199u8 , 175u8 , 118u8 , 124u8 , 136u8 , 141u8 , 122u8 , 112u8 , 22u8 , 64u8 ,]) } # [doc = " Indicates whether a subnet has been switched to V3 swap from V2."] # [doc = " If `true`, the subnet is permanently on V3 swap mode allowing add/remove liquidity"] # [doc = " operations. Once set to `true` for a subnet, it cannot be changed back to `false`."] pub fn enabled_user_liquidity (& self , _0 : types :: enabled_user_liquidity :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: enabled_user_liquidity :: Param0 > , types :: enabled_user_liquidity :: EnabledUserLiquidity , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "EnabledUserLiquidity" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [167u8 , 225u8 , 152u8 , 219u8 , 169u8 , 231u8 , 121u8 , 233u8 , 192u8 , 157u8 , 122u8 , 178u8 , 36u8 , 169u8 , 234u8 , 48u8 , 213u8 , 42u8 , 33u8 , 191u8 , 230u8 , 152u8 , 199u8 , 175u8 , 118u8 , 124u8 , 136u8 , 141u8 , 122u8 , 112u8 , 22u8 , 64u8 ,]) } # [doc = " Storage for user positions, using subnet ID and account ID as keys"] # [doc = " The value is a bounded vector of Position structs with details about the liquidity positions"] pub fn positions_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: positions :: Positions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Positions" , () , [118u8 , 48u8 , 243u8 , 123u8 , 22u8 , 49u8 , 159u8 , 124u8 , 26u8 , 183u8 , 249u8 , 129u8 , 193u8 , 249u8 , 85u8 , 14u8 , 180u8 , 218u8 , 212u8 , 184u8 , 3u8 , 12u8 , 101u8 , 186u8 , 149u8 , 100u8 , 114u8 , 170u8 , 40u8 , 29u8 , 76u8 , 54u8 ,]) } # [doc = " Storage for user positions, using subnet ID and account ID as keys"] # [doc = " The value is a bounded vector of Position structs with details about the liquidity positions"] pub fn positions_iter1 (& self , _0 : types :: positions :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: positions :: Param0 > , types :: positions :: Positions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Positions" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [118u8 , 48u8 , 243u8 , 123u8 , 22u8 , 49u8 , 159u8 , 124u8 , 26u8 , 183u8 , 249u8 , 129u8 , 193u8 , 249u8 , 85u8 , 14u8 , 180u8 , 218u8 , 212u8 , 184u8 , 3u8 , 12u8 , 101u8 , 186u8 , 149u8 , 100u8 , 114u8 , 170u8 , 40u8 , 29u8 , 76u8 , 54u8 ,]) } # [doc = " Storage for user positions, using subnet ID and account ID as keys"] # [doc = " The value is a bounded vector of Position structs with details about the liquidity positions"] pub fn positions_iter2 (& self , _0 : types :: positions :: Param0 , _1 : types :: positions :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: positions :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: positions :: Param1 > ,) , types :: positions :: Positions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Positions" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [118u8 , 48u8 , 243u8 , 123u8 , 22u8 , 49u8 , 159u8 , 124u8 , 26u8 , 183u8 , 249u8 , 129u8 , 193u8 , 249u8 , 85u8 , 14u8 , 180u8 , 218u8 , 212u8 , 184u8 , 3u8 , 12u8 , 101u8 , 186u8 , 149u8 , 100u8 , 114u8 , 170u8 , 40u8 , 29u8 , 76u8 , 54u8 ,]) } # [doc = " Storage for user positions, using subnet ID and account ID as keys"] # [doc = " The value is a bounded vector of Position structs with details about the liquidity positions"] pub fn positions (& self , _0 : types :: positions :: Param0 , _1 : types :: positions :: Param1 , _2 : types :: positions :: Param2 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: positions :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: positions :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: positions :: Param2 > ,) , types :: positions :: Positions , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Positions" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2) ,) , [118u8 , 48u8 , 243u8 , 123u8 , 22u8 , 49u8 , 159u8 , 124u8 , 26u8 , 183u8 , 249u8 , 129u8 , 193u8 , 249u8 , 85u8 , 14u8 , 180u8 , 218u8 , 212u8 , 184u8 , 3u8 , 12u8 , 101u8 , 186u8 , 149u8 , 100u8 , 114u8 , 170u8 , 40u8 , 29u8 , 76u8 , 54u8 ,]) } # [doc = " Position ID counter."] pub fn last_position_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_position_id :: LastPositionId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "LastPositionId" , () , [30u8 , 117u8 , 176u8 , 55u8 , 133u8 , 255u8 , 73u8 , 217u8 , 167u8 , 236u8 , 75u8 , 120u8 , 23u8 , 245u8 , 154u8 , 211u8 , 251u8 , 179u8 , 93u8 , 237u8 , 227u8 , 59u8 , 223u8 , 45u8 , 239u8 , 183u8 , 204u8 , 55u8 , 87u8 , 33u8 , 163u8 , 18u8 ,]) } # [doc = " Tick index bitmap words storage"] pub fn tick_index_bitmap_words_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tick_index_bitmap_words :: TickIndexBitmapWords , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "TickIndexBitmapWords" , () , [167u8 , 203u8 , 251u8 , 1u8 , 28u8 , 105u8 , 60u8 , 211u8 , 117u8 , 221u8 , 11u8 , 239u8 , 185u8 , 202u8 , 252u8 , 192u8 , 94u8 , 20u8 , 195u8 , 27u8 , 61u8 , 75u8 , 127u8 , 111u8 , 143u8 , 61u8 , 67u8 , 218u8 , 81u8 , 223u8 , 5u8 , 84u8 ,]) } # [doc = " Tick index bitmap words storage"] pub fn tick_index_bitmap_words_iter1 (& self , _0 : types :: tick_index_bitmap_words :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tick_index_bitmap_words :: Param0 > , types :: tick_index_bitmap_words :: TickIndexBitmapWords , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "TickIndexBitmapWords" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [167u8 , 203u8 , 251u8 , 1u8 , 28u8 , 105u8 , 60u8 , 211u8 , 117u8 , 221u8 , 11u8 , 239u8 , 185u8 , 202u8 , 252u8 , 192u8 , 94u8 , 20u8 , 195u8 , 27u8 , 61u8 , 75u8 , 127u8 , 111u8 , 143u8 , 61u8 , 67u8 , 218u8 , 81u8 , 223u8 , 5u8 , 84u8 ,]) } # [doc = " Tick index bitmap words storage"] pub fn tick_index_bitmap_words_iter2 (& self , _0 : types :: tick_index_bitmap_words :: Param0 , _1 : types :: tick_index_bitmap_words :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tick_index_bitmap_words :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tick_index_bitmap_words :: Param1 > ,) , types :: tick_index_bitmap_words :: TickIndexBitmapWords , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "TickIndexBitmapWords" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [167u8 , 203u8 , 251u8 , 1u8 , 28u8 , 105u8 , 60u8 , 211u8 , 117u8 , 221u8 , 11u8 , 239u8 , 185u8 , 202u8 , 252u8 , 192u8 , 94u8 , 20u8 , 195u8 , 27u8 , 61u8 , 75u8 , 127u8 , 111u8 , 143u8 , 61u8 , 67u8 , 218u8 , 81u8 , 223u8 , 5u8 , 84u8 ,]) } # [doc = " Tick index bitmap words storage"] pub fn tick_index_bitmap_words (& self , _0 : types :: tick_index_bitmap_words :: Param0 , _1 : types :: tick_index_bitmap_words :: Param1 , _2 : types :: tick_index_bitmap_words :: Param2 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tick_index_bitmap_words :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tick_index_bitmap_words :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tick_index_bitmap_words :: Param2 > ,) , types :: tick_index_bitmap_words :: TickIndexBitmapWords , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "TickIndexBitmapWords" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2) ,) , [167u8 , 203u8 , 251u8 , 1u8 , 28u8 , 105u8 , 60u8 , 211u8 , 117u8 , 221u8 , 11u8 , 239u8 , 185u8 , 202u8 , 252u8 , 192u8 , 94u8 , 20u8 , 195u8 , 27u8 , 61u8 , 75u8 , 127u8 , 111u8 , 143u8 , 61u8 , 67u8 , 218u8 , 81u8 , 223u8 , 5u8 , 84u8 ,]) } # [doc = " TAO reservoir for scraps of protocol claimed fees."] pub fn scrap_reservoir_tao_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: scrap_reservoir_tao :: ScrapReservoirTao , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "ScrapReservoirTao" , () , [108u8 , 221u8 , 52u8 , 25u8 , 187u8 , 250u8 , 131u8 , 95u8 , 144u8 , 82u8 , 154u8 , 195u8 , 108u8 , 109u8 , 105u8 , 69u8 , 218u8 , 183u8 , 79u8 , 237u8 , 16u8 , 216u8 , 212u8 , 63u8 , 157u8 , 187u8 , 106u8 , 88u8 , 174u8 , 199u8 , 106u8 , 206u8 ,]) } # [doc = " TAO reservoir for scraps of protocol claimed fees."] pub fn scrap_reservoir_tao (& self , _0 : types :: scrap_reservoir_tao :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: scrap_reservoir_tao :: Param0 > , types :: scrap_reservoir_tao :: ScrapReservoirTao , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "ScrapReservoirTao" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [108u8 , 221u8 , 52u8 , 25u8 , 187u8 , 250u8 , 131u8 , 95u8 , 144u8 , 82u8 , 154u8 , 195u8 , 108u8 , 109u8 , 105u8 , 69u8 , 218u8 , 183u8 , 79u8 , 237u8 , 16u8 , 216u8 , 212u8 , 63u8 , 157u8 , 187u8 , 106u8 , 88u8 , 174u8 , 199u8 , 106u8 , 206u8 ,]) } # [doc = " Alpha reservoir for scraps of protocol claimed fees."] pub fn scrap_reservoir_alpha_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: scrap_reservoir_alpha :: ScrapReservoirAlpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "ScrapReservoirAlpha" , () , [168u8 , 156u8 , 78u8 , 46u8 , 187u8 , 4u8 , 104u8 , 48u8 , 131u8 , 126u8 , 78u8 , 107u8 , 210u8 , 96u8 , 22u8 , 161u8 , 94u8 , 9u8 , 220u8 , 158u8 , 214u8 , 176u8 , 141u8 , 13u8 , 112u8 , 196u8 , 139u8 , 238u8 , 65u8 , 120u8 , 120u8 , 226u8 ,]) } # [doc = " Alpha reservoir for scraps of protocol claimed fees."] pub fn scrap_reservoir_alpha (& self , _0 : types :: scrap_reservoir_alpha :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: scrap_reservoir_alpha :: Param0 > , types :: scrap_reservoir_alpha :: ScrapReservoirAlpha , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "ScrapReservoirAlpha" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [168u8 , 156u8 , 78u8 , 46u8 , 187u8 , 4u8 , 104u8 , 48u8 , 131u8 , 126u8 , 78u8 , 107u8 , 210u8 , 96u8 , 22u8 , 161u8 , 94u8 , 9u8 , 220u8 , 158u8 , 214u8 , 176u8 , 141u8 , 13u8 , 112u8 , 196u8 , 139u8 , 238u8 , 65u8 , 120u8 , 120u8 , 226u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " This type is used to derive protocol accoun ID."] pub fn protocol_id (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_support :: PalletId > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Swap" , "ProtocolId" , [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 ,]) } # [doc = " The maximum fee rate that can be set"] pub fn max_fee_rate (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Swap" , "MaxFeeRate" , [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 ,]) } # [doc = " The maximum number of positions a user can have"] pub fn max_positions (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Swap" , "MaxPositions" , [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 ,]) } # [doc = " Minimum liquidity that is safe for rounding and integer math."] pub fn minimum_liquidity (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Swap" , "MinimumLiquidity" , [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 ,]) } # [doc = " Minimum reserve for tao and alpha"] pub fn minimum_reserve (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: num :: NonZeroU64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Swap" , "MinimumReserve" , [184u8 , 78u8 , 161u8 , 6u8 , 214u8 , 205u8 , 82u8 , 205u8 , 126u8 , 46u8 , 7u8 , 198u8 , 186u8 , 10u8 , 66u8 , 116u8 , 191u8 , 223u8 , 17u8 , 246u8 , 196u8 , 190u8 , 222u8 , 226u8 , 62u8 , 35u8 , 191u8 , 127u8 , 60u8 , 171u8 , 85u8 , 201u8 ,]) } } } } pub mod contracts { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_contracts :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_contracts :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Deprecated version if [`Self::call`] for use in an in-storage `Call`."] pub struct CallOldWeight { pub dest : call_old_weight :: Dest , # [codec (compact)] pub value : call_old_weight :: Value , # [codec (compact)] pub gas_limit : call_old_weight :: GasLimit , pub storage_deposit_limit : call_old_weight :: StorageDepositLimit , pub data : call_old_weight :: Data , } pub mod call_old_weight { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = :: core :: primitive :: u64 ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CallOldWeight { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "call_old_weight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`."] pub struct InstantiateWithCodeOldWeight { # [codec (compact)] pub value : instantiate_with_code_old_weight :: Value , # [codec (compact)] pub gas_limit : instantiate_with_code_old_weight :: GasLimit , pub storage_deposit_limit : instantiate_with_code_old_weight :: StorageDepositLimit , pub code : instantiate_with_code_old_weight :: Code , pub data : instantiate_with_code_old_weight :: Data , pub salt : instantiate_with_code_old_weight :: Salt , } pub mod instantiate_with_code_old_weight { use super :: runtime_types ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = :: core :: primitive :: u64 ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for InstantiateWithCodeOldWeight { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "instantiate_with_code_old_weight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`."] pub struct InstantiateOldWeight { # [codec (compact)] pub value : instantiate_old_weight :: Value , # [codec (compact)] pub gas_limit : instantiate_old_weight :: GasLimit , pub storage_deposit_limit : instantiate_old_weight :: StorageDepositLimit , pub code_hash : instantiate_old_weight :: CodeHash , pub data : instantiate_old_weight :: Data , pub salt : instantiate_old_weight :: Salt , } pub mod instantiate_old_weight { use super :: runtime_types ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = :: core :: primitive :: u64 ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for InstantiateOldWeight { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "instantiate_old_weight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Upload new `code` without instantiating a contract from it."] # [doc = ""] # [doc = "If the code does not already exist a deposit is reserved from the caller"] # [doc = "and unreserved only when [`Self::remove_code`] is called. The size of the reserve"] # [doc = "depends on the size of the supplied `code`."] # [doc = ""] # [doc = "If the code already exists in storage it will still return `Ok` and upgrades"] # [doc = "the in storage version to the current"] # [doc = "[`InstructionWeights::version`](InstructionWeights)."] # [doc = ""] # [doc = "- `determinism`: If this is set to any other value but [`Determinism::Enforced`] then"] # [doc = "  the only way to use this code is to delegate call into it from an offchain execution."] # [doc = "  Set to [`Determinism::Enforced`] if in doubt."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Anyone can instantiate a contract from any uploaded code and thus prevent its removal."] # [doc = "To avoid this situation a constructor could employ access control so that it can"] # [doc = "only be instantiated by permissioned entities. The same is true when uploading"] # [doc = "through [`Self::instantiate_with_code`]."] # [doc = ""] # [doc = "Use [`Determinism::Relaxed`] exclusively for non-deterministic code. If the uploaded"] # [doc = "code is deterministic, specifying [`Determinism::Relaxed`] will be disregarded and"] # [doc = "result in higher gas costs."] pub struct UploadCode { pub code : upload_code :: Code , pub storage_deposit_limit : upload_code :: StorageDepositLimit , pub determinism : upload_code :: Determinism , } pub mod upload_code { use super :: runtime_types ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type Determinism = runtime_types :: pallet_contracts :: wasm :: Determinism ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UploadCode { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "upload_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove the code stored under `code_hash` and refund the deposit to its owner."] # [doc = ""] # [doc = "A code can only be removed by its original uploader (its owner) and only if it is"] # [doc = "not used by any contract."] pub struct RemoveCode { pub code_hash : remove_code :: CodeHash , } pub mod remove_code { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveCode { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "remove_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Privileged function that changes the code of an existing contract."] # [doc = ""] # [doc = "This takes care of updating refcounts and all other necessary operations. Returns"] # [doc = "an error if either the `code_hash` or `dest` do not exist."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "This does **not** change the address of the contract in question. This means"] # [doc = "that the contract address is no longer derived from its code hash after calling"] # [doc = "this dispatchable."] pub struct SetCode { pub dest : set_code :: Dest , pub code_hash : set_code :: CodeHash , } pub mod set_code { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCode { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "set_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Makes a call to an account, optionally transferring some balance."] # [doc = ""] # [doc = "# Parameters"] # [doc = ""] # [doc = "* `dest`: Address of the contract to call."] # [doc = "* `value`: The balance to transfer from the `origin` to `dest`."] # [doc = "* `gas_limit`: The gas limit enforced when executing the constructor."] # [doc = "* `storage_deposit_limit`: The maximum amount of balance that can be charged from the"] # [doc = "  caller to pay for the storage consumed."] # [doc = "* `data`: The input data to pass to the contract."] # [doc = ""] # [doc = "* If the account is a smart-contract account, the associated code will be"] # [doc = "executed and any value will be transferred."] # [doc = "* If the account is a regular account, any value will be transferred."] # [doc = "* If no account exists and the call value is not less than `existential_deposit`,"] # [doc = "a regular account will be created and any value will be transferred."] pub struct Call { pub dest : call :: Dest , # [codec (compact)] pub value : call :: Value , pub gas_limit : call :: GasLimit , pub storage_deposit_limit : call :: StorageDepositLimit , pub data : call :: Data , } pub mod call { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = runtime_types :: sp_weights :: weight_v2 :: Weight ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Call { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "call" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Instantiates a new contract from the supplied `code` optionally transferring"] # [doc = "some balance."] # [doc = ""] # [doc = "This dispatchable has the same effect as calling [`Self::upload_code`] +"] # [doc = "[`Self::instantiate`]. Bundling them together provides efficiency gains. Please"] # [doc = "also check the documentation of [`Self::upload_code`]."] # [doc = ""] # [doc = "# Parameters"] # [doc = ""] # [doc = "* `value`: The balance to transfer from the `origin` to the newly created contract."] # [doc = "* `gas_limit`: The gas limit enforced when executing the constructor."] # [doc = "* `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved"] # [doc = "  from the caller to pay for the storage consumed."] # [doc = "* `code`: The contract code to deploy in raw bytes."] # [doc = "* `data`: The input data to pass to the contract constructor."] # [doc = "* `salt`: Used for the address derivation. See [`Pallet::contract_address`]."] # [doc = ""] # [doc = "Instantiation is executed as follows:"] # [doc = ""] # [doc = "- The supplied `code` is deployed, and a `code_hash` is created for that code."] # [doc = "- If the `code_hash` already exists on the chain the underlying `code` will be shared."] # [doc = "- The destination address is computed based on the sender, code_hash and the salt."] # [doc = "- The smart-contract account is created at the computed address."] # [doc = "- The `value` is transferred to the new account."] # [doc = "- The `deploy` function is executed in the context of the newly-created account."] pub struct InstantiateWithCode { # [codec (compact)] pub value : instantiate_with_code :: Value , pub gas_limit : instantiate_with_code :: GasLimit , pub storage_deposit_limit : instantiate_with_code :: StorageDepositLimit , pub code : instantiate_with_code :: Code , pub data : instantiate_with_code :: Data , pub salt : instantiate_with_code :: Salt , } pub mod instantiate_with_code { use super :: runtime_types ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = runtime_types :: sp_weights :: weight_v2 :: Weight ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for InstantiateWithCode { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "instantiate_with_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Instantiates a contract from a previously deployed wasm binary."] # [doc = ""] # [doc = "This function is identical to [`Self::instantiate_with_code`] but without the"] # [doc = "code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary"] # [doc = "must be supplied."] pub struct Instantiate { # [codec (compact)] pub value : instantiate :: Value , pub gas_limit : instantiate :: GasLimit , pub storage_deposit_limit : instantiate :: StorageDepositLimit , pub code_hash : instantiate :: CodeHash , pub data : instantiate :: Data , pub salt : instantiate :: Salt , } pub mod instantiate { use super :: runtime_types ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = runtime_types :: sp_weights :: weight_v2 :: Weight ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Instantiate { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "instantiate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "When a migration is in progress, this dispatchable can be used to run migration steps."] # [doc = "Calls that contribute to advancing the migration have their fees waived, as it's helpful"] # [doc = "for the chain. Note that while the migration is in progress, the pallet will also"] # [doc = "leverage the `on_idle` hooks to run migration steps."] pub struct Migrate { pub weight_limit : migrate :: WeightLimit , } pub mod migrate { use super :: runtime_types ; pub type WeightLimit = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Migrate { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "migrate" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Deprecated version if [`Self::call`] for use in an in-storage `Call`."] pub fn call_old_weight (& self , dest : types :: call_old_weight :: Dest , value : types :: call_old_weight :: Value , gas_limit : types :: call_old_weight :: GasLimit , storage_deposit_limit : types :: call_old_weight :: StorageDepositLimit , data : types :: call_old_weight :: Data ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CallOldWeight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "call_old_weight" , types :: CallOldWeight { dest , value , gas_limit , storage_deposit_limit , data , } , [148u8 , 106u8 , 213u8 , 44u8 , 58u8 , 37u8 , 251u8 , 3u8 , 136u8 , 237u8 , 105u8 , 167u8 , 46u8 , 243u8 , 76u8 , 75u8 , 48u8 , 37u8 , 251u8 , 204u8 , 81u8 , 246u8 , 4u8 , 117u8 , 255u8 , 156u8 , 71u8 , 98u8 , 247u8 , 111u8 , 76u8 , 4u8 ,]) } # [doc = "Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`."] pub fn instantiate_with_code_old_weight (& self , value : types :: instantiate_with_code_old_weight :: Value , gas_limit : types :: instantiate_with_code_old_weight :: GasLimit , storage_deposit_limit : types :: instantiate_with_code_old_weight :: StorageDepositLimit , code : types :: instantiate_with_code_old_weight :: Code , data : types :: instantiate_with_code_old_weight :: Data , salt : types :: instantiate_with_code_old_weight :: Salt ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: InstantiateWithCodeOldWeight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "instantiate_with_code_old_weight" , types :: InstantiateWithCodeOldWeight { value , gas_limit , storage_deposit_limit , code , data , salt , } , [46u8 , 127u8 , 20u8 , 23u8 , 178u8 , 182u8 , 99u8 , 239u8 , 171u8 , 254u8 , 193u8 , 195u8 , 97u8 , 253u8 , 11u8 , 81u8 , 125u8 , 77u8 , 211u8 , 218u8 , 103u8 , 86u8 , 132u8 , 143u8 , 24u8 , 159u8 , 105u8 , 35u8 , 190u8 , 14u8 , 62u8 , 27u8 ,]) } # [doc = "Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`."] pub fn instantiate_old_weight (& self , value : types :: instantiate_old_weight :: Value , gas_limit : types :: instantiate_old_weight :: GasLimit , storage_deposit_limit : types :: instantiate_old_weight :: StorageDepositLimit , code_hash : types :: instantiate_old_weight :: CodeHash , data : types :: instantiate_old_weight :: Data , salt : types :: instantiate_old_weight :: Salt ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: InstantiateOldWeight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "instantiate_old_weight" , types :: InstantiateOldWeight { value , gas_limit , storage_deposit_limit , code_hash , data , salt , } , [85u8 , 199u8 , 252u8 , 33u8 , 44u8 , 236u8 , 6u8 , 91u8 , 47u8 , 239u8 , 169u8 , 171u8 , 155u8 , 139u8 , 34u8 , 136u8 , 107u8 , 110u8 , 21u8 , 142u8 , 129u8 , 58u8 , 34u8 , 177u8 , 12u8 , 214u8 , 92u8 , 100u8 , 217u8 , 175u8 , 31u8 , 208u8 ,]) } # [doc = "Upload new `code` without instantiating a contract from it."] # [doc = ""] # [doc = "If the code does not already exist a deposit is reserved from the caller"] # [doc = "and unreserved only when [`Self::remove_code`] is called. The size of the reserve"] # [doc = "depends on the size of the supplied `code`."] # [doc = ""] # [doc = "If the code already exists in storage it will still return `Ok` and upgrades"] # [doc = "the in storage version to the current"] # [doc = "[`InstructionWeights::version`](InstructionWeights)."] # [doc = ""] # [doc = "- `determinism`: If this is set to any other value but [`Determinism::Enforced`] then"] # [doc = "  the only way to use this code is to delegate call into it from an offchain execution."] # [doc = "  Set to [`Determinism::Enforced`] if in doubt."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Anyone can instantiate a contract from any uploaded code and thus prevent its removal."] # [doc = "To avoid this situation a constructor could employ access control so that it can"] # [doc = "only be instantiated by permissioned entities. The same is true when uploading"] # [doc = "through [`Self::instantiate_with_code`]."] # [doc = ""] # [doc = "Use [`Determinism::Relaxed`] exclusively for non-deterministic code. If the uploaded"] # [doc = "code is deterministic, specifying [`Determinism::Relaxed`] will be disregarded and"] # [doc = "result in higher gas costs."] pub fn upload_code (& self , code : types :: upload_code :: Code , storage_deposit_limit : types :: upload_code :: StorageDepositLimit , determinism : types :: upload_code :: Determinism ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UploadCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "upload_code" , types :: UploadCode { code , storage_deposit_limit , determinism , } , [128u8 , 24u8 , 229u8 , 82u8 , 63u8 , 198u8 , 242u8 , 111u8 , 187u8 , 38u8 , 110u8 , 113u8 , 23u8 , 7u8 , 115u8 , 62u8 , 223u8 , 200u8 , 75u8 , 67u8 , 23u8 , 198u8 , 193u8 , 107u8 , 30u8 , 12u8 , 198u8 , 162u8 , 155u8 , 225u8 , 12u8 , 9u8 ,]) } # [doc = "Remove the code stored under `code_hash` and refund the deposit to its owner."] # [doc = ""] # [doc = "A code can only be removed by its original uploader (its owner) and only if it is"] # [doc = "not used by any contract."] pub fn remove_code (& self , code_hash : types :: remove_code :: CodeHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "remove_code" , types :: RemoveCode { code_hash , } , [99u8 , 184u8 , 12u8 , 208u8 , 123u8 , 158u8 , 140u8 , 21u8 , 190u8 , 152u8 , 95u8 , 79u8 , 217u8 , 131u8 , 161u8 , 160u8 , 21u8 , 56u8 , 167u8 , 27u8 , 90u8 , 255u8 , 75u8 , 0u8 , 133u8 , 111u8 , 119u8 , 217u8 , 157u8 , 67u8 , 238u8 , 69u8 ,]) } # [doc = "Privileged function that changes the code of an existing contract."] # [doc = ""] # [doc = "This takes care of updating refcounts and all other necessary operations. Returns"] # [doc = "an error if either the `code_hash` or `dest` do not exist."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "This does **not** change the address of the contract in question. This means"] # [doc = "that the contract address is no longer derived from its code hash after calling"] # [doc = "this dispatchable."] pub fn set_code (& self , dest : types :: set_code :: Dest , code_hash : types :: set_code :: CodeHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "set_code" , types :: SetCode { dest , code_hash , } , [66u8 , 53u8 , 180u8 , 182u8 , 167u8 , 134u8 , 212u8 , 45u8 , 162u8 , 121u8 , 89u8 , 105u8 , 7u8 , 166u8 , 112u8 , 13u8 , 250u8 , 115u8 , 128u8 , 235u8 , 124u8 , 55u8 , 166u8 , 5u8 , 158u8 , 163u8 , 159u8 , 113u8 , 243u8 , 103u8 , 214u8 , 108u8 ,]) } # [doc = "Makes a call to an account, optionally transferring some balance."] # [doc = ""] # [doc = "# Parameters"] # [doc = ""] # [doc = "* `dest`: Address of the contract to call."] # [doc = "* `value`: The balance to transfer from the `origin` to `dest`."] # [doc = "* `gas_limit`: The gas limit enforced when executing the constructor."] # [doc = "* `storage_deposit_limit`: The maximum amount of balance that can be charged from the"] # [doc = "  caller to pay for the storage consumed."] # [doc = "* `data`: The input data to pass to the contract."] # [doc = ""] # [doc = "* If the account is a smart-contract account, the associated code will be"] # [doc = "executed and any value will be transferred."] # [doc = "* If the account is a regular account, any value will be transferred."] # [doc = "* If no account exists and the call value is not less than `existential_deposit`,"] # [doc = "a regular account will be created and any value will be transferred."] pub fn call (& self , dest : types :: call :: Dest , value : types :: call :: Value , gas_limit : types :: call :: GasLimit , storage_deposit_limit : types :: call :: StorageDepositLimit , data : types :: call :: Data ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Call > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "call" , types :: Call { dest , value , gas_limit , storage_deposit_limit , data , } , [180u8 , 56u8 , 177u8 , 183u8 , 133u8 , 124u8 , 128u8 , 240u8 , 5u8 , 12u8 , 214u8 , 188u8 , 94u8 , 4u8 , 27u8 , 64u8 , 182u8 , 244u8 , 83u8 , 66u8 , 180u8 , 214u8 , 21u8 , 233u8 , 66u8 , 93u8 , 225u8 , 160u8 , 141u8 , 218u8 , 17u8 , 112u8 ,]) } # [doc = "Instantiates a new contract from the supplied `code` optionally transferring"] # [doc = "some balance."] # [doc = ""] # [doc = "This dispatchable has the same effect as calling [`Self::upload_code`] +"] # [doc = "[`Self::instantiate`]. Bundling them together provides efficiency gains. Please"] # [doc = "also check the documentation of [`Self::upload_code`]."] # [doc = ""] # [doc = "# Parameters"] # [doc = ""] # [doc = "* `value`: The balance to transfer from the `origin` to the newly created contract."] # [doc = "* `gas_limit`: The gas limit enforced when executing the constructor."] # [doc = "* `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved"] # [doc = "  from the caller to pay for the storage consumed."] # [doc = "* `code`: The contract code to deploy in raw bytes."] # [doc = "* `data`: The input data to pass to the contract constructor."] # [doc = "* `salt`: Used for the address derivation. See [`Pallet::contract_address`]."] # [doc = ""] # [doc = "Instantiation is executed as follows:"] # [doc = ""] # [doc = "- The supplied `code` is deployed, and a `code_hash` is created for that code."] # [doc = "- If the `code_hash` already exists on the chain the underlying `code` will be shared."] # [doc = "- The destination address is computed based on the sender, code_hash and the salt."] # [doc = "- The smart-contract account is created at the computed address."] # [doc = "- The `value` is transferred to the new account."] # [doc = "- The `deploy` function is executed in the context of the newly-created account."] pub fn instantiate_with_code (& self , value : types :: instantiate_with_code :: Value , gas_limit : types :: instantiate_with_code :: GasLimit , storage_deposit_limit : types :: instantiate_with_code :: StorageDepositLimit , code : types :: instantiate_with_code :: Code , data : types :: instantiate_with_code :: Data , salt : types :: instantiate_with_code :: Salt ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: InstantiateWithCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "instantiate_with_code" , types :: InstantiateWithCode { value , gas_limit , storage_deposit_limit , code , data , salt , } , [5u8 , 254u8 , 87u8 , 219u8 , 186u8 , 152u8 , 7u8 , 171u8 , 139u8 , 154u8 , 156u8 , 71u8 , 6u8 , 141u8 , 142u8 , 13u8 , 159u8 , 141u8 , 17u8 , 86u8 , 101u8 , 255u8 , 198u8 , 24u8 , 22u8 , 202u8 , 0u8 , 93u8 , 167u8 , 24u8 , 33u8 , 233u8 ,]) } # [doc = "Instantiates a contract from a previously deployed wasm binary."] # [doc = ""] # [doc = "This function is identical to [`Self::instantiate_with_code`] but without the"] # [doc = "code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary"] # [doc = "must be supplied."] pub fn instantiate (& self , value : types :: instantiate :: Value , gas_limit : types :: instantiate :: GasLimit , storage_deposit_limit : types :: instantiate :: StorageDepositLimit , code_hash : types :: instantiate :: CodeHash , data : types :: instantiate :: Data , salt : types :: instantiate :: Salt ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Instantiate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "instantiate" , types :: Instantiate { value , gas_limit , storage_deposit_limit , code_hash , data , salt , } , [76u8 , 45u8 , 179u8 , 227u8 , 69u8 , 190u8 , 6u8 , 142u8 , 101u8 , 42u8 , 62u8 , 96u8 , 121u8 , 106u8 , 70u8 , 180u8 , 38u8 , 214u8 , 129u8 , 5u8 , 22u8 , 170u8 , 131u8 , 201u8 , 105u8 , 167u8 , 105u8 , 24u8 , 118u8 , 58u8 , 63u8 , 65u8 ,]) } # [doc = "When a migration is in progress, this dispatchable can be used to run migration steps."] # [doc = "Calls that contribute to advancing the migration have their fees waived, as it's helpful"] # [doc = "for the chain. Note that while the migration is in progress, the pallet will also"] # [doc = "leverage the `on_idle` hooks to run migration steps."] pub fn migrate (& self , weight_limit : types :: migrate :: WeightLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Migrate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "migrate" , types :: Migrate { weight_limit , } , [11u8 , 183u8 , 183u8 , 30u8 , 18u8 , 17u8 , 58u8 , 145u8 , 254u8 , 126u8 , 21u8 , 155u8 , 27u8 , 218u8 , 95u8 , 35u8 , 38u8 , 102u8 , 234u8 , 241u8 , 67u8 , 99u8 , 183u8 , 164u8 , 5u8 , 66u8 , 186u8 , 77u8 , 234u8 , 76u8 , 206u8 , 248u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_contracts :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contract deployed by address at the specified address."] pub struct Instantiated { pub deployer : instantiated :: Deployer , pub contract : instantiated :: Contract , } pub mod instantiated { use super :: runtime_types ; pub type Deployer = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Contract = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Instantiated { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "Instantiated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contract has been removed."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "The only way for a contract to be removed and emitting this event is by calling"] # [doc = "`seal_terminate`."] pub struct Terminated { pub contract : terminated :: Contract , pub beneficiary : terminated :: Beneficiary , } pub mod terminated { use super :: runtime_types ; pub type Contract = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Beneficiary = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Terminated { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "Terminated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Code with the specified hash has been stored."] pub struct CodeStored { pub code_hash : code_stored :: CodeHash , pub deposit_held : code_stored :: DepositHeld , pub uploader : code_stored :: Uploader , } pub mod code_stored { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type DepositHeld = :: core :: primitive :: u64 ; pub type Uploader = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CodeStored { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "CodeStored" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A custom event emitted by the contract."] pub struct ContractEmitted { pub contract : contract_emitted :: Contract , pub data : contract_emitted :: Data , } pub mod contract_emitted { use super :: runtime_types ; pub type Contract = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ContractEmitted { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "ContractEmitted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A code with the specified hash was removed."] pub struct CodeRemoved { pub code_hash : code_removed :: CodeHash , pub deposit_released : code_removed :: DepositReleased , pub remover : code_removed :: Remover , } pub mod code_removed { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type DepositReleased = :: core :: primitive :: u64 ; pub type Remover = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CodeRemoved { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "CodeRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract's code was updated."] pub struct ContractCodeUpdated { pub contract : contract_code_updated :: Contract , pub new_code_hash : contract_code_updated :: NewCodeHash , pub old_code_hash : contract_code_updated :: OldCodeHash , } pub mod contract_code_updated { use super :: runtime_types ; pub type Contract = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewCodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type OldCodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ContractCodeUpdated { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "ContractCodeUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract was called either by a plain account or another contract."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Please keep in mind that like all events this is only emitted for successful"] # [doc = "calls. This is because on failure all storage changes including events are"] # [doc = "rolled back."] pub struct Called { pub caller : called :: Caller , pub contract : called :: Contract , } pub mod called { use super :: runtime_types ; pub type Caller = runtime_types :: pallet_contracts :: Origin < runtime_types :: node_subtensor_runtime :: Runtime > ; pub type Contract = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Called { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "Called" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract delegate called a code hash."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Please keep in mind that like all events this is only emitted for successful"] # [doc = "calls. This is because on failure all storage changes including events are"] # [doc = "rolled back."] pub struct DelegateCalled { pub contract : delegate_called :: Contract , pub code_hash : delegate_called :: CodeHash , } pub mod delegate_called { use super :: runtime_types ; pub type Contract = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DelegateCalled { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "DelegateCalled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some funds have been transferred and held as storage deposit."] pub struct StorageDepositTransferredAndHeld { pub from : storage_deposit_transferred_and_held :: From , pub to : storage_deposit_transferred_and_held :: To , pub amount : storage_deposit_transferred_and_held :: Amount , } pub mod storage_deposit_transferred_and_held { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StorageDepositTransferredAndHeld { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "StorageDepositTransferredAndHeld" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some storage deposit funds have been transferred and released."] pub struct StorageDepositTransferredAndReleased { pub from : storage_deposit_transferred_and_released :: From , pub to : storage_deposit_transferred_and_released :: To , pub amount : storage_deposit_transferred_and_released :: Amount , } pub mod storage_deposit_transferred_and_released { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StorageDepositTransferredAndReleased { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "StorageDepositTransferredAndReleased" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod pristine_code { use super :: runtime_types ; pub type PristineCode = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod code_info_of { use super :: runtime_types ; pub type CodeInfoOf = runtime_types :: pallet_contracts :: wasm :: CodeInfo ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod nonce { use super :: runtime_types ; pub type Nonce = :: core :: primitive :: u64 ; } pub mod contract_info_of { use super :: runtime_types ; pub type ContractInfoOf = runtime_types :: pallet_contracts :: storage :: ContractInfo ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod deletion_queue { use super :: runtime_types ; pub type DeletionQueue = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod deletion_queue_counter { use super :: runtime_types ; pub type DeletionQueueCounter = runtime_types :: pallet_contracts :: storage :: DeletionQueueManager ; } pub mod migration_in_progress { use super :: runtime_types ; pub type MigrationInProgress = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } } pub struct StorageApi ; impl StorageApi { # [doc = " A mapping from a contract's code hash to its code."] pub fn pristine_code_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pristine_code :: PristineCode , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "PristineCode" , () , [6u8 , 31u8 , 218u8 , 40u8 , 203u8 , 188u8 , 155u8 , 242u8 , 11u8 , 64u8 , 196u8 , 23u8 , 70u8 , 117u8 , 21u8 , 42u8 , 68u8 , 254u8 , 90u8 , 190u8 , 155u8 , 117u8 , 153u8 , 198u8 , 119u8 , 35u8 , 52u8 , 217u8 , 209u8 , 144u8 , 1u8 , 66u8 ,]) } # [doc = " A mapping from a contract's code hash to its code."] pub fn pristine_code (& self , _0 : types :: pristine_code :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pristine_code :: Param0 > , types :: pristine_code :: PristineCode , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "PristineCode" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [6u8 , 31u8 , 218u8 , 40u8 , 203u8 , 188u8 , 155u8 , 242u8 , 11u8 , 64u8 , 196u8 , 23u8 , 70u8 , 117u8 , 21u8 , 42u8 , 68u8 , 254u8 , 90u8 , 190u8 , 155u8 , 117u8 , 153u8 , 198u8 , 119u8 , 35u8 , 52u8 , 217u8 , 209u8 , 144u8 , 1u8 , 66u8 ,]) } # [doc = " A mapping from a contract's code hash to its code info."] pub fn code_info_of_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: code_info_of :: CodeInfoOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "CodeInfoOf" , () , [54u8 , 3u8 , 214u8 , 243u8 , 144u8 , 238u8 , 139u8 , 69u8 , 14u8 , 157u8 , 240u8 , 254u8 , 62u8 , 120u8 , 63u8 , 9u8 , 42u8 , 104u8 , 243u8 , 56u8 , 9u8 , 18u8 , 95u8 , 214u8 , 90u8 , 147u8 , 127u8 , 206u8 , 131u8 , 220u8 , 244u8 , 64u8 ,]) } # [doc = " A mapping from a contract's code hash to its code info."] pub fn code_info_of (& self , _0 : types :: code_info_of :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: code_info_of :: Param0 > , types :: code_info_of :: CodeInfoOf , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "CodeInfoOf" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [54u8 , 3u8 , 214u8 , 243u8 , 144u8 , 238u8 , 139u8 , 69u8 , 14u8 , 157u8 , 240u8 , 254u8 , 62u8 , 120u8 , 63u8 , 9u8 , 42u8 , 104u8 , 243u8 , 56u8 , 9u8 , 18u8 , 95u8 , 214u8 , 90u8 , 147u8 , 127u8 , 206u8 , 131u8 , 220u8 , 244u8 , 64u8 ,]) } # [doc = " This is a **monotonic** counter incremented on contract instantiation."] # [doc = ""] # [doc = " This is used in order to generate unique trie ids for contracts."] # [doc = " The trie id of a new contract is calculated from hash(account_id, nonce)."] # [doc = " The nonce is required because otherwise the following sequence would lead to"] # [doc = " a possible collision of storage:"] # [doc = ""] # [doc = " 1. Create a new contract."] # [doc = " 2. Terminate the contract."] # [doc = " 3. Immediately recreate the contract with the same account_id."] # [doc = ""] # [doc = " This is bad because the contents of a trie are deleted lazily and there might be"] # [doc = " storage of the old instantiation still in it when the new contract is created. Please"] # [doc = " note that we can't replace the counter by the block number because the sequence above"] # [doc = " can happen in the same block. We also can't keep the account counter in memory only"] # [doc = " because storage is the only way to communicate across different extrinsics in the"] # [doc = " same block."] # [doc = ""] # [doc = " # Note"] # [doc = ""] # [doc = " Do not use it to determine the number of contracts. It won't be decremented if"] # [doc = " a contract is destroyed."] pub fn nonce (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: nonce :: Nonce , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "Nonce" , () , [47u8 , 101u8 , 89u8 , 252u8 , 98u8 , 25u8 , 178u8 , 154u8 , 17u8 , 57u8 , 185u8 , 10u8 , 133u8 , 94u8 , 73u8 , 160u8 , 137u8 , 150u8 , 97u8 , 119u8 , 8u8 , 146u8 , 149u8 , 146u8 , 212u8 , 60u8 , 141u8 , 24u8 , 124u8 , 28u8 , 57u8 , 19u8 ,]) } # [doc = " The code associated with a given account."] # [doc = ""] # [doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn contract_info_of_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: contract_info_of :: ContractInfoOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "ContractInfoOf" , () , [213u8 , 45u8 , 40u8 , 56u8 , 252u8 , 26u8 , 98u8 , 210u8 , 66u8 , 76u8 , 79u8 , 220u8 , 190u8 , 219u8 , 139u8 , 85u8 , 59u8 , 13u8 , 111u8 , 48u8 , 2u8 , 53u8 , 31u8 , 241u8 , 80u8 , 58u8 , 239u8 , 62u8 , 85u8 , 25u8 , 3u8 , 75u8 ,]) } # [doc = " The code associated with a given account."] # [doc = ""] # [doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn contract_info_of (& self , _0 : types :: contract_info_of :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: contract_info_of :: Param0 > , types :: contract_info_of :: ContractInfoOf , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "ContractInfoOf" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [213u8 , 45u8 , 40u8 , 56u8 , 252u8 , 26u8 , 98u8 , 210u8 , 66u8 , 76u8 , 79u8 , 220u8 , 190u8 , 219u8 , 139u8 , 85u8 , 59u8 , 13u8 , 111u8 , 48u8 , 2u8 , 53u8 , 31u8 , 241u8 , 80u8 , 58u8 , 239u8 , 62u8 , 85u8 , 25u8 , 3u8 , 75u8 ,]) } # [doc = " Evicted contracts that await child trie deletion."] # [doc = ""] # [doc = " Child trie deletion is a heavy operation depending on the amount of storage items"] # [doc = " stored in said trie. Therefore this operation is performed lazily in `on_idle`."] pub fn deletion_queue_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: deletion_queue :: DeletionQueue , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "DeletionQueue" , () , [233u8 , 193u8 , 191u8 , 44u8 , 151u8 , 46u8 , 124u8 , 188u8 , 132u8 , 227u8 , 107u8 , 210u8 , 37u8 , 110u8 , 172u8 , 95u8 , 12u8 , 114u8 , 63u8 , 83u8 , 60u8 , 163u8 , 58u8 , 174u8 , 160u8 , 47u8 , 198u8 , 156u8 , 216u8 , 182u8 , 65u8 , 229u8 ,]) } # [doc = " Evicted contracts that await child trie deletion."] # [doc = ""] # [doc = " Child trie deletion is a heavy operation depending on the amount of storage items"] # [doc = " stored in said trie. Therefore this operation is performed lazily in `on_idle`."] pub fn deletion_queue (& self , _0 : types :: deletion_queue :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: deletion_queue :: Param0 > , types :: deletion_queue :: DeletionQueue , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "DeletionQueue" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [233u8 , 193u8 , 191u8 , 44u8 , 151u8 , 46u8 , 124u8 , 188u8 , 132u8 , 227u8 , 107u8 , 210u8 , 37u8 , 110u8 , 172u8 , 95u8 , 12u8 , 114u8 , 63u8 , 83u8 , 60u8 , 163u8 , 58u8 , 174u8 , 160u8 , 47u8 , 198u8 , 156u8 , 216u8 , 182u8 , 65u8 , 229u8 ,]) } # [doc = " A pair of monotonic counters used to track the latest contract marked for deletion"] # [doc = " and the latest deleted contract in queue."] pub fn deletion_queue_counter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: deletion_queue_counter :: DeletionQueueCounter , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "DeletionQueueCounter" , () , [124u8 , 63u8 , 32u8 , 109u8 , 8u8 , 113u8 , 105u8 , 172u8 , 87u8 , 88u8 , 244u8 , 191u8 , 252u8 , 196u8 , 10u8 , 137u8 , 101u8 , 87u8 , 124u8 , 220u8 , 178u8 , 155u8 , 163u8 , 214u8 , 116u8 , 121u8 , 129u8 , 129u8 , 173u8 , 76u8 , 188u8 , 41u8 ,]) } # [doc = " A migration can span across multiple blocks. This storage defines a cursor to track the"] # [doc = " progress of the migration, enabling us to resume from the last completed position."] pub fn migration_in_progress (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: migration_in_progress :: MigrationInProgress , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "MigrationInProgress" , () , [238u8 , 96u8 , 248u8 , 141u8 , 247u8 , 233u8 , 27u8 , 21u8 , 187u8 , 56u8 , 195u8 , 67u8 , 21u8 , 215u8 , 30u8 , 236u8 , 151u8 , 163u8 , 115u8 , 117u8 , 154u8 , 54u8 , 37u8 , 240u8 , 136u8 , 240u8 , 35u8 , 192u8 , 168u8 , 250u8 , 132u8 , 63u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " Cost schedule and limits."] pub fn schedule (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: pallet_contracts :: schedule :: Schedule > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "Schedule" , [201u8 , 121u8 , 129u8 , 219u8 , 126u8 , 12u8 , 30u8 , 252u8 , 210u8 , 182u8 , 68u8 , 232u8 , 66u8 , 38u8 , 235u8 , 239u8 , 196u8 , 213u8 , 7u8 , 56u8 , 86u8 , 147u8 , 255u8 , 139u8 , 65u8 , 91u8 , 154u8 , 159u8 , 140u8 , 184u8 , 219u8 , 142u8 ,]) } # [doc = " The amount of balance a caller has to pay for each byte of storage."] # [doc = ""] # [doc = " # Note"] # [doc = ""] # [doc = " Changing this value for an existing chain might need a storage migration."] pub fn deposit_per_byte (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "DepositPerByte" , [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 ,]) } # [doc = " Fallback value to limit the storage deposit if it's not being set by the caller."] pub fn default_deposit_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "DefaultDepositLimit" , [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 ,]) } # [doc = " The amount of balance a caller has to pay for each storage item."] # [doc = ""] # [doc = " # Note"] # [doc = ""] # [doc = " Changing this value for an existing chain might need a storage migration."] pub fn deposit_per_item (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "DepositPerItem" , [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 ,]) } # [doc = " The percentage of the storage deposit that should be held for using a code hash."] # [doc = " Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]"] # [doc = " protects the code from being removed. In order to prevent abuse these actions are"] # [doc = " protected with a percentage of the code deposit."] pub fn code_hash_lockup_deposit_percent (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_arithmetic :: per_things :: Perbill > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "CodeHashLockupDepositPercent" , [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 ,]) } # [doc = " The maximum length of a contract code in bytes."] # [doc = ""] # [doc = " The value should be chosen carefully taking into the account the overall memory limit"] # [doc = " your runtime has, as well as the [maximum allowed callstack"] # [doc = " depth](#associatedtype.CallStack). Look into the `integrity_test()` for some insights."] pub fn max_code_len (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "MaxCodeLen" , [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 ,]) } # [doc = " The maximum allowable length in bytes for storage keys."] pub fn max_storage_key_len (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "MaxStorageKeyLen" , [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 ,]) } # [doc = " The maximum size of the transient storage in bytes."] # [doc = " This includes keys, values, and previous entries used for storage rollback."] pub fn max_transient_storage_size (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "MaxTransientStorageSize" , [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 ,]) } # [doc = " The maximum number of delegate_dependencies that a contract can lock with"] # [doc = " [`chain_extension::Ext::lock_delegate_dependency`]."] pub fn max_delegate_dependencies (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "MaxDelegateDependencies" , [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 ,]) } # [doc = " Make contract callable functions marked as `#[unstable]` available."] # [doc = ""] # [doc = " Contracts that use `#[unstable]` functions won't be able to be uploaded unless"] # [doc = " this is set to `true`. This is only meant for testnets and dev nodes in order to"] # [doc = " experiment with new features."] # [doc = ""] # [doc = " # Warning"] # [doc = ""] # [doc = " Do **not** set to `true` on productions chains."] pub fn unsafe_unstable_interface (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: bool > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "UnsafeUnstableInterface" , [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 ,]) } # [doc = " The maximum length of the debug buffer in bytes."] pub fn max_debug_buffer_len (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "MaxDebugBufferLen" , [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 ,]) } # [doc = " Type that bundles together all the runtime configurable interface types."] # [doc = ""] # [doc = " This is not a real config. We just mention the type here as constant so that"] # [doc = " its type appears in the metadata. Only valid value is `()`."] pub fn environment (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: pallet_contracts :: Environment > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "Environment" , [182u8 , 82u8 , 245u8 , 21u8 , 180u8 , 187u8 , 81u8 , 79u8 , 86u8 , 189u8 , 26u8 , 84u8 , 118u8 , 253u8 , 81u8 , 12u8 , 20u8 , 85u8 , 197u8 , 131u8 , 60u8 , 37u8 , 85u8 , 26u8 , 249u8 , 76u8 , 8u8 , 40u8 , 67u8 , 30u8 , 105u8 , 1u8 ,]) } # [doc = " The version of the HostFn APIs that are available in the runtime."] # [doc = ""] # [doc = " Only valid value is `()`."] pub fn api_version (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: pallet_contracts :: ApiVersion > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "ApiVersion" , [68u8 , 240u8 , 8u8 , 124u8 , 194u8 , 179u8 , 162u8 , 203u8 , 5u8 , 230u8 , 72u8 , 173u8 , 165u8 , 230u8 , 234u8 , 96u8 , 225u8 , 71u8 , 224u8 , 92u8 , 120u8 , 110u8 , 207u8 , 208u8 , 119u8 , 254u8 , 196u8 , 192u8 , 152u8 , 253u8 , 164u8 , 117u8 ,]) } } } } pub mod mev_shield { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_shield :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_shield :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Announce the ML‑KEM public key that will become `CurrentKey` in"] # [doc = "the following block."] pub struct AnnounceNextKey { pub public_key : announce_next_key :: PublicKey , } pub mod announce_next_key { use super :: runtime_types ; pub type PublicKey = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AnnounceNextKey { const PALLET : & 'static str = "MevShield" ; const CALL : & 'static str = "announce_next_key" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Users submit an encrypted wrapper."] # [doc = ""] # [doc = "Client‑side:"] # [doc = ""] # [doc = "  1. Read `NextKey` (ML‑KEM public key bytes) from storage."] # [doc = "  2. Sign your extrinsic so that it can be executed when added to the pool,"] # [doc = "       i.e. you may need to increment the nonce if you submit using the same account."] # [doc = "  3. `commitment = Hashing::hash(signed_extrinsic)`."] # [doc = "  4. Encrypt:"] # [doc = ""] # [doc = "       plaintext = signed_extrinsic"] # [doc = ""] # [doc = "     with ML‑KEM‑768 + XChaCha20‑Poly1305, producing"] # [doc = ""] # [doc = "       ciphertext = [u16 kem_len] || kem_ct || nonce24 || aead_ct"] # [doc = ""] pub struct SubmitEncrypted { pub commitment : submit_encrypted :: Commitment , pub ciphertext : submit_encrypted :: Ciphertext , } pub mod submit_encrypted { use super :: runtime_types ; pub type Commitment = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Ciphertext = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SubmitEncrypted { const PALLET : & 'static str = "MevShield" ; const CALL : & 'static str = "submit_encrypted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Marks a submission as failed to decrypt and removes it from storage."] # [doc = ""] # [doc = "Called by the block author when decryption fails at any stage (e.g., ML-KEM decapsulate"] # [doc = "failed, AEAD decrypt failed, invalid ciphertext format, etc.). This allows clients to be"] # [doc = "notified of decryption failures through on-chain events."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `id` - The wrapper id (hash of (author, commitment, ciphertext))"] # [doc = "* `reason` - Human-readable reason for the decryption failure (e.g., \"ML-KEM decapsulate failed\")"] pub struct MarkDecryptionFailed { pub id : mark_decryption_failed :: Id , pub reason : mark_decryption_failed :: Reason , } pub mod mark_decryption_failed { use super :: runtime_types ; pub type Id = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Reason = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for MarkDecryptionFailed { const PALLET : & 'static str = "MevShield" ; const CALL : & 'static str = "mark_decryption_failed" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Announce the ML‑KEM public key that will become `CurrentKey` in"] # [doc = "the following block."] pub fn announce_next_key (& self , public_key : types :: announce_next_key :: PublicKey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AnnounceNextKey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("MevShield" , "announce_next_key" , types :: AnnounceNextKey { public_key , } , [134u8 , 11u8 , 157u8 , 45u8 , 166u8 , 233u8 , 110u8 , 151u8 , 207u8 , 166u8 , 70u8 , 202u8 , 116u8 , 223u8 , 206u8 , 133u8 , 152u8 , 187u8 , 225u8 , 137u8 , 65u8 , 197u8 , 76u8 , 41u8 , 73u8 , 10u8 , 224u8 , 175u8 , 200u8 , 203u8 , 161u8 , 175u8 ,]) } # [doc = "Users submit an encrypted wrapper."] # [doc = ""] # [doc = "Client‑side:"] # [doc = ""] # [doc = "  1. Read `NextKey` (ML‑KEM public key bytes) from storage."] # [doc = "  2. Sign your extrinsic so that it can be executed when added to the pool,"] # [doc = "       i.e. you may need to increment the nonce if you submit using the same account."] # [doc = "  3. `commitment = Hashing::hash(signed_extrinsic)`."] # [doc = "  4. Encrypt:"] # [doc = ""] # [doc = "       plaintext = signed_extrinsic"] # [doc = ""] # [doc = "     with ML‑KEM‑768 + XChaCha20‑Poly1305, producing"] # [doc = ""] # [doc = "       ciphertext = [u16 kem_len] || kem_ct || nonce24 || aead_ct"] # [doc = ""] pub fn submit_encrypted (& self , commitment : types :: submit_encrypted :: Commitment , ciphertext : types :: submit_encrypted :: Ciphertext ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SubmitEncrypted > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("MevShield" , "submit_encrypted" , types :: SubmitEncrypted { commitment , ciphertext , } , [194u8 , 236u8 , 22u8 , 23u8 , 183u8 , 202u8 , 66u8 , 158u8 , 45u8 , 240u8 , 122u8 , 245u8 , 1u8 , 159u8 , 127u8 , 3u8 , 130u8 , 194u8 , 114u8 , 238u8 , 5u8 , 73u8 , 51u8 , 178u8 , 246u8 , 122u8 , 191u8 , 83u8 , 57u8 , 234u8 , 217u8 , 174u8 ,]) } # [doc = "Marks a submission as failed to decrypt and removes it from storage."] # [doc = ""] # [doc = "Called by the block author when decryption fails at any stage (e.g., ML-KEM decapsulate"] # [doc = "failed, AEAD decrypt failed, invalid ciphertext format, etc.). This allows clients to be"] # [doc = "notified of decryption failures through on-chain events."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `id` - The wrapper id (hash of (author, commitment, ciphertext))"] # [doc = "* `reason` - Human-readable reason for the decryption failure (e.g., \"ML-KEM decapsulate failed\")"] pub fn mark_decryption_failed (& self , id : types :: mark_decryption_failed :: Id , reason : types :: mark_decryption_failed :: Reason ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: MarkDecryptionFailed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("MevShield" , "mark_decryption_failed" , types :: MarkDecryptionFailed { id , reason , } , [202u8 , 45u8 , 211u8 , 56u8 , 1u8 , 52u8 , 167u8 , 197u8 , 135u8 , 231u8 , 230u8 , 112u8 , 54u8 , 23u8 , 76u8 , 132u8 , 244u8 , 197u8 , 102u8 , 94u8 , 66u8 , 241u8 , 131u8 , 116u8 , 232u8 , 202u8 , 252u8 , 97u8 , 236u8 , 70u8 , 129u8 , 69u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_shield :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Encrypted wrapper accepted."] pub struct EncryptedSubmitted { pub id : encrypted_submitted :: Id , pub who : encrypted_submitted :: Who , } pub mod encrypted_submitted { use super :: runtime_types ; pub type Id = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for EncryptedSubmitted { const PALLET : & 'static str = "MevShield" ; const EVENT : & 'static str = "EncryptedSubmitted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Decrypted call executed."] pub struct DecryptedExecuted { pub id : decrypted_executed :: Id , pub signer : decrypted_executed :: Signer , } pub mod decrypted_executed { use super :: runtime_types ; pub type Id = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Signer = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DecryptedExecuted { const PALLET : & 'static str = "MevShield" ; const EVENT : & 'static str = "DecryptedExecuted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Decrypted execution rejected."] pub struct DecryptedRejected { pub id : decrypted_rejected :: Id , pub reason : decrypted_rejected :: Reason , } pub mod decrypted_rejected { use super :: runtime_types ; pub type Id = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Reason = runtime_types :: sp_runtime :: DispatchErrorWithPostInfo < runtime_types :: frame_support :: dispatch :: PostDispatchInfo > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DecryptedRejected { const PALLET : & 'static str = "MevShield" ; const EVENT : & 'static str = "DecryptedRejected" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Decryption failed - validator could not decrypt the submission."] pub struct DecryptionFailed { pub id : decryption_failed :: Id , pub reason : decryption_failed :: Reason , } pub mod decryption_failed { use super :: runtime_types ; pub type Id = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Reason = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DecryptionFailed { const PALLET : & 'static str = "MevShield" ; const EVENT : & 'static str = "DecryptionFailed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod current_key { use super :: runtime_types ; pub type CurrentKey = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } pub mod next_key { use super :: runtime_types ; pub type NextKey = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } pub mod submissions { use super :: runtime_types ; pub type Submissions = runtime_types :: pallet_shield :: pallet :: Submission < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 , :: subxt :: ext :: subxt_core :: utils :: H256 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod key_hash_by_block { use super :: runtime_types ; pub type KeyHashByBlock = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Param0 = :: core :: primitive :: u32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Current ML‑KEM‑768 public key bytes (encoded form)."] pub fn current_key (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_key :: CurrentKey , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MevShield" , "CurrentKey" , () , [18u8 , 245u8 , 225u8 , 10u8 , 17u8 , 28u8 , 28u8 , 132u8 , 207u8 , 126u8 , 206u8 , 129u8 , 243u8 , 170u8 , 131u8 , 45u8 , 150u8 , 134u8 , 168u8 , 181u8 , 135u8 , 246u8 , 164u8 , 42u8 , 206u8 , 55u8 , 190u8 , 241u8 , 158u8 , 8u8 , 116u8 , 195u8 ,]) } # [doc = " Next ML‑KEM‑768 public key bytes, announced by the block author."] pub fn next_key (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_key :: NextKey , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MevShield" , "NextKey" , () , [252u8 , 82u8 , 81u8 , 34u8 , 50u8 , 135u8 , 121u8 , 134u8 , 173u8 , 201u8 , 162u8 , 7u8 , 47u8 , 206u8 , 5u8 , 230u8 , 246u8 , 160u8 , 199u8 , 222u8 , 245u8 , 219u8 , 244u8 , 39u8 , 234u8 , 235u8 , 217u8 , 97u8 , 30u8 , 5u8 , 75u8 , 79u8 ,]) } # [doc = " Buffered encrypted submissions, indexed by wrapper id."] pub fn submissions_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: submissions :: Submissions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MevShield" , "Submissions" , () , [91u8 , 204u8 , 241u8 , 159u8 , 157u8 , 145u8 , 87u8 , 61u8 , 114u8 , 134u8 , 210u8 , 40u8 , 145u8 , 118u8 , 182u8 , 156u8 , 19u8 , 75u8 , 15u8 , 181u8 , 105u8 , 81u8 , 230u8 , 250u8 , 161u8 , 179u8 , 58u8 , 201u8 , 67u8 , 162u8 , 44u8 , 14u8 ,]) } # [doc = " Buffered encrypted submissions, indexed by wrapper id."] pub fn submissions (& self , _0 : types :: submissions :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: submissions :: Param0 > , types :: submissions :: Submissions , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MevShield" , "Submissions" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [91u8 , 204u8 , 241u8 , 159u8 , 157u8 , 145u8 , 87u8 , 61u8 , 114u8 , 134u8 , 210u8 , 40u8 , 145u8 , 118u8 , 182u8 , 156u8 , 19u8 , 75u8 , 15u8 , 181u8 , 105u8 , 81u8 , 230u8 , 250u8 , 161u8 , 179u8 , 58u8 , 201u8 , 67u8 , 162u8 , 44u8 , 14u8 ,]) } # [doc = " Hash(CurrentKey) per block, used to bind `key_hash` to the epoch at submit time."] pub fn key_hash_by_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: key_hash_by_block :: KeyHashByBlock , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MevShield" , "KeyHashByBlock" , () , [189u8 , 213u8 , 146u8 , 133u8 , 4u8 , 213u8 , 135u8 , 96u8 , 137u8 , 142u8 , 146u8 , 136u8 , 61u8 , 113u8 , 73u8 , 46u8 , 191u8 , 88u8 , 136u8 , 160u8 , 69u8 , 135u8 , 171u8 , 119u8 , 56u8 , 192u8 , 152u8 , 233u8 , 30u8 , 181u8 , 14u8 , 18u8 ,]) } # [doc = " Hash(CurrentKey) per block, used to bind `key_hash` to the epoch at submit time."] pub fn key_hash_by_block (& self , _0 : types :: key_hash_by_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: key_hash_by_block :: Param0 > , types :: key_hash_by_block :: KeyHashByBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MevShield" , "KeyHashByBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [189u8 , 213u8 , 146u8 , 133u8 , 4u8 , 213u8 , 135u8 , 96u8 , 137u8 , 142u8 , 146u8 , 136u8 , 61u8 , 113u8 , 73u8 , 46u8 , 191u8 , 88u8 , 136u8 , 160u8 , 69u8 , 135u8 , 171u8 , 119u8 , 56u8 , 192u8 , 152u8 , 233u8 , 30u8 , 181u8 , 14u8 , 18u8 ,]) } } } } 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BoundedBTreeMap < _0 , _1 > (pub :: subxt :: ext :: subxt_core :: utils :: KeyedVec < _0 , _1 > ,) ; } pub mod bounded_vec { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BoundedVec < _0 > (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > ,) ; } pub mod weak_bounded_vec { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct WeakBoundedVec < _0 > (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > ,) ; } } pub mod ethbloom { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Block < _0 > { pub header : runtime_types :: ethereum :: header :: Header , pub transactions : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub ommers : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: header :: Header > , } } pub mod header { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Header { pub parent_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub ommers_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub beneficiary : :: subxt :: ext :: subxt_core :: utils :: H160 , pub state_root : :: subxt :: ext :: subxt_core :: utils :: H256 , pub transactions_root : :: subxt :: ext :: subxt_core :: utils :: H256 , pub receipts_root : :: subxt :: ext :: subxt_core :: 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 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub mix_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub nonce : runtime_types :: ethereum_types :: hash :: H64 , } } pub mod log { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Log { pub address : :: subxt :: ext :: subxt_core :: utils :: H160 , pub topics : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > , pub data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } } pub mod receipt { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: log :: Log > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ReceiptV4 { # [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 ,) , # [codec (index = 3)] EIP7702 (runtime_types :: ethereum :: receipt :: EIP658ReceiptData ,) , } } pub mod transaction { use super :: runtime_types ; pub mod eip1559 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: legacy :: TransactionAction , pub value : runtime_types :: primitive_types :: U256 , pub input : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub access_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip2930 :: AccessListItem > , pub signature : runtime_types :: ethereum :: transaction :: eip2930 :: TransactionSignature , } } pub mod eip2930 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AccessListItem { pub address : :: subxt :: ext :: subxt_core :: utils :: H160 , pub storage_keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: legacy :: TransactionAction , pub value : runtime_types :: primitive_types :: U256 , pub input : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub access_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip2930 :: AccessListItem > , pub signature : runtime_types :: ethereum :: transaction :: eip2930 :: TransactionSignature , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MalleableTransactionSignature { pub odd_y_parity : :: core :: primitive :: bool , pub r : :: subxt :: ext :: subxt_core :: utils :: H256 , pub s : :: subxt :: ext :: subxt_core :: utils :: H256 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct TransactionSignature { pub odd_y_parity : :: core :: primitive :: bool , pub r : :: subxt :: ext :: subxt_core :: utils :: H256 , pub s : :: subxt :: ext :: subxt_core :: utils :: H256 , } } pub mod eip7702 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AuthorizationListItem { pub chain_id : :: core :: primitive :: u64 , pub address : :: subxt :: ext :: subxt_core :: utils :: H160 , pub nonce : runtime_types :: primitive_types :: U256 , pub signature : runtime_types :: ethereum :: transaction :: eip2930 :: MalleableTransactionSignature , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EIP7702Transaction { 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 destination : runtime_types :: ethereum :: transaction :: legacy :: TransactionAction , pub value : runtime_types :: primitive_types :: U256 , pub data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub access_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip2930 :: AccessListItem > , pub authorization_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > , pub signature : runtime_types :: ethereum :: transaction :: eip2930 :: TransactionSignature , } } pub mod legacy { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: legacy :: TransactionAction , pub value : runtime_types :: primitive_types :: U256 , pub input : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub signature : runtime_types :: ethereum :: transaction :: legacy :: TransactionSignature , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TransactionAction { # [codec (index = 0)] Call (:: subxt :: ext :: subxt_core :: utils :: H160 ,) , # [codec (index = 1)] Create , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct TransactionRecoveryId (pub :: core :: primitive :: u64 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct TransactionSignature { pub v : runtime_types :: ethereum :: transaction :: legacy :: TransactionRecoveryId , pub r : :: subxt :: ext :: subxt_core :: utils :: H256 , pub s : :: subxt :: ext :: subxt_core :: utils :: H256 , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TransactionV3 { # [codec (index = 0)] Legacy (runtime_types :: ethereum :: transaction :: legacy :: LegacyTransaction ,) , # [codec (index = 1)] EIP2930 (runtime_types :: ethereum :: transaction :: eip2930 :: EIP2930Transaction ,) , # [codec (index = 2)] EIP1559 (runtime_types :: ethereum :: transaction :: eip1559 :: EIP1559Transaction ,) , # [codec (index = 3)] EIP7702 (runtime_types :: ethereum :: transaction :: eip7702 :: EIP7702Transaction ,) , } } } pub mod ethereum_types { use super :: runtime_types ; pub mod hash { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 (:: subxt :: ext :: subxt_core :: alloc :: string :: String ,) , # [codec (index = 14)] MaxNonce , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 (:: subxt :: ext :: subxt_core :: alloc :: string :: String ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ExitRevert { # [codec (index = 0)] Reverted , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Opcode (pub :: core :: primitive :: u8 ,) ; } } pub mod finality_grandpa { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Precommit < _0 , _1 > { pub target_hash : _0 , pub target_number : _1 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 < runtime_types :: fp_evm :: WeightInfo > , pub logs : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: log :: Log > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UsedGas { pub standard : runtime_types :: primitive_types :: U256 , pub effective : runtime_types :: primitive_types :: U256 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct TransactionStatus { pub transaction_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub transaction_index : :: core :: primitive :: u32 , pub from : :: subxt :: ext :: subxt_core :: utils :: H160 , pub to : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: H160 > , pub contract_address : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: H160 > , pub logs : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: log :: Log > , 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UncheckedExtrinsic < _0 , _1 , _2 , _3 > (pub :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < _0 , _1 , _2 , _3 > ,) ; } } pub mod frame_metadata_hash_extension { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckMetadataHash { pub mode : runtime_types :: frame_metadata_hash_extension :: Mode , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Mode { # [codec (index = 0)] Disabled , # [codec (index = 1)] Enabled , } } pub mod frame_support { use super :: runtime_types ; pub mod dispatch { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum DispatchClass { # [codec (index = 0)] Normal , # [codec (index = 1)] Operational , # [codec (index = 2)] Mandatory , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Pays { # [codec (index = 0)] Yes , # [codec (index = 1)] No , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PerDispatchClass < _0 > { pub normal : _0 , pub operational : _0 , pub mandatory : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PostDispatchInfo { pub actual_weight : :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > , pub pays_fee : runtime_types :: frame_support :: dispatch :: Pays , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RawOrigin < _0 > { # [codec (index = 0)] Root , # [codec (index = 1)] Signed (_0 ,) , # [codec (index = 2)] None , # [codec (index = 3)] Authorized , } } pub mod traits { use super :: runtime_types ; pub mod preimages { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Bounded < _0 , _1 > { # [codec (index = 0)] Legacy { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 1)] Inline (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , # [codec (index = 2)] Lookup { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , len : :: core :: primitive :: u32 , } , __Ignore (:: core :: marker :: PhantomData < (_0 , _1) >) , } } pub mod tokens { use super :: runtime_types ; pub mod fungible { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct HoldConsideration (pub :: core :: primitive :: u64 ,) ; } pub mod misc { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum BalanceStatus { # [codec (index = 0)] Free , # [codec (index = 1)] Reserved , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct IdAmount < _0 , _1 > { pub id : _0 , pub amount : _1 , } } } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckGenesis ; } pub mod check_mortality { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckNonZeroSender ; } pub mod check_spec_version { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckSpecVersion ; } pub mod check_tx_version { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckTxVersion ; } pub mod check_weight { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckWeight ; } } pub mod limits { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BlockLength { pub max : runtime_types :: frame_support :: dispatch :: PerDispatchClass < :: core :: primitive :: u32 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct WeightsPerClass { pub base_extrinsic : runtime_types :: sp_weights :: weight_v2 :: Weight , pub max_extrinsic : :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > , pub max_total : :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > , pub reserved : :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > , } } pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Make some on-chain remark."] # [doc = ""] # [doc = "Can be executed by every `origin`."] remark { remark : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Set the number of pages in the WebAssembly environment's heap."] set_heap_pages { pages : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Set the new runtime code."] set_code { code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 3)] # [doc = "Set the new runtime code without doing any checks of the given `code`."] # [doc = ""] # [doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"] # [doc = "version!"] set_code_without_checks { code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 4)] # [doc = "Set some items of storage."] set_storage { items : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) > , } , # [codec (index = 5)] # [doc = "Kill some items from storage."] kill_storage { keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , } , # [codec (index = 6)] # [doc = "Kill all storage items with a key that starts with the given prefix."] # [doc = ""] # [doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] # [doc = "the prefix we are removing to accurately calculate the weight of this function."] kill_prefix { prefix : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , subkeys : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Make some on-chain remark and emit event."] remark_with_event { remark : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 9)] # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "This call requires Root origin."] authorize_upgrade { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 10)] # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"] # [doc = "example that the spec name remains the same and that the version number increases. Not"] # [doc = "recommended for normal use. Use `authorize_upgrade` instead."] # [doc = ""] # [doc = "This call requires Root origin."] authorize_upgrade_without_checks { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 11)] # [doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."] # [doc = ""] # [doc = "If the authorization required a version check, this call will ensure the spec name"] # [doc = "remains unchanged and that the spec version has increased."] # [doc = ""] # [doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"] # [doc = "the new `code` in the same block or attempt to schedule the upgrade."] # [doc = ""] # [doc = "All origins are allowed."] apply_authorized_upgrade { code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Error for the System pallet"] pub enum Error { # [codec (index = 0)] # [doc = "The name of specification does not match between the current runtime"] # [doc = "and the new runtime."] InvalidSpecName , # [codec (index = 1)] # [doc = "The specification version is not allowed to decrease between the current runtime"] # [doc = "and the new runtime."] SpecVersionNeedsToIncrease , # [codec (index = 2)] # [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)] # [doc = "Suicide called when the account has non-default composite data."] NonDefaultComposite , # [codec (index = 4)] # [doc = "There is a non-zero reference count preventing the account from being purged."] NonZeroRefCount , # [codec (index = 5)] # [doc = "The origin filter prevent the call to be dispatched."] CallFiltered , # [codec (index = 6)] # [doc = "A multi-block migration is ongoing and prevents the current code from being replaced."] MultiBlockMigrationsOngoing , # [codec (index = 7)] # [doc = "No upgrade authorized."] NothingAuthorized , # [codec (index = 8)] # [doc = "The submitted code is not authorized."] Unauthorized , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event for the System pallet."] pub enum Event { # [codec (index = 0)] # [doc = "An extrinsic completed successfully."] ExtrinsicSuccess { dispatch_info : runtime_types :: frame_system :: DispatchEventInfo , } , # [codec (index = 1)] # [doc = "An extrinsic failed."] ExtrinsicFailed { dispatch_error : runtime_types :: sp_runtime :: DispatchError , dispatch_info : runtime_types :: frame_system :: DispatchEventInfo , } , # [codec (index = 2)] # [doc = "`:code` was updated."] CodeUpdated , # [codec (index = 3)] # [doc = "A new account was created."] NewAccount { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "An account was reaped."] KilledAccount { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "On on-chain remark happened."] Remarked { sender : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 6)] # [doc = "An upgrade was authorized."] UpgradeAuthorized { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , check_version : :: core :: primitive :: bool , } , # [codec (index = 7)] # [doc = "An invalid authorized upgrade was rejected while trying to apply it."] RejectedInvalidAuthorizedUpgrade { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , error : runtime_types :: sp_runtime :: DispatchError , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CodeUpgradeAuthorization { pub code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub check_version : :: core :: primitive :: bool , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DispatchEventInfo { 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EventRecord < _0 , _1 > { pub phase : runtime_types :: frame_system :: Phase , pub event : _0 , pub topics : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _1 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct LastRuntimeUpgradeInfo { # [codec (compact)] pub spec_version : :: core :: primitive :: u32 , pub spec_name : :: subxt :: ext :: subxt_core :: alloc :: string :: String , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Phase { # [codec (index = 0)] ApplyExtrinsic (:: core :: primitive :: u32 ,) , # [codec (index = 1)] Finalization , # [codec (index = 2)] Initialization , } } pub mod node_subtensor_runtime { use super :: runtime_types ; pub mod check_nonce { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckNonce (# [codec (compact)] pub :: core :: primitive :: u32 ,) ; } pub mod sudo_wrapper { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SudoTransactionExtension < _0 > (pub :: core :: marker :: PhantomData < _0 >) ; } pub mod transaction_payment_wrapper { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ChargeTransactionPaymentWrapper { pub charge_transaction_payment : runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum OriginCaller { # [codec (index = 0)] system (runtime_types :: frame_support :: dispatch :: RawOrigin < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ,) , # [codec (index = 21)] Ethereum (runtime_types :: pallet_ethereum :: RawOrigin ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Runtime ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeCall { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Call ,) , # [codec (index = 2)] Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , # [codec (index = 4)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , # [codec (index = 5)] Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , # [codec (index = 7)] SubtensorModule (runtime_types :: pallet_subtensor :: pallet :: Call ,) , # [codec (index = 11)] Utility (runtime_types :: pallet_subtensor_utility :: pallet :: Call ,) , # [codec (index = 12)] Sudo (runtime_types :: pallet_sudo :: pallet :: Call ,) , # [codec (index = 13)] Multisig (runtime_types :: pallet_multisig :: pallet :: Call ,) , # [codec (index = 14)] Preimage (runtime_types :: pallet_preimage :: pallet :: Call ,) , # [codec (index = 15)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Call ,) , # [codec (index = 16)] Proxy (runtime_types :: pallet_subtensor_proxy :: pallet :: Call ,) , # [codec (index = 17)] Registry (runtime_types :: pallet_registry :: pallet :: Call ,) , # [codec (index = 18)] Commitments (runtime_types :: pallet_commitments :: pallet :: Call ,) , # [codec (index = 19)] AdminUtils (runtime_types :: pallet_admin_utils :: pallet :: Call ,) , # [codec (index = 20)] SafeMode (runtime_types :: pallet_safe_mode :: pallet :: Call ,) , # [codec (index = 21)] Ethereum (runtime_types :: pallet_ethereum :: pallet :: Call ,) , # [codec (index = 22)] EVM (runtime_types :: pallet_evm :: pallet :: Call ,) , # [codec (index = 25)] BaseFee (runtime_types :: pallet_base_fee :: pallet :: Call ,) , # [codec (index = 26)] Drand (runtime_types :: pallet_drand :: pallet :: Call ,) , # [codec (index = 27)] Crowdloan (runtime_types :: pallet_crowdloan :: pallet :: Call ,) , # [codec (index = 28)] Swap (runtime_types :: pallet_subtensor_swap :: pallet :: pallet :: Call ,) , # [codec (index = 29)] Contracts (runtime_types :: pallet_contracts :: pallet :: Call ,) , # [codec (index = 30)] MevShield (runtime_types :: pallet_shield :: pallet :: Call ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeError { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Error ,) , # [codec (index = 4)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Error ,) , # [codec (index = 5)] Balances (runtime_types :: pallet_balances :: pallet :: Error ,) , # [codec (index = 7)] SubtensorModule (runtime_types :: pallet_subtensor :: pallet :: Error ,) , # [codec (index = 11)] Utility (runtime_types :: pallet_subtensor_utility :: pallet :: Error ,) , # [codec (index = 12)] Sudo (runtime_types :: pallet_sudo :: pallet :: Error ,) , # [codec (index = 13)] Multisig (runtime_types :: pallet_multisig :: pallet :: Error ,) , # [codec (index = 14)] Preimage (runtime_types :: pallet_preimage :: pallet :: Error ,) , # [codec (index = 15)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Error ,) , # [codec (index = 16)] Proxy (runtime_types :: pallet_subtensor_proxy :: pallet :: Error ,) , # [codec (index = 17)] Registry (runtime_types :: pallet_registry :: pallet :: Error ,) , # [codec (index = 18)] Commitments (runtime_types :: pallet_commitments :: pallet :: Error ,) , # [codec (index = 19)] AdminUtils (runtime_types :: pallet_admin_utils :: pallet :: Error ,) , # [codec (index = 20)] SafeMode (runtime_types :: pallet_safe_mode :: pallet :: Error ,) , # [codec (index = 21)] Ethereum (runtime_types :: pallet_ethereum :: pallet :: Error ,) , # [codec (index = 22)] EVM (runtime_types :: pallet_evm :: pallet :: Error ,) , # [codec (index = 26)] Drand (runtime_types :: pallet_drand :: pallet :: Error ,) , # [codec (index = 27)] Crowdloan (runtime_types :: pallet_crowdloan :: pallet :: Error ,) , # [codec (index = 28)] Swap (runtime_types :: pallet_subtensor_swap :: pallet :: pallet :: Error ,) , # [codec (index = 29)] Contracts (runtime_types :: pallet_contracts :: pallet :: Error ,) , # [codec (index = 30)] MevShield (runtime_types :: pallet_shield :: pallet :: Error ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeEvent { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Event ,) , # [codec (index = 4)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , # [codec (index = 5)] Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , # [codec (index = 6)] TransactionPayment (runtime_types :: pallet_transaction_payment :: pallet :: Event ,) , # [codec (index = 7)] SubtensorModule (runtime_types :: pallet_subtensor :: pallet :: Event ,) , # [codec (index = 11)] Utility (runtime_types :: pallet_subtensor_utility :: pallet :: Event ,) , # [codec (index = 12)] Sudo (runtime_types :: pallet_sudo :: pallet :: Event ,) , # [codec (index = 13)] Multisig (runtime_types :: pallet_multisig :: pallet :: Event ,) , # [codec (index = 14)] Preimage (runtime_types :: pallet_preimage :: pallet :: Event ,) , # [codec (index = 15)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Event ,) , # [codec (index = 16)] Proxy (runtime_types :: pallet_subtensor_proxy :: pallet :: Event ,) , # [codec (index = 17)] Registry (runtime_types :: pallet_registry :: pallet :: Event ,) , # [codec (index = 18)] Commitments (runtime_types :: pallet_commitments :: pallet :: Event ,) , # [codec (index = 19)] AdminUtils (runtime_types :: pallet_admin_utils :: pallet :: Event ,) , # [codec (index = 20)] SafeMode (runtime_types :: pallet_safe_mode :: pallet :: Event ,) , # [codec (index = 21)] Ethereum (runtime_types :: pallet_ethereum :: pallet :: Event ,) , # [codec (index = 22)] EVM (runtime_types :: pallet_evm :: pallet :: Event ,) , # [codec (index = 25)] BaseFee (runtime_types :: pallet_base_fee :: pallet :: Event ,) , # [codec (index = 26)] Drand (runtime_types :: pallet_drand :: pallet :: Event ,) , # [codec (index = 27)] Crowdloan (runtime_types :: pallet_crowdloan :: pallet :: Event ,) , # [codec (index = 28)] Swap (runtime_types :: pallet_subtensor_swap :: pallet :: pallet :: Event ,) , # [codec (index = 29)] Contracts (runtime_types :: pallet_contracts :: pallet :: Event ,) , # [codec (index = 30)] MevShield (runtime_types :: pallet_shield :: pallet :: Event ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeFreezeReason { } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeHoldReason { # [codec (index = 14)] Preimage (runtime_types :: pallet_preimage :: pallet :: HoldReason ,) , # [codec (index = 17)] Registry (runtime_types :: pallet_registry :: pallet :: HoldReason ,) , # [codec (index = 20)] SafeMode (runtime_types :: pallet_safe_mode :: pallet :: HoldReason ,) , # [codec (index = 29)] Contracts (runtime_types :: pallet_contracts :: pallet :: HoldReason ,) , } } pub mod pallet_admin_utils { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatchable functions allows users to interact with the pallet and invoke state changes."] pub enum Call { # [codec (index = 0)] # [doc = "The extrinsic sets the new authorities for Aura consensus."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Aura pallet to change the authorities."] swap_authorities { new_authorities : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > , } , # [codec (index = 1)] # [doc = "The extrinsic sets the default take for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the default take."] sudo_set_default_take { default_take : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "The extrinsic sets the transaction rate limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the transaction rate limit."] sudo_set_tx_rate_limit { tx_rate_limit : :: core :: primitive :: u64 , } , # [codec (index = 3)] # [doc = "The extrinsic sets the serving rate limit for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the serving rate limit."] sudo_set_serving_rate_limit { netuid : :: core :: primitive :: u16 , serving_rate_limit : :: core :: primitive :: u64 , } , # [codec (index = 4)] # [doc = "The extrinsic sets the minimum difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum difficulty."] sudo_set_min_difficulty { netuid : :: core :: primitive :: u16 , min_difficulty : :: core :: primitive :: u64 , } , # [codec (index = 5)] # [doc = "The extrinsic sets the maximum difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum difficulty."] sudo_set_max_difficulty { netuid : :: core :: primitive :: u16 , max_difficulty : :: core :: primitive :: u64 , } , # [codec (index = 6)] # [doc = "The extrinsic sets the weights version key for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights version key."] sudo_set_weights_version_key { netuid : :: core :: primitive :: u16 , weights_version_key : :: core :: primitive :: u64 , } , # [codec (index = 7)] # [doc = "The extrinsic sets the weights set rate limit for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights set rate limit."] sudo_set_weights_set_rate_limit { netuid : :: core :: primitive :: u16 , weights_set_rate_limit : :: core :: primitive :: u64 , } , # [codec (index = 8)] # [doc = "The extrinsic sets the adjustment interval for a subnet."] # [doc = "It is only callable by the root account, not changeable by the subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the adjustment interval."] sudo_set_adjustment_interval { netuid : :: core :: primitive :: u16 , adjustment_interval : :: core :: primitive :: u16 , } , # [codec (index = 9)] # [doc = "The extrinsic sets the adjustment alpha for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the adjustment alpha."] sudo_set_adjustment_alpha { netuid : :: core :: primitive :: u16 , adjustment_alpha : :: core :: primitive :: u64 , } , # [codec (index = 13)] # [doc = "The extrinsic sets the immunity period for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the immunity period."] sudo_set_immunity_period { netuid : :: core :: primitive :: u16 , immunity_period : :: core :: primitive :: u16 , } , # [codec (index = 14)] # [doc = "The extrinsic sets the minimum allowed weights for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum allowed weights."] sudo_set_min_allowed_weights { netuid : :: core :: primitive :: u16 , min_allowed_weights : :: core :: primitive :: u16 , } , # [codec (index = 15)] # [doc = "The extrinsic sets the maximum allowed UIDs for a subnet."] # [doc = "It is only callable by the root account and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum allowed UIDs for a subnet."] sudo_set_max_allowed_uids { netuid : :: core :: primitive :: u16 , max_allowed_uids : :: core :: primitive :: u16 , } , # [codec (index = 16)] # [doc = "The extrinsic sets the kappa for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the kappa."] sudo_set_kappa { netuid : :: core :: primitive :: u16 , kappa : :: core :: primitive :: u16 , } , # [codec (index = 17)] # [doc = "The extrinsic sets the rho for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the rho."] sudo_set_rho { netuid : :: core :: primitive :: u16 , rho : :: core :: primitive :: u16 , } , # [codec (index = 18)] # [doc = "The extrinsic sets the activity cutoff for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the activity cutoff."] sudo_set_activity_cutoff { netuid : :: core :: primitive :: u16 , activity_cutoff : :: core :: primitive :: u16 , } , # [codec (index = 19)] # [doc = "The extrinsic sets the network registration allowed for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the network registration allowed."] sudo_set_network_registration_allowed { netuid : :: core :: primitive :: u16 , registration_allowed : :: core :: primitive :: bool , } , # [codec (index = 20)] # [doc = "The extrinsic sets the network PoW registration allowed for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the network PoW registration allowed."] sudo_set_network_pow_registration_allowed { netuid : :: core :: primitive :: u16 , registration_allowed : :: core :: primitive :: bool , } , # [codec (index = 21)] # [doc = "The extrinsic sets the target registrations per interval for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the target registrations per interval."] sudo_set_target_registrations_per_interval { netuid : :: core :: primitive :: u16 , target_registrations_per_interval : :: core :: primitive :: u16 , } , # [codec (index = 22)] # [doc = "The extrinsic sets the minimum burn for a subnet."] # [doc = "It is only callable by root and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum burn."] sudo_set_min_burn { netuid : :: core :: primitive :: u16 , min_burn : :: core :: primitive :: u64 , } , # [codec (index = 23)] # [doc = "The extrinsic sets the maximum burn for a subnet."] # [doc = "It is only callable by root and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum burn."] sudo_set_max_burn { netuid : :: core :: primitive :: u16 , max_burn : :: core :: primitive :: u64 , } , # [codec (index = 24)] # [doc = "The extrinsic sets the difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the difficulty."] sudo_set_difficulty { netuid : :: core :: primitive :: u16 , difficulty : :: core :: primitive :: u64 , } , # [codec (index = 25)] # [doc = "The extrinsic sets the maximum allowed validators for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum allowed validators."] sudo_set_max_allowed_validators { netuid : :: core :: primitive :: u16 , max_allowed_validators : :: core :: primitive :: u16 , } , # [codec (index = 26)] # [doc = "The extrinsic sets the bonds moving average for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the bonds moving average."] sudo_set_bonds_moving_average { netuid : :: core :: primitive :: u16 , bonds_moving_average : :: core :: primitive :: u64 , } , # [codec (index = 60)] # [doc = "The extrinsic sets the bonds penalty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the bonds penalty."] sudo_set_bonds_penalty { netuid : :: core :: primitive :: u16 , bonds_penalty : :: core :: primitive :: u16 , } , # [codec (index = 27)] # [doc = "The extrinsic sets the maximum registrations per block for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum registrations per block."] sudo_set_max_registrations_per_block { netuid : :: core :: primitive :: u16 , max_registrations_per_block : :: core :: primitive :: u16 , } , # [codec (index = 28)] # [doc = "The extrinsic sets the subnet owner cut for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the subnet owner cut."] sudo_set_subnet_owner_cut { subnet_owner_cut : :: core :: primitive :: u16 , } , # [codec (index = 29)] # [doc = "The extrinsic sets the network rate limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the network rate limit."] sudo_set_network_rate_limit { rate_limit : :: core :: primitive :: u64 , } , # [codec (index = 30)] # [doc = "The extrinsic sets the tempo for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the tempo."] sudo_set_tempo { netuid : :: core :: primitive :: u16 , tempo : :: core :: primitive :: u16 , } , # [codec (index = 33)] # [doc = "The extrinsic sets the total issuance for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the issuance for the network."] sudo_set_total_issuance { total_issuance : :: core :: primitive :: u64 , } , # [codec (index = 35)] # [doc = "The extrinsic sets the immunity period for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the immunity period for the network."] sudo_set_network_immunity_period { immunity_period : :: core :: primitive :: u64 , } , # [codec (index = 36)] # [doc = "The extrinsic sets the min lock cost for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the min lock cost for the network."] sudo_set_network_min_lock_cost { lock_cost : :: core :: primitive :: u64 , } , # [codec (index = 37)] # [doc = "The extrinsic sets the subnet limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the subnet limit."] sudo_set_subnet_limit { max_subnets : :: core :: primitive :: u16 , } , # [codec (index = 38)] # [doc = "The extrinsic sets the lock reduction interval for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the lock reduction interval."] sudo_set_lock_reduction_interval { interval : :: core :: primitive :: u64 , } , # [codec (index = 39)] # [doc = "The extrinsic sets the recycled RAO for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the recycled RAO."] sudo_set_rao_recycled { netuid : :: core :: primitive :: u16 , rao_recycled : :: core :: primitive :: u64 , } , # [codec (index = 42)] # [doc = "The extrinsic sets the weights min stake."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights min stake."] sudo_set_stake_threshold { min_stake : :: core :: primitive :: u64 , } , # [codec (index = 43)] # [doc = "The extrinsic sets the minimum stake required for nominators."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum stake required for nominators."] sudo_set_nominator_min_required_stake { min_stake : :: core :: primitive :: u64 , } , # [codec (index = 45)] # [doc = "The extrinsic sets the rate limit for delegate take transactions."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the rate limit for delegate take transactions."] sudo_set_tx_delegate_take_rate_limit { tx_rate_limit : :: core :: primitive :: u64 , } , # [codec (index = 46)] # [doc = "The extrinsic sets the minimum delegate take."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum delegate take."] sudo_set_min_delegate_take { take : :: core :: primitive :: u16 , } , # [codec (index = 49)] # [doc = "The extrinsic enabled/disables commit/reaveal for a given subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the value."] sudo_set_commit_reveal_weights_enabled { netuid : :: core :: primitive :: u16 , enabled : :: core :: primitive :: bool , } , # [codec (index = 50)] # [doc = "Enables or disables Liquid Alpha for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Liquid Alpha."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] sudo_set_liquid_alpha_enabled { netuid : :: core :: primitive :: u16 , enabled : :: core :: primitive :: bool , } , # [codec (index = 51)] # [doc = "Sets values for liquid alpha"] sudo_set_alpha_values { netuid : :: core :: primitive :: u16 , alpha_low : :: core :: primitive :: u16 , alpha_high : :: core :: primitive :: u16 , } , # [codec (index = 54)] # [doc = "Sets the duration of the coldkey swap schedule."] # [doc = ""] # [doc = "This extrinsic allows the root account to set the duration for the coldkey swap schedule."] # [doc = "The coldkey swap schedule determines how long it takes for a coldkey swap operation to complete."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `duration` - The new duration for the coldkey swap schedule, in number of blocks."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_coldkey_swap_schedule_duration { duration : :: core :: primitive :: u32 , } , # [codec (index = 55)] # [doc = "Sets the duration of the dissolve network schedule."] # [doc = ""] # [doc = "This extrinsic allows the root account to set the duration for the dissolve network schedule."] # [doc = "The dissolve network schedule determines how long it takes for a network dissolution operation to complete."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `duration` - The new duration for the dissolve network schedule, in number of blocks."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_dissolve_network_schedule_duration { duration : :: core :: primitive :: u32 , } , # [codec (index = 57)] # [doc = "Sets the commit-reveal weights periods for a specific subnet."] # [doc = ""] # [doc = "This extrinsic allows the subnet owner or root account to set the duration (in epochs) during which committed weights must be revealed."] # [doc = "The commit-reveal mechanism ensures that users commit weights in advance and reveal them only within a specified period."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or the root account."] # [doc = "* `netuid` - The unique identifier of the subnet for which the periods are being set."] # [doc = "* `periods` - The number of epochs that define the commit-reveal period."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is neither the subnet owner nor the root account."] # [doc = "* `SubnetDoesNotExist` - If the specified subnet does not exist."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_commit_reveal_weights_interval { netuid : :: core :: primitive :: u16 , interval : :: core :: primitive :: u64 , } , # [codec (index = 58)] # [doc = "Sets the EVM ChainID."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or the root account."] # [doc = "* `chainId` - The u64 chain ID"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is neither the subnet owner nor the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_evm_chain_id { chain_id : :: core :: primitive :: u64 , } , # [codec (index = 59)] # [doc = "A public interface for `pallet_grandpa::Pallet::schedule_grandpa_change`."] # [doc = ""] # [doc = "Schedule a change in the authorities."] # [doc = ""] # [doc = "The change will be applied at the end of execution of the block `in_blocks` after the"] # [doc = "current block. This value may be 0, in which case the change is applied at the end of"] # [doc = "the current block."] # [doc = ""] # [doc = "If the `forced` parameter is defined, this indicates that the current set has been"] # [doc = "synchronously determined to be offline and that after `in_blocks` the given change"] # [doc = "should be applied. The given block number indicates the median last finalized block"] # [doc = "number and it should be used as the canon block when starting the new grandpa voter."] # [doc = ""] # [doc = "No change should be signaled while any change is pending. Returns an error if a change"] # [doc = "is already pending."] schedule_grandpa_change { next_authorities : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , in_blocks : :: core :: primitive :: u32 , forced : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 61)] # [doc = "Enable or disable atomic alpha transfers for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Liquid Alpha."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] sudo_set_toggle_transfer { netuid : :: core :: primitive :: u16 , toggle : :: core :: primitive :: bool , } , # [codec (index = 80)] # [doc = "Set the behaviour of the \"burn\" UID(s) for a given subnet."] # [doc = "If set to `Burn`, the miner emission sent to the burn UID(s) will be burned."] # [doc = "If set to `Recycle`, the miner emission sent to the burn UID(s) will be recycled."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `recycle_or_burn`: The desired behaviour of the \"burn\" UID(s) for the subnet."] # [doc = ""] sudo_set_recycle_or_burn { netuid : :: core :: primitive :: u16 , recycle_or_burn : runtime_types :: pallet_subtensor :: pallet :: RecycleOrBurnEnum , } , # [codec (index = 62)] # [doc = "Toggles the enablement of an EVM precompile."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `precompile_id` - The identifier of the EVM precompile to toggle."] # [doc = "* `enabled` - The new enablement state of the precompile."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_toggle_evm_precompile { precompile_id : runtime_types :: pallet_admin_utils :: pallet :: PrecompileEnum , enabled : :: core :: primitive :: bool , } , # [codec (index = 63)] # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `alpha` - The new moving alpha value for the SubnetMovingAlpha."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_subnet_moving_alpha { alpha : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , } , # [codec (index = 64)] # [doc = "Change the SubnetOwnerHotkey for a given subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner."] # [doc = "* `netuid` - The unique identifier for the subnet."] # [doc = "* `hotkey` - The new hotkey for the subnet owner."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the subnet owner or root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_subnet_owner_hotkey { netuid : :: core :: primitive :: u16 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 65)] # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `ema_alpha_period` - Number of blocks for EMA price to halve"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_ema_price_halving_period { netuid : :: core :: primitive :: u16 , ema_halving : :: core :: primitive :: u64 , } , # [codec (index = 68)] # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `netuid` - The unique identifier for the subnet."] # [doc = "* `steepness` - The Steepness for the alpha sigmoid function. (range is 0-int16::MAX,"] # [doc = "negative values are reserved for future use)"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = "* `SubnetDoesNotExist` - If the specified subnet does not exist."] # [doc = "* `NegativeSigmoidSteepness` - If the steepness is negative and the caller is"] # [doc = "root."] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_alpha_sigmoid_steepness { netuid : :: core :: primitive :: u16 , steepness : :: core :: primitive :: i16 , } , # [codec (index = 69)] # [doc = "Enables or disables Yuma3 for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Yuma3."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] sudo_set_yuma3_enabled { netuid : :: core :: primitive :: u16 , enabled : :: core :: primitive :: bool , } , # [codec (index = 70)] # [doc = "Enables or disables Bonds Reset for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Bonds Reset."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] sudo_set_bonds_reset_enabled { netuid : :: core :: primitive :: u16 , enabled : :: core :: primitive :: bool , } , # [codec (index = 67)] # [doc = "Sets or updates the hotkey account associated with the owner of a specific subnet."] # [doc = ""] # [doc = "This function allows either the root origin or the current subnet owner to set or update"] # [doc = "the hotkey for a given subnet. The subnet must already exist. To prevent abuse, the call is"] # [doc = "rate-limited to once per configured interval (default: one week) per subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The dispatch origin of the call. Must be either root or the current owner of the subnet."] # [doc = "- `netuid`: The unique identifier of the subnet whose owner hotkey is being set."] # [doc = "- `hotkey`: The new hotkey account to associate with the subnet owner."] # [doc = ""] # [doc = "# Returns"] # [doc = "- `DispatchResult`: Returns `Ok(())` if the hotkey was successfully set, or an appropriate error otherwise."] # [doc = ""] # [doc = "# Errors"] # [doc = "- `Error::SubnetNotExists`: If the specified subnet does not exist."] # [doc = "- `Error::TxRateLimitExceeded`: If the function is called more frequently than the allowed rate limit."] # [doc = ""] # [doc = "# Access Control"] # [doc = "Only callable by:"] # [doc = "- Root origin, or"] # [doc = "- The coldkey account that owns the subnet."] # [doc = ""] # [doc = "# Storage"] # [doc = "- Updates [`SubnetOwnerHotkey`] for the given `netuid`."] # [doc = "- Reads and updates [`LastRateLimitedBlock`] for rate-limiting."] # [doc = "- Reads [`DefaultSetSNOwnerHotkeyRateLimit`] to determine the interval between allowed updates."] # [doc = ""] # [doc = "# Rate Limiting"] # [doc = "This function is rate-limited to one call per subnet per interval (e.g., one week)."] sudo_set_sn_owner_hotkey { netuid : :: core :: primitive :: u16 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 66)] # [doc = "Enables or disables subtoken trading for a given subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `netuid` - The unique identifier of the subnet."] # [doc = "* `subtoken_enabled` - A boolean indicating whether subtoken trading should be enabled or disabled."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_subtoken_enabled { netuid : :: core :: primitive :: u16 , subtoken_enabled : :: core :: primitive :: bool , } , # [codec (index = 71)] # [doc = "Sets the commit-reveal weights version for all subnets"] sudo_set_commit_reveal_version { version : :: core :: primitive :: u16 , } , # [codec (index = 72)] # [doc = "Sets the number of immune owner neurons"] sudo_set_owner_immune_neuron_limit { netuid : :: core :: primitive :: u16 , immune_neurons : :: core :: primitive :: u16 , } , # [codec (index = 73)] # [doc = "Sets the childkey burn for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the childkey burn."] sudo_set_ck_burn { burn : :: core :: primitive :: u64 , } , # [codec (index = 74)] # [doc = "Sets the admin freeze window length (in blocks) at the end of a tempo."] # [doc = "Only callable by root."] sudo_set_admin_freeze_window { window : :: core :: primitive :: u16 , } , # [codec (index = 75)] # [doc = "Sets the owner hyperparameter rate limit in epochs (global multiplier)."] # [doc = "Only callable by root."] sudo_set_owner_hparam_rate_limit { epochs : :: core :: primitive :: u16 , } , # [codec (index = 76)] # [doc = "Sets the desired number of mechanisms in a subnet"] sudo_set_mechanism_count { netuid : :: core :: primitive :: u16 , mechanism_count : :: core :: primitive :: u8 , } , # [codec (index = 77)] # [doc = "Sets the emission split between mechanisms in a subnet"] sudo_set_mechanism_emission_split { netuid : :: core :: primitive :: u16 , maybe_split : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > , } , # [codec (index = 78)] # [doc = "Trims the maximum number of UIDs for a subnet."] # [doc = ""] # [doc = "The trimming is done by sorting the UIDs by emission descending and then trimming"] # [doc = "the lowest emitters while preserving temporally and owner immune UIDs. The UIDs are"] # [doc = "then compressed to the left and storage is migrated to the new compressed UIDs."] sudo_trim_to_max_allowed_uids { netuid : :: core :: primitive :: u16 , max_n : :: core :: primitive :: u16 , } , # [codec (index = 79)] # [doc = "The extrinsic sets the minimum allowed UIDs for a subnet."] # [doc = "It is only callable by the root account."] sudo_set_min_allowed_uids { netuid : :: core :: primitive :: u16 , min_allowed_uids : :: core :: primitive :: u16 , } , # [codec (index = 81)] # [doc = "Sets TAO flow cutoff value (A)"] sudo_set_tao_flow_cutoff { flow_cutoff : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , } , # [codec (index = 82)] # [doc = "Sets TAO flow normalization exponent (p)"] sudo_set_tao_flow_normalization_exponent { exponent : runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , } , # [codec (index = 83)] # [doc = "Sets TAO flow smoothing factor (alpha)"] sudo_set_tao_flow_smoothing_factor { smoothing_factor : :: core :: primitive :: u64 , } , # [codec (index = 84)] # [doc = "Sets the minimum number of non-immortal & non-immune UIDs that must remain in a subnet"] sudo_set_min_non_immune_uids { netuid : :: core :: primitive :: u16 , min : :: core :: primitive :: u16 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The subnet does not exist, check the netuid parameter"] SubnetDoesNotExist , # [codec (index = 1)] # [doc = "The maximum number of subnet validators must be less than the maximum number of allowed UIDs in the subnet."] MaxValidatorsLargerThanMaxUIds , # [codec (index = 2)] # [doc = "The maximum number of subnet validators must be more than the current number of UIDs already in the subnet."] MaxAllowedUIdsLessThanCurrentUIds , # [codec (index = 3)] # [doc = "The maximum value for bonds moving average is reached"] BondsMovingAverageMaxReached , # [codec (index = 4)] # [doc = "Only root can set negative sigmoid steepness values"] NegativeSigmoidSteepness , # [codec (index = 5)] # [doc = "Value not in allowed bounds."] ValueNotInBounds , # [codec (index = 6)] # [doc = "The minimum allowed UIDs must be less than the current number of UIDs in the subnet."] MinAllowedUidsGreaterThanCurrentUids , # [codec (index = 7)] # [doc = "The minimum allowed UIDs must be less than the maximum allowed UIDs."] MinAllowedUidsGreaterThanMaxAllowedUids , # [codec (index = 8)] # [doc = "The maximum allowed UIDs must be greater than the minimum allowed UIDs."] MaxAllowedUidsLessThanMinAllowedUids , # [codec (index = 9)] # [doc = "The maximum allowed UIDs must be less than the default maximum allowed UIDs."] MaxAllowedUidsGreaterThanDefaultMaxAllowedUids , # [codec (index = 10)] # [doc = "Bad parameter value"] InvalidValue , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Event emitted when a precompile operation is updated."] PrecompileUpdated { precompile_id : runtime_types :: pallet_admin_utils :: pallet :: PrecompileEnum , enabled : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "Event emitted when the Yuma3 enable is toggled."] Yuma3EnableToggled { netuid : :: core :: primitive :: u16 , enabled : :: core :: primitive :: bool , } , # [codec (index = 2)] # [doc = "Event emitted when Bonds Reset is toggled."] BondsResetToggled { netuid : :: core :: primitive :: u16 , enabled : :: core :: primitive :: bool , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum PrecompileEnum { # [codec (index = 0)] BalanceTransfer , # [codec (index = 1)] Staking , # [codec (index = 2)] Subnet , # [codec (index = 3)] Metagraph , # [codec (index = 4)] Neuron , # [codec (index = 5)] UidLookup , # [codec (index = 6)] Alpha , # [codec (index = 7)] Crowdloan , # [codec (index = 8)] Proxy , # [codec (index = 9)] Leasing , } } } pub mod pallet_balances { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Transfer some liquid free balance to another account."] # [doc = ""] # [doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] # [doc = "If the sender's account is below the existential deposit as a result"] # [doc = "of the transfer, the account will be reaped."] # [doc = ""] # [doc = "The dispatch origin for this call must be `Signed` by the transactor."] transfer_allow_death { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] # [doc = "may be specified."] force_transfer { source : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u64 , } , # [codec (index = 3)] # [doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] # [doc = "kill the origin account."] # [doc = ""] # [doc = "99% of the time you want [`transfer_allow_death`] instead."] # [doc = ""] # [doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] transfer_keep_alive { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u64 , } , # [codec (index = 4)] # [doc = "Transfer the entire transferable balance from the caller account."] # [doc = ""] # [doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] # [doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] # [doc = "transferred by this function. To ensure that this function results in a killed account,"] # [doc = "you might need to prepare the account by removing any reference counters, storage"] # [doc = "deposits, etc..."] # [doc = ""] # [doc = "The dispatch origin of this call must be Signed."] # [doc = ""] # [doc = "- `dest`: The recipient of the transfer."] # [doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] # [doc = "  of the funds the account has, causing the sender account to be killed (false), or"] # [doc = "  transfer everything except at least the existential deposit, which will guarantee to"] # [doc = "  keep the sender account alive (true)."] transfer_all { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , keep_alive : :: core :: primitive :: bool , } , # [codec (index = 5)] # [doc = "Unreserve some balance from a user by force."] # [doc = ""] # [doc = "Can only be called by ROOT."] force_unreserve { who : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , amount : :: core :: primitive :: u64 , } , # [codec (index = 6)] # [doc = "Upgrade a specified account."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `who`: The account to be upgraded."] # [doc = ""] # [doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] # [doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] # [doc = "possibility of churn)."] upgrade_accounts { who : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "Set the regular balance of a given account."] # [doc = ""] # [doc = "The dispatch origin for this call is `root`."] force_set_balance { who : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] new_free : :: core :: primitive :: u64 , } , # [codec (index = 9)] # [doc = "Adjust the total issuance in a saturating way."] # [doc = ""] # [doc = "Can only be called by root and always needs a positive `delta`."] # [doc = ""] # [doc = "# Example"] force_adjust_total_issuance { direction : runtime_types :: pallet_balances :: types :: AdjustmentDirection , # [codec (compact)] delta : :: core :: primitive :: u64 , } , # [codec (index = 10)] # [doc = "Burn the specified liquid free balance from the origin account."] # [doc = ""] # [doc = "If the origin's account ends up below the existential deposit as a result"] # [doc = "of the burn and `keep_alive` is false, the account will be reaped."] # [doc = ""] # [doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"] # [doc = "this `burn` operation will reduce total issuance by the amount _burned_."] burn { # [codec (compact)] value : :: core :: primitive :: u64 , keep_alive : :: core :: primitive :: bool , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Vesting balance too high to send value."] VestingBalance , # [codec (index = 1)] # [doc = "Account liquidity restrictions prevent withdrawal."] LiquidityRestrictions , # [codec (index = 2)] # [doc = "Balance too low to send value."] InsufficientBalance , # [codec (index = 3)] # [doc = "Value too low to create account due to existential deposit."] ExistentialDeposit , # [codec (index = 4)] # [doc = "Transfer/payment would kill account."] Expendability , # [codec (index = 5)] # [doc = "A vesting schedule already exists for this account."] ExistingVestingSchedule , # [codec (index = 6)] # [doc = "Beneficiary account must pre-exist."] DeadAccount , # [codec (index = 7)] # [doc = "Number of named reserves exceed `MaxReserves`."] TooManyReserves , # [codec (index = 8)] # [doc = "Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`."] TooManyHolds , # [codec (index = 9)] # [doc = "Number of freezes exceed `MaxFreezes`."] TooManyFreezes , # [codec (index = 10)] # [doc = "The issuance cannot be modified since it is already deactivated."] IssuanceDeactivated , # [codec (index = 11)] # [doc = "The delta cannot be zero."] DeltaZero , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , free_balance : :: core :: primitive :: u64 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] # [doc = "resulting in an outright loss."] DustLost { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { from : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , to : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 3)] # [doc = "A balance was set by root."] BalanceSet { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , free : :: core :: primitive :: u64 , } , # [codec (index = 4)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 5)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 6)] # [doc = "Some balance was moved from the reserve of the first account to the second account."] # [doc = "Final argument indicates the destination balance type."] ReserveRepatriated { from : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , to : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 7)] # [doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 8)] # [doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 9)] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 10)] # [doc = "Some amount was minted into an account."] Minted { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 11)] # [doc = "Some amount was burned from an account."] Burned { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 12)] # [doc = "Some amount was suspended from an account (it can be restored later)."] Suspended { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 13)] # [doc = "Some amount was restored into an account."] Restored { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 14)] # [doc = "An account was upgraded."] Upgraded { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 15)] # [doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] Issued { amount : :: core :: primitive :: u64 , } , # [codec (index = 16)] # [doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] Rescinded { amount : :: core :: primitive :: u64 , } , # [codec (index = 17)] # [doc = "Some balance was locked."] Locked { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 18)] # [doc = "Some balance was unlocked."] Unlocked { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 19)] # [doc = "Some balance was frozen."] Frozen { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 20)] # [doc = "Some balance was thawed."] Thawed { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 21)] # [doc = "The `TotalIssuance` was forcefully changed."] TotalIssuanceForced { old : :: core :: primitive :: u64 , new : :: core :: primitive :: u64 , } , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum AdjustmentDirection { # [codec (index = 0)] Increase , # [codec (index = 1)] Decrease , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ExtraFlags (pub :: core :: primitive :: u128 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Reasons { # [codec (index = 0)] Fee , # [codec (index = 1)] Misc , # [codec (index = 2)] All , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] set_base_fee_per_gas { fee : runtime_types :: primitive_types :: U256 , } , # [codec (index = 1)] set_elasticity { elasticity : runtime_types :: sp_arithmetic :: per_things :: Permill , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "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_commitments { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Set the commitment for a given netuid"] set_commitment { netuid : :: core :: primitive :: u16 , info : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: pallet_commitments :: types :: CommitmentInfo > , } , # [codec (index = 2)] # [doc = "Sudo-set MaxSpace"] set_max_space { new_limit : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Account passed too many additional fields to their commitment"] TooManyFieldsInCommitmentInfo , # [codec (index = 1)] # [doc = "Account is not allowed to make commitments to the chain"] AccountNotAllowedCommit , # [codec (index = 2)] # [doc = "Space Limit Exceeded for the current interval"] SpaceLimitExceeded , # [codec (index = 3)] # [doc = "Indicates that unreserve returned a leftover, which is unexpected."] UnexpectedUnreserveLeftover , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A commitment was set"] Commitment { netuid : :: core :: primitive :: u16 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "A timelock-encrypted commitment was set"] TimelockCommitment { netuid : :: core :: primitive :: u16 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , reveal_round : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "A timelock-encrypted commitment was auto-revealed"] CommitmentRevealed { netuid : :: core :: primitive :: u16 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CommitmentInfo { pub fields : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_commitments :: types :: Data > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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)] Raw33 ([:: core :: primitive :: u8 ; 33usize] ,) , # [codec (index = 35)] Raw34 ([:: core :: primitive :: u8 ; 34usize] ,) , # [codec (index = 36)] Raw35 ([:: core :: primitive :: u8 ; 35usize] ,) , # [codec (index = 37)] Raw36 ([:: core :: primitive :: u8 ; 36usize] ,) , # [codec (index = 38)] Raw37 ([:: core :: primitive :: u8 ; 37usize] ,) , # [codec (index = 39)] Raw38 ([:: core :: primitive :: u8 ; 38usize] ,) , # [codec (index = 40)] Raw39 ([:: core :: primitive :: u8 ; 39usize] ,) , # [codec (index = 41)] Raw40 ([:: core :: primitive :: u8 ; 40usize] ,) , # [codec (index = 42)] Raw41 ([:: core :: primitive :: u8 ; 41usize] ,) , # [codec (index = 43)] Raw42 ([:: core :: primitive :: u8 ; 42usize] ,) , # [codec (index = 44)] Raw43 ([:: core :: primitive :: u8 ; 43usize] ,) , # [codec (index = 45)] Raw44 ([:: core :: primitive :: u8 ; 44usize] ,) , # [codec (index = 46)] Raw45 ([:: core :: primitive :: u8 ; 45usize] ,) , # [codec (index = 47)] Raw46 ([:: core :: primitive :: u8 ; 46usize] ,) , # [codec (index = 48)] Raw47 ([:: core :: primitive :: u8 ; 47usize] ,) , # [codec (index = 49)] Raw48 ([:: core :: primitive :: u8 ; 48usize] ,) , # [codec (index = 50)] Raw49 ([:: core :: primitive :: u8 ; 49usize] ,) , # [codec (index = 51)] Raw50 ([:: core :: primitive :: u8 ; 50usize] ,) , # [codec (index = 52)] Raw51 ([:: core :: primitive :: u8 ; 51usize] ,) , # [codec (index = 53)] Raw52 ([:: core :: primitive :: u8 ; 52usize] ,) , # [codec (index = 54)] Raw53 ([:: core :: primitive :: u8 ; 53usize] ,) , # [codec (index = 55)] Raw54 ([:: core :: primitive :: u8 ; 54usize] ,) , # [codec (index = 56)] Raw55 ([:: core :: primitive :: u8 ; 55usize] ,) , # [codec (index = 57)] Raw56 ([:: core :: primitive :: u8 ; 56usize] ,) , # [codec (index = 58)] Raw57 ([:: core :: primitive :: u8 ; 57usize] ,) , # [codec (index = 59)] Raw58 ([:: core :: primitive :: u8 ; 58usize] ,) , # [codec (index = 60)] Raw59 ([:: core :: primitive :: u8 ; 59usize] ,) , # [codec (index = 61)] Raw60 ([:: core :: primitive :: u8 ; 60usize] ,) , # [codec (index = 62)] Raw61 ([:: core :: primitive :: u8 ; 61usize] ,) , # [codec (index = 63)] Raw62 ([:: core :: primitive :: u8 ; 62usize] ,) , # [codec (index = 64)] Raw63 ([:: core :: primitive :: u8 ; 63usize] ,) , # [codec (index = 65)] Raw64 ([:: core :: primitive :: u8 ; 64usize] ,) , # [codec (index = 66)] Raw65 ([:: core :: primitive :: u8 ; 65usize] ,) , # [codec (index = 67)] Raw66 ([:: core :: primitive :: u8 ; 66usize] ,) , # [codec (index = 68)] Raw67 ([:: core :: primitive :: u8 ; 67usize] ,) , # [codec (index = 69)] Raw68 ([:: core :: primitive :: u8 ; 68usize] ,) , # [codec (index = 70)] Raw69 ([:: core :: primitive :: u8 ; 69usize] ,) , # [codec (index = 71)] Raw70 ([:: core :: primitive :: u8 ; 70usize] ,) , # [codec (index = 72)] Raw71 ([:: core :: primitive :: u8 ; 71usize] ,) , # [codec (index = 73)] Raw72 ([:: core :: primitive :: u8 ; 72usize] ,) , # [codec (index = 74)] Raw73 ([:: core :: primitive :: u8 ; 73usize] ,) , # [codec (index = 75)] Raw74 ([:: core :: primitive :: u8 ; 74usize] ,) , # [codec (index = 76)] Raw75 ([:: core :: primitive :: u8 ; 75usize] ,) , # [codec (index = 77)] Raw76 ([:: core :: primitive :: u8 ; 76usize] ,) , # [codec (index = 78)] Raw77 ([:: core :: primitive :: u8 ; 77usize] ,) , # [codec (index = 79)] Raw78 ([:: core :: primitive :: u8 ; 78usize] ,) , # [codec (index = 80)] Raw79 ([:: core :: primitive :: u8 ; 79usize] ,) , # [codec (index = 81)] Raw80 ([:: core :: primitive :: u8 ; 80usize] ,) , # [codec (index = 82)] Raw81 ([:: core :: primitive :: u8 ; 81usize] ,) , # [codec (index = 83)] Raw82 ([:: core :: primitive :: u8 ; 82usize] ,) , # [codec (index = 84)] Raw83 ([:: core :: primitive :: u8 ; 83usize] ,) , # [codec (index = 85)] Raw84 ([:: core :: primitive :: u8 ; 84usize] ,) , # [codec (index = 86)] Raw85 ([:: core :: primitive :: u8 ; 85usize] ,) , # [codec (index = 87)] Raw86 ([:: core :: primitive :: u8 ; 86usize] ,) , # [codec (index = 88)] Raw87 ([:: core :: primitive :: u8 ; 87usize] ,) , # [codec (index = 89)] Raw88 ([:: core :: primitive :: u8 ; 88usize] ,) , # [codec (index = 90)] Raw89 ([:: core :: primitive :: u8 ; 89usize] ,) , # [codec (index = 91)] Raw90 ([:: core :: primitive :: u8 ; 90usize] ,) , # [codec (index = 92)] Raw91 ([:: core :: primitive :: u8 ; 91usize] ,) , # [codec (index = 93)] Raw92 ([:: core :: primitive :: u8 ; 92usize] ,) , # [codec (index = 94)] Raw93 ([:: core :: primitive :: u8 ; 93usize] ,) , # [codec (index = 95)] Raw94 ([:: core :: primitive :: u8 ; 94usize] ,) , # [codec (index = 96)] Raw95 ([:: core :: primitive :: u8 ; 95usize] ,) , # [codec (index = 97)] Raw96 ([:: core :: primitive :: u8 ; 96usize] ,) , # [codec (index = 98)] Raw97 ([:: core :: primitive :: u8 ; 97usize] ,) , # [codec (index = 99)] Raw98 ([:: core :: primitive :: u8 ; 98usize] ,) , # [codec (index = 100)] Raw99 ([:: core :: primitive :: u8 ; 99usize] ,) , # [codec (index = 101)] Raw100 ([:: core :: primitive :: u8 ; 100usize] ,) , # [codec (index = 102)] Raw101 ([:: core :: primitive :: u8 ; 101usize] ,) , # [codec (index = 103)] Raw102 ([:: core :: primitive :: u8 ; 102usize] ,) , # [codec (index = 104)] Raw103 ([:: core :: primitive :: u8 ; 103usize] ,) , # [codec (index = 105)] Raw104 ([:: core :: primitive :: u8 ; 104usize] ,) , # [codec (index = 106)] Raw105 ([:: core :: primitive :: u8 ; 105usize] ,) , # [codec (index = 107)] Raw106 ([:: core :: primitive :: u8 ; 106usize] ,) , # [codec (index = 108)] Raw107 ([:: core :: primitive :: u8 ; 107usize] ,) , # [codec (index = 109)] Raw108 ([:: core :: primitive :: u8 ; 108usize] ,) , # [codec (index = 110)] Raw109 ([:: core :: primitive :: u8 ; 109usize] ,) , # [codec (index = 111)] Raw110 ([:: core :: primitive :: u8 ; 110usize] ,) , # [codec (index = 112)] Raw111 ([:: core :: primitive :: u8 ; 111usize] ,) , # [codec (index = 113)] Raw112 ([:: core :: primitive :: u8 ; 112usize] ,) , # [codec (index = 114)] Raw113 ([:: core :: primitive :: u8 ; 113usize] ,) , # [codec (index = 115)] Raw114 ([:: core :: primitive :: u8 ; 114usize] ,) , # [codec (index = 116)] Raw115 ([:: core :: primitive :: u8 ; 115usize] ,) , # [codec (index = 117)] Raw116 ([:: core :: primitive :: u8 ; 116usize] ,) , # [codec (index = 118)] Raw117 ([:: core :: primitive :: u8 ; 117usize] ,) , # [codec (index = 119)] Raw118 ([:: core :: primitive :: u8 ; 118usize] ,) , # [codec (index = 120)] Raw119 ([:: core :: primitive :: u8 ; 119usize] ,) , # [codec (index = 121)] Raw120 ([:: core :: primitive :: u8 ; 120usize] ,) , # [codec (index = 122)] Raw121 ([:: core :: primitive :: u8 ; 121usize] ,) , # [codec (index = 123)] Raw122 ([:: core :: primitive :: u8 ; 122usize] ,) , # [codec (index = 124)] Raw123 ([:: core :: primitive :: u8 ; 123usize] ,) , # [codec (index = 125)] Raw124 ([:: core :: primitive :: u8 ; 124usize] ,) , # [codec (index = 126)] Raw125 ([:: core :: primitive :: u8 ; 125usize] ,) , # [codec (index = 127)] Raw126 ([:: core :: primitive :: u8 ; 126usize] ,) , # [codec (index = 128)] Raw127 ([:: core :: primitive :: u8 ; 127usize] ,) , # [codec (index = 129)] Raw128 ([:: core :: primitive :: u8 ; 128usize] ,) , # [codec (index = 130)] BlakeTwo256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 131)] Sha256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 132)] Keccak256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 133)] ShaThree256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 134)] TimelockEncrypted { encrypted : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , reveal_round : :: core :: primitive :: u64 , } , # [codec (index = 135)] ResetBondsFlag , # [codec (index = 136)] BigRaw (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Registration < _0 , _2 > { pub deposit : _0 , pub block : _2 , pub info : runtime_types :: pallet_commitments :: types :: CommitmentInfo , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UsageTracker { pub last_epoch : :: core :: primitive :: u64 , pub used_space : :: core :: primitive :: u64 , } } } pub mod pallet_contracts { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Deprecated version if [`Self::call`] for use in an in-storage `Call`."] call_old_weight { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u64 , # [codec (compact)] gas_limit : :: core :: primitive :: u64 , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`."] instantiate_with_code_old_weight { # [codec (compact)] value : :: core :: primitive :: u64 , # [codec (compact)] gas_limit : :: core :: primitive :: u64 , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , salt : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`."] instantiate_old_weight { # [codec (compact)] value : :: core :: primitive :: u64 , # [codec (compact)] gas_limit : :: core :: primitive :: u64 , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , salt : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 3)] # [doc = "Upload new `code` without instantiating a contract from it."] # [doc = ""] # [doc = "If the code does not already exist a deposit is reserved from the caller"] # [doc = "and unreserved only when [`Self::remove_code`] is called. The size of the reserve"] # [doc = "depends on the size of the supplied `code`."] # [doc = ""] # [doc = "If the code already exists in storage it will still return `Ok` and upgrades"] # [doc = "the in storage version to the current"] # [doc = "[`InstructionWeights::version`](InstructionWeights)."] # [doc = ""] # [doc = "- `determinism`: If this is set to any other value but [`Determinism::Enforced`] then"] # [doc = "  the only way to use this code is to delegate call into it from an offchain execution."] # [doc = "  Set to [`Determinism::Enforced`] if in doubt."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Anyone can instantiate a contract from any uploaded code and thus prevent its removal."] # [doc = "To avoid this situation a constructor could employ access control so that it can"] # [doc = "only be instantiated by permissioned entities. The same is true when uploading"] # [doc = "through [`Self::instantiate_with_code`]."] # [doc = ""] # [doc = "Use [`Determinism::Relaxed`] exclusively for non-deterministic code. If the uploaded"] # [doc = "code is deterministic, specifying [`Determinism::Relaxed`] will be disregarded and"] # [doc = "result in higher gas costs."] upload_code { code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , determinism : runtime_types :: pallet_contracts :: wasm :: Determinism , } , # [codec (index = 4)] # [doc = "Remove the code stored under `code_hash` and refund the deposit to its owner."] # [doc = ""] # [doc = "A code can only be removed by its original uploader (its owner) and only if it is"] # [doc = "not used by any contract."] remove_code { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 5)] # [doc = "Privileged function that changes the code of an existing contract."] # [doc = ""] # [doc = "This takes care of updating refcounts and all other necessary operations. Returns"] # [doc = "an error if either the `code_hash` or `dest` do not exist."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "This does **not** change the address of the contract in question. This means"] # [doc = "that the contract address is no longer derived from its code hash after calling"] # [doc = "this dispatchable."] set_code { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 6)] # [doc = "Makes a call to an account, optionally transferring some balance."] # [doc = ""] # [doc = "# Parameters"] # [doc = ""] # [doc = "* `dest`: Address of the contract to call."] # [doc = "* `value`: The balance to transfer from the `origin` to `dest`."] # [doc = "* `gas_limit`: The gas limit enforced when executing the constructor."] # [doc = "* `storage_deposit_limit`: The maximum amount of balance that can be charged from the"] # [doc = "  caller to pay for the storage consumed."] # [doc = "* `data`: The input data to pass to the contract."] # [doc = ""] # [doc = "* If the account is a smart-contract account, the associated code will be"] # [doc = "executed and any value will be transferred."] # [doc = "* If the account is a regular account, any value will be transferred."] # [doc = "* If no account exists and the call value is not less than `existential_deposit`,"] # [doc = "a regular account will be created and any value will be transferred."] call { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u64 , gas_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 7)] # [doc = "Instantiates a new contract from the supplied `code` optionally transferring"] # [doc = "some balance."] # [doc = ""] # [doc = "This dispatchable has the same effect as calling [`Self::upload_code`] +"] # [doc = "[`Self::instantiate`]. Bundling them together provides efficiency gains. Please"] # [doc = "also check the documentation of [`Self::upload_code`]."] # [doc = ""] # [doc = "# Parameters"] # [doc = ""] # [doc = "* `value`: The balance to transfer from the `origin` to the newly created contract."] # [doc = "* `gas_limit`: The gas limit enforced when executing the constructor."] # [doc = "* `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved"] # [doc = "  from the caller to pay for the storage consumed."] # [doc = "* `code`: The contract code to deploy in raw bytes."] # [doc = "* `data`: The input data to pass to the contract constructor."] # [doc = "* `salt`: Used for the address derivation. See [`Pallet::contract_address`]."] # [doc = ""] # [doc = "Instantiation is executed as follows:"] # [doc = ""] # [doc = "- The supplied `code` is deployed, and a `code_hash` is created for that code."] # [doc = "- If the `code_hash` already exists on the chain the underlying `code` will be shared."] # [doc = "- The destination address is computed based on the sender, code_hash and the salt."] # [doc = "- The smart-contract account is created at the computed address."] # [doc = "- The `value` is transferred to the new account."] # [doc = "- The `deploy` function is executed in the context of the newly-created account."] instantiate_with_code { # [codec (compact)] value : :: core :: primitive :: u64 , gas_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , salt : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 8)] # [doc = "Instantiates a contract from a previously deployed wasm binary."] # [doc = ""] # [doc = "This function is identical to [`Self::instantiate_with_code`] but without the"] # [doc = "code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary"] # [doc = "must be supplied."] instantiate { # [codec (compact)] value : :: core :: primitive :: u64 , gas_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , salt : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 9)] # [doc = "When a migration is in progress, this dispatchable can be used to run migration steps."] # [doc = "Calls that contribute to advancing the migration have their fees waived, as it's helpful"] # [doc = "for the chain. Note that while the migration is in progress, the pallet will also"] # [doc = "leverage the `on_idle` hooks to run migration steps."] migrate { weight_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Invalid schedule supplied, e.g. with zero weight of a basic operation."] InvalidSchedule , # [codec (index = 1)] # [doc = "Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`."] InvalidCallFlags , # [codec (index = 2)] # [doc = "The executed contract exhausted its gas limit."] OutOfGas , # [codec (index = 3)] # [doc = "The output buffer supplied to a contract API call was too small."] OutputBufferTooSmall , # [codec (index = 4)] # [doc = "Performing the requested transfer failed. Probably because there isn't enough"] # [doc = "free balance in the sender's account."] TransferFailed , # [codec (index = 5)] # [doc = "Performing a call was denied because the calling depth reached the limit"] # [doc = "of what is specified in the schedule."] MaxCallDepthReached , # [codec (index = 6)] # [doc = "No contract was found at the specified address."] ContractNotFound , # [codec (index = 7)] # [doc = "The code supplied to `instantiate_with_code` exceeds the limit specified in the"] # [doc = "current schedule."] CodeTooLarge , # [codec (index = 8)] # [doc = "No code could be found at the supplied code hash."] CodeNotFound , # [codec (index = 9)] # [doc = "No code info could be found at the supplied code hash."] CodeInfoNotFound , # [codec (index = 10)] # [doc = "A buffer outside of sandbox memory was passed to a contract API function."] OutOfBounds , # [codec (index = 11)] # [doc = "Input passed to a contract API function failed to decode as expected type."] DecodingFailed , # [codec (index = 12)] # [doc = "Contract trapped during execution."] ContractTrapped , # [codec (index = 13)] # [doc = "The size defined in `T::MaxValueSize` was exceeded."] ValueTooLarge , # [codec (index = 14)] # [doc = "Termination of a contract is not allowed while the contract is already"] # [doc = "on the call stack. Can be triggered by `seal_terminate`."] TerminatedWhileReentrant , # [codec (index = 15)] # [doc = "`seal_call` forwarded this contracts input. It therefore is no longer available."] InputForwarded , # [codec (index = 16)] # [doc = "The subject passed to `seal_random` exceeds the limit."] RandomSubjectTooLong , # [codec (index = 17)] # [doc = "The amount of topics passed to `seal_deposit_events` exceeds the limit."] TooManyTopics , # [codec (index = 18)] # [doc = "The chain does not provide a chain extension. Calling the chain extension results"] # [doc = "in this error. Note that this usually  shouldn't happen as deploying such contracts"] # [doc = "is rejected."] NoChainExtension , # [codec (index = 19)] # [doc = "Failed to decode the XCM program."] XCMDecodeFailed , # [codec (index = 20)] # [doc = "A contract with the same AccountId already exists."] DuplicateContract , # [codec (index = 21)] # [doc = "A contract self destructed in its constructor."] # [doc = ""] # [doc = "This can be triggered by a call to `seal_terminate`."] TerminatedInConstructor , # [codec (index = 22)] # [doc = "A call tried to invoke a contract that is flagged as non-reentrant."] # [doc = "The only other cause is that a call from a contract into the runtime tried to call back"] # [doc = "into `pallet-contracts`. This would make the whole pallet reentrant with regard to"] # [doc = "contract code execution which is not supported."] ReentranceDenied , # [codec (index = 23)] # [doc = "A contract attempted to invoke a state modifying API while being in read-only mode."] StateChangeDenied , # [codec (index = 24)] # [doc = "Origin doesn't have enough balance to pay the required storage deposits."] StorageDepositNotEnoughFunds , # [codec (index = 25)] # [doc = "More storage was created than allowed by the storage deposit limit."] StorageDepositLimitExhausted , # [codec (index = 26)] # [doc = "Code removal was denied because the code is still in use by at least one contract."] CodeInUse , # [codec (index = 27)] # [doc = "The contract ran to completion but decided to revert its storage changes."] # [doc = "Please note that this error is only returned from extrinsics. When called directly"] # [doc = "or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags"] # [doc = "to determine whether a reversion has taken place."] ContractReverted , # [codec (index = 28)] # [doc = "The contract's code was found to be invalid during validation."] # [doc = ""] # [doc = "The most likely cause of this is that an API was used which is not supported by the"] # [doc = "node. This happens if an older node is used with a new version of ink!. Try updating"] # [doc = "your node to the newest available version."] # [doc = ""] # [doc = "A more detailed error can be found on the node console if debug messages are enabled"] # [doc = "by supplying `-lruntime::contracts=debug`."] CodeRejected , # [codec (index = 29)] # [doc = "An indeterministic code was used in a context where this is not permitted."] Indeterministic , # [codec (index = 30)] # [doc = "A pending migration needs to complete before the extrinsic can be called."] MigrationInProgress , # [codec (index = 31)] # [doc = "Migrate dispatch call was attempted but no migration was performed."] NoMigrationPerformed , # [codec (index = 32)] # [doc = "The contract has reached its maximum number of delegate dependencies."] MaxDelegateDependenciesReached , # [codec (index = 33)] # [doc = "The dependency was not found in the contract's delegate dependencies."] DelegateDependencyNotFound , # [codec (index = 34)] # [doc = "The contract already depends on the given delegate dependency."] DelegateDependencyAlreadyExists , # [codec (index = 35)] # [doc = "Can not add a delegate dependency to the code hash of the contract itself."] CannotAddSelfAsDelegateDependency , # [codec (index = 36)] # [doc = "Can not add more data to transient storage."] OutOfTransientStorage , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Contract deployed by address at the specified address."] Instantiated { deployer : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , contract : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "Contract has been removed."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "The only way for a contract to be removed and emitting this event is by calling"] # [doc = "`seal_terminate`."] Terminated { contract : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , beneficiary : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 2)] # [doc = "Code with the specified hash has been stored."] CodeStored { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , deposit_held : :: core :: primitive :: u64 , uploader : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 3)] # [doc = "A custom event emitted by the contract."] ContractEmitted { contract : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 4)] # [doc = "A code with the specified hash was removed."] CodeRemoved { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , deposit_released : :: core :: primitive :: u64 , remover : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "A contract's code was updated."] ContractCodeUpdated { contract : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , old_code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 6)] # [doc = "A contract was called either by a plain account or another contract."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Please keep in mind that like all events this is only emitted for successful"] # [doc = "calls. This is because on failure all storage changes including events are"] # [doc = "rolled back."] Called { caller : runtime_types :: pallet_contracts :: Origin < runtime_types :: node_subtensor_runtime :: Runtime > , contract : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 7)] # [doc = "A contract delegate called a code hash."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Please keep in mind that like all events this is only emitted for successful"] # [doc = "calls. This is because on failure all storage changes including events are"] # [doc = "rolled back."] DelegateCalled { contract : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 8)] # [doc = "Some funds have been transferred and held as storage deposit."] StorageDepositTransferredAndHeld { from : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , to : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 9)] # [doc = "Some storage deposit funds have been transferred and released."] StorageDepositTransferredAndReleased { from : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , to : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum HoldReason { # [codec (index = 0)] CodeUploadDepositReserve , # [codec (index = 1)] StorageDepositReserve , } } pub mod primitives { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Code < _0 > { # [codec (index = 0)] Upload (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 1)] Existing (_0 ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CodeUploadReturnValue < _0 , _1 > { pub code_hash : _0 , pub deposit : _1 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ContractAccessError { # [codec (index = 0)] DoesntExist , # [codec (index = 1)] KeyDecodingFailed , # [codec (index = 2)] MigrationInProgress , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ContractResult < _0 , _1 , _2 > { pub gas_consumed : runtime_types :: sp_weights :: weight_v2 :: Weight , pub gas_required : runtime_types :: sp_weights :: weight_v2 :: Weight , pub storage_deposit : runtime_types :: pallet_contracts :: primitives :: StorageDeposit < _1 > , pub debug_message : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub result : _0 , pub events : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _2 > > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ExecReturnValue { pub flags : runtime_types :: pallet_contracts_uapi :: flags :: ReturnFlags , pub data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InstantiateReturnValue < _0 > { pub result : runtime_types :: pallet_contracts :: primitives :: ExecReturnValue , pub account_id : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum StorageDeposit < _0 > { # [codec (index = 0)] Refund (_0 ,) , # [codec (index = 1)] Charge (_0 ,) , } } pub mod schedule { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InstructionWeights { pub base : :: core :: primitive :: u32 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Limits { pub event_topics : :: core :: primitive :: u32 , pub memory_pages : :: core :: primitive :: u32 , pub subject_len : :: core :: primitive :: u32 , pub payload_len : :: core :: primitive :: u32 , pub runtime_memory : :: core :: primitive :: u32 , pub validator_runtime_memory : :: core :: primitive :: u32 , pub event_ref_time : :: core :: primitive :: u64 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Schedule { pub limits : runtime_types :: pallet_contracts :: schedule :: Limits , pub instruction_weights : runtime_types :: pallet_contracts :: schedule :: InstructionWeights , } } pub mod storage { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ContractInfo { pub trie_id : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub storage_bytes : :: core :: primitive :: u32 , pub storage_items : :: core :: primitive :: u32 , pub storage_byte_deposit : :: core :: primitive :: u64 , pub storage_item_deposit : :: core :: primitive :: u64 , pub storage_base_deposit : :: core :: primitive :: u64 , pub delegate_dependencies : runtime_types :: bounded_collections :: bounded_btree_map :: BoundedBTreeMap < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u64 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DeletionQueueManager { pub insert_counter : :: core :: primitive :: u32 , pub delete_counter : :: core :: primitive :: u32 , } } pub mod wasm { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CodeInfo { pub owner : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , # [codec (compact)] pub deposit : :: core :: primitive :: u64 , # [codec (compact)] pub refcount : :: core :: primitive :: u64 , pub determinism : runtime_types :: pallet_contracts :: wasm :: Determinism , pub code_len : :: core :: primitive :: u32 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Determinism { # [codec (index = 0)] Enforced , # [codec (index = 1)] Relaxed , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ApiVersion (pub :: core :: primitive :: u16 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Environment { pub account_id : runtime_types :: pallet_contracts :: EnvironmentType < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , pub balance : runtime_types :: pallet_contracts :: EnvironmentType < :: core :: primitive :: u64 > , pub hash : runtime_types :: pallet_contracts :: EnvironmentType < :: subxt :: ext :: subxt_core :: utils :: H256 > , pub hasher : runtime_types :: pallet_contracts :: EnvironmentType < runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , pub timestamp : runtime_types :: pallet_contracts :: EnvironmentType < :: core :: primitive :: u64 > , pub block_number : runtime_types :: pallet_contracts :: EnvironmentType < :: core :: primitive :: u32 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EnvironmentType < _0 > (pub :: core :: marker :: PhantomData < _0 >) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Origin < _0 > { # [codec (index = 0)] Root , # [codec (index = 1)] Signed (:: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , __Ignore (:: core :: marker :: PhantomData < _0 >) , } } pub mod pallet_contracts_uapi { use super :: runtime_types ; pub mod flags { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ReturnFlags { pub bits : :: core :: primitive :: u32 , } } } pub mod pallet_crowdloan { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Create a crowdloan that will raise funds up to a maximum cap and if successful,"] # [doc = "will transfer funds to the target address if provided and dispatch the call"] # [doc = "(using creator origin)."] # [doc = ""] # [doc = "The initial deposit will be transfered to the crowdloan account and will be refunded"] # [doc = "in case the crowdloan fails to raise the cap. Additionally, the creator will pay for"] # [doc = "the execution of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `deposit`: The initial deposit from the creator."] # [doc = "- `min_contribution`: The minimum contribution required to contribute to the crowdloan."] # [doc = "- `cap`: The maximum amount of funds that can be raised."] # [doc = "- `end`: The block number at which the crowdloan will end."] # [doc = "- `call`: The call to dispatch when the crowdloan is finalized."] # [doc = "- `target_address`: The address to transfer the raised funds to if provided."] create { # [codec (compact)] deposit : :: core :: primitive :: u64 , # [codec (compact)] min_contribution : :: core :: primitive :: u64 , # [codec (compact)] cap : :: core :: primitive :: u64 , # [codec (compact)] end : :: core :: primitive :: u32 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < :: core :: option :: Option < runtime_types :: node_subtensor_runtime :: RuntimeCall > > , target_address : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 1)] # [doc = "Contribute to an active crowdloan."] # [doc = ""] # [doc = "The contribution will be transfered to the crowdloan account and will be refunded"] # [doc = "if the crowdloan fails to raise the cap. If the contribution would raise the amount above the cap,"] # [doc = "the contribution will be set to the amount that is left to be raised."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to contribute to."] # [doc = "- `amount`: The amount to contribute."] contribute { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , # [codec (compact)] amount : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Withdraw a contribution from an active (not yet finalized or dissolved) crowdloan."] # [doc = ""] # [doc = "Only contributions over the deposit can be withdrawn by the creator."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to withdraw from."] withdraw { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Finalize crowdloan that has reached the cap."] # [doc = ""] # [doc = "The call will transfer the raised amount to the target address if it was provided when the crowdloan was created"] # [doc = "and dispatch the call that was provided using the creator origin. The CurrentCrowdloanId will be set to the"] # [doc = "crowdloan id being finalized so the dispatched call can access it temporarily by accessing"] # [doc = "the `CurrentCrowdloanId` storage item."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to finalize."] finalize { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Refund contributors of a non-finalized crowdloan."] # [doc = ""] # [doc = "The call will try to refund all contributors (excluding the creator) up to the limit defined by the `RefundContributorsLimit`."] # [doc = "If the limit is reached, the call will stop and the crowdloan will be marked as partially refunded."] # [doc = "It may be needed to dispatch this call multiple times to refund all contributors."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and doesn't need to be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to refund."] refund { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Dissolve a crowdloan."] # [doc = ""] # [doc = "The crowdloan will be removed from the storage."] # [doc = "All contributions must have been refunded before the crowdloan can be dissolved (except the creator's one)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to dissolve."] dissolve { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Update the minimum contribution of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the minimum contribution of."] # [doc = "- `new_min_contribution`: The new minimum contribution."] update_min_contribution { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , # [codec (compact)] new_min_contribution : :: core :: primitive :: u64 , } , # [codec (index = 7)] # [doc = "Update the end block of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the end block of."] # [doc = "- `new_end`: The new end block."] update_end { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , # [codec (compact)] new_end : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Update the cap of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the cap of."] # [doc = "- `new_cap`: The new cap."] update_cap { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , # [codec (compact)] new_cap : :: core :: primitive :: u64 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The crowdloan initial deposit is too low."] DepositTooLow , # [codec (index = 1)] # [doc = "The crowdloan cap is too low."] CapTooLow , # [codec (index = 2)] # [doc = "The minimum contribution is too low."] MinimumContributionTooLow , # [codec (index = 3)] # [doc = "The crowdloan cannot end in the past."] CannotEndInPast , # [codec (index = 4)] # [doc = "The crowdloan block duration is too short."] BlockDurationTooShort , # [codec (index = 5)] # [doc = "The block duration is too long."] BlockDurationTooLong , # [codec (index = 6)] # [doc = "The account does not have enough balance to pay for the initial deposit/contribution."] InsufficientBalance , # [codec (index = 7)] # [doc = "An overflow occurred."] Overflow , # [codec (index = 8)] # [doc = "The crowdloan id is invalid."] InvalidCrowdloanId , # [codec (index = 9)] # [doc = "The crowdloan cap has been fully raised."] CapRaised , # [codec (index = 10)] # [doc = "The contribution period has ended."] ContributionPeriodEnded , # [codec (index = 11)] # [doc = "The contribution is too low."] ContributionTooLow , # [codec (index = 12)] # [doc = "The origin of this call is invalid."] InvalidOrigin , # [codec (index = 13)] # [doc = "The crowdloan has already been finalized."] AlreadyFinalized , # [codec (index = 14)] # [doc = "The crowdloan contribution period has not ended yet."] ContributionPeriodNotEnded , # [codec (index = 15)] # [doc = "The contributor has no contribution for this crowdloan."] NoContribution , # [codec (index = 16)] # [doc = "The crowdloan cap has not been raised."] CapNotRaised , # [codec (index = 17)] # [doc = "An underflow occurred."] Underflow , # [codec (index = 18)] # [doc = "Call to dispatch was not found in the preimage storage."] CallUnavailable , # [codec (index = 19)] # [doc = "The crowdloan is not ready to be dissolved, it still has contributions."] NotReadyToDissolve , # [codec (index = 20)] # [doc = "The deposit cannot be withdrawn from the crowdloan."] DepositCannotBeWithdrawn , # [codec (index = 21)] # [doc = "The maximum number of contributors has been reached."] MaxContributorsReached , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A crowdloan was created."] Created { crowdloan_id : :: core :: primitive :: u32 , creator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , end : :: core :: primitive :: u32 , cap : :: core :: primitive :: u64 , } , # [codec (index = 1)] # [doc = "A contribution was made to an active crowdloan."] Contributed { crowdloan_id : :: core :: primitive :: u32 , contributor : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "A contribution was withdrawn from a failed crowdloan."] Withdrew { crowdloan_id : :: core :: primitive :: u32 , contributor : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 3)] # [doc = "A refund was partially processed for a failed crowdloan."] PartiallyRefunded { crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "A refund was fully processed for a failed crowdloan."] AllRefunded { crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A crowdloan was finalized, funds were transferred and the call was dispatched."] Finalized { crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "A crowdloan was dissolved."] Dissolved { crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "The minimum contribution was updated."] MinContributionUpdated { crowdloan_id : :: core :: primitive :: u32 , new_min_contribution : :: core :: primitive :: u64 , } , # [codec (index = 8)] # [doc = "The end was updated."] EndUpdated { crowdloan_id : :: core :: primitive :: u32 , new_end : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "The cap was updated."] CapUpdated { crowdloan_id : :: core :: primitive :: u32 , new_cap : :: core :: primitive :: u64 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CrowdloanInfo < _0 , _1 , _2 , _3 > { pub creator : _0 , pub deposit : _1 , pub min_contribution : _1 , pub end : _2 , pub cap : _1 , pub funds_account : _0 , pub raised : _1 , pub target_address : :: core :: option :: Option < _0 > , pub call : :: core :: option :: Option < _3 > , pub finalized : :: core :: primitive :: bool , pub contributors_count : :: core :: primitive :: u32 , } } pub mod pallet_drand { use super :: runtime_types ; pub mod drand_priority { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DrandPriority < _0 > (pub :: core :: marker :: PhantomData < _0 >) ; } pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Verify and write a pulse from the beacon into the runtime"] write_pulse { pulses_payload : runtime_types :: pallet_drand :: types :: PulsesPayload < runtime_types :: sp_runtime :: MultiSigner , :: core :: primitive :: u32 > , signature : :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSignature > , } , # [codec (index = 1)] # [doc = "allows the root user to set the beacon configuration"] # [doc = "generally this would be called from an offchain worker context."] # [doc = "there is no verification of configurations, so be careful with this."] # [doc = ""] # [doc = "* `origin`: the root user"] # [doc = "* `config`: the beacon configuration"] set_beacon_config { config_payload : runtime_types :: pallet_drand :: types :: BeaconConfigurationPayload < runtime_types :: sp_runtime :: MultiSigner , :: core :: primitive :: u32 > , signature : :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSignature > , } , # [codec (index = 2)] # [doc = "allows the root user to set the oldest stored round"] set_oldest_stored_round { oldest_round : :: core :: primitive :: u64 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The value retrieved was `None` as no value was previously set."] NoneValue , # [codec (index = 1)] # [doc = "There was an attempt to increment the value in storage over `u32::MAX`."] StorageOverflow , # [codec (index = 2)] # [doc = "failed to connect to the"] DrandConnectionFailure , # [codec (index = 3)] # [doc = "the pulse is invalid"] UnverifiedPulse , # [codec (index = 4)] # [doc = "the round number did not increment"] InvalidRoundNumber , # [codec (index = 5)] # [doc = "the pulse could not be verified"] PulseVerificationError , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Beacon Configuration has changed."] BeaconConfigChanged , # [codec (index = 1)] # [doc = "Successfully set a new pulse(s)."] NewPulse { rounds : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > , } , # [codec (index = 2)] # [doc = "Oldest Stored Round has been set."] SetOldestStoredRound (:: core :: primitive :: u64 ,) , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BeaconConfiguration { pub public_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub period : :: core :: primitive :: u32 , pub genesis_time : :: core :: primitive :: u32 , pub hash : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub group_hash : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub scheme_id : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub metadata : runtime_types :: pallet_drand :: types :: Metadata , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BeaconConfigurationPayload < _0 , _1 > { pub block_number : _1 , pub config : runtime_types :: pallet_drand :: types :: BeaconConfiguration , pub public : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Metadata { pub beacon_id : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Pulse { pub round : :: core :: primitive :: u64 , pub randomness : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PulsesPayload < _0 , _1 > { pub block_number : _1 , pub pulses : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_drand :: types :: Pulse > , pub public : _0 , } } } pub mod pallet_ethereum { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Transact an Ethereum transaction."] transact { transaction : runtime_types :: ethereum :: transaction :: TransactionV3 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Signature is invalid."] InvalidSignature , # [codec (index = 1)] # [doc = "Pre-log is present, therefore transact is not allowed."] PreLogExists , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "An ethereum transaction was successfully executed."] Executed { from : :: subxt :: ext :: subxt_core :: utils :: H160 , to : :: subxt :: ext :: subxt_core :: utils :: H160 , transaction_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , exit_reason : runtime_types :: evm_core :: error :: ExitReason , extra_data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RawOrigin { # [codec (index = 0)] EthereumTransaction (:: subxt :: ext :: subxt_core :: utils :: H160 ,) , } } pub mod pallet_evm { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Withdraw balance from EVM into currency/balances pallet."] withdraw { address : :: subxt :: ext :: subxt_core :: utils :: H160 , value : :: core :: primitive :: u64 , } , # [codec (index = 1)] # [doc = "Issue an EVM call operation. This is similar to a message call transaction in Ethereum."] call { source : :: subxt :: ext :: subxt_core :: utils :: H160 , target : :: subxt :: ext :: subxt_core :: utils :: H160 , input : :: subxt :: ext :: subxt_core :: alloc :: 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 < runtime_types :: primitive_types :: U256 > , access_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > , authorization_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > , } , # [codec (index = 2)] # [doc = "Issue an EVM create operation. This is similar to a contract creation transaction in"] # [doc = "Ethereum."] create { source : :: subxt :: ext :: subxt_core :: utils :: H160 , init : :: subxt :: ext :: subxt_core :: alloc :: 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 < runtime_types :: primitive_types :: U256 > , access_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > , authorization_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > , } , # [codec (index = 3)] # [doc = "Issue an EVM create2 operation."] create2 { source : :: subxt :: ext :: subxt_core :: utils :: H160 , init : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , salt : :: subxt :: ext :: subxt_core :: 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 < runtime_types :: primitive_types :: U256 > , access_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > , authorization_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > , } , # [codec (index = 4)] set_whitelist { new : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H160 > , } , # [codec (index = 5)] disable_whitelist { disabled : :: core :: primitive :: bool , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Not enough balance to perform action"] BalanceLow , # [codec (index = 1)] # [doc = "Calculating total fee overflowed"] FeeOverflow , # [codec (index = 2)] # [doc = "Calculating total payment overflowed"] PaymentOverflow , # [codec (index = 3)] # [doc = "Withdraw fee failed"] WithdrawFailed , # [codec (index = 4)] # [doc = "Gas price is too low."] GasPriceTooLow , # [codec (index = 5)] # [doc = "Nonce is invalid"] InvalidNonce , # [codec (index = 6)] # [doc = "Gas limit is too low."] GasLimitTooLow , # [codec (index = 7)] # [doc = "Gas limit is too high."] GasLimitTooHigh , # [codec (index = 8)] # [doc = "The chain id is invalid."] InvalidChainId , # [codec (index = 9)] # [doc = "the signature is invalid."] InvalidSignature , # [codec (index = 10)] # [doc = "EVM reentrancy"] Reentrancy , # [codec (index = 11)] # [doc = "EIP-3607,"] TransactionMustComeFromEOA , # [codec (index = 12)] # [doc = "Undefined error."] Undefined , # [codec (index = 13)] # [doc = "Origin is not allowed to perform the operation."] NotAllowed , # [codec (index = 14)] # [doc = "Address not allowed to deploy contracts either via CREATE or CALL(CREATE)."] CreateOriginNotAllowed , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Ethereum events from contracts."] Log { log : runtime_types :: ethereum :: log :: Log , } , # [codec (index = 1)] # [doc = "A contract has been created at given address."] Created { address : :: subxt :: ext :: subxt_core :: utils :: H160 , } , # [codec (index = 2)] # [doc = "A contract was attempted to be created, but the execution failed."] CreatedFailed { address : :: subxt :: ext :: subxt_core :: utils :: H160 , } , # [codec (index = 3)] # [doc = "A contract has been executed successfully with states applied."] Executed { address : :: subxt :: ext :: subxt_core :: utils :: H160 , } , # [codec (index = 4)] # [doc = "A contract has been executed with errors. States are reverted with only gas fees applied."] ExecutedFailed { address : :: subxt :: ext :: subxt_core :: utils :: H160 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CodeMetadata { pub size : :: core :: primitive :: u64 , pub hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } } pub mod pallet_grandpa { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] report_equivocation { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > , key_owner_proof : runtime_types :: sp_core :: Void , } , # [codec (index = 1)] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] # [doc = ""] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] report_equivocation_unsigned { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > , key_owner_proof : runtime_types :: sp_core :: Void , } , # [codec (index = 2)] # [doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] # [doc = ""] # [doc = "This will trigger a forced authority set change at the beginning of the next session, to"] # [doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] # [doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] # [doc = "The block production rate (which may be slowed down because of finality lagging) should"] # [doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] # [doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] # [doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] # [doc = "block of all validators of the new authority set."] # [doc = ""] # [doc = "Only callable by root."] note_stalled { delay : :: core :: primitive :: u32 , best_finalized_block_number : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Attempt to signal GRANDPA pause when the authority set isn't live"] # [doc = "(either paused or already pending pause)."] PauseFailed , # [codec (index = 1)] # [doc = "Attempt to signal GRANDPA resume when the authority set isn't paused"] # [doc = "(either live or already pending resume)."] ResumeFailed , # [codec (index = 2)] # [doc = "Attempt to signal GRANDPA change with one already pending."] ChangePending , # [codec (index = 3)] # [doc = "Cannot signal forced change so soon after last."] TooSoon , # [codec (index = 4)] # [doc = "A key ownership proof provided as part of an equivocation report is invalid."] InvalidKeyOwnershipProof , # [codec (index = 5)] # [doc = "An equivocation proof provided as part of an equivocation report is invalid."] InvalidEquivocationProof , # [codec (index = 6)] # [doc = "A given equivocation report is valid but already previously reported."] DuplicateOffenceReport , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "New authority set has been applied."] NewAuthorities { authority_set : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , } , # [codec (index = 1)] # [doc = "Current authority set has been paused."] Paused , # [codec (index = 2)] # [doc = "Current authority set has been resumed."] Resumed , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , :: core :: primitive :: u64 ,) > , pub forced : :: core :: option :: Option < _0 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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_multisig { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "multi-signature, but do not participate in the approval process."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(Z + C) where Z is the length of the call and C its execution weight."] as_multi_threshold_1 { other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "If there are enough, then dispatch the call."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "NOTE: Unless this is the final approval, you will generally want to use"] # [doc = "`approve_as_multi` instead, since it only requires a hash of the call."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] # [doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] # [doc = "may be found in the deposited `MultisigExecuted` event."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S + Z + Call)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- The weight of the `call`."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = "  taken for its lifetime of `DepositBase + threshold * DepositFactor`."] as_multi { threshold : :: core :: primitive :: u16 , other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , maybe_timepoint : :: core :: option :: Option < runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , max_weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 2)] # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = "  taken for its lifetime of `DepositBase + threshold * DepositFactor`."] approve_as_multi { threshold : :: core :: primitive :: u16 , other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , maybe_timepoint : :: core :: option :: Option < runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > > , call_hash : [:: core :: primitive :: u8 ; 32usize] , max_weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 3)] # [doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] # [doc = "for this operation will be unreserved on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] # [doc = "transaction for this dispatch."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- One event."] # [doc = "- I/O: 1 read `O(S)`, one remove."] # [doc = "- Storage: removes one item."] cancel_as_multi { threshold : :: core :: primitive :: u16 , other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , timepoint : runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 4)] # [doc = "Poke the deposit reserved for an existing multisig operation."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the original depositor of"] # [doc = "the multisig operation."] # [doc = ""] # [doc = "The transaction fee is waived if the deposit amount has changed."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals needed for this multisig."] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "  multisig."] # [doc = "- `call_hash`: The hash of the call this deposit is reserved for."] # [doc = ""] # [doc = "Emits `DepositPoked` if successful."] poke_deposit { threshold : :: core :: primitive :: u16 , other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Threshold must be 2 or greater."] MinimumThreshold , # [codec (index = 1)] # [doc = "Call is already approved by this signatory."] AlreadyApproved , # [codec (index = 2)] # [doc = "Call doesn't need any (more) approvals."] NoApprovalsNeeded , # [codec (index = 3)] # [doc = "There are too few signatories in the list."] TooFewSignatories , # [codec (index = 4)] # [doc = "There are too many signatories in the list."] TooManySignatories , # [codec (index = 5)] # [doc = "The signatories were provided out of order; they should be ordered."] SignatoriesOutOfOrder , # [codec (index = 6)] # [doc = "The sender was contained in the other signatories; it shouldn't be."] SenderInSignatories , # [codec (index = 7)] # [doc = "Multisig operation not found in storage."] NotFound , # [codec (index = 8)] # [doc = "Only the account that originally created the multisig is able to cancel it or update"] # [doc = "its deposits."] NotOwner , # [codec (index = 9)] # [doc = "No timepoint was given, yet the multisig operation is already underway."] NoTimepoint , # [codec (index = 10)] # [doc = "A different timepoint was given to the multisig operation that is underway."] WrongTimepoint , # [codec (index = 11)] # [doc = "A timepoint was given, yet no multisig operation is underway."] UnexpectedTimepoint , # [codec (index = 12)] # [doc = "The maximum weight information provided was too low."] MaxWeightTooLow , # [codec (index = 13)] # [doc = "The data to be stored is already stored."] AlreadyStored , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A new multisig operation has begun."] NewMultisig { approving : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , multisig : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 1)] # [doc = "A multisig operation has been approved by someone."] MultisigApproval { approving : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , timepoint : runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > , multisig : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 2)] # [doc = "A multisig operation has been executed."] MultisigExecuted { approving : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , timepoint : runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > , multisig : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 3)] # [doc = "A multisig operation has been cancelled."] MultisigCancelled { cancelling : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , timepoint : runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > , multisig : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 4)] # [doc = "The deposit for a multisig operation has been updated/poked."] DepositPoked { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , old_deposit : :: core :: primitive :: u64 , new_deposit : :: core :: primitive :: u64 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Timepoint < _0 > { pub height : _0 , pub index : :: core :: primitive :: u32 , } } pub mod pallet_preimage { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Register a preimage on-chain."] # [doc = ""] # [doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] # [doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] note_preimage { bytes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Clear an unrequested preimage from the runtime storage."] # [doc = ""] # [doc = "If `len` is provided, then it will be a much cheaper operation."] # [doc = ""] # [doc = "- `hash`: The hash of the preimage to be removed from the store."] # [doc = "- `len`: The length of the preimage of `hash`."] unnote_preimage { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 2)] # [doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] # [doc = ""] # [doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] # [doc = "a user may have paid, and take the control of the preimage out of their hands."] request_preimage { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 3)] # [doc = "Clear a previously made request for a preimage."] # [doc = ""] # [doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] unrequest_preimage { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 4)] # [doc = "Ensure that the bulk of pre-images is upgraded."] # [doc = ""] # [doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."] ensure_updated { hashes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Preimage is too large to store on-chain."] TooBig , # [codec (index = 1)] # [doc = "Preimage has already been noted on-chain."] AlreadyNoted , # [codec (index = 2)] # [doc = "The user is not authorized to perform this action."] NotAuthorized , # [codec (index = 3)] # [doc = "The preimage cannot be removed since it has not yet been noted."] NotNoted , # [codec (index = 4)] # [doc = "A preimage may not be removed when there are outstanding requests."] Requested , # [codec (index = 5)] # [doc = "The preimage request cannot be removed since no outstanding requests exist."] NotRequested , # [codec (index = 6)] # [doc = "More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once."] TooMany , # [codec (index = 7)] # [doc = "Too few hashes were requested to be upgraded (i.e. zero)."] TooFew , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A preimage has been noted."] Noted { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 1)] # [doc = "A preimage has been requested."] Requested { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 2)] # [doc = "A preimage has ben cleared."] Cleared { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum HoldReason { # [codec (index = 0)] Preimage , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum OldRequestStatus < _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 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RequestStatus < _0 , _1 > { # [codec (index = 0)] Unrequested { ticket : (_0 , _1 ,) , len : :: core :: primitive :: u32 , } , # [codec (index = 1)] Requested { maybe_ticket : :: core :: option :: Option < (_0 , _1 ,) > , count : :: core :: primitive :: u32 , maybe_len : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } } pub mod pallet_registry { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Register an identity for an account. This will overwrite any existing identity."] set_identity { identified : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , info : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: pallet_registry :: types :: IdentityInfo > , } , # [codec (index = 1)] # [doc = "Clear the identity of an account."] clear_identity { identified : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Account attempted to register an identity but does not meet the requirements."] CannotRegister , # [codec (index = 1)] # [doc = "Account passed too many additional fields to their identity"] TooManyFieldsInIdentityInfo , # [codec (index = 2)] # [doc = "Account doesn't have a registered identity"] NotRegistered , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Emitted when a user registers an identity"] IdentitySet { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "Emitted when a user dissolves an identity"] IdentityDissolved { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum HoldReason { # [codec (index = 0)] RegistryIdentity , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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)] Raw33 ([:: core :: primitive :: u8 ; 33usize] ,) , # [codec (index = 35)] Raw34 ([:: core :: primitive :: u8 ; 34usize] ,) , # [codec (index = 36)] Raw35 ([:: core :: primitive :: u8 ; 35usize] ,) , # [codec (index = 37)] Raw36 ([:: core :: primitive :: u8 ; 36usize] ,) , # [codec (index = 38)] Raw37 ([:: core :: primitive :: u8 ; 37usize] ,) , # [codec (index = 39)] Raw38 ([:: core :: primitive :: u8 ; 38usize] ,) , # [codec (index = 40)] Raw39 ([:: core :: primitive :: u8 ; 39usize] ,) , # [codec (index = 41)] Raw40 ([:: core :: primitive :: u8 ; 40usize] ,) , # [codec (index = 42)] Raw41 ([:: core :: primitive :: u8 ; 41usize] ,) , # [codec (index = 43)] Raw42 ([:: core :: primitive :: u8 ; 42usize] ,) , # [codec (index = 44)] Raw43 ([:: core :: primitive :: u8 ; 43usize] ,) , # [codec (index = 45)] Raw44 ([:: core :: primitive :: u8 ; 44usize] ,) , # [codec (index = 46)] Raw45 ([:: core :: primitive :: u8 ; 45usize] ,) , # [codec (index = 47)] Raw46 ([:: core :: primitive :: u8 ; 46usize] ,) , # [codec (index = 48)] Raw47 ([:: core :: primitive :: u8 ; 47usize] ,) , # [codec (index = 49)] Raw48 ([:: core :: primitive :: u8 ; 48usize] ,) , # [codec (index = 50)] Raw49 ([:: core :: primitive :: u8 ; 49usize] ,) , # [codec (index = 51)] Raw50 ([:: core :: primitive :: u8 ; 50usize] ,) , # [codec (index = 52)] Raw51 ([:: core :: primitive :: u8 ; 51usize] ,) , # [codec (index = 53)] Raw52 ([:: core :: primitive :: u8 ; 52usize] ,) , # [codec (index = 54)] Raw53 ([:: core :: primitive :: u8 ; 53usize] ,) , # [codec (index = 55)] Raw54 ([:: core :: primitive :: u8 ; 54usize] ,) , # [codec (index = 56)] Raw55 ([:: core :: primitive :: u8 ; 55usize] ,) , # [codec (index = 57)] Raw56 ([:: core :: primitive :: u8 ; 56usize] ,) , # [codec (index = 58)] Raw57 ([:: core :: primitive :: u8 ; 57usize] ,) , # [codec (index = 59)] Raw58 ([:: core :: primitive :: u8 ; 58usize] ,) , # [codec (index = 60)] Raw59 ([:: core :: primitive :: u8 ; 59usize] ,) , # [codec (index = 61)] Raw60 ([:: core :: primitive :: u8 ; 60usize] ,) , # [codec (index = 62)] Raw61 ([:: core :: primitive :: u8 ; 61usize] ,) , # [codec (index = 63)] Raw62 ([:: core :: primitive :: u8 ; 62usize] ,) , # [codec (index = 64)] Raw63 ([:: core :: primitive :: u8 ; 63usize] ,) , # [codec (index = 65)] Raw64 ([:: core :: primitive :: u8 ; 64usize] ,) , # [codec (index = 66)] BlakeTwo256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 67)] Sha256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 68)] Keccak256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 69)] ShaThree256 ([:: core :: primitive :: u8 ; 32usize] ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct IdentityInfo { pub additional : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (runtime_types :: pallet_registry :: types :: Data , runtime_types :: pallet_registry :: types :: Data ,) > , pub display : runtime_types :: pallet_registry :: types :: Data , pub legal : runtime_types :: pallet_registry :: types :: Data , pub web : runtime_types :: pallet_registry :: types :: Data , pub riot : runtime_types :: pallet_registry :: types :: Data , pub email : runtime_types :: pallet_registry :: types :: Data , pub pgp_fingerprint : :: core :: option :: Option < [:: core :: primitive :: u8 ; 20usize] > , pub image : runtime_types :: pallet_registry :: types :: Data , pub twitter : runtime_types :: pallet_registry :: types :: Data , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Registration < _0 > { pub deposit : _0 , pub info : runtime_types :: pallet_registry :: types :: IdentityInfo , } } } pub mod pallet_safe_mode { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Enter safe-mode permissionlessly for [`Config::EnterDuration`] blocks."] # [doc = ""] # [doc = "Reserves [`Config::EnterDepositAmount`] from the caller's account."] # [doc = "Emits an [`Event::Entered`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is already entered."] # [doc = "Errors with [`Error::NotConfigured`] if the deposit amount is `None`."] enter , # [codec (index = 1)] # [doc = "Enter safe-mode by force for a per-origin configured number of blocks."] # [doc = ""] # [doc = "Emits an [`Event::Entered`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is already entered."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceEnterOrigin`] origin."] force_enter , # [codec (index = 2)] # [doc = "Extend the safe-mode permissionlessly for [`Config::ExtendDuration`] blocks."] # [doc = ""] # [doc = "This accumulates on top of the current remaining duration."] # [doc = "Reserves [`Config::ExtendDepositAmount`] from the caller's account."] # [doc = "Emits an [`Event::Extended`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is entered."] # [doc = "Errors with [`Error::NotConfigured`] if the deposit amount is `None`."] # [doc = ""] # [doc = "This may be called by any signed origin with [`Config::ExtendDepositAmount`] free"] # [doc = "currency to reserve. This call can be disabled for all origins by configuring"] # [doc = "[`Config::ExtendDepositAmount`] to `None`."] extend , # [codec (index = 3)] # [doc = "Extend the safe-mode by force for a per-origin configured number of blocks."] # [doc = ""] # [doc = "Emits an [`Event::Extended`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is inactive."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceExtendOrigin`] origin."] force_extend , # [codec (index = 4)] # [doc = "Exit safe-mode by force."] # [doc = ""] # [doc = "Emits an [`Event::Exited`] with [`ExitReason::Force`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is inactive."] # [doc = ""] # [doc = "Note: `safe-mode` will be automatically deactivated by [`Pallet::on_initialize`] hook"] # [doc = "after the block height is greater than the [`EnteredUntil`] storage item."] # [doc = "Emits an [`Event::Exited`] with [`ExitReason::Timeout`] event when deactivated in the"] # [doc = "hook."] force_exit , # [codec (index = 5)] # [doc = "Slash a deposit for an account that entered or extended safe-mode at a given"] # [doc = "historical block."] # [doc = ""] # [doc = "This can only be called while safe-mode is entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositSlashed`] event on success."] # [doc = "Errors with [`Error::Entered`] if safe-mode is entered."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceDepositOrigin`] origin."] force_slash_deposit { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , block : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Permissionlessly release a deposit for an account that entered safe-mode at a"] # [doc = "given historical block."] # [doc = ""] # [doc = "The call can be completely disabled by setting [`Config::ReleaseDelay`] to `None`."] # [doc = "This cannot be called while safe-mode is entered and not until"] # [doc = "[`Config::ReleaseDelay`] blocks have passed since safe-mode was entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositReleased`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is entered."] # [doc = "Errors with [`Error::CannotReleaseYet`] if [`Config::ReleaseDelay`] block have not"] # [doc = "passed since safe-mode was entered. Errors with [`Error::NoDeposit`] if the payee has no"] # [doc = "reserved currency at the block specified."] release_deposit { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , block : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Force to release a deposit for an account that entered safe-mode at a given"] # [doc = "historical block."] # [doc = ""] # [doc = "This can be called while safe-mode is still entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositReleased`] event on success."] # [doc = "Errors with [`Error::Entered`] if safe-mode is entered."] # [doc = "Errors with [`Error::NoDeposit`] if the payee has no reserved currency at the"] # [doc = "specified block."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceDepositOrigin`] origin."] force_release_deposit { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , block : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The safe-mode is (already or still) entered."] Entered , # [codec (index = 1)] # [doc = "The safe-mode is (already or still) exited."] Exited , # [codec (index = 2)] # [doc = "This functionality of the pallet is disabled by the configuration."] NotConfigured , # [codec (index = 3)] # [doc = "There is no balance reserved."] NoDeposit , # [codec (index = 4)] # [doc = "The account already has a deposit reserved and can therefore not enter or extend again."] AlreadyDeposited , # [codec (index = 5)] # [doc = "This deposit cannot be released yet."] CannotReleaseYet , # [codec (index = 6)] # [doc = "An error from the underlying `Currency`."] CurrencyError , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "The safe-mode was entered until inclusively this block."] Entered { until : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "The safe-mode was extended until inclusively this block."] Extended { until : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Exited the safe-mode for a specific reason."] Exited { reason : runtime_types :: pallet_safe_mode :: pallet :: ExitReason , } , # [codec (index = 3)] # [doc = "An account reserved funds for either entering or extending the safe-mode."] DepositPlaced { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 4)] # [doc = "An account had a reserve released that was reserved."] DepositReleased { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 5)] # [doc = "An account had reserve slashed that was reserved."] DepositSlashed { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 6)] # [doc = "Could not hold funds for entering or extending the safe-mode."] # [doc = ""] # [doc = "This error comes from the underlying `Currency`."] CannotDeposit , # [codec (index = 7)] # [doc = "Could not release funds for entering or extending the safe-mode."] # [doc = ""] # [doc = "This error comes from the underlying `Currency`."] CannotRelease , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ExitReason { # [codec (index = 0)] Timeout , # [codec (index = 1)] Force , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum HoldReason { # [codec (index = 0)] EnterOrExtend , } } } pub mod pallet_scheduler { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Anonymously schedule a task."] schedule { when : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Cancel an anonymously scheduled task."] cancel { when : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Schedule a named task."] schedule_named { id : [:: core :: primitive :: u8 ; 32usize] , when : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 3)] # [doc = "Cancel a named scheduled task."] cancel_named { id : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 4)] # [doc = "Anonymously schedule a task after a delay."] schedule_after { after : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 5)] # [doc = "Schedule a named task after a delay."] schedule_named_after { id : [:: core :: primitive :: u8 ; 32usize] , after : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 6)] # [doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"] # [doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"] # [doc = "succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] set_retry { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , retries : :: core :: primitive :: u8 , period : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"] # [doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"] # [doc = "it succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] set_retry_named { id : [:: core :: primitive :: u8 ; 32usize] , retries : :: core :: primitive :: u8 , period : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Removes the retry configuration of a task."] cancel_retry { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , } , # [codec (index = 9)] # [doc = "Cancel the retry configuration of a named task."] cancel_retry_named { id : [:: core :: primitive :: u8 ; 32usize] , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Failed to schedule a call"] FailedToSchedule , # [codec (index = 1)] # [doc = "Cannot find the scheduled call."] NotFound , # [codec (index = 2)] # [doc = "Given target block number is in the past."] TargetBlockNumberInPast , # [codec (index = 3)] # [doc = "Reschedule failed because it does not change scheduled time."] RescheduleNoChange , # [codec (index = 4)] # [doc = "Attempt to use a non-named function on a named task."] Named , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Events type."] pub enum Event { # [codec (index = 0)] # [doc = "Scheduled some task."] Scheduled { when : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Canceled some task."] Canceled { when : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Dispatched some task."] Dispatched { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 3)] # [doc = "Set a retry configuration for some task."] RetrySet { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , period : :: core :: primitive :: u32 , retries : :: core :: primitive :: u8 , } , # [codec (index = 4)] # [doc = "Cancel a retry configuration for some task."] RetryCancelled { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 5)] # [doc = "The call for the provided hash was not found so the task has been aborted."] CallUnavailable { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 6)] # [doc = "The given task was unable to be renewed since the agenda is full at that block."] PeriodicFailed { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 7)] # [doc = "The given task was unable to be retried since the agenda is full at that block or there"] # [doc = "was not enough weight to reschedule it."] RetryFailed { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 8)] # [doc = "The given task can never be executed since it is overweight."] PermanentlyOverweight { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 9)] # [doc = "Agenda is incomplete from `when`."] AgendaIncomplete { when : :: core :: primitive :: u32 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RetryConfig < _0 > { pub total_retries : :: core :: primitive :: u8 , pub remaining : :: core :: primitive :: u8 , pub period : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , _2 ,) > , pub origin : _3 , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _4 > } } pub mod pallet_shield { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Announce the ML‑KEM public key that will become `CurrentKey` in"] # [doc = "the following block."] announce_next_key { public_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Users submit an encrypted wrapper."] # [doc = ""] # [doc = "Client‑side:"] # [doc = ""] # [doc = "  1. Read `NextKey` (ML‑KEM public key bytes) from storage."] # [doc = "  2. Sign your extrinsic so that it can be executed when added to the pool,"] # [doc = "       i.e. you may need to increment the nonce if you submit using the same account."] # [doc = "  3. `commitment = Hashing::hash(signed_extrinsic)`."] # [doc = "  4. Encrypt:"] # [doc = ""] # [doc = "       plaintext = signed_extrinsic"] # [doc = ""] # [doc = "     with ML‑KEM‑768 + XChaCha20‑Poly1305, producing"] # [doc = ""] # [doc = "       ciphertext = [u16 kem_len] || kem_ct || nonce24 || aead_ct"] # [doc = ""] submit_encrypted { commitment : :: subxt :: ext :: subxt_core :: utils :: H256 , ciphertext : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 3)] # [doc = "Marks a submission as failed to decrypt and removes it from storage."] # [doc = ""] # [doc = "Called by the block author when decryption fails at any stage (e.g., ML-KEM decapsulate"] # [doc = "failed, AEAD decrypt failed, invalid ciphertext format, etc.). This allows clients to be"] # [doc = "notified of decryption failures through on-chain events."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `id` - The wrapper id (hash of (author, commitment, ciphertext))"] # [doc = "* `reason` - Human-readable reason for the decryption failure (e.g., \"ML-KEM decapsulate failed\")"] mark_decryption_failed { id : :: subxt :: ext :: subxt_core :: utils :: H256 , reason : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "A submission with the same id already exists in `Submissions`."] SubmissionAlreadyExists , # [codec (index = 1)] # [doc = "The referenced submission id does not exist in `Submissions`."] MissingSubmission , # [codec (index = 2)] # [doc = "The recomputed commitment does not match the stored commitment."] CommitmentMismatch , # [codec (index = 3)] # [doc = "The provided signature over the payload is invalid."] SignatureInvalid , # [codec (index = 4)] # [doc = "The announced ML‑KEM public key length is invalid."] BadPublicKeyLen , # [codec (index = 5)] # [doc = "The MEV‑Shield key epoch for this submission has expired and is no longer accepted."] KeyExpired , # [codec (index = 6)] # [doc = "The provided `key_hash` does not match the expected epoch key hash."] KeyHashMismatch , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Encrypted wrapper accepted."] EncryptedSubmitted { id : :: subxt :: ext :: subxt_core :: utils :: H256 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "Decrypted call executed."] DecryptedExecuted { id : :: subxt :: ext :: subxt_core :: utils :: H256 , signer : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 2)] # [doc = "Decrypted execution rejected."] DecryptedRejected { id : :: subxt :: ext :: subxt_core :: utils :: H256 , reason : runtime_types :: sp_runtime :: DispatchErrorWithPostInfo < runtime_types :: frame_support :: dispatch :: PostDispatchInfo > , } , # [codec (index = 3)] # [doc = "Decryption failed - validator could not decrypt the submission."] DecryptionFailed { id : :: subxt :: ext :: subxt_core :: utils :: H256 , reason : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Submission < _0 , _1 , _2 > { pub author : _0 , pub commitment : _2 , pub ciphertext : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub submitted_in : _1 , } } } pub mod pallet_subtensor { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AxonInfo { pub block : :: core :: primitive :: u64 , pub version : :: core :: primitive :: u32 , pub ip : :: core :: primitive :: u128 , pub port : :: core :: primitive :: u16 , pub ip_type : :: core :: primitive :: u8 , pub protocol : :: core :: primitive :: u8 , pub placeholder1 : :: core :: primitive :: u8 , pub placeholder2 : :: core :: primitive :: u8 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatchable functions allow users to interact with the pallet and invoke state changes."] # [doc = "These functions materialize as \"extrinsics\", which are often compared to transactions."] # [doc = "Dispatchable functions must be annotated with a weight and must return a DispatchResult."] pub enum Call { # [codec (index = 0)] # [doc = "--- Sets the caller weights for the incentive mechanism. The call can be"] # [doc = "made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."] set_weights { netuid : :: core :: primitive :: u16 , dests : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , weights : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , version_key : :: core :: primitive :: u64 , } , # [codec (index = 119)] # [doc = "--- Sets the caller weights for the incentive mechanism for mechanisms. The call"] # [doc = "can be made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechnism identifier."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."] set_mechanism_weights { netuid : :: core :: primitive :: u16 , mecid : :: core :: primitive :: u8 , dests : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , weights : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , version_key : :: core :: primitive :: u64 , } , # [codec (index = 80)] # [doc = "--- Allows a hotkey to set weights for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `weights` (Vec<Vec<(Compact<u16>, Compact<u16>)>):"] # [doc = "\t- The weights to set for each network. [(uid, weight), ...]"] # [doc = ""] # [doc = "* `version_keys` (Vec<Compact<u64>>):"] # [doc = "\t- The network version keys to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] batch_set_weights { netuids : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , weights : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > > , version_keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , } , # [codec (index = 96)] # [doc = "---- Used to commit a hash of your weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit_hash` (`H256`):"] # [doc = "  - The hash representing the committed weights."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] commit_weights { netuid : :: core :: primitive :: u16 , commit_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 115)] # [doc = "---- Used to commit a hash of your weight values to later be revealed for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit_hash` (`H256`):"] # [doc = "  - The hash representing the committed weights."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] commit_mechanism_weights { netuid : :: core :: primitive :: u16 , mecid : :: core :: primitive :: u8 , commit_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 100)] # [doc = "--- Allows a hotkey to commit weight hashes for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `commit_hashes` (Vec<H256>):"] # [doc = "\t- The commit hashes to commit."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] batch_commit_weights { netuids : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , commit_hashes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > , } , # [codec (index = 97)] # [doc = "---- Used to reveal the weights for a previously committed hash."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `uids` (`Vec<u16>`):"] # [doc = "  - The uids for the weights being revealed."] # [doc = ""] # [doc = "* `values` (`Vec<u16>`):"] # [doc = "  - The values of the weights being revealed."] # [doc = ""] # [doc = "* `salt` (`Vec<u16>`):"] # [doc = "  - The salt used to generate the commit hash."] # [doc = ""] # [doc = "* `version_key` (`u64`):"] # [doc = "  - The network version key."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] reveal_weights { netuid : :: core :: primitive :: u16 , uids : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , values : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , salt : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , version_key : :: core :: primitive :: u64 , } , # [codec (index = 116)] # [doc = "---- Used to reveal the weights for a previously committed hash for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `uids` (`Vec<u16>`):"] # [doc = "  - The uids for the weights being revealed."] # [doc = ""] # [doc = "* `values` (`Vec<u16>`):"] # [doc = "  - The values of the weights being revealed."] # [doc = ""] # [doc = "* `salt` (`Vec<u16>`):"] # [doc = "  - The salt used to generate the commit hash."] # [doc = ""] # [doc = "* `version_key` (`u64`):"] # [doc = "  - The network version key."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] reveal_mechanism_weights { netuid : :: core :: primitive :: u16 , mecid : :: core :: primitive :: u8 , uids : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , values : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , salt : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , version_key : :: core :: primitive :: u64 , } , # [codec (index = 117)] # [doc = "---- Used to commit encrypted commit-reveal v3 weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealV3Disabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] # [doc = "---- Used to commit encrypted commit-reveal v3 weight values to later be revealed for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealV3Disabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] commit_crv3_mechanism_weights { netuid : :: core :: primitive :: u16 , mecid : :: core :: primitive :: u8 , commit : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , reveal_round : :: core :: primitive :: u64 , } , # [codec (index = 98)] # [doc = "---- The implementation for batch revealing committed weights."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `uids_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of uids for each set of weights being revealed."] # [doc = ""] # [doc = "* `values_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of values for each set of weights being revealed."] # [doc = ""] # [doc = "* `salts_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of salts used to generate the commit hashes."] # [doc = ""] # [doc = "* `version_keys` (`Vec<u64>`):"] # [doc = "  - A list of network version keys."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] # [doc = "* `InvalidInputLengths`:"] # [doc = "  - The input vectors are of mismatched lengths."] batch_reveal_weights { netuid : :: core :: primitive :: u16 , uids_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > , values_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > , salts_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > , version_keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > , } , # [codec (index = 65)] # [doc = "--- Allows delegates to decrease its take value."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>::Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The hotkey we are delegating (must be owned by the coldkey.)"] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- Subnet ID to decrease take for"] # [doc = ""] # [doc = "* 'take' (u16):"] # [doc = "\t- The new stake proportion that this hotkey takes from delegations."] # [doc = "       The new value can be between 0 and 11_796 and should be strictly"] # [doc = "       lower than the previous value. It T is the new value (rational number),"] # [doc = "       the the parameter is calculated as [65535 * T]. For example, 1% would be"] # [doc = "       [0.01 * 65535] = [655.35] = 655"] # [doc = ""] # [doc = "# Event:"] # [doc = "* TakeDecreased;"] # [doc = "\t- On successfully setting a decreased take for this hotkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- The hotkey we are delegating is not registered on the network."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- The hotkey we are delegating is not owned by the calling coldkey."] # [doc = ""] # [doc = "* 'DelegateTakeTooLow':"] # [doc = "\t- The delegate is setting a take which is not lower than the previous."] # [doc = ""] decrease_take { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , take : :: core :: primitive :: u16 , } , # [codec (index = 66)] # [doc = "--- Allows delegates to increase its take value. This call is rate-limited."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>::Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The hotkey we are delegating (must be owned by the coldkey.)"] # [doc = ""] # [doc = "* 'take' (u16):"] # [doc = "\t- The new stake proportion that this hotkey takes from delegations."] # [doc = "       The new value can be between 0 and 11_796 and should be strictly"] # [doc = "       greater than the previous value. T is the new value (rational number),"] # [doc = "       the the parameter is calculated as [65535 * T]. For example, 1% would be"] # [doc = "       [0.01 * 65535] = [655.35] = 655"] # [doc = ""] # [doc = "# Event:"] # [doc = "* TakeIncreased;"] # [doc = "\t- On successfully setting a increased take for this hotkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- The hotkey we are delegating is not registered on the network."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- The hotkey we are delegating is not owned by the calling coldkey."] # [doc = ""] # [doc = "* 'DelegateTakeTooHigh':"] # [doc = "\t- The delegate is setting a take which is not greater than the previous."] # [doc = ""] increase_take { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , take : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "--- Adds stake to a hotkey. The call is made from a coldkey account."] # [doc = "This delegates stake to the hotkey."] # [doc = ""] # [doc = "Note: the coldkey account may own the hotkey, in which case they are"] # [doc = "delegating to themselves."] # [doc = ""] # [doc = "# Args:"] # [doc = " * 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = " * 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = " * 'amount_staked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = "# Event:"] # [doc = " * StakeAdded;"] # [doc = "\t- On the successfully adding stake to a global account."] # [doc = ""] # [doc = "# Raises:"] # [doc = " * 'NotEnoughBalanceToStake':"] # [doc = "\t- Not enough balance on the coldkey to add onto the global account."] # [doc = ""] # [doc = " * 'NonAssociatedColdKey':"] # [doc = "\t- The calling coldkey is not associated with this hotkey."] # [doc = ""] # [doc = " * 'BalanceWithdrawalError':"] # [doc = " \t- Errors stemming from transaction pallet."] # [doc = ""] add_stake { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , amount_staked : :: core :: primitive :: u64 , } , # [codec (index = 3)] # [doc = "Remove stake from the staking account. The call must be made"] # [doc = "from the coldkey account attached to the neuron metadata. Only this key"] # [doc = "has permission to make staking and unstaking requests."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = "* 'amount_unstaked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "\t- On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* 'NotEnoughStakeToWithdraw':"] # [doc = "\t- Thrown if there is not enough stake on the hotkey to withdwraw this amount."] # [doc = ""] remove_stake { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , amount_unstaked : :: core :: primitive :: u64 , } , # [codec (index = 4)] # [doc = "Serves or updates axon /prometheus information for the neuron associated with the caller. If the caller is"] # [doc = "already registered the metadata is updated. If the caller is not registered this call throws NotRegistered."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u64):"] # [doc = "\t- The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u64):"] # [doc = "\t- The endpoint ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The endpoint port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The endpoint ip version as a u8, 4 or 6."] # [doc = ""] # [doc = "* 'protocol' (u8):"] # [doc = "\t- UDP:1 or TCP:0"] # [doc = ""] # [doc = "* 'placeholder1' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'placeholder2' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "# Event:"] # [doc = "* AxonServed;"] # [doc = "\t- On successfully serving the axon info."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'InvalidIpType':"] # [doc = "\t- The ip type is not 4 or 6."] # [doc = ""] # [doc = "* 'InvalidIpAddress':"] # [doc = "\t- The numerically encoded ip address does not resolve to a proper ip."] # [doc = ""] # [doc = "* 'ServingRateLimitExceeded':"] # [doc = "\t- Attempting to set prometheus information withing the rate limit min."] # [doc = ""] serve_axon { netuid : :: core :: primitive :: u16 , version : :: core :: primitive :: u32 , ip : :: core :: primitive :: u128 , port : :: core :: primitive :: u16 , ip_type : :: core :: primitive :: u8 , protocol : :: core :: primitive :: u8 , placeholder1 : :: core :: primitive :: u8 , placeholder2 : :: core :: primitive :: u8 , } , # [codec (index = 40)] # [doc = "Same as `serve_axon` but takes a certificate as an extra optional argument."] # [doc = "Serves or updates axon /prometheus information for the neuron associated with the caller. If the caller is"] # [doc = "already registered the metadata is updated. If the caller is not registered this call throws NotRegistered."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u64):"] # [doc = "\t- The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u64):"] # [doc = "\t- The endpoint ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The endpoint port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The endpoint ip version as a u8, 4 or 6."] # [doc = ""] # [doc = "* 'protocol' (u8):"] # [doc = "\t- UDP:1 or TCP:0"] # [doc = ""] # [doc = "* 'placeholder1' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'placeholder2' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'certificate' (Vec<u8>):"] # [doc = "    - TLS certificate for inter neuron communitation."] # [doc = ""] # [doc = "# Event:"] # [doc = "* AxonServed;"] # [doc = "\t- On successfully serving the axon info."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'InvalidIpType':"] # [doc = "\t- The ip type is not 4 or 6."] # [doc = ""] # [doc = "* 'InvalidIpAddress':"] # [doc = "\t- The numerically encoded ip address does not resolve to a proper ip."] # [doc = ""] # [doc = "* 'ServingRateLimitExceeded':"] # [doc = "\t- Attempting to set prometheus information withing the rate limit min."] # [doc = ""] serve_axon_tls { netuid : :: core :: primitive :: u16 , version : :: core :: primitive :: u32 , ip : :: core :: primitive :: u128 , port : :: core :: primitive :: u16 , ip_type : :: core :: primitive :: u8 , protocol : :: core :: primitive :: u8 , placeholder1 : :: core :: primitive :: u8 , placeholder2 : :: core :: primitive :: u8 , certificate : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 5)] # [doc = "---- Set prometheus information for the neuron."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u16):"] # [doc = "\t-  The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u128):"] # [doc = "\t- The prometheus ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The prometheus port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The ip type v4 or v6."] # [doc = ""] serve_prometheus { netuid : :: core :: primitive :: u16 , version : :: core :: primitive :: u32 , ip : :: core :: primitive :: u128 , port : :: core :: primitive :: u16 , ip_type : :: core :: primitive :: u8 , } , # [codec (index = 6)] # [doc = "---- Registers a new neuron to the subnetwork."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'block_number' ( u64 ):"] # [doc = "\t- Block hash used to prove work done."] # [doc = ""] # [doc = "* 'nonce' ( u64 ):"] # [doc = "\t- Positive integer nonce used in POW."] # [doc = ""] # [doc = "* 'work' ( Vec<u8> ):"] # [doc = "\t- Vector encoded bytes representing work done."] # [doc = ""] # [doc = "* 'hotkey' ( T::AccountId ):"] # [doc = "\t- Hotkey to be registered to the network."] # [doc = ""] # [doc = "* 'coldkey' ( T::AccountId ):"] # [doc = "\t- Associated coldkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* NeuronRegistered;"] # [doc = "\t- On successfully registering a uid to a neuron slot on a subnetwork."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to register to a non existent network."] # [doc = ""] # [doc = "* 'TooManyRegistrationsThisBlock':"] # [doc = "\t- This registration exceeds the total allowed on this network this block."] # [doc = ""] # [doc = "* 'HotKeyAlreadyRegisteredInSubNet':"] # [doc = "\t- The hotkey is already registered on this network."] # [doc = ""] # [doc = "* 'InvalidWorkBlock':"] # [doc = "\t- The work has been performed on a stale, future, or non existent block."] # [doc = ""] # [doc = "* 'InvalidDifficulty':"] # [doc = "\t- The work does not match the difficulty."] # [doc = ""] # [doc = "* 'InvalidSeal':"] # [doc = "\t- The seal is incorrect."] # [doc = ""] register { netuid : :: core :: primitive :: u16 , block_number : :: core :: primitive :: u64 , nonce : :: core :: primitive :: u64 , work : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 62)] # [doc = "Register the hotkey to root network"] root_register { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 7)] # [doc = "User register a new subnetwork via burning token"] burned_register { netuid : :: core :: primitive :: u16 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 70)] # [doc = "The extrinsic for user to change its hotkey in subnet or all subnets."] swap_hotkey { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: option :: Option < :: core :: primitive :: u16 > , } , # [codec (index = 71)] # [doc = "The extrinsic for user to change the coldkey associated with their account."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - The origin of the call, must be signed by the old coldkey."] # [doc = "* `old_coldkey` - The current coldkey associated with the account."] # [doc = "* `new_coldkey` - The new coldkey to be associated with the account."] # [doc = ""] # [doc = "# Returns"] # [doc = ""] # [doc = "Returns a `DispatchResultWithPostInfo` indicating success or failure of the operation."] # [doc = ""] # [doc = "# Weight"] # [doc = ""] # [doc = "Weight is calculated based on the number of database reads and writes."] swap_coldkey { old_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , swap_cost : :: core :: primitive :: u64 , } , # [codec (index = 75)] # [doc = "Sets the childkey take for a given hotkey."] # [doc = ""] # [doc = "This function allows a coldkey to set the childkey take for a given hotkey."] # [doc = "The childkey take determines the proportion of stake that the hotkey keeps for itself"] # [doc = "when distributing stake to its children."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` (<T as frame_system::Config>::RuntimeOrigin):"] # [doc = "    - The signature of the calling coldkey. Setting childkey take can only be done by the coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey for which the childkey take will be set."] # [doc = ""] # [doc = "* `take` (u16):"] # [doc = "    - The new childkey take value. This is a percentage represented as a value between 0 and 10000,"] # [doc = "      where 10000 represents 100%."] # [doc = ""] # [doc = "# Events:"] # [doc = "* `ChildkeyTakeSet`:"] # [doc = "    - On successfully setting the childkey take for a hotkey."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - The coldkey does not own the hotkey."] # [doc = "* `InvalidChildkeyTake`:"] # [doc = "    - The provided take value is invalid (greater than the maximum allowed take)."] # [doc = "* `TxChildkeyTakeRateLimitExceeded`:"] # [doc = "    - The rate limit for changing childkey take has been exceeded."] # [doc = ""] set_childkey_take { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , take : :: core :: primitive :: u16 , } , # [codec (index = 69)] # [doc = "Sets the transaction rate limit for changing childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `tx_rate_limit` - The new rate limit in blocks."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] sudo_set_tx_childkey_take_rate_limit { tx_rate_limit : :: core :: primitive :: u64 , } , # [codec (index = 76)] # [doc = "Sets the minimum allowed childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `take` - The new minimum childkey take value."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] sudo_set_min_childkey_take { take : :: core :: primitive :: u16 , } , # [codec (index = 77)] # [doc = "Sets the maximum allowed childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `take` - The new maximum childkey take value."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] sudo_set_max_childkey_take { take : :: core :: primitive :: u16 , } , # [codec (index = 59)] # [doc = "User register a new subnetwork"] register_network { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 61)] # [doc = "Remove a user's subnetwork"] # [doc = "The caller must be the owner of the network"] dissolve_network { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , } , # [codec (index = 67)] # [doc = "Set a single child for a given hotkey on a specified network."] # [doc = ""] # [doc = "This function allows a coldkey to set a single child for a given hotkey on a specified network."] # [doc = "The proportion of the hotkey's stake to be allocated to the child is also specified."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` (<T as frame_system::Config>::RuntimeOrigin):"] # [doc = "    - The signature of the calling coldkey. Setting a hotkey child can only be done by the coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey which will be assigned the child."] # [doc = ""] # [doc = "* `child` (T::AccountId):"] # [doc = "    - The child which will be assigned to the hotkey."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "    - The u16 network identifier where the childkey will exist."] # [doc = ""] # [doc = "* `proportion` (u64):"] # [doc = "    - Proportion of the hotkey's stake to be given to the child, the value must be u64 normalized."] # [doc = ""] # [doc = "# Events:"] # [doc = "* `ChildAddedSingular`:"] # [doc = "    - On successfully registering a child to a hotkey."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `MechanismDoesNotExist`:"] # [doc = "    - Attempting to register to a non-existent network."] # [doc = "* `RegistrationNotPermittedOnRootSubnet`:"] # [doc = "    - Attempting to register a child on the root network."] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - The coldkey does not own the hotkey or the child is the same as the hotkey."] # [doc = "* `HotKeyAccountNotExists`:"] # [doc = "    - The hotkey account does not exist."] # [doc = ""] # [doc = "# Detailed Explanation of Checks:"] # [doc = "1. **Signature Verification**: Ensures that the caller has signed the transaction, verifying the coldkey."] # [doc = "2. **Root Network Check**: Ensures that the delegation is not on the root network, as child hotkeys are not valid on the root."] # [doc = "3. **Network Existence Check**: Ensures that the specified network exists."] # [doc = "4. **Ownership Verification**: Ensures that the coldkey owns the hotkey."] # [doc = "5. **Hotkey Account Existence Check**: Ensures that the hotkey account already exists."] # [doc = "6. **Child-Hotkey Distinction**: Ensures that the child is not the same as the hotkey."] # [doc = "7. **Old Children Cleanup**: Removes the hotkey from the parent list of its old children."] # [doc = "8. **New Children Assignment**: Assigns the new child to the hotkey and updates the parent list for the new child."] set_children { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , children : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > , } , # [codec (index = 73)] # [doc = "Schedules a coldkey swap operation to be executed at a future block."] # [doc = ""] # [doc = "This function allows a user to schedule the swapping of their coldkey to a new one"] # [doc = "at a specified future block. The swap is not executed immediately but is scheduled"] # [doc = "to occur at the specified block number."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - The origin of the call, which should be signed by the current coldkey owner."] # [doc = "* `new_coldkey` - The account ID of the new coldkey that will replace the current one."] # [doc = "* `when` - The block number at which the coldkey swap should be executed."] # [doc = ""] # [doc = "# Returns"] # [doc = ""] # [doc = "Returns a `DispatchResultWithPostInfo` indicating whether the scheduling was successful."] # [doc = ""] # [doc = "# Errors"] # [doc = ""] # [doc = "This function may return an error if:"] # [doc = "* The origin is not signed."] # [doc = "* The scheduling fails due to conflicts or system constraints."] # [doc = ""] # [doc = "# Notes"] # [doc = ""] # [doc = "- The actual swap is not performed by this function. It merely schedules the swap operation."] # [doc = "- The weight of this call is set to a fixed value and may need adjustment based on benchmarking."] # [doc = ""] # [doc = "# TODO"] # [doc = ""] # [doc = "- Implement proper weight calculation based on the complexity of the operation."] # [doc = "- Consider adding checks to prevent scheduling too far into the future."] # [doc = "TODO: Benchmark this call"] schedule_swap_coldkey { new_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 68)] # [doc = "---- Set prometheus information for the neuron."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u16):"] # [doc = "\t-  The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u128):"] # [doc = "\t- The prometheus ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The prometheus port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The ip type v4 or v6."] # [doc = ""] set_identity { name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , url : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , github_repo : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , image : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , discord : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , description : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , additional : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 78)] # [doc = "---- Set the identity information for a subnet."] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the calling coldkey, which must be the owner of the subnet."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "    - The unique network identifier of the subnet."] # [doc = ""] # [doc = "* `subnet_name` (Vec<u8>):"] # [doc = "    - The name of the subnet."] # [doc = ""] # [doc = "* `github_repo` (Vec<u8>):"] # [doc = "    - The GitHub repository associated with the subnet identity."] # [doc = ""] # [doc = "* `subnet_contact` (Vec<u8>):"] # [doc = "    - The contact information for the subnet."] set_subnet_identity { netuid : :: core :: primitive :: u16 , subnet_name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , github_repo : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , subnet_contact : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , subnet_url : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , discord : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , description : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , logo_url : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , additional : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 79)] # [doc = "User register a new subnetwork"] register_network_with_identity { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , identity : :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 > , } , # [codec (index = 83)] # [doc = "---- The implementation for the extrinsic unstake_all: Removes all stake from a hotkey account across all subnets and adds it onto a coldkey."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The associated hotkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "    - On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `NotRegistered`:"] # [doc = "    - Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* `NotEnoughStakeToWithdraw`:"] # [doc = "    - Thrown if there is not enough stake on the hotkey to withdraw this amount."] # [doc = ""] # [doc = "* `TxRateLimitExceeded`:"] # [doc = "    - Thrown if key has hit transaction rate limit"] unstake_all { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 84)] # [doc = "---- The implementation for the extrinsic unstake_all: Removes all stake from a hotkey account across all subnets and adds it onto a coldkey."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The associated hotkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "    - On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `NotRegistered`:"] # [doc = "    - Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* `NotEnoughStakeToWithdraw`:"] # [doc = "    - Thrown if there is not enough stake on the hotkey to withdraw this amount."] # [doc = ""] # [doc = "* `TxRateLimitExceeded`:"] # [doc = "    - Thrown if key has hit transaction rate limit"] unstake_all_alpha { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 85)] # [doc = "---- The implementation for the extrinsic move_stake: Moves specified amount of stake from a hotkey to another across subnets."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `origin_hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to move stake from."] # [doc = ""] # [doc = "* `destination_hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to move stake to."] # [doc = ""] # [doc = "* `origin_netuid` (T::AccountId):"] # [doc = "    - The subnet ID to move stake from."] # [doc = ""] # [doc = "* `destination_netuid` (T::AccountId):"] # [doc = "    - The subnet ID to move stake to."] # [doc = ""] # [doc = "* `alpha_amount` (T::AccountId):"] # [doc = "    - The alpha stake amount to move."] # [doc = ""] move_stake { origin_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , destination_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , origin_netuid : :: core :: primitive :: u16 , destination_netuid : :: core :: primitive :: u16 , alpha_amount : :: core :: primitive :: u64 , } , # [codec (index = 86)] # [doc = "Transfers a specified amount of stake from one coldkey to another, optionally across subnets,"] # [doc = "while keeping the same hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the `origin_coldkey`."] # [doc = "* `destination_coldkey` - The coldkey to which the stake is transferred."] # [doc = "* `hotkey` - The hotkey associated with the stake."] # [doc = "* `origin_netuid` - The network/subnet ID to move stake from."] # [doc = "* `destination_netuid` - The network/subnet ID to move stake to (for cross-subnet transfer)."] # [doc = "* `alpha_amount` - The amount of stake to transfer."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The origin is not signed by the correct coldkey."] # [doc = "* Either subnet does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(origin_coldkey, hotkey, origin_netuid)`."] # [doc = "* The transfer amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeTransferred` event on success."] transfer_stake { destination_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , origin_netuid : :: core :: primitive :: u16 , destination_netuid : :: core :: primitive :: u16 , alpha_amount : :: core :: primitive :: u64 , } , # [codec (index = 87)] # [doc = "Swaps a specified amount of stake from one subnet to another, while keeping the same coldkey and hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey whose stake is being swapped."] # [doc = "* `origin_netuid` - The network/subnet ID from which stake is removed."] # [doc = "* `destination_netuid` - The network/subnet ID to which stake is added."] # [doc = "* `alpha_amount` - The amount of stake to swap."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the correct coldkey (i.e., `coldkey_owns_hotkey` fails)."] # [doc = "* Either `origin_netuid` or `destination_netuid` does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(coldkey, hotkey, origin_netuid)`."] # [doc = "* The swap amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeSwapped` event on success."] swap_stake { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , origin_netuid : :: core :: primitive :: u16 , destination_netuid : :: core :: primitive :: u16 , alpha_amount : :: core :: primitive :: u64 , } , # [codec (index = 88)] # [doc = "--- Adds stake to a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (lower) the staking should execute."] # [doc = ""] # [doc = "In case if slippage occurs and the price shall move beyond the limit"] # [doc = "price, the staking order may execute only partially or not execute"] # [doc = "at all."] # [doc = ""] # [doc = "# Args:"] # [doc = " * 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = " * 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = " * 'amount_staked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = " * 'limit_price' (u64):"] # [doc = "\t- The limit price expressed in units of RAO per one Alpha."] # [doc = ""] # [doc = " * 'allow_partial' (bool):"] # [doc = "\t- Allows partial execution of the amount. If set to false, this becomes"] # [doc = "      fill or kill type or order."] # [doc = ""] # [doc = "# Event:"] # [doc = " * StakeAdded;"] # [doc = "\t- On the successfully adding stake to a global account."] # [doc = ""] # [doc = "# Raises:"] # [doc = " * 'NotEnoughBalanceToStake':"] # [doc = "\t- Not enough balance on the coldkey to add onto the global account."] # [doc = ""] # [doc = " * 'NonAssociatedColdKey':"] # [doc = "\t- The calling coldkey is not associated with this hotkey."] # [doc = ""] # [doc = " * 'BalanceWithdrawalError':"] # [doc = " \t- Errors stemming from transaction pallet."] # [doc = ""] add_stake_limit { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , amount_staked : :: core :: primitive :: u64 , limit_price : :: core :: primitive :: u64 , allow_partial : :: core :: primitive :: bool , } , # [codec (index = 89)] # [doc = "--- Removes stake from a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (higher) the staking should execute."] # [doc = ""] # [doc = "In case if slippage occurs and the price shall move beyond the limit"] # [doc = "price, the staking order may execute only partially or not execute"] # [doc = "at all."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = "* 'amount_unstaked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = " * 'limit_price' (u64):"] # [doc = "    - The limit price expressed in units of RAO per one Alpha."] # [doc = ""] # [doc = " * 'allow_partial' (bool):"] # [doc = "    - Allows partial execution of the amount. If set to false, this becomes"] # [doc = "      fill or kill type or order."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "\t- On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* 'NotEnoughStakeToWithdraw':"] # [doc = "\t- Thrown if there is not enough stake on the hotkey to withdwraw this amount."] # [doc = ""] remove_stake_limit { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , amount_unstaked : :: core :: primitive :: u64 , limit_price : :: core :: primitive :: u64 , allow_partial : :: core :: primitive :: bool , } , # [codec (index = 90)] # [doc = "Swaps a specified amount of stake from one subnet to another, while keeping the same coldkey and hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey whose stake is being swapped."] # [doc = "* `origin_netuid` - The network/subnet ID from which stake is removed."] # [doc = "* `destination_netuid` - The network/subnet ID to which stake is added."] # [doc = "* `alpha_amount` - The amount of stake to swap."] # [doc = "* `limit_price` - The limit price expressed in units of RAO per one Alpha."] # [doc = "* `allow_partial` - Allows partial execution of the amount. If set to false, this becomes fill or kill type or order."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the correct coldkey (i.e., `coldkey_owns_hotkey` fails)."] # [doc = "* Either `origin_netuid` or `destination_netuid` does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(coldkey, hotkey, origin_netuid)`."] # [doc = "* The swap amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeSwapped` event on success."] swap_stake_limit { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , origin_netuid : :: core :: primitive :: u16 , destination_netuid : :: core :: primitive :: u16 , alpha_amount : :: core :: primitive :: u64 , limit_price : :: core :: primitive :: u64 , allow_partial : :: core :: primitive :: bool , } , # [codec (index = 91)] # [doc = "Attempts to associate a hotkey with a coldkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey to associate with the coldkey."] # [doc = ""] # [doc = "# Note"] # [doc = "Will charge based on the weight even if the hotkey is already associated with a coldkey."] try_associate_hotkey { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 92)] # [doc = "Initiates a call on a subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be signed by the subnet owner."] # [doc = "* `netuid` - The unique identifier of the subnet on which the call is being initiated."] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `FirstEmissionBlockNumberSet` event on success."] start_call { netuid : :: core :: primitive :: u16 , } , # [codec (index = 93)] # [doc = "Attempts to associate a hotkey with an EVM key."] # [doc = ""] # [doc = "The signature will be checked to see if the recovered public key matches the `evm_key` provided."] # [doc = ""] # [doc = "The EVM key is expected to sign the message according to this formula to produce the signature:"] # [doc = "```text"] # [doc = "keccak_256(hotkey ++ keccak_256(block_number))"] # [doc = "```"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the `hotkey`."] # [doc = "* `netuid` - The netuid that the `hotkey` belongs to."] # [doc = "* `evm_key` - The EVM key to associate with the `hotkey`."] # [doc = "* `block_number` - The block number used in the `signature`."] # [doc = "* `signature` - A signed message by the `evm_key` containing the `hotkey` and the hashed `block_number`."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed."] # [doc = "* The hotkey does not belong to the subnet identified by the netuid."] # [doc = "* The EVM key cannot be recovered from the signature."] # [doc = "* The EVM key recovered from the signature does not match the given EVM key."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `EvmKeyAssociated` event on success"] associate_evm_key { netuid : :: core :: primitive :: u16 , evm_key : :: subxt :: ext :: subxt_core :: utils :: H160 , block_number : :: core :: primitive :: u64 , signature : [:: core :: primitive :: u8 ; 65usize] , } , # [codec (index = 101)] # [doc = "Recycles alpha from a cold/hot key pair, reducing AlphaOut on a subnet"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call (must be signed by the coldkey)"] # [doc = "* `hotkey` - The hotkey account"] # [doc = "* `amount` - The amount of alpha to recycle"] # [doc = "* `netuid` - The subnet ID"] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `TokensRecycled` event on success."] recycle_alpha { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , netuid : :: core :: primitive :: u16 , } , # [codec (index = 102)] # [doc = "Burns alpha from a cold/hot key pair without reducing `AlphaOut`"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call (must be signed by the coldkey)"] # [doc = "* `hotkey` - The hotkey account"] # [doc = "* `amount` - The amount of alpha to burn"] # [doc = "* `netuid` - The subnet ID"] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `TokensBurned` event on success."] burn_alpha { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , netuid : :: core :: primitive :: u16 , } , # [codec (index = 109)] # [doc = "Sets the pending childkey cooldown (in blocks). Root only."] set_pending_childkey_cooldown { cooldown : :: core :: primitive :: u64 , } , # [codec (index = 103)] # [doc = "Removes all stake from a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (higher) the staking should execute."] # [doc = "Without limit_price it remove all the stake similar to `remove_stake` extrinsic"] remove_stake_full_limit { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , limit_price : :: core :: option :: Option < :: core :: primitive :: u64 > , } , # [codec (index = 110)] # [doc = "Register a new leased network."] # [doc = ""] # [doc = "The crowdloan's contributions are used to compute the share of the emissions that the contributors"] # [doc = "will receive as dividends."] # [doc = ""] # [doc = "The leftover cap is refunded to the contributors and the beneficiary."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `emissions_share` (Percent):"] # [doc = "    - The share of the emissions that the contributors will receive as dividends."] # [doc = ""] # [doc = "* `end_block` (Option<BlockNumberFor<T>>):"] # [doc = "    - The block at which the lease will end. If not defined, the lease is perpetual."] register_leased_network { emissions_share : runtime_types :: sp_arithmetic :: per_things :: Percent , end_block : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 111)] # [doc = "Terminate a lease."] # [doc = ""] # [doc = "The beneficiary can terminate the lease after the end block has passed and get the subnet ownership."] # [doc = "The subnet is transferred to the beneficiary and the lease is removed from storage."] # [doc = ""] # [doc = "**The hotkey must be owned by the beneficiary coldkey.**"] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `lease_id` (LeaseId):"] # [doc = "    - The ID of the lease to terminate."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey of the beneficiary to mark as subnet owner hotkey."] terminate_lease { lease_id : :: core :: primitive :: u32 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 112)] # [doc = "Updates the symbol for a subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or root."] # [doc = "* `netuid` - The unique identifier of the subnet on which the symbol is being set."] # [doc = "* `symbol` - The symbol to set for the subnet."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the subnet owner."] # [doc = "* The symbol does not exist."] # [doc = "* The symbol is already in use by another subnet."] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `SymbolUpdated` event on success."] update_symbol { netuid : :: core :: primitive :: u16 , symbol : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 113)] # [doc = "---- Used to commit timelock encrypted commit-reveal weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "* commit_reveal_version (`u16`):"] # [doc = "    - The client (bittensor-drand) version"] commit_timelocked_weights { netuid : :: core :: primitive :: u16 , commit : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , reveal_round : :: core :: primitive :: u64 , commit_reveal_version : :: core :: primitive :: u16 , } , # [codec (index = 114)] # [doc = "Set the autostake destination hotkey for a coldkey."] # [doc = ""] # [doc = "The caller selects a hotkey where all future rewards"] # [doc = "will be automatically staked."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to designate as the autostake destination."] set_coldkey_auto_stake_hotkey { netuid : :: core :: primitive :: u16 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 118)] # [doc = "---- Used to commit timelock encrypted commit-reveal weight values to later be revealed for"] # [doc = "a mechanism."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "* commit_reveal_version (`u16`):"] # [doc = "    - The client (bittensor-drand) version"] commit_timelocked_mechanism_weights { netuid : :: core :: primitive :: u16 , mecid : :: core :: primitive :: u8 , commit : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , reveal_round : :: core :: primitive :: u64 , commit_reveal_version : :: core :: primitive :: u16 , } , # [codec (index = 120)] # [doc = "Remove a subnetwork"] # [doc = "The caller must be root"] root_dissolve_network { netuid : :: core :: primitive :: u16 , } , # [codec (index = 121)] # [doc = "--- Claims the root emissions for a coldkey."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "# Event:"] # [doc = "* RootClaimed;"] # [doc = "\t- On the successfully claiming the root emissions for a coldkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = ""] claim_root { subnets : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , } , # [codec (index = 122)] # [doc = "--- Sets the root claim type for the coldkey."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "# Event:"] # [doc = "* RootClaimTypeSet;"] # [doc = "\t- On the successfully setting the root claim type for the coldkey."] # [doc = ""] set_root_claim_type { new_root_claim_type : runtime_types :: pallet_subtensor :: pallet :: RootClaimTypeEnum , } , # [codec (index = 123)] # [doc = "--- Sets root claim number (sudo extrinsic). Zero disables auto-claim."] sudo_set_num_root_claims { new_value : :: core :: primitive :: u64 , } , # [codec (index = 124)] # [doc = "--- Sets root claim threshold for subnet (sudo or owner origin)."] sudo_set_root_claim_threshold { netuid : :: core :: primitive :: u16 , new_value : :: core :: primitive :: u64 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ChainIdentityV2 { pub name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub url : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub github_repo : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub image : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub discord : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub description : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub additional : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The root network does not exist."] RootNetworkDoesNotExist , # [codec (index = 1)] # [doc = "The user is trying to serve an axon which is not of type 4 (IPv4) or 6 (IPv6)."] InvalidIpType , # [codec (index = 2)] # [doc = "An invalid IP address is passed to the serve function."] InvalidIpAddress , # [codec (index = 3)] # [doc = "An invalid port is passed to the serve function."] InvalidPort , # [codec (index = 4)] # [doc = "The hotkey is not registered in subnet"] HotKeyNotRegisteredInSubNet , # [codec (index = 5)] # [doc = "The hotkey does not exists"] HotKeyAccountNotExists , # [codec (index = 6)] # [doc = "The hotkey is not registered in any subnet."] HotKeyNotRegisteredInNetwork , # [codec (index = 7)] # [doc = "Request to stake, unstake or subscribe is made by a coldkey that is not associated with"] # [doc = "the hotkey account."] NonAssociatedColdKey , # [codec (index = 8)] # [doc = "DEPRECATED: Stake amount to withdraw is zero."] # [doc = "The caller does not have enought stake to perform this action."] NotEnoughStake , # [codec (index = 9)] # [doc = "The caller is requesting removing more stake than there exists in the staking account."] # [doc = "See: \"[remove_stake()]\"."] NotEnoughStakeToWithdraw , # [codec (index = 10)] # [doc = "The caller is requesting to set weights but the caller has less than minimum stake"] # [doc = "required to set weights (less than WeightsMinStake)."] NotEnoughStakeToSetWeights , # [codec (index = 11)] # [doc = "The parent hotkey doesn't have enough own stake to set childkeys."] NotEnoughStakeToSetChildkeys , # [codec (index = 12)] # [doc = "The caller is requesting adding more stake than there exists in the coldkey account."] # [doc = "See: \"[add_stake()]\""] NotEnoughBalanceToStake , # [codec (index = 13)] # [doc = "The caller is trying to add stake, but for some reason the requested amount could not be"] # [doc = "withdrawn from the coldkey account."] BalanceWithdrawalError , # [codec (index = 14)] # [doc = "Unsuccessfully withdraw, balance could be zero (can not make account exist) after"] # [doc = "withdrawal."] ZeroBalanceAfterWithdrawn , # [codec (index = 15)] # [doc = "The caller is attempting to set non-self weights without being a permitted validator."] NeuronNoValidatorPermit , # [codec (index = 16)] # [doc = "The caller is attempting to set the weight keys and values but these vectors have"] # [doc = "different size."] WeightVecNotEqualSize , # [codec (index = 17)] # [doc = "The caller is attempting to set weights with duplicate UIDs in the weight matrix."] DuplicateUids , # [codec (index = 18)] # [doc = "The caller is attempting to set weight to at least one UID that does not exist in the"] # [doc = "metagraph."] UidVecContainInvalidOne , # [codec (index = 19)] # [doc = "The dispatch is attempting to set weights on chain with fewer elements than are allowed."] WeightVecLengthIsLow , # [codec (index = 20)] # [doc = "Number of registrations in this block exceeds the allowed number (i.e., exceeds the"] # [doc = "subnet hyperparameter \"max_regs_per_block\")."] TooManyRegistrationsThisBlock , # [codec (index = 21)] # [doc = "The caller is requesting registering a neuron which already exists in the active set."] HotKeyAlreadyRegisteredInSubNet , # [codec (index = 22)] # [doc = "The new hotkey is the same as old one"] NewHotKeyIsSameWithOld , # [codec (index = 23)] # [doc = "The supplied PoW hash block is in the future or negative."] InvalidWorkBlock , # [codec (index = 24)] # [doc = "The supplied PoW hash block does not meet the network difficulty."] InvalidDifficulty , # [codec (index = 25)] # [doc = "The supplied PoW hash seal does not match the supplied work."] InvalidSeal , # [codec (index = 26)] # [doc = "The dispatch is attempting to set weights on chain with weight value exceeding the"] # [doc = "configured max weight limit (currently `u16::MAX`)."] MaxWeightExceeded , # [codec (index = 27)] # [doc = "The hotkey is attempting to become a delegate when the hotkey is already a delegate."] HotKeyAlreadyDelegate , # [codec (index = 28)] # [doc = "A transactor exceeded the rate limit for setting weights."] SettingWeightsTooFast , # [codec (index = 29)] # [doc = "A validator is attempting to set weights from a validator with incorrect weight version."] IncorrectWeightVersionKey , # [codec (index = 30)] # [doc = "An axon or prometheus serving exceeded the rate limit for a registered neuron."] ServingRateLimitExceeded , # [codec (index = 31)] # [doc = "The caller is attempting to set weights with more UIDs than allowed."] UidsLengthExceedUidsInSubNet , # [codec (index = 32)] # [doc = "A transactor exceeded the rate limit for add network transaction."] NetworkTxRateLimitExceeded , # [codec (index = 33)] # [doc = "A transactor exceeded the rate limit for delegate transaction."] DelegateTxRateLimitExceeded , # [codec (index = 34)] # [doc = "A transactor exceeded the rate limit for setting or swapping hotkey."] HotKeySetTxRateLimitExceeded , # [codec (index = 35)] # [doc = "A transactor exceeded the rate limit for staking."] StakingRateLimitExceeded , # [codec (index = 36)] # [doc = "Registration is disabled."] SubNetRegistrationDisabled , # [codec (index = 37)] # [doc = "The number of registration attempts exceeded the allowed number in the interval."] TooManyRegistrationsThisInterval , # [codec (index = 38)] # [doc = "The hotkey is required to be the origin."] TransactorAccountShouldBeHotKey , # [codec (index = 39)] # [doc = "Faucet is disabled."] FaucetDisabled , # [codec (index = 40)] # [doc = "Not a subnet owner."] NotSubnetOwner , # [codec (index = 41)] # [doc = "Operation is not permitted on the root subnet."] RegistrationNotPermittedOnRootSubnet , # [codec (index = 42)] # [doc = "A hotkey with too little stake is attempting to join the root subnet."] StakeTooLowForRoot , # [codec (index = 43)] # [doc = "All subnets are in the immunity period."] AllNetworksInImmunity , # [codec (index = 44)] # [doc = "Not enough balance to pay swapping hotkey."] NotEnoughBalanceToPaySwapHotKey , # [codec (index = 45)] # [doc = "Netuid does not match for setting root network weights."] NotRootSubnet , # [codec (index = 46)] # [doc = "Can not set weights for the root network."] CanNotSetRootNetworkWeights , # [codec (index = 47)] # [doc = "No neuron ID is available."] NoNeuronIdAvailable , # [codec (index = 48)] # [doc = "Delegate take is too low."] DelegateTakeTooLow , # [codec (index = 49)] # [doc = "Delegate take is too high."] DelegateTakeTooHigh , # [codec (index = 50)] # [doc = "No commit found for the provided hotkey+netuid combination when attempting to reveal the"] # [doc = "weights."] NoWeightsCommitFound , # [codec (index = 51)] # [doc = "Committed hash does not equal the hashed reveal data."] InvalidRevealCommitHashNotMatch , # [codec (index = 52)] # [doc = "Attempting to call set_weights when commit/reveal is enabled"] CommitRevealEnabled , # [codec (index = 53)] # [doc = "Attemtping to commit/reveal weights when disabled."] CommitRevealDisabled , # [codec (index = 54)] # [doc = "Attempting to set alpha high/low while disabled"] LiquidAlphaDisabled , # [codec (index = 55)] # [doc = "Alpha high is too low: alpha_high > 0.8"] AlphaHighTooLow , # [codec (index = 56)] # [doc = "Alpha low is out of range: alpha_low > 0 && alpha_low < 0.8"] AlphaLowOutOfRange , # [codec (index = 57)] # [doc = "The coldkey has already been swapped"] ColdKeyAlreadyAssociated , # [codec (index = 58)] # [doc = "The coldkey balance is not enough to pay for the swap"] NotEnoughBalanceToPaySwapColdKey , # [codec (index = 59)] # [doc = "The coldkey is in arbitration"] ColdkeyIsInArbitration , # [codec (index = 60)] # [doc = "Attempting to set an invalid child for a hotkey on a network."] InvalidChild , # [codec (index = 61)] # [doc = "Duplicate child when setting children."] DuplicateChild , # [codec (index = 62)] # [doc = "Proportion overflow when setting children."] ProportionOverflow , # [codec (index = 63)] # [doc = "Too many children MAX 5."] TooManyChildren , # [codec (index = 64)] # [doc = "Default transaction rate limit exceeded."] TxRateLimitExceeded , # [codec (index = 65)] # [doc = "Swap already scheduled."] SwapAlreadyScheduled , # [codec (index = 66)] # [doc = "failed to swap coldkey"] FailedToSchedule , # [codec (index = 67)] # [doc = "New coldkey is hotkey"] NewColdKeyIsHotkey , # [codec (index = 68)] # [doc = "Childkey take is invalid."] InvalidChildkeyTake , # [codec (index = 69)] # [doc = "Childkey take rate limit exceeded."] TxChildkeyTakeRateLimitExceeded , # [codec (index = 70)] # [doc = "Invalid identity."] InvalidIdentity , # [codec (index = 71)] # [doc = "Subnet mechanism does not exist."] MechanismDoesNotExist , # [codec (index = 72)] # [doc = "Trying to unstake your lock amount."] CannotUnstakeLock , # [codec (index = 73)] # [doc = "Trying to perform action on non-existent subnet."] SubnetNotExists , # [codec (index = 74)] # [doc = "Maximum commit limit reached"] TooManyUnrevealedCommits , # [codec (index = 75)] # [doc = "Attempted to reveal weights that are expired."] ExpiredWeightCommit , # [codec (index = 76)] # [doc = "Attempted to reveal weights too early."] RevealTooEarly , # [codec (index = 77)] # [doc = "Attempted to batch reveal weights with mismatched vector input lenghts."] InputLengthsUnequal , # [codec (index = 78)] # [doc = "A transactor exceeded the rate limit for setting weights."] CommittingWeightsTooFast , # [codec (index = 79)] # [doc = "Stake amount is too low."] AmountTooLow , # [codec (index = 80)] # [doc = "Not enough liquidity."] InsufficientLiquidity , # [codec (index = 81)] # [doc = "Slippage is too high for the transaction."] SlippageTooHigh , # [codec (index = 82)] # [doc = "Subnet disallows transfer."] TransferDisallowed , # [codec (index = 83)] # [doc = "Activity cutoff is being set too low."] ActivityCutoffTooLow , # [codec (index = 84)] # [doc = "Call is disabled"] CallDisabled , # [codec (index = 85)] # [doc = "FirstEmissionBlockNumber is already set."] FirstEmissionBlockNumberAlreadySet , # [codec (index = 86)] # [doc = "need wait for more blocks to accept the start call extrinsic."] NeedWaitingMoreBlocksToStarCall , # [codec (index = 87)] # [doc = "Not enough AlphaOut on the subnet to recycle"] NotEnoughAlphaOutToRecycle , # [codec (index = 88)] # [doc = "Cannot burn or recycle TAO from root subnet"] CannotBurnOrRecycleOnRootSubnet , # [codec (index = 89)] # [doc = "Public key cannot be recovered."] UnableToRecoverPublicKey , # [codec (index = 90)] # [doc = "Recovered public key is invalid."] InvalidRecoveredPublicKey , # [codec (index = 91)] # [doc = "SubToken disabled now"] SubtokenDisabled , # [codec (index = 92)] # [doc = "Too frequent hotkey swap on subnet"] HotKeySwapOnSubnetIntervalNotPassed , # [codec (index = 93)] # [doc = "Zero max stake amount"] ZeroMaxStakeAmount , # [codec (index = 94)] # [doc = "Invalid netuid duplication"] SameNetuid , # [codec (index = 95)] # [doc = "The caller does not have enough balance for the operation."] InsufficientBalance , # [codec (index = 96)] # [doc = "Too frequent staking operations"] StakingOperationRateLimitExceeded , # [codec (index = 97)] # [doc = "Invalid lease beneficiary to register the leased network."] InvalidLeaseBeneficiary , # [codec (index = 98)] # [doc = "Lease cannot end in the past."] LeaseCannotEndInThePast , # [codec (index = 99)] # [doc = "Couldn't find the lease netuid."] LeaseNetuidNotFound , # [codec (index = 100)] # [doc = "Lease does not exist."] LeaseDoesNotExist , # [codec (index = 101)] # [doc = "Lease has no end block."] LeaseHasNoEndBlock , # [codec (index = 102)] # [doc = "Lease has not ended."] LeaseHasNotEnded , # [codec (index = 103)] # [doc = "An overflow occurred."] Overflow , # [codec (index = 104)] # [doc = "Beneficiary does not own hotkey."] BeneficiaryDoesNotOwnHotkey , # [codec (index = 105)] # [doc = "Expected beneficiary origin."] ExpectedBeneficiaryOrigin , # [codec (index = 106)] # [doc = "Admin operation is prohibited during the protected weights window"] AdminActionProhibitedDuringWeightsWindow , # [codec (index = 107)] # [doc = "Symbol does not exist."] SymbolDoesNotExist , # [codec (index = 108)] # [doc = "Symbol already in use."] SymbolAlreadyInUse , # [codec (index = 109)] # [doc = "Incorrect commit-reveal version."] IncorrectCommitRevealVersion , # [codec (index = 110)] # [doc = "Reveal period is too large."] RevealPeriodTooLarge , # [codec (index = 111)] # [doc = "Reveal period is too small."] RevealPeriodTooSmall , # [codec (index = 112)] # [doc = "Generic error for out-of-range parameter value"] InvalidValue , # [codec (index = 113)] # [doc = "Subnet limit reached & there is no eligible subnet to prune"] SubnetLimitReached , # [codec (index = 114)] # [doc = "Insufficient funds to meet the subnet lock cost"] CannotAffordLockCost , # [codec (index = 115)] # [doc = "exceeded the rate limit for associating an EVM key."] EvmKeyAssociateRateLimitExceeded , # [codec (index = 116)] # [doc = "Same auto stake hotkey already set"] SameAutoStakeHotkeyAlreadySet , # [codec (index = 117)] # [doc = "The UID map for the subnet could not be cleared"] UidMapCouldNotBeCleared , # [codec (index = 118)] # [doc = "Trimming would exceed the max immune neurons percentage"] TrimmingWouldExceedMaxImmunePercentage , # [codec (index = 119)] # [doc = "Violating the rules of Childkey-Parentkey consistency"] ChildParentInconsistency , # [codec (index = 120)] # [doc = "Invalid number of root claims"] InvalidNumRootClaim , # [codec (index = 121)] # [doc = "Invalid value of root claim threshold"] InvalidRootClaimThreshold , # [codec (index = 122)] # [doc = "Exceeded subnet limit number or zero."] InvalidSubnetNumber , # [codec (index = 123)] # [doc = "Unintended precision loss when unstaking alpha"] PrecisionLoss , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "a new network is added."] NetworkAdded (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 1)] # [doc = "a network is removed."] NetworkRemoved (:: core :: primitive :: u16 ,) , # [codec (index = 2)] # [doc = "stake has been transferred from the a coldkey account onto the hotkey staking account."] StakeAdded (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u64 , :: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 3)] # [doc = "stake has been removed from the hotkey staking account onto the coldkey account."] StakeRemoved (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u64 , :: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 4)] # [doc = "stake has been moved from origin (hotkey, subnet ID) to destination (hotkey, subnet ID) of this amount (in TAO)."] StakeMoved (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 5)] # [doc = "a caller successfully sets their weights on a subnetwork."] WeightsSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 6)] # [doc = "a new neuron account has been registered to the chain."] NeuronRegistered (:: core :: primitive :: u16 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 7)] # [doc = "multiple uids have been concurrently registered."] BulkNeuronsRegistered (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 8)] # [doc = "FIXME: Not used yet"] BulkBalancesSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 9)] # [doc = "max allowed uids has been set for a subnetwork."] MaxAllowedUidsSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 10)] # [doc = "DEPRECATED: max weight limit updates are no longer supported."] MaxWeightLimitSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 11)] # [doc = "the difficulty has been set for a subnet."] DifficultySet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 12)] # [doc = "the adjustment interval is set for a subnet."] AdjustmentIntervalSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 13)] # [doc = "registration per interval is set for a subnet."] RegistrationPerIntervalSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 14)] # [doc = "we set max registrations per block."] MaxRegistrationsPerBlockSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 15)] # [doc = "an activity cutoff is set for a subnet."] ActivityCutoffSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 16)] # [doc = "Rho value is set."] RhoSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 17)] # [doc = "steepness of the sigmoid used to compute alpha values."] AlphaSigmoidSteepnessSet (:: core :: primitive :: u16 , :: core :: primitive :: i16 ,) , # [codec (index = 18)] # [doc = "Kappa is set for a subnet."] KappaSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 19)] # [doc = "minimum allowed weight is set for a subnet."] MinAllowedWeightSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 20)] # [doc = "the validator pruning length has been set."] ValidatorPruneLenSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 21)] # [doc = "the scaling law power has been set for a subnet."] ScalingLawPowerSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 22)] # [doc = "weights set rate limit has been set for a subnet."] WeightsSetRateLimitSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 23)] # [doc = "immunity period is set for a subnet."] ImmunityPeriodSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 24)] # [doc = "bonds moving average is set for a subnet."] BondsMovingAverageSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 25)] # [doc = "bonds penalty is set for a subnet."] BondsPenaltySet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 26)] # [doc = "bonds reset is set for a subnet."] BondsResetOnSet (:: core :: primitive :: u16 , :: core :: primitive :: bool ,) , # [codec (index = 27)] # [doc = "setting the max number of allowed validators on a subnet."] MaxAllowedValidatorsSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 28)] # [doc = "the axon server information is added to the network."] AxonServed (:: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 29)] # [doc = "the prometheus server information is added to the network."] PrometheusServed (:: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 30)] # [doc = "a hotkey has become a delegate."] DelegateAdded (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 ,) , # [codec (index = 31)] # [doc = "the default take is set."] DefaultTakeSet (:: core :: primitive :: u16 ,) , # [codec (index = 32)] # [doc = "weights version key is set for a network."] WeightsVersionKeySet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 33)] # [doc = "setting min difficulty on a network."] MinDifficultySet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 34)] # [doc = "setting max difficulty on a network."] MaxDifficultySet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 35)] # [doc = "setting the prometheus serving rate limit."] ServingRateLimitSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 36)] # [doc = "setting burn on a network."] BurnSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 37)] # [doc = "setting max burn on a network."] MaxBurnSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 38)] # [doc = "setting min burn on a network."] MinBurnSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 39)] # [doc = "setting the transaction rate limit."] TxRateLimitSet (:: core :: primitive :: u64 ,) , # [codec (index = 40)] # [doc = "setting the delegate take transaction rate limit."] TxDelegateTakeRateLimitSet (:: core :: primitive :: u64 ,) , # [codec (index = 41)] # [doc = "setting the childkey take transaction rate limit."] TxChildKeyTakeRateLimitSet (:: core :: primitive :: u64 ,) , # [codec (index = 42)] # [doc = "setting the admin freeze window length (last N blocks of tempo)"] AdminFreezeWindowSet (:: core :: primitive :: u16 ,) , # [codec (index = 43)] # [doc = "setting the owner hyperparameter rate limit in epochs"] OwnerHyperparamRateLimitSet (:: core :: primitive :: u16 ,) , # [codec (index = 44)] # [doc = "minimum childkey take set"] MinChildKeyTakeSet (:: core :: primitive :: u16 ,) , # [codec (index = 45)] # [doc = "maximum childkey take set"] MaxChildKeyTakeSet (:: core :: primitive :: u16 ,) , # [codec (index = 46)] # [doc = "childkey take set"] ChildKeyTakeSet (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 ,) , # [codec (index = 47)] # [doc = "a sudo call is done."] Sudid (:: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ,) , # [codec (index = 48)] # [doc = "registration is allowed/disallowed for a subnet."] RegistrationAllowed (:: core :: primitive :: u16 , :: core :: primitive :: bool ,) , # [codec (index = 49)] # [doc = "POW registration is allowed/disallowed for a subnet."] PowRegistrationAllowed (:: core :: primitive :: u16 , :: core :: primitive :: bool ,) , # [codec (index = 50)] # [doc = "setting tempo on a network"] TempoSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 51)] # [doc = "setting the RAO recycled for registration."] RAORecycledForRegistrationSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 52)] # [doc = "min stake is set for validators to set weights."] StakeThresholdSet (:: core :: primitive :: u64 ,) , # [codec (index = 53)] # [doc = "setting the adjustment alpha on a subnet."] AdjustmentAlphaSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 54)] # [doc = "the faucet it called on the test net."] Faucet (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 ,) , # [codec (index = 55)] # [doc = "the subnet owner cut is set."] SubnetOwnerCutSet (:: core :: primitive :: u16 ,) , # [codec (index = 56)] # [doc = "the network creation rate limit is set."] NetworkRateLimitSet (:: core :: primitive :: u64 ,) , # [codec (index = 57)] # [doc = "the network immunity period is set."] NetworkImmunityPeriodSet (:: core :: primitive :: u64 ,) , # [codec (index = 58)] # [doc = "the network minimum locking cost is set."] NetworkMinLockCostSet (:: core :: primitive :: u64 ,) , # [codec (index = 59)] # [doc = "the maximum number of subnets is set"] SubnetLimitSet (:: core :: primitive :: u16 ,) , # [codec (index = 60)] # [doc = "the lock cost reduction is set"] NetworkLockCostReductionIntervalSet (:: core :: primitive :: u64 ,) , # [codec (index = 61)] # [doc = "the take for a delegate is decreased."] TakeDecreased (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 ,) , # [codec (index = 62)] # [doc = "the take for a delegate is increased."] TakeIncreased (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 ,) , # [codec (index = 63)] # [doc = "the hotkey is swapped"] HotkeySwapped { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , old_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 64)] # [doc = "maximum delegate take is set by sudo/admin transaction"] MaxDelegateTakeSet (:: core :: primitive :: u16 ,) , # [codec (index = 65)] # [doc = "minimum delegate take is set by sudo/admin transaction"] MinDelegateTakeSet (:: core :: primitive :: u16 ,) , # [codec (index = 66)] # [doc = "A coldkey has been swapped"] ColdkeySwapped { old_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , swap_cost : :: core :: primitive :: u64 , } , # [codec (index = 67)] # [doc = "All balance of a hotkey has been unstaked and transferred to a new coldkey"] AllBalanceUnstakedAndTransferredToNewColdkey { current_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , total_balance : :: core :: primitive :: u64 , } , # [codec (index = 68)] # [doc = "A coldkey swap has been scheduled"] ColdkeySwapScheduled { old_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , execution_block : :: core :: primitive :: u32 , swap_cost : :: core :: primitive :: u64 , } , # [codec (index = 69)] # [doc = "The arbitration period has been extended"] ArbitrationPeriodExtended { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 70)] # [doc = "Setting of children of a hotkey have been scheduled"] SetChildrenScheduled (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ,) , # [codec (index = 71)] # [doc = "The children of a hotkey have been set"] SetChildren (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ,) , # [codec (index = 72)] # [doc = "The identity of a coldkey has been set"] ChainIdentitySet (:: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 73)] # [doc = "The identity of a subnet has been set"] SubnetIdentitySet (:: core :: primitive :: u16 ,) , # [codec (index = 74)] # [doc = "The identity of a subnet has been removed"] SubnetIdentityRemoved (:: core :: primitive :: u16 ,) , # [codec (index = 75)] # [doc = "A dissolve network extrinsic scheduled."] DissolveNetworkScheduled { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , execution_block : :: core :: primitive :: u32 , } , # [codec (index = 76)] # [doc = "The duration of schedule coldkey swap has been set"] ColdkeySwapScheduleDurationSet (:: core :: primitive :: u32 ,) , # [codec (index = 77)] # [doc = "The duration of dissolve network has been set"] DissolveNetworkScheduleDurationSet (:: core :: primitive :: u32 ,) , # [codec (index = 78)] # [doc = "Commit-reveal v3 weights have been successfully committed."] # [doc = ""] # [doc = "- **who**: The account ID of the user committing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash representing the committed weights."] CRV3WeightsCommitted (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: H256 ,) , # [codec (index = 79)] # [doc = "Weights have been successfully committed."] # [doc = ""] # [doc = "- **who**: The account ID of the user committing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash representing the committed weights."] WeightsCommitted (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: H256 ,) , # [codec (index = 80)] # [doc = "Weights have been successfully revealed."] # [doc = ""] # [doc = "- **who**: The account ID of the user revealing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash of the revealed weights."] WeightsRevealed (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: H256 ,) , # [codec (index = 81)] # [doc = "Weights have been successfully batch revealed."] # [doc = ""] # [doc = "- **who**: The account ID of the user revealing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **revealed_hashes**: A vector of hashes representing each revealed weight set."] WeightsBatchRevealed (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) , # [codec (index = 82)] # [doc = "A batch of weights (or commits) have been force-set."] # [doc = ""] # [doc = "- **netuids**: The netuids these weights were successfully set/committed for."] # [doc = "- **who**: The hotkey that set this batch."] BatchWeightsCompleted (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 83)] # [doc = "A batch extrinsic completed but with some errors."] BatchCompletedWithErrors , # [codec (index = 84)] # [doc = "A weight set among a batch of weights failed."] # [doc = ""] # [doc = "- **error**: The dispatch error emitted by the failed item."] BatchWeightItemFailed (runtime_types :: sp_runtime :: DispatchError ,) , # [codec (index = 85)] # [doc = "Stake has been transferred from one coldkey to another on the same subnet."] # [doc = "Parameters:"] # [doc = "(origin_coldkey, destination_coldkey, hotkey, origin_netuid, destination_netuid, amount)"] StakeTransferred (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 86)] # [doc = "Stake has been swapped from one subnet to another for the same coldkey-hotkey pair."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(coldkey, hotkey, origin_netuid, destination_netuid, amount)"] StakeSwapped (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 87)] # [doc = "Event called when transfer is toggled on a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(netuid, bool)"] TransferToggle (:: core :: primitive :: u16 , :: core :: primitive :: bool ,) , # [codec (index = 88)] # [doc = "The owner hotkey for a subnet has been set."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(netuid, new_hotkey)"] SubnetOwnerHotkeySet (:: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 89)] # [doc = "FirstEmissionBlockNumber is set via start call extrinsic"] # [doc = ""] # [doc = "Parameters:"] # [doc = "netuid"] # [doc = "block number"] FirstEmissionBlockNumberSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 90)] # [doc = "Alpha has been recycled, reducing AlphaOut on a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(coldkey, hotkey, amount, subnet_id)"] AlphaRecycled (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u16 ,) , # [codec (index = 91)] # [doc = "Alpha have been burned without reducing AlphaOut."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(coldkey, hotkey, amount, subnet_id)"] AlphaBurned (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u16 ,) , # [codec (index = 92)] # [doc = "An EVM key has been associated with a hotkey."] EvmKeyAssociated { netuid : :: core :: primitive :: u16 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , evm_key : :: subxt :: ext :: subxt_core :: utils :: H160 , block_associated : :: core :: primitive :: u64 , } , # [codec (index = 93)] # [doc = "CRV3 Weights have been successfully revealed."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **who**: The account ID of the user revealing the weights."] CRV3WeightsRevealed (:: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 94)] # [doc = "Commit-Reveal periods has been successfully set."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **periods**: The number of epochs before the reveal."] CommitRevealPeriodsSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 95)] # [doc = "Commit-Reveal has been successfully toggled."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **Enabled**: Is Commit-Reveal enabled."] CommitRevealEnabled (:: core :: primitive :: u16 , :: core :: primitive :: bool ,) , # [codec (index = 96)] # [doc = "the hotkey is swapped"] HotkeySwappedOnSubnet { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , old_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , } , # [codec (index = 97)] # [doc = "A subnet lease has been created."] SubnetLeaseCreated { beneficiary : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , lease_id : :: core :: primitive :: u32 , netuid : :: core :: primitive :: u16 , end_block : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 98)] # [doc = "A subnet lease has been terminated."] SubnetLeaseTerminated { beneficiary : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , } , # [codec (index = 99)] # [doc = "The symbol for a subnet has been updated."] SymbolUpdated { netuid : :: core :: primitive :: u16 , symbol : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 100)] # [doc = "Commit Reveal Weights version has been updated."] # [doc = ""] # [doc = "- **version**: The required version."] CommitRevealVersionSet (:: core :: primitive :: u16 ,) , # [codec (index = 101)] # [doc = "Timelocked weights have been successfully committed."] # [doc = ""] # [doc = "- **who**: The account ID of the user committing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash representing the committed weights."] # [doc = "- **reveal_round**: The round at which weights can be revealed."] TimelockedWeightsCommitted (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u64 ,) , # [codec (index = 102)] # [doc = "Timelocked Weights have been successfully revealed."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **who**: The account ID of the user revealing the weights."] TimelockedWeightsRevealed (:: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 103)] # [doc = "Auto-staking hotkey received stake"] AutoStakeAdded { netuid : :: core :: primitive :: u16 , destination : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , owner : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , incentive : :: core :: primitive :: u64 , } , # [codec (index = 104)] # [doc = "End-of-epoch miner incentive alpha by UID"] IncentiveAlphaEmittedToMiners { netuid : :: core :: primitive :: u16 , emissions : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > , } , # [codec (index = 105)] # [doc = "The minimum allowed UIDs for a subnet have been set."] MinAllowedUidsSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 106)] # [doc = "The auto stake destination has been set."] # [doc = ""] # [doc = "- **coldkey**: The account ID of the coldkey."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **hotkey**: The account ID of the hotkey."] AutoStakeDestinationSet { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 107)] # [doc = "The minimum allowed non-Immune UIDs has been set."] MinNonImmuneUidsSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 108)] # [doc = "Root emissions have been claimed for a coldkey on all subnets and hotkeys."] # [doc = "Parameters:"] # [doc = "(coldkey)"] RootClaimed { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 109)] # [doc = "Root claim type for a coldkey has been set."] # [doc = "Parameters:"] # [doc = "(coldkey, u8)"] RootClaimTypeSet { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , root_claim_type : runtime_types :: pallet_subtensor :: pallet :: RootClaimTypeEnum , } , # [codec (index = 110)] # [doc = "Subnet lease dividends have been distributed."] SubnetLeaseDividendsDistributed { lease_id : :: core :: primitive :: u32 , contributor : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , alpha : :: core :: primitive :: u64 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NeuronCertificate { pub public_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub algorithm : :: core :: primitive :: u8 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PrometheusInfo { pub block : :: core :: primitive :: u64 , pub version : :: core :: primitive :: u32 , pub ip : :: core :: primitive :: u128 , pub port : :: core :: primitive :: u16 , pub ip_type : :: core :: primitive :: u8 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RecycleOrBurnEnum { # [codec (index = 0)] Burn , # [codec (index = 1)] Recycle , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RootClaimTypeEnum { # [codec (index = 0)] Swap , # [codec (index = 1)] Keep , # [codec (index = 2)] KeepSubnets { subnets : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetIdentityV3 { pub subnet_name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub github_repo : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub subnet_contact : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub subnet_url : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub discord : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub description : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub logo_url : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub additional : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } } pub mod rpc_info { use super :: runtime_types ; pub mod delegate_info { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DelegateInfo < _0 > { pub delegate_ss58 : _0 , # [codec (compact)] pub take : :: core :: primitive :: u16 , pub nominators : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > ,) > , pub owner_ss58 : _0 , pub registrations : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub validator_permits : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , # [codec (compact)] pub return_per_1000 : :: core :: primitive :: u64 , # [codec (compact)] pub total_daily_return : :: core :: primitive :: u64 , } } pub mod dynamic_info { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DynamicInfo < _0 > { # [codec (compact)] pub netuid : :: core :: primitive :: u16 , pub owner_hotkey : _0 , pub owner_coldkey : _0 , pub subnet_name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > , pub token_symbol : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > , # [codec (compact)] pub tempo : :: core :: primitive :: u16 , # [codec (compact)] pub last_step : :: core :: primitive :: u64 , # [codec (compact)] pub blocks_since_last_step : :: core :: primitive :: u64 , # [codec (compact)] pub emission : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_in : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_out : :: core :: primitive :: u64 , # [codec (compact)] pub tao_in : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_out_emission : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_in_emission : :: core :: primitive :: u64 , # [codec (compact)] pub tao_in_emission : :: core :: primitive :: u64 , # [codec (compact)] pub pending_alpha_emission : :: core :: primitive :: u64 , # [codec (compact)] pub pending_root_emission : :: core :: primitive :: u64 , # [codec (compact)] pub subnet_volume : :: core :: primitive :: u128 , # [codec (compact)] pub network_registered_at : :: core :: primitive :: u64 , pub subnet_identity : :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 > , pub moving_price : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , } } pub mod metagraph { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Metagraph < _0 > { # [codec (compact)] pub netuid : :: core :: primitive :: u16 , pub name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > , pub symbol : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > , pub identity : :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 > , # [codec (compact)] pub network_registered_at : :: core :: primitive :: u64 , pub owner_hotkey : _0 , pub owner_coldkey : _0 , # [codec (compact)] pub block : :: core :: primitive :: u64 , # [codec (compact)] pub tempo : :: core :: primitive :: u16 , # [codec (compact)] pub last_step : :: core :: primitive :: u64 , # [codec (compact)] pub blocks_since_last_step : :: core :: primitive :: u64 , # [codec (compact)] pub subnet_emission : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_in : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_out : :: core :: primitive :: u64 , # [codec (compact)] pub tao_in : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_out_emission : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_in_emission : :: core :: primitive :: u64 , # [codec (compact)] pub tao_in_emission : :: core :: primitive :: u64 , # [codec (compact)] pub pending_alpha_emission : :: core :: primitive :: u64 , # [codec (compact)] pub pending_root_emission : :: core :: primitive :: u64 , # [codec (compact)] pub subnet_volume : :: core :: primitive :: u128 , pub moving_price : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , # [codec (compact)] pub rho : :: core :: primitive :: u16 , # [codec (compact)] pub kappa : :: core :: primitive :: u16 , # [codec (compact)] pub min_allowed_weights : :: core :: primitive :: u16 , # [codec (compact)] pub max_weights_limit : :: core :: primitive :: u16 , # [codec (compact)] pub weights_version : :: core :: primitive :: u64 , # [codec (compact)] pub weights_rate_limit : :: core :: primitive :: u64 , # [codec (compact)] pub activity_cutoff : :: core :: primitive :: u16 , # [codec (compact)] pub max_validators : :: core :: primitive :: u16 , # [codec (compact)] pub num_uids : :: core :: primitive :: u16 , # [codec (compact)] pub max_uids : :: core :: primitive :: u16 , # [codec (compact)] pub burn : :: core :: primitive :: u64 , # [codec (compact)] pub difficulty : :: core :: primitive :: u64 , pub registration_allowed : :: core :: primitive :: bool , pub pow_registration_allowed : :: core :: primitive :: bool , # [codec (compact)] pub immunity_period : :: core :: primitive :: u16 , # [codec (compact)] pub min_difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub max_difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub min_burn : :: core :: primitive :: u64 , # [codec (compact)] pub max_burn : :: core :: primitive :: u64 , # [codec (compact)] pub adjustment_alpha : :: core :: primitive :: u64 , # [codec (compact)] pub adjustment_interval : :: core :: primitive :: u16 , # [codec (compact)] pub target_regs_per_interval : :: core :: primitive :: u16 , # [codec (compact)] pub max_regs_per_block : :: core :: primitive :: u16 , # [codec (compact)] pub serving_rate_limit : :: core :: primitive :: u64 , pub commit_reveal_weights_enabled : :: core :: primitive :: bool , # [codec (compact)] pub commit_reveal_period : :: core :: primitive :: u64 , pub liquid_alpha_enabled : :: core :: primitive :: bool , # [codec (compact)] pub alpha_high : :: core :: primitive :: u16 , # [codec (compact)] pub alpha_low : :: core :: primitive :: u16 , # [codec (compact)] pub bonds_moving_avg : :: core :: primitive :: u64 , pub hotkeys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub coldkeys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub identities : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: ChainIdentityV2 > > , pub axons : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: pallet :: AxonInfo > , pub active : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > , pub validator_permit : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > , pub pruning_score : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub last_update : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub emission : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub dividends : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub incentives : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub consensus : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub trust : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub rank : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub block_at_registration : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub alpha_stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub tao_stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub total_stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub tao_dividends_per_hotkey : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > , pub alpha_dividends_per_hotkey : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SelectiveMetagraph < _0 > { # [codec (compact)] pub netuid : :: core :: primitive :: u16 , pub name : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > > , pub symbol : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > > , pub identity : :: core :: option :: Option < :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 > > , pub network_registered_at : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub owner_hotkey : :: core :: option :: Option < _0 > , pub owner_coldkey : :: core :: option :: Option < _0 > , pub block : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub tempo : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub last_step : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub blocks_since_last_step : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub subnet_emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub alpha_in : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub alpha_out : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub tao_in : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub alpha_out_emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub alpha_in_emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub tao_in_emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub pending_alpha_emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub pending_root_emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub subnet_volume : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u128 > > , pub moving_price : :: core :: option :: Option < runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > > , pub rho : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub kappa : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub min_allowed_weights : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub max_weights_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub weights_version : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub weights_rate_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub activity_cutoff : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub max_validators : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub num_uids : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub max_uids : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub burn : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub difficulty : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub registration_allowed : :: core :: option :: Option < :: core :: primitive :: bool > , pub pow_registration_allowed : :: core :: option :: Option < :: core :: primitive :: bool > , pub immunity_period : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub min_difficulty : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub max_difficulty : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub min_burn : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub max_burn : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub adjustment_alpha : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub adjustment_interval : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub target_regs_per_interval : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub max_regs_per_block : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub serving_rate_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub commit_reveal_weights_enabled : :: core :: option :: Option < :: core :: primitive :: bool > , pub commit_reveal_period : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub liquid_alpha_enabled : :: core :: option :: Option < :: core :: primitive :: bool > , pub alpha_high : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub alpha_low : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub bonds_moving_avg : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub hotkeys : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > > , pub coldkeys : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > > , pub identities : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: ChainIdentityV2 > > > , pub axons : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: pallet :: AxonInfo > > , pub active : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > > , pub validator_permit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > > , pub pruning_score : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub last_update : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , pub emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , pub dividends : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub incentives : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub consensus : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub trust : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub rank : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub block_at_registration : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , pub alpha_stake : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , pub tao_stake : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , pub total_stake : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , pub tao_dividends_per_hotkey : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > > , pub alpha_dividends_per_hotkey : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > > , pub validators : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub commitments : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > ,) > > , } } pub mod neuron_info { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NeuronInfo < _0 > { pub hotkey : _0 , pub coldkey : _0 , # [codec (compact)] pub uid : :: core :: primitive :: u16 , # [codec (compact)] pub netuid : :: core :: primitive :: u16 , pub active : :: core :: primitive :: bool , pub axon_info : runtime_types :: pallet_subtensor :: pallet :: AxonInfo , pub prometheus_info : runtime_types :: pallet_subtensor :: pallet :: PrometheusInfo , pub stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > , # [codec (compact)] pub rank : :: core :: primitive :: u16 , # [codec (compact)] pub emission : :: core :: primitive :: u64 , # [codec (compact)] pub incentive : :: core :: primitive :: u16 , # [codec (compact)] pub consensus : :: core :: primitive :: u16 , # [codec (compact)] pub trust : :: core :: primitive :: u16 , # [codec (compact)] pub validator_trust : :: core :: primitive :: u16 , # [codec (compact)] pub dividends : :: core :: primitive :: u16 , # [codec (compact)] pub last_update : :: core :: primitive :: u64 , pub validator_permit : :: core :: primitive :: bool , pub weights : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub bonds : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , # [codec (compact)] pub pruning_score : :: core :: primitive :: u16 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NeuronInfoLite < _0 > { pub hotkey : _0 , pub coldkey : _0 , # [codec (compact)] pub uid : :: core :: primitive :: u16 , # [codec (compact)] pub netuid : :: core :: primitive :: u16 , pub active : :: core :: primitive :: bool , pub axon_info : runtime_types :: pallet_subtensor :: pallet :: AxonInfo , pub prometheus_info : runtime_types :: pallet_subtensor :: pallet :: PrometheusInfo , pub stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > , # [codec (compact)] pub rank : :: core :: primitive :: u16 , # [codec (compact)] pub emission : :: core :: primitive :: u64 , # [codec (compact)] pub incentive : :: core :: primitive :: u16 , # [codec (compact)] pub consensus : :: core :: primitive :: u16 , # [codec (compact)] pub trust : :: core :: primitive :: u16 , # [codec (compact)] pub validator_trust : :: core :: primitive :: u16 , # [codec (compact)] pub dividends : :: core :: primitive :: u16 , # [codec (compact)] pub last_update : :: core :: primitive :: u64 , pub validator_permit : :: core :: primitive :: bool , # [codec (compact)] pub pruning_score : :: core :: primitive :: u16 , } } pub mod show_subnet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetState < _0 > { # [codec (compact)] pub netuid : :: core :: primitive :: u16 , pub hotkeys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub coldkeys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub active : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > , pub validator_permit : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > , pub pruning_score : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub last_update : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub emission : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub dividends : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub incentives : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub consensus : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub trust : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub rank : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub block_at_registration : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub alpha_stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub tao_stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub total_stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub emission_history : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , } } pub mod stake_info { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct StakeInfo < _0 > { pub hotkey : _0 , pub coldkey : _0 , # [codec (compact)] pub netuid : :: core :: primitive :: u16 , # [codec (compact)] pub stake : :: core :: primitive :: u64 , # [codec (compact)] pub locked : :: core :: primitive :: u64 , # [codec (compact)] pub emission : :: core :: primitive :: u64 , # [codec (compact)] pub tao_emission : :: core :: primitive :: u64 , # [codec (compact)] pub drain : :: core :: primitive :: u64 , pub is_registered : :: core :: primitive :: bool , } } pub mod subnet_info { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetHyperparams { # [codec (compact)] pub rho : :: core :: primitive :: u16 , # [codec (compact)] pub kappa : :: core :: primitive :: u16 , # [codec (compact)] pub immunity_period : :: core :: primitive :: u16 , # [codec (compact)] pub min_allowed_weights : :: core :: primitive :: u16 , # [codec (compact)] pub max_weights_limit : :: core :: primitive :: u16 , # [codec (compact)] pub tempo : :: core :: primitive :: u16 , # [codec (compact)] pub min_difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub max_difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub weights_version : :: core :: primitive :: u64 , # [codec (compact)] pub weights_rate_limit : :: core :: primitive :: u64 , # [codec (compact)] pub adjustment_interval : :: core :: primitive :: u16 , # [codec (compact)] pub activity_cutoff : :: core :: primitive :: u16 , pub registration_allowed : :: core :: primitive :: bool , # [codec (compact)] pub target_regs_per_interval : :: core :: primitive :: u16 , # [codec (compact)] pub min_burn : :: core :: primitive :: u64 , # [codec (compact)] pub max_burn : :: core :: primitive :: u64 , # [codec (compact)] pub bonds_moving_avg : :: core :: primitive :: u64 , # [codec (compact)] pub max_regs_per_block : :: core :: primitive :: u16 , # [codec (compact)] pub serving_rate_limit : :: core :: primitive :: u64 , # [codec (compact)] pub max_validators : :: core :: primitive :: u16 , # [codec (compact)] pub adjustment_alpha : :: core :: primitive :: u64 , # [codec (compact)] pub difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub commit_reveal_period : :: core :: primitive :: u64 , pub commit_reveal_weights_enabled : :: core :: primitive :: bool , # [codec (compact)] pub alpha_high : :: core :: primitive :: u16 , # [codec (compact)] pub alpha_low : :: core :: primitive :: u16 , pub liquid_alpha_enabled : :: core :: primitive :: bool , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetHyperparamsV2 { # [codec (compact)] pub rho : :: core :: primitive :: u16 , # [codec (compact)] pub kappa : :: core :: primitive :: u16 , # [codec (compact)] pub immunity_period : :: core :: primitive :: u16 , # [codec (compact)] pub min_allowed_weights : :: core :: primitive :: u16 , # [codec (compact)] pub max_weights_limit : :: core :: primitive :: u16 , # [codec (compact)] pub tempo : :: core :: primitive :: u16 , # [codec (compact)] pub min_difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub max_difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub weights_version : :: core :: primitive :: u64 , # [codec (compact)] pub weights_rate_limit : :: core :: primitive :: u64 , # [codec (compact)] pub adjustment_interval : :: core :: primitive :: u16 , # [codec (compact)] pub activity_cutoff : :: core :: primitive :: u16 , pub registration_allowed : :: core :: primitive :: bool , # [codec (compact)] pub target_regs_per_interval : :: core :: primitive :: u16 , # [codec (compact)] pub min_burn : :: core :: primitive :: u64 , # [codec (compact)] pub max_burn : :: core :: primitive :: u64 , # [codec (compact)] pub bonds_moving_avg : :: core :: primitive :: u64 , # [codec (compact)] pub max_regs_per_block : :: core :: primitive :: u16 , # [codec (compact)] pub serving_rate_limit : :: core :: primitive :: u64 , # [codec (compact)] pub max_validators : :: core :: primitive :: u16 , # [codec (compact)] pub adjustment_alpha : :: core :: primitive :: u64 , # [codec (compact)] pub difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub commit_reveal_period : :: core :: primitive :: u64 , pub commit_reveal_weights_enabled : :: core :: primitive :: bool , # [codec (compact)] pub alpha_high : :: core :: primitive :: u16 , # [codec (compact)] pub alpha_low : :: core :: primitive :: u16 , pub liquid_alpha_enabled : :: core :: primitive :: bool , pub alpha_sigmoid_steepness : runtime_types :: substrate_fixed :: FixedI64 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , # [codec (compact)] pub yuma_version : :: core :: primitive :: u16 , pub subnet_is_active : :: core :: primitive :: bool , pub transfers_enabled : :: core :: primitive :: bool , pub bonds_reset_enabled : :: core :: primitive :: bool , pub user_liquidity_enabled : :: core :: primitive :: bool , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetInfo < _0 > { # [codec (compact)] pub netuid : :: core :: primitive :: u16 , # [codec (compact)] pub rho : :: core :: primitive :: u16 , # [codec (compact)] pub kappa : :: core :: primitive :: u16 , # [codec (compact)] pub difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub immunity_period : :: core :: primitive :: u16 , # [codec (compact)] pub max_allowed_validators : :: core :: primitive :: u16 , # [codec (compact)] pub min_allowed_weights : :: core :: primitive :: u16 , # [codec (compact)] pub max_weights_limit : :: core :: primitive :: u16 , # [codec (compact)] pub scaling_law_power : :: core :: primitive :: u16 , # [codec (compact)] pub subnetwork_n : :: core :: primitive :: u16 , # [codec (compact)] pub max_allowed_uids : :: core :: primitive :: u16 , # [codec (compact)] pub blocks_since_last_step : :: core :: primitive :: u64 , # [codec (compact)] pub tempo : :: core :: primitive :: u16 , # [codec (compact)] pub network_modality : :: core :: primitive :: u16 , pub network_connect : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < [:: core :: primitive :: u16 ; 2usize] > , # [codec (compact)] pub emission_values : :: core :: primitive :: u64 , # [codec (compact)] pub burn : :: core :: primitive :: u64 , pub owner : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetInfov2 < _0 > { # [codec (compact)] pub netuid : :: core :: primitive :: u16 , # [codec (compact)] pub rho : :: core :: primitive :: u16 , # [codec (compact)] pub kappa : :: core :: primitive :: u16 , # [codec (compact)] pub difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub immunity_period : :: core :: primitive :: u16 , # [codec (compact)] pub max_allowed_validators : :: core :: primitive :: u16 , # [codec (compact)] pub min_allowed_weights : :: core :: primitive :: u16 , # [codec (compact)] pub max_weights_limit : :: core :: primitive :: u16 , # [codec (compact)] pub scaling_law_power : :: core :: primitive :: u16 , # [codec (compact)] pub subnetwork_n : :: core :: primitive :: u16 , # [codec (compact)] pub max_allowed_uids : :: core :: primitive :: u16 , # [codec (compact)] pub blocks_since_last_step : :: core :: primitive :: u64 , # [codec (compact)] pub tempo : :: core :: primitive :: u16 , # [codec (compact)] pub network_modality : :: core :: primitive :: u16 , pub network_connect : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < [:: core :: primitive :: u16 ; 2usize] > , # [codec (compact)] pub emission_value : :: core :: primitive :: u64 , # [codec (compact)] pub burn : :: core :: primitive :: u64 , pub owner : _0 , pub identity : :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 > , } } } pub mod subnets { use super :: runtime_types ; pub mod leasing { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetLease < _0 , _1 , _2 > { pub beneficiary : _0 , pub coldkey : _0 , pub hotkey : _0 , pub emissions_share : runtime_types :: sp_arithmetic :: per_things :: Percent , pub end_block : :: core :: option :: Option < _1 > , pub netuid : :: core :: primitive :: u16 , pub cost : _2 , } } } pub mod transaction_extension { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubtensorTransactionExtension < _0 > (pub :: core :: marker :: PhantomData < _0 >) ; } pub mod utils { use super :: runtime_types ; pub mod rate_limiting { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Hyperparameter { # [codec (index = 0)] Unknown , # [codec (index = 1)] ServingRateLimit , # [codec (index = 2)] MaxDifficulty , # [codec (index = 3)] AdjustmentAlpha , # [codec (index = 4)] MaxWeightLimit , # [codec (index = 5)] ImmunityPeriod , # [codec (index = 6)] MinAllowedWeights , # [codec (index = 7)] Kappa , # [codec (index = 8)] Rho , # [codec (index = 9)] ActivityCutoff , # [codec (index = 10)] PowRegistrationAllowed , # [codec (index = 11)] MinBurn , # [codec (index = 12)] MaxBurn , # [codec (index = 13)] BondsMovingAverage , # [codec (index = 14)] BondsPenalty , # [codec (index = 15)] CommitRevealEnabled , # [codec (index = 16)] LiquidAlphaEnabled , # [codec (index = 17)] AlphaValues , # [codec (index = 18)] WeightCommitInterval , # [codec (index = 19)] TransferEnabled , # [codec (index = 20)] AlphaSigmoidSteepness , # [codec (index = 21)] Yuma3Enabled , # [codec (index = 22)] BondsResetEnabled , # [codec (index = 23)] ImmuneNeuronLimit , # [codec (index = 24)] RecycleOrBurn , # [codec (index = 25)] MaxAllowedUids , } } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RateLimitKey < _0 > { # [codec (index = 0)] SetSNOwnerHotkey (:: core :: primitive :: u16 ,) , # [codec (index = 1)] OwnerHyperparamUpdate (:: core :: primitive :: u16 , runtime_types :: pallet_subtensor :: utils :: rate_limiting :: Hyperparameter ,) , # [codec (index = 2)] NetworkLastRegistered , # [codec (index = 3)] LastTxBlock (_0 ,) , # [codec (index = 4)] LastTxBlockChildKeyTake (_0 ,) , # [codec (index = 5)] LastTxBlockDelegateTake (_0 ,) , } } pub mod pallet_subtensor_proxy { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Dispatch the given `call` from an account that the sender is authorised for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] proxy { real : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , force_proxy_type : :: core :: option :: Option < runtime_types :: subtensor_runtime_common :: ProxyType > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Register a proxy account for the sender that is able to make calls on its behalf."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to make a proxy."] # [doc = "- `proxy_type`: The permissions allowed for this proxy account."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] add_proxy { delegate : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , delay : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Unregister a proxy account for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] # [doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] remove_proxy { delegate : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , delay : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Unregister all proxy accounts for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "WARNING: This may be called on accounts created by `create_pure`, however if done, then"] # [doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] remove_proxies , # [codec (index = 4)] # [doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] # [doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] # [doc = ""] # [doc = "Requires a `Signed` origin."] # [doc = ""] # [doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] # [doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] # [doc = "allow for maximum flexibility."] # [doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] # [doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] # [doc = "want to use `0`."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] # [doc = ""] # [doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] # [doc = "same sender, with the same parameters."] # [doc = ""] # [doc = "Fails if there are insufficient funds to pay for deposit."] create_pure { proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , delay : :: core :: primitive :: u32 , index : :: core :: primitive :: u16 , } , # [codec (index = 5)] # [doc = "Removes a previously spawned pure proxy."] # [doc = ""] # [doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] # [doc = "inaccessible."] # [doc = ""] # [doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] # [doc = "`create_pure` with corresponding parameters."] # [doc = ""] # [doc = "- `spawner`: The account that originally called `create_pure` to create this account."] # [doc = "- `index`: The disambiguation index originally passed to `create_pure`. Probably `0`."] # [doc = "- `proxy_type`: The proxy type originally passed to `create_pure`."] # [doc = "- `height`: The height of the chain when the call to `create_pure` was processed."] # [doc = "- `ext_index`: The extrinsic index in which the call to `create_pure` was processed."] # [doc = ""] # [doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] # [doc = "account whose `create_pure` call has corresponding parameters."] kill_pure { spawner : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , index : :: core :: primitive :: u16 , # [codec (compact)] height : :: core :: primitive :: u32 , # [codec (compact)] ext_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Publish the hash of a proxy-call that will be made in the future."] # [doc = ""] # [doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] # [doc = "if the delay associated with the proxy relationship is greater than zero."] # [doc = ""] # [doc = "No more than `MaxPending` announcements may be made at any one time."] # [doc = ""] # [doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] # [doc = "`AnnouncementDepositBase` if there are no other pending announcements."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] announce { real : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 7)] # [doc = "Remove a given announcement."] # [doc = ""] # [doc = "May be called by a proxy account to remove a call they previously announced and return"] # [doc = "the deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] remove_announcement { real : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 8)] # [doc = "Remove the given announcement of a delegate."] # [doc = ""] # [doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] # [doc = "(`delegate`) has announced they want to execute. The deposit is returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `delegate`: The account that previously announced the call."] # [doc = "- `call_hash`: The hash of the call to be made."] reject_announcement { delegate : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 9)] # [doc = "Dispatch the given `call` from an account that the sender is authorized for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "Removes any corresponding announcement(s)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] proxy_announced { delegate : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , real : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , force_proxy_type : :: core :: option :: Option < runtime_types :: subtensor_runtime_common :: ProxyType > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 10)] # [doc = "Poke / Adjust deposits made for proxies and announcements based on current values."] # [doc = "This can be used by accounts to possibly lower their locked amount."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "The transaction fee is waived if the deposit amount has changed."] # [doc = ""] # [doc = "Emits `DepositPoked` if successful."] poke_deposit , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "There are too many proxies registered or too many announcements pending."] TooMany , # [codec (index = 1)] # [doc = "Proxy registration not found."] NotFound , # [codec (index = 2)] # [doc = "Sender is not a proxy of the account to be proxied."] NotProxy , # [codec (index = 3)] # [doc = "A call which is incompatible with the proxy type's filter was attempted."] Unproxyable , # [codec (index = 4)] # [doc = "Account is already a proxy."] Duplicate , # [codec (index = 5)] # [doc = "Call may not be made by proxy because it may escalate its privileges."] NoPermission , # [codec (index = 6)] # [doc = "Announcement, if made at all, was made too recently."] Unannounced , # [codec (index = 7)] # [doc = "Cannot add self as proxy."] NoSelfProxy , # [codec (index = 8)] # [doc = "Invariant violated: deposit recomputation returned None after updating announcements."] AnnouncementDepositInvariantViolated , # [codec (index = 9)] # [doc = "Failed to derive a valid account id from the provided entropy."] InvalidDerivedAccountId , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A proxy was executed correctly, with the given."] ProxyExecuted { result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 1)] # [doc = "A pure account has been created by new proxy with given"] # [doc = "disambiguation index and proxy type."] PureCreated { pure : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , disambiguation_index : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "A pure proxy was killed by its spawner."] PureKilled { pure : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , spawner : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , disambiguation_index : :: core :: primitive :: u16 , } , # [codec (index = 3)] # [doc = "An announcement was placed to make a call in the future."] Announced { real : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 4)] # [doc = "A proxy was added."] ProxyAdded { delegator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , delegatee : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , delay : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A proxy was removed."] ProxyRemoved { delegator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , delegatee : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , delay : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "A deposit stored for proxies or announcements was poked / updated."] DepositPoked { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , kind : runtime_types :: pallet_subtensor_proxy :: DepositKind , old_deposit : :: core :: primitive :: u64 , new_deposit : :: core :: primitive :: u64 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Announcement < _0 , _1 , _2 > { pub real : _0 , pub call_hash : _1 , pub height : _2 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum DepositKind { # [codec (index = 0)] Proxies , # [codec (index = 1)] Announcements , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ProxyDefinition < _0 , _1 , _2 > { pub delegate : _0 , pub proxy_type : _1 , pub delay : _2 , } } pub mod pallet_subtensor_swap { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Set the fee rate for swaps on a specific subnet (normalized value)."] # [doc = "For example, 0.3% is approximately 196."] # [doc = ""] # [doc = "Only callable by the admin origin"] set_fee_rate { netuid : :: core :: primitive :: u16 , rate : :: core :: primitive :: u16 , } , # [codec (index = 4)] # [doc = "Enable user liquidity operations for a specific subnet. This switches the"] # [doc = "subnet from V2 to V3 swap mode. Thereafter, adding new user liquidity can be disabled"] # [doc = "by toggling this flag to false, but the swap mode will remain V3 because of existing"] # [doc = "user liquidity until all users withdraw their liquidity."] # [doc = ""] # [doc = "Only sudo or subnet owner can enable user liquidity."] # [doc = "Only sudo can disable user liquidity."] toggle_user_liquidity { netuid : :: core :: primitive :: u16 , enable : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "Add liquidity to a specific price range for a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- tick_low: Lower bound of the price range"] # [doc = "- tick_high: Upper bound of the price range"] # [doc = "- liquidity: Amount of liquidity to add"] # [doc = ""] # [doc = "Emits `Event::LiquidityAdded` on success"] add_liquidity { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , tick_low : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , tick_high : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , liquidity : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Remove liquidity from a specific position."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- position_id: ID of the position to remove"] # [doc = ""] # [doc = "Emits `Event::LiquidityRemoved` on success"] remove_liquidity { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , position_id : runtime_types :: pallet_subtensor_swap :: position :: PositionId , } , # [codec (index = 3)] # [doc = "Modify a liquidity position."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- position_id: ID of the position to remove"] # [doc = "- liquidity_delta: Liquidity to add (if positive) or remove (if negative)"] # [doc = ""] # [doc = "Emits `Event::LiquidityRemoved` on success"] modify_position { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , position_id : runtime_types :: pallet_subtensor_swap :: position :: PositionId , liquidity_delta : :: core :: primitive :: i64 , } , # [codec (index = 5)] # [doc = "Disable user liquidity in all subnets."] # [doc = ""] # [doc = "Emits `Event::UserLiquidityToggled` on success"] disable_lp , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The fee rate is too high"] FeeRateTooHigh , # [codec (index = 1)] # [doc = "The provided amount is insufficient for the swap."] InsufficientInputAmount , # [codec (index = 2)] # [doc = "The provided liquidity is insufficient for the operation."] InsufficientLiquidity , # [codec (index = 3)] # [doc = "The operation would exceed the price limit."] PriceLimitExceeded , # [codec (index = 4)] # [doc = "The caller does not have enough balance for the operation."] InsufficientBalance , # [codec (index = 5)] # [doc = "Attempted to remove liquidity that does not exist."] LiquidityNotFound , # [codec (index = 6)] # [doc = "The provided tick range is invalid."] InvalidTickRange , # [codec (index = 7)] # [doc = "Maximum user positions exceeded"] MaxPositionsExceeded , # [codec (index = 8)] # [doc = "Too many swap steps"] TooManySwapSteps , # [codec (index = 9)] # [doc = "Provided liquidity parameter is invalid (likely too small)"] InvalidLiquidityValue , # [codec (index = 10)] # [doc = "Reserves too low for operation."] ReservesTooLow , # [codec (index = 11)] # [doc = "The subnet does not exist."] MechanismDoesNotExist , # [codec (index = 12)] # [doc = "User liquidity operations are disabled for this subnet"] UserLiquidityDisabled , # [codec (index = 13)] # [doc = "The subnet does not have subtoken enabled"] SubtokenDisabled , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Event emitted when the fee rate has been updated for a subnet"] FeeRateSet { netuid : :: core :: primitive :: u16 , rate : :: core :: primitive :: u16 , } , # [codec (index = 1)] # [doc = "Event emitted when user liquidity operations are enabled for a subnet."] # [doc = "First enable even indicates a switch from V2 to V3 swap."] UserLiquidityToggled { netuid : :: core :: primitive :: u16 , enable : :: core :: primitive :: bool , } , # [codec (index = 2)] # [doc = "Event emitted when a liquidity position is added to a subnet's liquidity pool."] LiquidityAdded { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , position_id : runtime_types :: pallet_subtensor_swap :: position :: PositionId , liquidity : :: core :: primitive :: u64 , tao : :: core :: primitive :: u64 , alpha : :: core :: primitive :: u64 , tick_low : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , tick_high : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , } , # [codec (index = 3)] # [doc = "Event emitted when a liquidity position is removed from a subnet's liquidity pool."] LiquidityRemoved { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , position_id : runtime_types :: pallet_subtensor_swap :: position :: PositionId , liquidity : :: core :: primitive :: u64 , tao : :: core :: primitive :: u64 , alpha : :: core :: primitive :: u64 , fee_tao : :: core :: primitive :: u64 , fee_alpha : :: core :: primitive :: u64 , tick_low : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , tick_high : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , } , # [codec (index = 4)] # [doc = "Event emitted when a liquidity position is modified in a subnet's liquidity pool."] # [doc = "Modifying causes the fees to be claimed."] LiquidityModified { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , position_id : runtime_types :: pallet_subtensor_swap :: position :: PositionId , liquidity : :: core :: primitive :: i64 , tao : :: core :: primitive :: i64 , alpha : :: core :: primitive :: i64 , fee_tao : :: core :: primitive :: u64 , fee_alpha : :: core :: primitive :: u64 , tick_low : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , tick_high : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , } , } } } pub mod position { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Position { pub id : runtime_types :: pallet_subtensor_swap :: position :: PositionId , pub netuid : :: core :: primitive :: u16 , pub tick_low : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , pub tick_high : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , pub liquidity : :: core :: primitive :: u64 , pub fees_tao : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , pub fees_alpha : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PositionId (pub :: core :: primitive :: u128 ,) ; } pub mod tick { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum LayerLevel { # [codec (index = 0)] Top , # [codec (index = 1)] Middle , # [codec (index = 2)] Bottom , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Tick { pub liquidity_net : :: core :: primitive :: i128 , pub liquidity_gross : :: core :: primitive :: u64 , pub fees_out_tao : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , pub fees_out_alpha : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct TickIndex (pub :: core :: primitive :: i32 ,) ; } } pub mod pallet_subtensor_swap_runtime_api { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SimSwapResult { pub tao_amount : :: core :: primitive :: u64 , pub alpha_amount : :: core :: primitive :: u64 , pub tao_fee : :: core :: primitive :: u64 , pub alpha_fee : :: core :: primitive :: u64 , } } pub mod pallet_subtensor_utility { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Send a batch of dispatch calls."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] # [doc = ""] # [doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] # [doc = "event is deposited. If a call failed and the batch was interrupted, then the"] # [doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] # [doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] # [doc = "event is deposited."] batch { calls : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Send a call through an indexed pseudonym of the sender."] # [doc = ""] # [doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] # [doc = "use the same filter as the origin of this call."] # [doc = ""] # [doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] # [doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] # [doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] # [doc = "in the Multisig pallet instead."] # [doc = ""] # [doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] as_derivative { index : :: core :: primitive :: u16 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 2)] # [doc = "Send a batch of dispatch calls and atomically execute them."] # [doc = "The whole transaction will rollback and fail if any of the calls failed."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] batch_all { calls : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 3)] # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] dispatch_as { as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: OriginCaller > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 4)] # [doc = "Send a batch of dispatch calls."] # [doc = "Unlike `batch`, it allows errors and won't interrupt."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] force_batch { calls : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 5)] # [doc = "Dispatch a function call with a specified weight."] # [doc = ""] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Root origin to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] with_weight { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 6)] # [doc = "Dispatch a fallback call in the event the main call fails to execute."] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "This function first attempts to dispatch the `main` call."] # [doc = "If the `main` call fails, the `fallback` is attemted."] # [doc = "if the fallback is successfully dispatched, the weights of both calls"] # [doc = "are accumulated and an event containing the main call error is deposited."] # [doc = ""] # [doc = "In the event of a fallback failure the whole call fails"] # [doc = "with the weights returned."] # [doc = ""] # [doc = "- `main`: The main call to be dispatched. This is the primary action to execute."] # [doc = "- `fallback`: The fallback call to be dispatched in case the `main` call fails."] # [doc = ""] # [doc = "## Dispatch Logic"] # [doc = "- If the origin is `root`, both the main and fallback calls are executed without"] # [doc = "  applying any origin filters."] # [doc = "- If the origin is not `root`, the origin filter is applied to both the `main` and"] # [doc = "  `fallback` calls."] # [doc = ""] # [doc = "## Use Case"] # [doc = "- Some use cases might involve submitting a `batch` type call in either main, fallback"] # [doc = "  or both."] if_else { main : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , fallback : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 7)] # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] dispatch_as_fallible { as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: OriginCaller > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Too many calls batched."] TooManyCalls , # [codec (index = 1)] # [doc = "Bad input data for derived account ID"] InvalidDerivedAccount , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [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)] # [doc = "Batch of dispatches completed fully with no error."] BatchCompleted , # [codec (index = 2)] # [doc = "Batch of dispatches completed but has errors."] BatchCompletedWithErrors , # [codec (index = 3)] # [doc = "A single item within a Batch of dispatches has completed with no error."] ItemCompleted , # [codec (index = 4)] # [doc = "A single item within a Batch of dispatches has completed with error."] ItemFailed { error : runtime_types :: sp_runtime :: DispatchError , } , # [codec (index = 5)] # [doc = "A call was dispatched."] DispatchedAs { result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 6)] # [doc = "Main call was dispatched."] IfElseMainSuccess , # [codec (index = 7)] # [doc = "The fallback call was dispatched."] IfElseFallbackCalled { main_error : runtime_types :: sp_runtime :: DispatchError , } , } } } pub mod pallet_sudo { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] sudo { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Sudo user to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] sudo_unchecked_weight { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 2)] # [doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] # [doc = "key."] set_key { new : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 3)] # [doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] # [doc = "a given account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] sudo_as { who : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 4)] # [doc = "Permanently removes the sudo key."] # [doc = ""] # [doc = "**This cannot be un-done.**"] remove_key , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Error for the Sudo pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Sender must be the Sudo account."] RequireSudo , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A sudo call just took place."] Sudid { sudo_result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 1)] # [doc = "The sudo key has been updated."] KeyChanged { old : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , new : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 2)] # [doc = "The key was permanently removed."] KeyRemoved , # [codec (index = 3)] # [doc = "A [sudo_as](Pallet::sudo_as) call just took place."] 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Set the current time."] # [doc = ""] # [doc = "This call should be invoked exactly once per block. It will panic at the finalization"] # [doc = "phase, if this call hasn't been invoked by that time."] # [doc = ""] # [doc = "The timestamp should be greater than the previous one by the amount specified by"] # [doc = "[`Config::MinimumPeriod`]."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"] # [doc = "that changing the complexity of this call could result exhausting the resources in a"] # [doc = "block to execute any other calls."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] # [doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"] # [doc = "  `on_finalize`)"] # [doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] set { # [codec (compact)] now : :: core :: primitive :: u64 , } , } } } pub mod pallet_transaction_payment { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] # [doc = "has been paid by `who`."] TransactionFeePaid { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , actual_fee : :: core :: primitive :: u64 , tip : :: core :: primitive :: u64 , } , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InclusionFee < _0 > { pub base_fee : _0 , pub len_fee : _0 , pub adjusted_weight_fee : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ChargeTransactionPayment (# [codec (compact)] pub :: core :: primitive :: u64 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Releases { # [codec (index = 0)] V1Ancient , # [codec (index = 1)] V2 , } } pub mod primitive_types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct U256 (pub [:: core :: primitive :: u64 ; 4usize] ,) ; } pub mod sp_arithmetic { use super :: runtime_types ; pub mod fixed_point { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FixedU128 (pub :: core :: primitive :: u128 ,) ; } pub mod per_things { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Perbill (pub :: core :: primitive :: u32 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Percent (pub :: core :: primitive :: u8 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Permill (pub :: core :: primitive :: u32 ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ArithmeticError { # [codec (index = 0)] Underflow , # [codec (index = 1)] Overflow , # [codec (index = 2)] DivisionByZero , } } pub mod sp_consensus_aura { use super :: runtime_types ; pub mod sr25519 { use super :: runtime_types ; pub mod app_sr25519 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 32usize] ,) ; } } } pub mod sp_consensus_babe { use super :: runtime_types ; pub mod app { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 32usize] ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum AllowedSlots { # [codec (index = 0)] PrimarySlots , # [codec (index = 1)] PrimaryAndSecondaryPlainSlots , # [codec (index = 2)] PrimaryAndSecondaryVRFSlots , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 : :: subxt :: ext :: subxt_core :: alloc :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 : :: subxt :: ext :: subxt_core :: alloc :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OpaqueKeyOwnershipProof (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; } pub mod sp_consensus_grandpa { use super :: runtime_types ; pub mod app { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 32usize] ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Signature (pub [:: core :: primitive :: u8 ; 64usize] ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EquivocationProof < _0 , _1 > { pub set_id : :: core :: primitive :: u64 , pub equivocation : runtime_types :: sp_consensus_grandpa :: Equivocation < _0 , _1 > , } } pub mod sp_consensus_slots { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Slot (pub :: core :: primitive :: u64 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SlotDuration (pub :: core :: primitive :: u64 ,) ; } pub mod sp_core { use super :: runtime_types ; pub mod crypto { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct KeyTypeId (pub [:: core :: primitive :: u8 ; 4usize] ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OpaqueMetadata (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Void { } } pub mod sp_inherents { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InherentData { pub data : :: subxt :: ext :: subxt_core :: utils :: KeyedVec < [:: core :: primitive :: u8 ; 8usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , } } 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Block < _0 , _1 > { pub header : _0 , pub extrinsics : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _1 > , } } pub mod digest { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Digest { pub logs : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: sp_runtime :: generic :: digest :: DigestItem > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum DigestItem { # [codec (index = 6)] PreRuntime ([:: core :: primitive :: u8 ; 4usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 4)] Consensus ([:: core :: primitive :: u8 ; 4usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 5)] Seal ([:: core :: primitive :: u8 ; 4usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 0)] Other (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 8)] RuntimeEnvironmentUpdated , } } pub mod era { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Header < _0 > { pub parent_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , # [codec (compact)] pub number : _0 , pub state_root : :: subxt :: ext :: subxt_core :: utils :: H256 , pub extrinsics_root : :: subxt :: ext :: subxt_core :: utils :: H256 , pub digest : runtime_types :: sp_runtime :: generic :: digest :: Digest , } } } pub mod proving_trie { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TrieError { # [codec (index = 0)] InvalidStateRoot , # [codec (index = 1)] IncompleteDatabase , # [codec (index = 2)] ValueAtIncompleteKey , # [codec (index = 3)] DecoderError , # [codec (index = 4)] InvalidHash , # [codec (index = 5)] DuplicateKey , # [codec (index = 6)] ExtraneousNode , # [codec (index = 7)] ExtraneousValue , # [codec (index = 8)] ExtraneousHashReference , # [codec (index = 9)] InvalidChildReference , # [codec (index = 10)] ValueMismatch , # [codec (index = 11)] IncompleteProof , # [codec (index = 12)] RootMismatch , # [codec (index = 13)] DecodeError , } } pub mod traits { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BlakeTwo256 ; } pub mod transaction_validity { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , # [codec (index = 11)] IndeterminateImplicit , # [codec (index = 12)] UnknownOrigin , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TransactionSource { # [codec (index = 0)] InBlock , # [codec (index = 1)] Local , # [codec (index = 2)] External , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum UnknownTransaction { # [codec (index = 0)] CannotLookup , # [codec (index = 1)] NoUnsignedValidator , # [codec (index = 2)] Custom (:: core :: primitive :: u8 ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidTransaction { pub priority : :: core :: primitive :: u64 , pub requires : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , pub provides : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , pub longevity : :: core :: primitive :: u64 , pub propagate : :: core :: primitive :: bool , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , # [codec (index = 14)] Trie (runtime_types :: sp_runtime :: proving_trie :: TrieError ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DispatchErrorWithPostInfo < _0 > { pub post_info : _0 , pub error : runtime_types :: sp_runtime :: DispatchError , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ExtrinsicInclusionMode { # [codec (index = 0)] AllExtrinsics , # [codec (index = 1)] OnlyInherents , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ModuleError { pub index : :: core :: primitive :: u8 , pub error : [:: core :: primitive :: u8 ; 4usize] , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum MultiSignature { # [codec (index = 0)] Ed25519 ([:: core :: primitive :: u8 ; 64usize] ,) , # [codec (index = 1)] Sr25519 ([:: core :: primitive :: u8 ; 64usize] ,) , # [codec (index = 2)] Ecdsa ([:: core :: primitive :: u8 ; 65usize] ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum MultiSigner { # [codec (index = 0)] Ed25519 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 1)] Sr25519 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 2)] Ecdsa ([:: core :: primitive :: u8 ; 33usize] ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OpaqueValue (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TransactionalError { # [codec (index = 0)] LimitReached , # [codec (index = 1)] NoLayer , } } pub mod sp_version { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RuntimeVersion { pub spec_name : :: subxt :: ext :: subxt_core :: alloc :: string :: String , pub impl_name : :: subxt :: ext :: subxt_core :: alloc :: string :: String , pub authoring_version : :: core :: primitive :: u32 , pub spec_version : :: core :: primitive :: u32 , pub impl_version : :: core :: primitive :: u32 , pub apis : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < ([:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u32 ,) > , pub transaction_version : :: core :: primitive :: u32 , pub system_version : :: core :: primitive :: u8 , } } pub mod sp_weights { use super :: runtime_types ; pub mod weight_v2 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RuntimeDbWeight { pub read : :: core :: primitive :: u64 , pub write : :: core :: primitive :: u64 , } } pub mod substrate_fixed { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FixedI128 < _0 > { pub bits : :: core :: primitive :: i128 , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _0 > } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FixedI64 < _0 > { pub bits : :: core :: primitive :: i64 , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _0 > } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FixedU128 < _0 > { pub bits : :: core :: primitive :: u128 , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _0 > } } pub mod substrate_typenum { use super :: runtime_types ; pub mod bit { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct B0 ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct B1 ; } pub mod uint { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UInt < _0 , _1 > { pub msb : _0 , pub lsb : _1 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UTerm ; } } pub mod subtensor_runtime_common { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ProxyType { # [codec (index = 0)] Any , # [codec (index = 1)] Owner , # [codec (index = 2)] NonCritical , # [codec (index = 3)] NonTransfer , # [codec (index = 4)] Senate , # [codec (index = 5)] NonFungible , # [codec (index = 6)] Triumvirate , # [codec (index = 7)] Governance , # [codec (index = 8)] Staking , # [codec (index = 9)] Registration , # [codec (index = 10)] Transfer , # [codec (index = 11)] SmallTransfer , # [codec (index = 12)] RootWeights , # [codec (index = 13)] ChildKeys , # [codec (index = 14)] SudoUncheckedSetCode , # [codec (index = 15)] SwapHotkey , # [codec (index = 16)] SubnetLeaseBeneficiary , # [codec (index = 17)] RootClaim , } } } }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       +                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `T`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/bittensor-rs-947ae3f8b8f52047/out/metadata.rs:3:329540
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...iation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a ...
[INFO] [stdout]   |                                                                      ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `u16`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/bittensor-rs-947ae3f8b8f52047/out/metadata.rs:3:328559
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... = "--- Sets the caller weights for the incentive mechanism for mechanisms. The call"] # [doc = "can be made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechnism identifier."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."] p...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: try marking as source code
[INFO] [stdout]   |
[INFO] [stdout] 3 | # [allow (dead_code , unused_imports , non_camel_case_types , unreachable_patterns)] # [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 ; 27usize] = ["System" , "RandomnessCollectiveFlip" , "Timestamp" , "Aura" , "Grandpa" , "Balances" , "TransactionPayment" , "SubtensorModule" , "Utility" , "Sudo" , "Multisig" , "Preimage" , "Scheduler" , "Proxy" , "Registry" , "Commitments" , "AdminUtils" , "SafeMode" , "Ethereum" , "EVM" , "EVMChainId" , "BaseFee" , "Drand" , "Crowdloan" , "Swap" , "Contracts" , "MevShield" ,] ; pub static RUNTIME_APIS : [& str ; 22usize] = ["Core" , "Metadata" , "BlockBuilder" , "GenesisBuilder" , "TaggedTransactionQueue" , "OffchainWorkerApi" , "AuraApi" , "SessionKeys" , "GrandpaApi" , "AccountNonceApi" , "TransactionPaymentApi" , "TransactionPaymentCallApi" , "EthereumRuntimeRPCApi" , "ConvertTransactionRuntimeApi" , "ContractsApi" , "DelegateInfoRuntimeApi" , "NeuronInfoRuntimeApi" , "SubnetInfoRuntimeApi" , "StakeInfoRuntimeApi" , "SubnetRegistrationRuntimeApi" , "BabeApi" , "SwapRuntimeApi" ,] ; # [doc = r" The error type that is returned when there is a runtime issue."] pub type DispatchError = runtime_types :: sp_runtime :: DispatchError ; # [doc = r" The outer event enum."] pub type Event = runtime_types :: node_subtensor_runtime :: RuntimeEvent ; # [doc = r" The outer extrinsic enum."] pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; # [doc = r" The outer error enum represents the DispatchError's Module variant."] pub type Error = runtime_types :: node_subtensor_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 ; use super :: runtime_types ; use :: subxt :: ext :: subxt_core :: 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 genesis_builder (& self) -> genesis_builder :: GenesisBuilder { genesis_builder :: GenesisBuilder } 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 aura_api (& self) -> aura_api :: AuraApi { aura_api :: AuraApi } pub fn session_keys (& self) -> session_keys :: SessionKeys { session_keys :: SessionKeys } pub fn grandpa_api (& self) -> grandpa_api :: GrandpaApi { grandpa_api :: GrandpaApi } 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 transaction_payment_call_api (& self) -> transaction_payment_call_api :: TransactionPaymentCallApi { transaction_payment_call_api :: TransactionPaymentCallApi } 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 contracts_api (& self) -> contracts_api :: ContractsApi { contracts_api :: ContractsApi } pub fn delegate_info_runtime_api (& self) -> delegate_info_runtime_api :: DelegateInfoRuntimeApi { delegate_info_runtime_api :: DelegateInfoRuntimeApi } pub fn neuron_info_runtime_api (& self) -> neuron_info_runtime_api :: NeuronInfoRuntimeApi { neuron_info_runtime_api :: NeuronInfoRuntimeApi } pub fn subnet_info_runtime_api (& self) -> subnet_info_runtime_api :: SubnetInfoRuntimeApi { subnet_info_runtime_api :: SubnetInfoRuntimeApi } pub fn stake_info_runtime_api (& self) -> stake_info_runtime_api :: StakeInfoRuntimeApi { stake_info_runtime_api :: StakeInfoRuntimeApi } pub fn subnet_registration_runtime_api (& self) -> subnet_registration_runtime_api :: SubnetRegistrationRuntimeApi { subnet_registration_runtime_api :: SubnetRegistrationRuntimeApi } pub fn babe_api (& self) -> babe_api :: BabeApi { babe_api :: BabeApi } pub fn swap_runtime_api (& self) -> swap_runtime_api :: SwapRuntimeApi { swap_runtime_api :: SwapRuntimeApi } } pub mod core { use super :: root_mod ; use super :: runtime_types ; # [doc = " The `Core` runtime api that every Substrate runtime needs to implement."] pub struct Core ; impl Core { # [doc = " Returns the version of the runtime."] pub fn version (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Version , types :: version :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("Core" , "version" , types :: Version { } , [79u8 , 22u8 , 137u8 , 4u8 , 40u8 , 64u8 , 30u8 , 180u8 , 49u8 , 222u8 , 114u8 , 125u8 , 44u8 , 25u8 , 33u8 , 152u8 , 98u8 , 42u8 , 72u8 , 178u8 , 240u8 , 103u8 , 34u8 , 187u8 , 81u8 , 161u8 , 183u8 , 6u8 , 120u8 , 2u8 , 146u8 , 0u8 ,] ,) } # [doc = " Execute the given block."] pub fn execute_block (& self , block : types :: execute_block :: Block ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ExecuteBlock , types :: execute_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("Core" , "execute_block" , types :: ExecuteBlock { block , } , [71u8 , 186u8 , 53u8 , 183u8 , 85u8 , 95u8 , 61u8 , 56u8 , 159u8 , 137u8 , 111u8 , 34u8 , 39u8 , 238u8 , 212u8 , 113u8 , 200u8 , 93u8 , 118u8 , 143u8 , 186u8 , 16u8 , 79u8 , 249u8 , 95u8 , 210u8 , 240u8 , 0u8 , 220u8 , 57u8 , 121u8 , 186u8 ,] ,) } # [doc = " Initialize a block with the given header and return the runtime executive mode."] pub fn initialize_block (& self , header : types :: initialize_block :: Header ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: InitializeBlock , types :: initialize_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("Core" , "initialize_block" , types :: InitializeBlock { header , } , [132u8 , 169u8 , 113u8 , 112u8 , 80u8 , 139u8 , 113u8 , 35u8 , 41u8 , 81u8 , 36u8 , 35u8 , 37u8 , 202u8 , 29u8 , 207u8 , 205u8 , 229u8 , 145u8 , 7u8 , 133u8 , 94u8 , 25u8 , 108u8 , 233u8 , 86u8 , 234u8 , 29u8 , 236u8 , 57u8 , 56u8 , 186u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod version { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_version :: RuntimeVersion ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Version { } pub mod execute_block { use super :: runtime_types ; pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub mod output { use super :: runtime_types ; pub type Output = () ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ExecuteBlock { pub block : execute_block :: Block , } pub mod initialize_block { use super :: runtime_types ; pub type Header = runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_runtime :: ExtrinsicInclusionMode ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InitializeBlock { pub header : initialize_block :: Header , } } } pub mod metadata { use super :: root_mod ; use super :: runtime_types ; # [doc = " The `Metadata` api trait that returns metadata for the runtime."] pub struct Metadata ; impl Metadata { # [doc = " Returns the metadata of a runtime."] pub fn metadata (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Metadata , types :: metadata :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [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 : types :: metadata_at_version :: Version ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: MetadataAtVersion , types :: metadata_at_version :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Returns the supported metadata versions."] # [doc = ""] # [doc = " This can be used to call `metadata_at_version`."] pub fn metadata_versions (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: MetadataVersions , types :: metadata_versions :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ; pub mod metadata { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_core :: OpaqueMetadata ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Metadata { } pub mod metadata_at_version { use super :: runtime_types ; pub type Version = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: sp_core :: OpaqueMetadata > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MetadataAtVersion { pub version : metadata_at_version :: Version , } pub mod metadata_versions { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u32 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MetadataVersions { } } } pub mod block_builder { use super :: root_mod ; use super :: runtime_types ; # [doc = " The `BlockBuilder` api trait that provides the required functionality for building a block."] pub struct BlockBuilder ; impl BlockBuilder { # [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 : types :: apply_extrinsic :: Extrinsic ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ApplyExtrinsic , types :: apply_extrinsic :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BlockBuilder" , "apply_extrinsic" , types :: ApplyExtrinsic { extrinsic , } , [20u8 , 216u8 , 216u8 , 106u8 , 88u8 , 52u8 , 32u8 , 26u8 , 170u8 , 214u8 , 30u8 , 9u8 , 196u8 , 53u8 , 223u8 , 193u8 , 132u8 , 231u8 , 31u8 , 40u8 , 178u8 , 197u8 , 238u8 , 115u8 , 153u8 , 197u8 , 220u8 , 135u8 , 253u8 , 61u8 , 58u8 , 145u8 ,] ,) } # [doc = " Finish the current block."] pub fn finalize_block (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: FinalizeBlock , types :: finalize_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BlockBuilder" , "finalize_block" , types :: FinalizeBlock { } , [244u8 , 207u8 , 24u8 , 33u8 , 13u8 , 69u8 , 9u8 , 249u8 , 145u8 , 143u8 , 122u8 , 96u8 , 197u8 , 55u8 , 64u8 , 111u8 , 238u8 , 224u8 , 34u8 , 201u8 , 27u8 , 146u8 , 232u8 , 99u8 , 191u8 , 30u8 , 114u8 , 16u8 , 32u8 , 220u8 , 58u8 , 62u8 ,] ,) } # [doc = " Generate inherent extrinsics. The inherent data will vary from chain to chain."] pub fn inherent_extrinsics (& self , inherent : types :: inherent_extrinsics :: Inherent ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: InherentExtrinsics , types :: inherent_extrinsics :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Check that the inherents are valid. The inherent data will vary from chain to chain."] pub fn check_inherents (& self , block : types :: check_inherents :: Block , data : types :: check_inherents :: Data ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CheckInherents , types :: check_inherents :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BlockBuilder" , "check_inherents" , types :: CheckInherents { block , data , } , [188u8 , 160u8 , 23u8 , 43u8 , 139u8 , 48u8 , 47u8 , 82u8 , 226u8 , 24u8 , 53u8 , 86u8 , 114u8 , 2u8 , 206u8 , 95u8 , 174u8 , 219u8 , 60u8 , 86u8 , 142u8 , 164u8 , 171u8 , 101u8 , 249u8 , 40u8 , 171u8 , 123u8 , 137u8 , 219u8 , 122u8 , 9u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod apply_extrinsic { use super :: runtime_types ; pub type Extrinsic = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , runtime_types :: sp_runtime :: transaction_validity :: TransactionValidityError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ApplyExtrinsic { pub extrinsic : apply_extrinsic :: Extrinsic , } pub mod finalize_block { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FinalizeBlock { } pub mod inherent_extrinsics { use super :: runtime_types ; pub type Inherent = runtime_types :: sp_inherents :: InherentData ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InherentExtrinsics { pub inherent : inherent_extrinsics :: Inherent , } pub mod check_inherents { use super :: runtime_types ; pub type Block = runtime_types :: sp_runtime :: generic :: block :: Block < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub type Data = runtime_types :: sp_inherents :: InherentData ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_inherents :: CheckInherentsResult ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckInherents { pub block : check_inherents :: Block , pub data : check_inherents :: Data , } } } pub mod genesis_builder { use super :: root_mod ; use super :: runtime_types ; # [doc = " API to interact with `RuntimeGenesisConfig` for the runtime"] pub struct GenesisBuilder ; impl GenesisBuilder { # [doc = " Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the"] # [doc = " storage."] # [doc = ""] # [doc = " In the case of a FRAME-based runtime, this function deserializes the full"] # [doc = " `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the"] # [doc = " provided JSON blob is incorrect or incomplete or the deserialization fails, an error"] # [doc = " is returned."] # [doc = ""] # [doc = " Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no"] # [doc = " defaults will be used."] pub fn build_state (& self , json : types :: build_state :: Json ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: BuildState , types :: build_state :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GenesisBuilder" , "build_state" , types :: BuildState { json , } , [203u8 , 233u8 , 104u8 , 116u8 , 111u8 , 131u8 , 201u8 , 235u8 , 117u8 , 116u8 , 140u8 , 185u8 , 93u8 , 25u8 , 155u8 , 210u8 , 56u8 , 49u8 , 23u8 , 32u8 , 253u8 , 92u8 , 149u8 , 241u8 , 85u8 , 245u8 , 137u8 , 45u8 , 209u8 , 189u8 , 81u8 , 2u8 ,] ,) } # [doc = " Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by"] # [doc = " `id`."] # [doc = ""] # [doc = " If `id` is `None` the function should return JSON blob representation of the default"] # [doc = " `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default"] # [doc = " `RuntimeGenesisConfig`."] # [doc = ""] # [doc = " Otherwise function returns a JSON representation of the built-in, named"] # [doc = " `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not"] # [doc = " exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of"] # [doc = " (potentially nested) key-value pairs that are intended for customizing the default"] # [doc = " runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation"] # [doc = " of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can"] # [doc = " be used in `build_state` method."] pub fn get_preset (& self , id : types :: get_preset :: Id ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetPreset , types :: get_preset :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GenesisBuilder" , "get_preset" , types :: GetPreset { id , } , [43u8 , 153u8 , 23u8 , 52u8 , 113u8 , 161u8 , 227u8 , 122u8 , 169u8 , 135u8 , 119u8 , 8u8 , 128u8 , 33u8 , 143u8 , 235u8 , 13u8 , 173u8 , 58u8 , 121u8 , 178u8 , 223u8 , 66u8 , 217u8 , 22u8 , 244u8 , 168u8 , 113u8 , 202u8 , 186u8 , 241u8 , 124u8 ,] ,) } # [doc = " Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets."] # [doc = ""] # [doc = " The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If"] # [doc = " no named presets are provided by the runtime the list is empty."] pub fn preset_names (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: PresetNames , types :: preset_names :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GenesisBuilder" , "preset_names" , types :: PresetNames { } , [150u8 , 117u8 , 54u8 , 129u8 , 221u8 , 130u8 , 186u8 , 71u8 , 13u8 , 140u8 , 77u8 , 180u8 , 141u8 , 37u8 , 22u8 , 219u8 , 149u8 , 218u8 , 186u8 , 206u8 , 80u8 , 42u8 , 165u8 , 41u8 , 99u8 , 184u8 , 73u8 , 37u8 , 125u8 , 188u8 , 167u8 , 122u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod build_state { use super :: runtime_types ; pub type Json = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < () , :: subxt :: ext :: subxt_core :: alloc :: string :: String > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BuildState { pub json : build_state :: Json , } pub mod get_preset { use super :: runtime_types ; pub type Id = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: string :: String > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetPreset { pub id : get_preset :: Id , } pub mod preset_names { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: string :: String > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PresetNames { } } } pub mod tagged_transaction_queue { use super :: root_mod ; use super :: runtime_types ; # [doc = " The `TaggedTransactionQueue` api trait for interfering with the transaction queue."] pub struct TaggedTransactionQueue ; impl TaggedTransactionQueue { # [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 : types :: validate_transaction :: Source , tx : types :: validate_transaction :: Tx , block_hash : types :: validate_transaction :: BlockHash ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ValidateTransaction , types :: validate_transaction :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TaggedTransactionQueue" , "validate_transaction" , types :: ValidateTransaction { source , tx , block_hash , } , [213u8 , 188u8 , 51u8 , 29u8 , 155u8 , 246u8 , 70u8 , 43u8 , 224u8 , 47u8 , 160u8 , 105u8 , 29u8 , 125u8 , 243u8 , 213u8 , 51u8 , 162u8 , 72u8 , 94u8 , 125u8 , 108u8 , 239u8 , 233u8 , 74u8 , 163u8 , 13u8 , 19u8 , 170u8 , 140u8 , 31u8 , 254u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod validate_transaction { use super :: runtime_types ; pub type Source = runtime_types :: sp_runtime :: transaction_validity :: TransactionSource ; pub type Tx = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; pub type BlockHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: sp_runtime :: transaction_validity :: ValidTransaction , runtime_types :: sp_runtime :: transaction_validity :: TransactionValidityError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidateTransaction { pub source : validate_transaction :: Source , pub tx : validate_transaction :: Tx , pub block_hash : validate_transaction :: BlockHash , } } } pub mod offchain_worker_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " The offchain worker api."] pub struct OffchainWorkerApi ; impl OffchainWorkerApi { # [doc = " Starts the off-chain task for given block header."] pub fn offchain_worker (& self , header : types :: offchain_worker :: Header ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: OffchainWorker , types :: offchain_worker :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("OffchainWorkerApi" , "offchain_worker" , types :: OffchainWorker { header , } , [10u8 , 135u8 , 19u8 , 153u8 , 33u8 , 216u8 , 18u8 , 242u8 , 33u8 , 140u8 , 4u8 , 223u8 , 200u8 , 130u8 , 103u8 , 118u8 , 137u8 , 24u8 , 19u8 , 127u8 , 161u8 , 29u8 , 184u8 , 111u8 , 222u8 , 111u8 , 253u8 , 73u8 , 45u8 , 31u8 , 79u8 , 60u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod offchain_worker { use super :: runtime_types ; pub type Header = runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > ; pub mod output { use super :: runtime_types ; pub type Output = () ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OffchainWorker { pub header : offchain_worker :: Header , } } } pub mod aura_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " API necessary for block authorship with aura."] pub struct AuraApi ; impl AuraApi { # [doc = " Returns the slot duration for Aura."] # [doc = ""] # [doc = " Currently, only the value provided by this type at genesis will be used."] pub fn slot_duration (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SlotDuration , types :: slot_duration :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("AuraApi" , "slot_duration" , types :: SlotDuration { } , [233u8 , 210u8 , 132u8 , 172u8 , 100u8 , 125u8 , 239u8 , 92u8 , 114u8 , 82u8 , 7u8 , 110u8 , 179u8 , 196u8 , 10u8 , 19u8 , 211u8 , 15u8 , 174u8 , 2u8 , 91u8 , 73u8 , 133u8 , 100u8 , 205u8 , 201u8 , 191u8 , 60u8 , 163u8 , 122u8 , 215u8 , 10u8 ,] ,) } # [doc = " Return the current set of authorities."] pub fn authorities (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Authorities , types :: authorities :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("AuraApi" , "authorities" , types :: Authorities { } , [35u8 , 244u8 , 24u8 , 155u8 , 95u8 , 1u8 , 221u8 , 159u8 , 33u8 , 144u8 , 213u8 , 26u8 , 13u8 , 21u8 , 136u8 , 72u8 , 45u8 , 47u8 , 15u8 , 51u8 , 235u8 , 10u8 , 6u8 , 219u8 , 9u8 , 246u8 , 50u8 , 252u8 , 49u8 , 77u8 , 64u8 , 182u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod slot_duration { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_consensus_slots :: SlotDuration ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SlotDuration { } pub mod authorities { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Authorities { } } } pub mod session_keys { use super :: root_mod ; use super :: runtime_types ; # [doc = " Session keys runtime api."] pub struct SessionKeys ; impl SessionKeys { # [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 : types :: generate_session_keys :: Seed ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GenerateSessionKeys , types :: generate_session_keys :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [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 : types :: decode_session_keys :: Encoded ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: DecodeSessionKeys , types :: decode_session_keys :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ; pub mod generate_session_keys { use super :: runtime_types ; pub type Seed = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GenerateSessionKeys { pub seed : generate_session_keys :: Seed , } pub mod decode_session_keys { use super :: runtime_types ; pub type Encoded = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , runtime_types :: sp_core :: crypto :: KeyTypeId ,) > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DecodeSessionKeys { pub encoded : decode_session_keys :: Encoded , } } } pub mod grandpa_api { use super :: root_mod ; use super :: runtime_types ; # [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 { # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GrandpaAuthorities , types :: grandpa_authorities :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GrandpaApi" , "grandpa_authorities" , types :: GrandpaAuthorities { } , [8u8 , 1u8 , 99u8 , 227u8 , 52u8 , 95u8 , 230u8 , 139u8 , 198u8 , 90u8 , 159u8 , 146u8 , 193u8 , 81u8 , 37u8 , 27u8 , 216u8 , 227u8 , 108u8 , 126u8 , 12u8 , 94u8 , 125u8 , 183u8 , 143u8 , 231u8 , 87u8 , 101u8 , 114u8 , 190u8 , 193u8 , 180u8 ,] ,) } # [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 : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof , key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SubmitReportEquivocationUnsignedExtrinsic , types :: submit_report_equivocation_unsigned_extrinsic :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GrandpaApi" , "submit_report_equivocation_unsigned_extrinsic" , types :: SubmitReportEquivocationUnsignedExtrinsic { equivocation_proof , key_owner_proof , } , [27u8 , 32u8 , 16u8 , 79u8 , 172u8 , 124u8 , 44u8 , 13u8 , 176u8 , 89u8 , 69u8 , 60u8 , 45u8 , 176u8 , 72u8 , 151u8 , 252u8 , 5u8 , 243u8 , 82u8 , 170u8 , 51u8 , 179u8 , 197u8 , 117u8 , 177u8 , 110u8 , 111u8 , 97u8 , 15u8 , 109u8 , 169u8 ,] ,) } # [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 : types :: generate_key_ownership_proof :: SetId , authority_id : types :: generate_key_ownership_proof :: AuthorityId ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GenerateKeyOwnershipProof , types :: generate_key_ownership_proof :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("GrandpaApi" , "generate_key_ownership_proof" , types :: GenerateKeyOwnershipProof { set_id , authority_id , } , [13u8 , 144u8 , 66u8 , 235u8 , 24u8 , 190u8 , 39u8 , 75u8 , 29u8 , 157u8 , 215u8 , 181u8 , 173u8 , 145u8 , 224u8 , 244u8 , 189u8 , 79u8 , 6u8 , 116u8 , 139u8 , 196u8 , 54u8 , 16u8 , 89u8 , 190u8 , 121u8 , 43u8 , 137u8 , 150u8 , 117u8 , 68u8 ,] ,) } # [doc = " Get current GRANDPA authority set id."] pub fn current_set_id (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentSetId , types :: current_set_id :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ; pub mod grandpa_authorities { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GrandpaAuthorities { } pub mod submit_report_equivocation_unsigned_extrinsic { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > ; pub type KeyOwnerProof = runtime_types :: sp_runtime :: OpaqueValue ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < () > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { pub equivocation_proof : submit_report_equivocation_unsigned_extrinsic :: EquivocationProof , pub key_owner_proof : submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof , } pub mod generate_key_ownership_proof { use super :: runtime_types ; pub type SetId = :: core :: primitive :: u64 ; pub type AuthorityId = runtime_types :: sp_consensus_grandpa :: app :: Public ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: sp_runtime :: OpaqueValue > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { pub set_id : generate_key_ownership_proof :: SetId , pub authority_id : generate_key_ownership_proof :: AuthorityId , } pub mod current_set_id { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentSetId { } } } pub mod account_nonce_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " The API to query account nonce."] pub struct AccountNonceApi ; impl AccountNonceApi { # [doc = " Get current account nonce of given `AccountId`."] pub fn account_nonce (& self , account : types :: account_nonce :: Account ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: AccountNonce , types :: account_nonce :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ; pub mod account_nonce { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u32 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AccountNonce { pub account : account_nonce :: Account , } } } pub mod transaction_payment_api { use super :: root_mod ; use super :: runtime_types ; pub struct TransactionPaymentApi ; impl TransactionPaymentApi { pub fn query_info (& self , uxt : types :: query_info :: Uxt , len : types :: query_info :: Len ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryInfo , types :: query_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentApi" , "query_info" , types :: QueryInfo { uxt , len , } , [54u8 , 3u8 , 155u8 , 175u8 , 234u8 , 40u8 , 67u8 , 208u8 , 24u8 , 38u8 , 236u8 , 154u8 , 89u8 , 131u8 , 217u8 , 136u8 , 252u8 , 10u8 , 141u8 , 112u8 , 149u8 , 20u8 , 41u8 , 128u8 , 156u8 , 55u8 , 153u8 , 255u8 , 211u8 , 133u8 , 25u8 , 205u8 ,] ,) } pub fn query_fee_details (& self , uxt : types :: query_fee_details :: Uxt , len : types :: query_fee_details :: Len ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryFeeDetails , types :: query_fee_details :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentApi" , "query_fee_details" , types :: QueryFeeDetails { uxt , len , } , [74u8 , 176u8 , 154u8 , 28u8 , 200u8 , 208u8 , 20u8 , 237u8 , 75u8 , 65u8 , 27u8 , 89u8 , 157u8 , 255u8 , 254u8 , 124u8 , 34u8 , 79u8 , 226u8 , 13u8 , 110u8 , 118u8 , 59u8 , 76u8 , 197u8 , 21u8 , 251u8 , 42u8 , 179u8 , 203u8 , 122u8 , 88u8 ,] ,) } pub fn query_weight_to_fee (& self , weight : types :: query_weight_to_fee :: Weight ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryWeightToFee , types :: query_weight_to_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentApi" , "query_weight_to_fee" , types :: QueryWeightToFee { weight , } , [43u8 , 38u8 , 7u8 , 127u8 , 93u8 , 202u8 , 221u8 , 100u8 , 79u8 , 26u8 , 61u8 , 51u8 , 106u8 , 250u8 , 233u8 , 161u8 , 32u8 , 72u8 , 198u8 , 28u8 , 94u8 , 150u8 , 8u8 , 143u8 , 58u8 , 148u8 , 69u8 , 198u8 , 215u8 , 27u8 , 186u8 , 242u8 ,] ,) } pub fn query_length_to_fee (& self , length : types :: query_length_to_fee :: Length ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryLengthToFee , types :: query_length_to_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentApi" , "query_length_to_fee" , types :: QueryLengthToFee { length , } , [129u8 , 136u8 , 216u8 , 144u8 , 66u8 , 102u8 , 146u8 , 169u8 , 202u8 , 11u8 , 0u8 , 146u8 , 200u8 , 172u8 , 84u8 , 238u8 , 129u8 , 32u8 , 214u8 , 169u8 , 130u8 , 111u8 , 112u8 , 68u8 , 51u8 , 8u8 , 174u8 , 90u8 , 81u8 , 46u8 , 0u8 , 249u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod query_info { use super :: runtime_types ; pub type Uxt = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; pub type Len = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_transaction_payment :: types :: RuntimeDispatchInfo < :: core :: primitive :: u64 , runtime_types :: sp_weights :: weight_v2 :: Weight > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryInfo { pub uxt : query_info :: Uxt , pub len : query_info :: Len , } pub mod query_fee_details { use super :: runtime_types ; pub type Uxt = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; pub type Len = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_transaction_payment :: types :: FeeDetails < :: core :: primitive :: u64 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryFeeDetails { pub uxt : query_fee_details :: Uxt , pub len : query_fee_details :: Len , } pub mod query_weight_to_fee { use super :: runtime_types ; pub type Weight = runtime_types :: sp_weights :: weight_v2 :: Weight ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryWeightToFee { pub weight : query_weight_to_fee :: Weight , } pub mod query_length_to_fee { use super :: runtime_types ; pub type Length = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryLengthToFee { pub length : query_length_to_fee :: Length , } } } pub mod transaction_payment_call_api { use super :: root_mod ; use super :: runtime_types ; pub struct TransactionPaymentCallApi ; impl TransactionPaymentCallApi { # [doc = " Query information of a dispatch class, weight, and fee of a given encoded `Call`."] pub fn query_call_info (& self , call : types :: query_call_info :: Call , len : types :: query_call_info :: Len ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryCallInfo , types :: query_call_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentCallApi" , "query_call_info" , types :: QueryCallInfo { call , len , } , [53u8 , 9u8 , 17u8 , 129u8 , 31u8 , 38u8 , 94u8 , 33u8 , 78u8 , 61u8 , 110u8 , 185u8 , 223u8 , 145u8 , 38u8 , 79u8 , 243u8 , 41u8 , 231u8 , 184u8 , 129u8 , 118u8 , 218u8 , 194u8 , 70u8 , 22u8 , 68u8 , 60u8 , 239u8 , 95u8 , 71u8 , 191u8 ,] ,) } # [doc = " Query fee details of a given encoded `Call`."] pub fn query_call_fee_details (& self , call : types :: query_call_fee_details :: Call , len : types :: query_call_fee_details :: Len ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryCallFeeDetails , types :: query_call_fee_details :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentCallApi" , "query_call_fee_details" , types :: QueryCallFeeDetails { call , len , } , [98u8 , 251u8 , 127u8 , 144u8 , 92u8 , 41u8 , 226u8 , 149u8 , 11u8 , 213u8 , 172u8 , 248u8 , 38u8 , 37u8 , 58u8 , 193u8 , 129u8 , 227u8 , 248u8 , 137u8 , 228u8 , 38u8 , 1u8 , 242u8 , 54u8 , 231u8 , 140u8 , 167u8 , 164u8 , 88u8 , 27u8 , 51u8 ,] ,) } # [doc = " Query the output of the current `WeightToFee` given some input."] pub fn query_weight_to_fee (& self , weight : types :: query_weight_to_fee :: Weight ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryWeightToFee , types :: query_weight_to_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentCallApi" , "query_weight_to_fee" , types :: QueryWeightToFee { weight , } , [154u8 , 155u8 , 82u8 , 35u8 , 212u8 , 163u8 , 97u8 , 198u8 , 2u8 , 206u8 , 243u8 , 23u8 , 100u8 , 233u8 , 202u8 , 247u8 , 176u8 , 177u8 , 138u8 , 135u8 , 164u8 , 220u8 , 9u8 , 182u8 , 226u8 , 22u8 , 29u8 , 173u8 , 234u8 , 18u8 , 230u8 , 184u8 ,] ,) } # [doc = " Query the output of the current `LengthToFee` given some input."] pub fn query_length_to_fee (& self , length : types :: query_length_to_fee :: Length ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: QueryLengthToFee , types :: query_length_to_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("TransactionPaymentCallApi" , "query_length_to_fee" , types :: QueryLengthToFee { length , } , [81u8 , 163u8 , 41u8 , 53u8 , 39u8 , 220u8 , 142u8 , 196u8 , 240u8 , 62u8 , 204u8 , 3u8 , 172u8 , 25u8 , 99u8 , 48u8 , 143u8 , 115u8 , 9u8 , 151u8 , 167u8 , 209u8 , 207u8 , 224u8 , 50u8 , 232u8 , 73u8 , 176u8 , 130u8 , 80u8 , 185u8 , 105u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod query_call_info { use super :: runtime_types ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type Len = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_transaction_payment :: types :: RuntimeDispatchInfo < :: core :: primitive :: u64 , runtime_types :: sp_weights :: weight_v2 :: Weight > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryCallInfo { pub call : query_call_info :: Call , pub len : query_call_info :: Len , } pub mod query_call_fee_details { use super :: runtime_types ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type Len = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_transaction_payment :: types :: FeeDetails < :: core :: primitive :: u64 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryCallFeeDetails { pub call : query_call_fee_details :: Call , pub len : query_call_fee_details :: Len , } pub mod query_weight_to_fee { use super :: runtime_types ; pub type Weight = runtime_types :: sp_weights :: weight_v2 :: Weight ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryWeightToFee { pub weight : query_weight_to_fee :: Weight , } pub mod query_length_to_fee { use super :: runtime_types ; pub type Length = :: core :: primitive :: u32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct QueryLengthToFee { pub length : query_length_to_fee :: Length , } } } pub mod ethereum_runtime_rpc_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " API necessary for Ethereum-compatibility layer."] pub struct EthereumRuntimeRPCApi ; impl EthereumRuntimeRPCApi { # [doc = " Returns runtime defined pallet_evm::ChainId."] pub fn chain_id (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ChainId , types :: chain_id :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Returns pallet_evm::Accounts by address."] pub fn account_basic (& self , address : types :: account_basic :: Address ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: AccountBasic , types :: account_basic :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Returns FixedGasPrice::min_gas_price"] pub fn gas_price (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GasPrice , types :: gas_price :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " For a given account address, returns pallet_evm::AccountCodes."] pub fn account_code_at (& self , address : types :: account_code_at :: Address ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: AccountCodeAt , types :: account_code_at :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Returns the converted FindAuthor::find_author authority id."] pub fn author (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Author , types :: author :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " For a given account address and index, returns pallet_evm::AccountStorages."] pub fn storage_at (& self , address : types :: storage_at :: Address , index : types :: storage_at :: Index ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: StorageAt , types :: storage_at :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 : types :: call :: From , to : types :: call :: To , data : types :: call :: Data , value : types :: call :: Value , gas_limit : types :: call :: GasLimit , max_fee_per_gas : types :: call :: MaxFeePerGas , max_priority_fee_per_gas : types :: call :: MaxPriorityFeePerGas , nonce : types :: call :: Nonce , estimate : types :: call :: Estimate , access_list : types :: call :: AccessList , authorization_list : types :: call :: AuthorizationList ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Call , types :: call :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 , authorization_list , } , [178u8 , 88u8 , 191u8 , 176u8 , 144u8 , 12u8 , 113u8 , 151u8 , 135u8 , 121u8 , 142u8 , 22u8 , 125u8 , 234u8 , 163u8 , 159u8 , 35u8 , 141u8 , 131u8 , 138u8 , 202u8 , 112u8 , 224u8 , 216u8 , 135u8 , 184u8 , 189u8 , 32u8 , 172u8 , 115u8 , 198u8 , 210u8 ,] ,) } pub fn create (& self , from : types :: create :: From , data : types :: create :: Data , value : types :: create :: Value , gas_limit : types :: create :: GasLimit , max_fee_per_gas : types :: create :: MaxFeePerGas , max_priority_fee_per_gas : types :: create :: MaxPriorityFeePerGas , nonce : types :: create :: Nonce , estimate : types :: create :: Estimate , access_list : types :: create :: AccessList , authorization_list : types :: create :: AuthorizationList ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Create , types :: create :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "create" , types :: Create { from , data , value , gas_limit , max_fee_per_gas , max_priority_fee_per_gas , nonce , estimate , access_list , authorization_list , } , [193u8 , 139u8 , 221u8 , 68u8 , 76u8 , 215u8 , 40u8 , 174u8 , 33u8 , 255u8 , 125u8 , 86u8 , 34u8 , 194u8 , 250u8 , 7u8 , 189u8 , 15u8 , 45u8 , 233u8 , 29u8 , 12u8 , 18u8 , 115u8 , 73u8 , 178u8 , 101u8 , 120u8 , 206u8 , 201u8 , 79u8 , 43u8 ,] ,) } # [doc = " Return the current block."] pub fn current_block (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentBlock , types :: current_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "current_block" , types :: CurrentBlock { } , [224u8 , 151u8 , 240u8 , 159u8 , 230u8 , 34u8 , 172u8 , 75u8 , 156u8 , 204u8 , 11u8 , 149u8 , 41u8 , 190u8 , 219u8 , 238u8 , 159u8 , 20u8 , 200u8 , 153u8 , 20u8 , 221u8 , 29u8 , 4u8 , 50u8 , 2u8 , 101u8 , 253u8 , 129u8 , 31u8 , 57u8 , 12u8 ,] ,) } # [doc = " Return the current receipt."] pub fn current_receipts (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentReceipts , types :: current_receipts :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "current_receipts" , types :: CurrentReceipts { } , [73u8 , 14u8 , 230u8 , 134u8 , 83u8 , 120u8 , 240u8 , 61u8 , 175u8 , 9u8 , 252u8 , 66u8 , 233u8 , 150u8 , 65u8 , 76u8 , 30u8 , 203u8 , 190u8 , 231u8 , 224u8 , 62u8 , 49u8 , 198u8 , 168u8 , 150u8 , 191u8 , 61u8 , 103u8 , 210u8 , 112u8 , 82u8 ,] ,) } # [doc = " Return the current transaction status."] pub fn current_transaction_statuses (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentTransactionStatuses , types :: current_transaction_statuses :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentAll , types :: current_all :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "current_all" , types :: CurrentAll { } , [236u8 , 179u8 , 167u8 , 68u8 , 50u8 , 151u8 , 108u8 , 138u8 , 48u8 , 196u8 , 83u8 , 92u8 , 69u8 , 253u8 , 47u8 , 211u8 , 127u8 , 226u8 , 115u8 , 132u8 , 113u8 , 137u8 , 84u8 , 17u8 , 187u8 , 119u8 , 80u8 , 116u8 , 172u8 , 71u8 , 44u8 , 139u8 ,] ,) } # [doc = " Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions."] pub fn extrinsic_filter (& self , xts : types :: extrinsic_filter :: Xts ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ExtrinsicFilter , types :: extrinsic_filter :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "extrinsic_filter" , types :: ExtrinsicFilter { xts , } , [234u8 , 157u8 , 247u8 , 198u8 , 65u8 , 99u8 , 60u8 , 119u8 , 54u8 , 96u8 , 73u8 , 66u8 , 212u8 , 26u8 , 100u8 , 216u8 , 88u8 , 14u8 , 134u8 , 100u8 , 121u8 , 154u8 , 73u8 , 68u8 , 168u8 , 4u8 , 235u8 , 158u8 , 105u8 , 254u8 , 195u8 , 122u8 ,] ,) } # [doc = " Return the elasticity multiplier."] pub fn elasticity (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Elasticity , types :: elasticity :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [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 :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GasLimitMultiplierSupport , types :: gas_limit_multiplier_support :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Return the pending block."] pub fn pending_block (& self , xts : types :: pending_block :: Xts ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: PendingBlock , types :: pending_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "pending_block" , types :: PendingBlock { xts , } , [120u8 , 215u8 , 175u8 , 95u8 , 105u8 , 67u8 , 63u8 , 114u8 , 49u8 , 87u8 , 9u8 , 178u8 , 111u8 , 206u8 , 253u8 , 56u8 , 111u8 , 1u8 , 26u8 , 245u8 , 216u8 , 132u8 , 166u8 , 231u8 , 223u8 , 213u8 , 140u8 , 81u8 , 30u8 , 230u8 , 9u8 , 142u8 ,] ,) } # [doc = " Initialize the pending block."] # [doc = " The behavior should be the same as the runtime api Core_initialize_block but"] # [doc = " for a \"pending\" block."] # [doc = " If your project don't need to have a different behavior to initialize \"pending\" blocks,"] # [doc = " you can copy your Core_initialize_block implementation."] pub fn initialize_pending_block (& self , header : types :: initialize_pending_block :: Header ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: InitializePendingBlock , types :: initialize_pending_block :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("EthereumRuntimeRPCApi" , "initialize_pending_block" , types :: InitializePendingBlock { header , } , [46u8 , 174u8 , 182u8 , 191u8 , 229u8 , 174u8 , 228u8 , 72u8 , 119u8 , 110u8 , 223u8 , 19u8 , 112u8 , 12u8 , 174u8 , 88u8 , 159u8 , 126u8 , 4u8 , 166u8 , 107u8 , 244u8 , 243u8 , 224u8 , 84u8 , 131u8 , 40u8 , 164u8 , 133u8 , 52u8 , 76u8 , 114u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod chain_id { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ChainId { } pub mod account_basic { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: evm :: backend :: Basic ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AccountBasic { pub address : account_basic :: Address , } pub mod gas_price { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: primitive_types :: U256 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GasPrice { } pub mod account_code_at { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AccountCodeAt { pub address : account_code_at :: Address , } pub mod author { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: utils :: H160 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Author { } pub mod storage_at { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Index = runtime_types :: primitive_types :: U256 ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: utils :: H256 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct StorageAt { pub address : storage_at :: Address , pub index : storage_at :: Index , } pub mod call { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Value = runtime_types :: primitive_types :: U256 ; pub type GasLimit = runtime_types :: primitive_types :: U256 ; pub type MaxFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type MaxPriorityFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Nonce = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Estimate = :: core :: primitive :: bool ; pub type AccessList = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > > ; pub type AuthorizationList = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: fp_evm :: ExecutionInfoV2 < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , runtime_types :: sp_runtime :: DispatchError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Call { pub from : call :: From , pub to : call :: To , pub data : call :: Data , pub value : call :: Value , pub gas_limit : call :: GasLimit , pub max_fee_per_gas : call :: MaxFeePerGas , pub max_priority_fee_per_gas : call :: MaxPriorityFeePerGas , pub nonce : call :: Nonce , pub estimate : call :: Estimate , pub access_list : call :: AccessList , pub authorization_list : call :: AuthorizationList , } pub mod create { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Value = runtime_types :: primitive_types :: U256 ; pub type GasLimit = runtime_types :: primitive_types :: U256 ; pub type MaxFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type MaxPriorityFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Nonce = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Estimate = :: core :: primitive :: bool ; pub type AccessList = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > > ; pub type AuthorizationList = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: fp_evm :: ExecutionInfoV2 < :: subxt :: ext :: subxt_core :: utils :: H160 > , runtime_types :: sp_runtime :: DispatchError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Create { pub from : create :: From , pub data : create :: Data , pub value : create :: Value , pub gas_limit : create :: GasLimit , pub max_fee_per_gas : create :: MaxFeePerGas , pub max_priority_fee_per_gas : create :: MaxPriorityFeePerGas , pub nonce : create :: Nonce , pub estimate : create :: Estimate , pub access_list : create :: AccessList , pub authorization_list : create :: AuthorizationList , } pub mod current_block { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: ethereum :: block :: Block < runtime_types :: ethereum :: transaction :: TransactionV3 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentBlock { } pub mod current_receipts { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: receipt :: ReceiptV4 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentReceipts { } pub mod current_transaction_statuses { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_rpc :: TransactionStatus > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentTransactionStatuses { } pub mod current_all { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = (:: core :: option :: Option < runtime_types :: ethereum :: block :: Block < runtime_types :: ethereum :: transaction :: TransactionV3 > > , :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: receipt :: ReceiptV4 > > , :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_rpc :: TransactionStatus > > ,) ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentAll { } pub mod extrinsic_filter { use super :: runtime_types ; pub type Xts = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: TransactionV3 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ExtrinsicFilter { pub xts : extrinsic_filter :: Xts , } pub mod elasticity { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: sp_arithmetic :: per_things :: Permill > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Elasticity { } pub mod gas_limit_multiplier_support { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = () ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GasLimitMultiplierSupport { } pub mod pending_block { use super :: runtime_types ; pub type Xts = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > > ; pub mod output { use super :: runtime_types ; pub type Output = (:: core :: option :: Option < runtime_types :: ethereum :: block :: Block < runtime_types :: ethereum :: transaction :: TransactionV3 > > , :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_rpc :: TransactionStatus > > ,) ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PendingBlock { pub xts : pending_block :: Xts , } pub mod initialize_pending_block { use super :: runtime_types ; pub type Header = runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > ; pub mod output { use super :: runtime_types ; pub type Output = () ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InitializePendingBlock { pub header : initialize_pending_block :: Header , } } } pub mod convert_transaction_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct ConvertTransactionRuntimeApi ; impl ConvertTransactionRuntimeApi { pub fn convert_transaction (& self , transaction : types :: convert_transaction :: Transaction ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: ConvertTransaction , types :: convert_transaction :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ConvertTransactionRuntimeApi" , "convert_transaction" , types :: ConvertTransaction { transaction , } , [16u8 , 42u8 , 118u8 , 219u8 , 135u8 , 164u8 , 141u8 , 244u8 , 165u8 , 74u8 , 119u8 , 126u8 , 18u8 , 37u8 , 42u8 , 10u8 , 17u8 , 64u8 , 15u8 , 84u8 , 109u8 , 202u8 , 29u8 , 243u8 , 25u8 , 236u8 , 162u8 , 193u8 , 18u8 , 27u8 , 149u8 , 141u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod convert_transaction { use super :: runtime_types ; pub type Transaction = runtime_types :: ethereum :: transaction :: TransactionV3 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: fp_self_contained :: unchecked_extrinsic :: UncheckedExtrinsic < :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , runtime_types :: node_subtensor_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 :: node_subtensor_runtime :: check_nonce :: CheckNonce , runtime_types :: frame_system :: extensions :: check_weight :: CheckWeight , runtime_types :: node_subtensor_runtime :: transaction_payment_wrapper :: ChargeTransactionPaymentWrapper , runtime_types :: node_subtensor_runtime :: sudo_wrapper :: SudoTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_subtensor :: transaction_extension :: SubtensorTransactionExtension < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: pallet_drand :: drand_priority :: DrandPriority < runtime_types :: node_subtensor_runtime :: Runtime > , runtime_types :: frame_metadata_hash_extension :: CheckMetadataHash ,) > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ConvertTransaction { pub transaction : convert_transaction :: Transaction , } } } pub mod contracts_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " The API used to dry-run contract interactions."] pub struct ContractsApi ; impl ContractsApi { # [doc = " Perform a call from a specified account to a given contract."] # [doc = ""] # [doc = " See [`crate::Pallet::bare_call`]."] pub fn call (& self , origin : types :: call :: Origin , dest : types :: call :: Dest , value : types :: call :: Value , gas_limit : types :: call :: GasLimit , storage_deposit_limit : types :: call :: StorageDepositLimit , input_data : types :: call :: InputData ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Call , types :: call :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ContractsApi" , "call" , types :: Call { origin , dest , value , gas_limit , storage_deposit_limit , input_data , } , [203u8 , 212u8 , 49u8 , 208u8 , 22u8 , 126u8 , 60u8 , 239u8 , 107u8 , 136u8 , 25u8 , 222u8 , 24u8 , 6u8 , 232u8 , 205u8 , 112u8 , 76u8 , 144u8 , 149u8 , 222u8 , 63u8 , 124u8 , 92u8 , 219u8 , 104u8 , 246u8 , 212u8 , 167u8 , 145u8 , 225u8 , 69u8 ,] ,) } # [doc = " Instantiate a new contract."] # [doc = ""] # [doc = " See `[crate::Pallet::bare_instantiate]`."] pub fn instantiate (& self , origin : types :: instantiate :: Origin , value : types :: instantiate :: Value , gas_limit : types :: instantiate :: GasLimit , storage_deposit_limit : types :: instantiate :: StorageDepositLimit , code : types :: instantiate :: Code , data : types :: instantiate :: Data , salt : types :: instantiate :: Salt ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Instantiate , types :: instantiate :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ContractsApi" , "instantiate" , types :: Instantiate { origin , value , gas_limit , storage_deposit_limit , code , data , salt , } , [206u8 , 27u8 , 162u8 , 2u8 , 121u8 , 52u8 , 3u8 , 207u8 , 61u8 , 97u8 , 111u8 , 110u8 , 108u8 , 202u8 , 169u8 , 134u8 , 200u8 , 49u8 , 74u8 , 110u8 , 141u8 , 87u8 , 53u8 , 133u8 , 29u8 , 66u8 , 249u8 , 169u8 , 123u8 , 230u8 , 44u8 , 182u8 ,] ,) } # [doc = " Upload new code without instantiating a contract from it."] # [doc = ""] # [doc = " See [`crate::Pallet::bare_upload_code`]."] pub fn upload_code (& self , origin : types :: upload_code :: Origin , code : types :: upload_code :: Code , storage_deposit_limit : types :: upload_code :: StorageDepositLimit , determinism : types :: upload_code :: Determinism ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: UploadCode , types :: upload_code :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ContractsApi" , "upload_code" , types :: UploadCode { origin , code , storage_deposit_limit , determinism , } , [210u8 , 71u8 , 176u8 , 194u8 , 220u8 , 92u8 , 59u8 , 101u8 , 167u8 , 122u8 , 44u8 , 110u8 , 31u8 , 241u8 , 169u8 , 249u8 , 166u8 , 235u8 , 152u8 , 103u8 , 165u8 , 66u8 , 2u8 , 23u8 , 42u8 , 37u8 , 14u8 , 242u8 , 204u8 , 176u8 , 125u8 , 117u8 ,] ,) } # [doc = " Query a given storage key in a given contract."] # [doc = ""] # [doc = " Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the"] # [doc = " specified account and `Ok(None)` if it doesn't. If the account specified by the address"] # [doc = " doesn't exist, or doesn't have a contract then `Err` is returned."] pub fn get_storage (& self , address : types :: get_storage :: Address , key : types :: get_storage :: Key ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetStorage , types :: get_storage :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("ContractsApi" , "get_storage" , types :: GetStorage { address , key , } , [49u8 , 103u8 , 100u8 , 132u8 , 135u8 , 193u8 , 145u8 , 48u8 , 154u8 , 78u8 , 41u8 , 43u8 , 81u8 , 109u8 , 146u8 , 199u8 , 6u8 , 111u8 , 184u8 , 102u8 , 46u8 , 76u8 , 174u8 , 148u8 , 106u8 , 184u8 , 131u8 , 137u8 , 194u8 , 98u8 , 179u8 , 45u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod call { use super :: runtime_types ; pub type Origin = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > ; pub type StorageDepositLimit = :: core :: option :: Option < :: core :: primitive :: u64 > ; pub type InputData = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_contracts :: primitives :: ContractResult < :: core :: result :: Result < runtime_types :: pallet_contracts :: primitives :: ExecReturnValue , runtime_types :: sp_runtime :: DispatchError > , :: core :: primitive :: u64 , runtime_types :: frame_system :: EventRecord < runtime_types :: node_subtensor_runtime :: RuntimeEvent , :: subxt :: ext :: subxt_core :: utils :: H256 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Call { pub origin : call :: Origin , pub dest : call :: Dest , pub value : call :: Value , pub gas_limit : call :: GasLimit , pub storage_deposit_limit : call :: StorageDepositLimit , pub input_data : call :: InputData , } pub mod instantiate { use super :: runtime_types ; pub type Origin = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > ; pub type StorageDepositLimit = :: core :: option :: Option < :: core :: primitive :: u64 > ; pub type Code = runtime_types :: pallet_contracts :: primitives :: Code < :: subxt :: ext :: subxt_core :: utils :: H256 > ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_contracts :: primitives :: ContractResult < :: core :: result :: Result < runtime_types :: pallet_contracts :: primitives :: InstantiateReturnValue < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , runtime_types :: sp_runtime :: DispatchError > , :: core :: primitive :: u64 , runtime_types :: frame_system :: EventRecord < runtime_types :: node_subtensor_runtime :: RuntimeEvent , :: subxt :: ext :: subxt_core :: utils :: H256 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Instantiate { pub origin : instantiate :: Origin , pub value : instantiate :: Value , pub gas_limit : instantiate :: GasLimit , pub storage_deposit_limit : instantiate :: StorageDepositLimit , pub code : instantiate :: Code , pub data : instantiate :: Data , pub salt : instantiate :: Salt , } pub mod upload_code { use super :: runtime_types ; pub type Origin = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type StorageDepositLimit = :: core :: option :: Option < :: core :: primitive :: u64 > ; pub type Determinism = runtime_types :: pallet_contracts :: wasm :: Determinism ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < runtime_types :: pallet_contracts :: primitives :: CodeUploadReturnValue < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u64 > , runtime_types :: sp_runtime :: DispatchError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UploadCode { pub origin : upload_code :: Origin , pub code : upload_code :: Code , pub storage_deposit_limit : upload_code :: StorageDepositLimit , pub determinism : upload_code :: Determinism , } pub mod get_storage { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Key = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: result :: Result < :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , runtime_types :: pallet_contracts :: primitives :: ContractAccessError > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetStorage { pub address : get_storage :: Address , pub key : get_storage :: Key , } } } pub mod delegate_info_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct DelegateInfoRuntimeApi ; impl DelegateInfoRuntimeApi { pub fn get_delegates (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetDelegates , types :: get_delegates :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("DelegateInfoRuntimeApi" , "get_delegates" , types :: GetDelegates { } , [84u8 , 157u8 , 45u8 , 177u8 , 179u8 , 241u8 , 44u8 , 84u8 , 110u8 , 16u8 , 136u8 , 163u8 , 253u8 , 254u8 , 50u8 , 65u8 , 4u8 , 133u8 , 11u8 , 37u8 , 147u8 , 242u8 , 164u8 , 114u8 , 229u8 , 60u8 , 254u8 , 236u8 , 50u8 , 122u8 , 98u8 , 218u8 ,] ,) } pub fn get_delegate (& self , delegate_account : types :: get_delegate :: DelegateAccount ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetDelegate , types :: get_delegate :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("DelegateInfoRuntimeApi" , "get_delegate" , types :: GetDelegate { delegate_account , } , [5u8 , 251u8 , 208u8 , 34u8 , 232u8 , 79u8 , 228u8 , 155u8 , 157u8 , 152u8 , 78u8 , 249u8 , 185u8 , 93u8 , 233u8 , 66u8 , 224u8 , 170u8 , 103u8 , 35u8 , 150u8 , 6u8 , 213u8 , 147u8 , 244u8 , 123u8 , 1u8 , 41u8 , 243u8 , 76u8 , 177u8 , 254u8 ,] ,) } pub fn get_delegated (& self , delegatee_account : types :: get_delegated :: DelegateeAccount ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetDelegated , types :: get_delegated :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("DelegateInfoRuntimeApi" , "get_delegated" , types :: GetDelegated { delegatee_account , } , [38u8 , 86u8 , 71u8 , 247u8 , 70u8 , 89u8 , 117u8 , 90u8 , 79u8 , 100u8 , 98u8 , 123u8 , 118u8 , 100u8 , 195u8 , 31u8 , 47u8 , 243u8 , 232u8 , 228u8 , 164u8 , 33u8 , 186u8 , 101u8 , 75u8 , 47u8 , 132u8 , 175u8 , 170u8 , 142u8 , 72u8 , 40u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod get_delegates { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: rpc_info :: delegate_info :: DelegateInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetDelegates { } pub mod get_delegate { use super :: runtime_types ; pub type DelegateAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: delegate_info :: DelegateInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetDelegate { pub delegate_account : get_delegate :: DelegateAccount , } pub mod get_delegated { use super :: runtime_types ; pub type DelegateeAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: pallet_subtensor :: rpc_info :: delegate_info :: DelegateInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) ,) > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetDelegated { pub delegatee_account : get_delegated :: DelegateeAccount , } } } pub mod neuron_info_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct NeuronInfoRuntimeApi ; impl NeuronInfoRuntimeApi { pub fn get_neurons (& self , netuid : types :: get_neurons :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetNeurons , types :: get_neurons :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("NeuronInfoRuntimeApi" , "get_neurons" , types :: GetNeurons { netuid , } , [29u8 , 31u8 , 252u8 , 255u8 , 122u8 , 62u8 , 85u8 , 100u8 , 129u8 , 30u8 , 54u8 , 193u8 , 3u8 , 193u8 , 171u8 , 125u8 , 163u8 , 155u8 , 188u8 , 197u8 , 204u8 , 251u8 , 67u8 , 245u8 , 117u8 , 93u8 , 144u8 , 78u8 , 90u8 , 199u8 , 3u8 , 165u8 ,] ,) } pub fn get_neuron (& self , netuid : types :: get_neuron :: Netuid , uid : types :: get_neuron :: Uid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetNeuron , types :: get_neuron :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("NeuronInfoRuntimeApi" , "get_neuron" , types :: GetNeuron { netuid , uid , } , [139u8 , 168u8 , 134u8 , 98u8 , 35u8 , 45u8 , 15u8 , 62u8 , 231u8 , 241u8 , 7u8 , 48u8 , 3u8 , 217u8 , 103u8 , 109u8 , 164u8 , 154u8 , 98u8 , 137u8 , 243u8 , 24u8 , 2u8 , 137u8 , 59u8 , 162u8 , 182u8 , 249u8 , 218u8 , 143u8 , 203u8 , 47u8 ,] ,) } pub fn get_neurons_lite (& self , netuid : types :: get_neurons_lite :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetNeuronsLite , types :: get_neurons_lite :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("NeuronInfoRuntimeApi" , "get_neurons_lite" , types :: GetNeuronsLite { netuid , } , [20u8 , 84u8 , 89u8 , 226u8 , 124u8 , 150u8 , 169u8 , 14u8 , 75u8 , 218u8 , 136u8 , 236u8 , 137u8 , 198u8 , 127u8 , 143u8 , 45u8 , 46u8 , 65u8 , 46u8 , 242u8 , 69u8 , 180u8 , 63u8 , 11u8 , 56u8 , 115u8 , 37u8 , 5u8 , 164u8 , 180u8 , 190u8 ,] ,) } pub fn get_neuron_lite (& self , netuid : types :: get_neuron_lite :: Netuid , uid : types :: get_neuron_lite :: Uid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetNeuronLite , types :: get_neuron_lite :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("NeuronInfoRuntimeApi" , "get_neuron_lite" , types :: GetNeuronLite { netuid , uid , } , [113u8 , 98u8 , 78u8 , 240u8 , 254u8 , 189u8 , 58u8 , 44u8 , 49u8 , 21u8 , 121u8 , 127u8 , 31u8 , 102u8 , 14u8 , 6u8 , 76u8 , 86u8 , 151u8 , 89u8 , 90u8 , 148u8 , 173u8 , 88u8 , 83u8 , 227u8 , 151u8 , 246u8 , 249u8 , 238u8 , 255u8 , 127u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod get_neurons { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: rpc_info :: neuron_info :: NeuronInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetNeurons { pub netuid : get_neurons :: Netuid , } pub mod get_neuron { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Uid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: neuron_info :: NeuronInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetNeuron { pub netuid : get_neuron :: Netuid , pub uid : get_neuron :: Uid , } pub mod get_neurons_lite { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: rpc_info :: neuron_info :: NeuronInfoLite < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetNeuronsLite { pub netuid : get_neurons_lite :: Netuid , } pub mod get_neuron_lite { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Uid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: neuron_info :: NeuronInfoLite < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetNeuronLite { pub netuid : get_neuron_lite :: Netuid , pub uid : get_neuron_lite :: Uid , } } } pub mod subnet_info_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct SubnetInfoRuntimeApi ; impl SubnetInfoRuntimeApi { pub fn get_subnet_info (& self , netuid : types :: get_subnet_info :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetInfo , types :: get_subnet_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnet_info" , types :: GetSubnetInfo { netuid , } , [119u8 , 89u8 , 29u8 , 164u8 , 38u8 , 24u8 , 27u8 , 41u8 , 75u8 , 128u8 , 72u8 , 38u8 , 94u8 , 237u8 , 65u8 , 220u8 , 67u8 , 33u8 , 247u8 , 221u8 , 83u8 , 97u8 , 246u8 , 220u8 , 236u8 , 121u8 , 10u8 , 103u8 , 163u8 , 252u8 , 174u8 , 236u8 ,] ,) } pub fn get_subnets_info (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetsInfo , types :: get_subnets_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnets_info" , types :: GetSubnetsInfo { } , [49u8 , 55u8 , 178u8 , 80u8 , 22u8 , 54u8 , 132u8 , 142u8 , 192u8 , 53u8 , 221u8 , 2u8 , 205u8 , 114u8 , 100u8 , 168u8 , 110u8 , 31u8 , 204u8 , 214u8 , 88u8 , 36u8 , 115u8 , 133u8 , 254u8 , 195u8 , 90u8 , 109u8 , 221u8 , 236u8 , 104u8 , 246u8 ,] ,) } pub fn get_subnet_info_v2 (& self , netuid : types :: get_subnet_info_v2 :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetInfoV2 , types :: get_subnet_info_v2 :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnet_info_v2" , types :: GetSubnetInfoV2 { netuid , } , [132u8 , 17u8 , 149u8 , 139u8 , 225u8 , 117u8 , 250u8 , 70u8 , 115u8 , 183u8 , 50u8 , 188u8 , 145u8 , 109u8 , 0u8 , 42u8 , 4u8 , 38u8 , 169u8 , 161u8 , 197u8 , 182u8 , 191u8 , 179u8 , 224u8 , 166u8 , 43u8 , 232u8 , 103u8 , 107u8 , 72u8 , 206u8 ,] ,) } pub fn get_subnets_info_v2 (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetsInfoV2 , types :: get_subnets_info_v2 :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnets_info_v2" , types :: GetSubnetsInfoV2 { } , [110u8 , 162u8 , 122u8 , 133u8 , 21u8 , 248u8 , 95u8 , 215u8 , 146u8 , 147u8 , 20u8 , 67u8 , 208u8 , 171u8 , 38u8 , 209u8 , 171u8 , 240u8 , 195u8 , 21u8 , 39u8 , 147u8 , 147u8 , 174u8 , 100u8 , 55u8 , 52u8 , 225u8 , 159u8 , 5u8 , 88u8 , 180u8 ,] ,) } pub fn get_subnet_hyperparams (& self , netuid : types :: get_subnet_hyperparams :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetHyperparams , types :: get_subnet_hyperparams :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnet_hyperparams" , types :: GetSubnetHyperparams { netuid , } , [105u8 , 42u8 , 239u8 , 199u8 , 164u8 , 166u8 , 25u8 , 168u8 , 1u8 , 9u8 , 120u8 , 205u8 , 173u8 , 15u8 , 69u8 , 247u8 , 21u8 , 74u8 , 152u8 , 213u8 , 201u8 , 206u8 , 151u8 , 88u8 , 33u8 , 140u8 , 236u8 , 252u8 , 8u8 , 77u8 , 167u8 , 143u8 ,] ,) } pub fn get_subnet_hyperparams_v2 (& self , netuid : types :: get_subnet_hyperparams_v2 :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetHyperparamsV2 , types :: get_subnet_hyperparams_v2 :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnet_hyperparams_v2" , types :: GetSubnetHyperparamsV2 { netuid , } , [135u8 , 85u8 , 182u8 , 104u8 , 206u8 , 139u8 , 220u8 , 110u8 , 23u8 , 208u8 , 232u8 , 183u8 , 228u8 , 81u8 , 7u8 , 138u8 , 199u8 , 205u8 , 168u8 , 252u8 , 16u8 , 112u8 , 240u8 , 161u8 , 244u8 , 93u8 , 120u8 , 131u8 , 215u8 , 227u8 , 228u8 , 85u8 ,] ,) } pub fn get_all_dynamic_info (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetAllDynamicInfo , types :: get_all_dynamic_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_all_dynamic_info" , types :: GetAllDynamicInfo { } , [222u8 , 205u8 , 49u8 , 222u8 , 215u8 , 78u8 , 194u8 , 45u8 , 164u8 , 157u8 , 243u8 , 202u8 , 173u8 , 27u8 , 96u8 , 22u8 , 78u8 , 108u8 , 7u8 , 36u8 , 240u8 , 52u8 , 134u8 , 64u8 , 180u8 , 124u8 , 219u8 , 207u8 , 165u8 , 50u8 , 106u8 , 125u8 ,] ,) } pub fn get_all_metagraphs (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetAllMetagraphs , types :: get_all_metagraphs :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_all_metagraphs" , types :: GetAllMetagraphs { } , [147u8 , 178u8 , 17u8 , 111u8 , 212u8 , 4u8 , 51u8 , 117u8 , 251u8 , 44u8 , 22u8 , 181u8 , 12u8 , 183u8 , 72u8 , 67u8 , 141u8 , 13u8 , 36u8 , 117u8 , 161u8 , 147u8 , 104u8 , 9u8 , 222u8 , 47u8 , 173u8 , 176u8 , 216u8 , 220u8 , 218u8 , 80u8 ,] ,) } pub fn get_metagraph (& self , netuid : types :: get_metagraph :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetMetagraph , types :: get_metagraph :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_metagraph" , types :: GetMetagraph { netuid , } , [53u8 , 68u8 , 46u8 , 132u8 , 163u8 , 124u8 , 29u8 , 39u8 , 68u8 , 80u8 , 26u8 , 254u8 , 233u8 , 68u8 , 1u8 , 152u8 , 169u8 , 134u8 , 82u8 , 26u8 , 139u8 , 16u8 , 151u8 , 215u8 , 225u8 , 93u8 , 165u8 , 31u8 , 82u8 , 235u8 , 55u8 , 160u8 ,] ,) } pub fn get_all_mechagraphs (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetAllMechagraphs , types :: get_all_mechagraphs :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_all_mechagraphs" , types :: GetAllMechagraphs { } , [53u8 , 137u8 , 190u8 , 46u8 , 78u8 , 14u8 , 179u8 , 75u8 , 18u8 , 22u8 , 117u8 , 50u8 , 36u8 , 137u8 , 206u8 , 135u8 , 101u8 , 62u8 , 182u8 , 32u8 , 212u8 , 249u8 , 80u8 , 169u8 , 78u8 , 131u8 , 83u8 , 228u8 , 25u8 , 69u8 , 232u8 , 246u8 ,] ,) } pub fn get_mechagraph (& self , netuid : types :: get_mechagraph :: Netuid , mecid : types :: get_mechagraph :: Mecid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetMechagraph , types :: get_mechagraph :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_mechagraph" , types :: GetMechagraph { netuid , mecid , } , [155u8 , 74u8 , 145u8 , 49u8 , 26u8 , 134u8 , 122u8 , 2u8 , 25u8 , 44u8 , 6u8 , 130u8 , 138u8 , 228u8 , 35u8 , 180u8 , 130u8 , 98u8 , 171u8 , 9u8 , 177u8 , 30u8 , 101u8 , 109u8 , 149u8 , 217u8 , 74u8 , 219u8 , 77u8 , 130u8 , 247u8 , 93u8 ,] ,) } pub fn get_dynamic_info (& self , netuid : types :: get_dynamic_info :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetDynamicInfo , types :: get_dynamic_info :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_dynamic_info" , types :: GetDynamicInfo { netuid , } , [182u8 , 161u8 , 5u8 , 148u8 , 114u8 , 241u8 , 151u8 , 126u8 , 23u8 , 238u8 , 62u8 , 49u8 , 27u8 , 18u8 , 162u8 , 29u8 , 11u8 , 62u8 , 121u8 , 139u8 , 148u8 , 35u8 , 199u8 , 154u8 , 221u8 , 75u8 , 89u8 , 48u8 , 165u8 , 157u8 , 152u8 , 241u8 ,] ,) } pub fn get_subnet_state (& self , netuid : types :: get_subnet_state :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetState , types :: get_subnet_state :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnet_state" , types :: GetSubnetState { netuid , } , [142u8 , 252u8 , 50u8 , 8u8 , 72u8 , 70u8 , 156u8 , 59u8 , 8u8 , 178u8 , 205u8 , 150u8 , 65u8 , 3u8 , 213u8 , 14u8 , 110u8 , 60u8 , 6u8 , 154u8 , 1u8 , 181u8 , 158u8 , 80u8 , 120u8 , 220u8 , 47u8 , 84u8 , 120u8 , 251u8 , 43u8 , 132u8 ,] ,) } pub fn get_selective_metagraph (& self , netuid : types :: get_selective_metagraph :: Netuid , metagraph_indexes : types :: get_selective_metagraph :: MetagraphIndexes ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSelectiveMetagraph , types :: get_selective_metagraph :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_selective_metagraph" , types :: GetSelectiveMetagraph { netuid , metagraph_indexes , } , [229u8 , 144u8 , 177u8 , 9u8 , 212u8 , 157u8 , 223u8 , 245u8 , 136u8 , 93u8 , 11u8 , 108u8 , 141u8 , 172u8 , 206u8 , 225u8 , 152u8 , 184u8 , 170u8 , 52u8 , 214u8 , 81u8 , 184u8 , 116u8 , 205u8 , 70u8 , 204u8 , 181u8 , 162u8 , 11u8 , 175u8 , 236u8 ,] ,) } pub fn get_coldkey_auto_stake_hotkey (& self , coldkey : types :: get_coldkey_auto_stake_hotkey :: Coldkey , netuid : types :: get_coldkey_auto_stake_hotkey :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetColdkeyAutoStakeHotkey , types :: get_coldkey_auto_stake_hotkey :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_coldkey_auto_stake_hotkey" , types :: GetColdkeyAutoStakeHotkey { coldkey , netuid , } , [110u8 , 21u8 , 126u8 , 47u8 , 8u8 , 23u8 , 175u8 , 187u8 , 196u8 , 16u8 , 57u8 , 59u8 , 210u8 , 245u8 , 69u8 , 143u8 , 103u8 , 187u8 , 69u8 , 232u8 , 241u8 , 124u8 , 232u8 , 54u8 , 157u8 , 3u8 , 179u8 , 168u8 , 191u8 , 231u8 , 144u8 , 165u8 ,] ,) } pub fn get_selective_mechagraph (& self , netuid : types :: get_selective_mechagraph :: Netuid , subid : types :: get_selective_mechagraph :: Subid , metagraph_indexes : types :: get_selective_mechagraph :: MetagraphIndexes ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSelectiveMechagraph , types :: get_selective_mechagraph :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_selective_mechagraph" , types :: GetSelectiveMechagraph { netuid , subid , metagraph_indexes , } , [243u8 , 61u8 , 89u8 , 140u8 , 158u8 , 223u8 , 184u8 , 232u8 , 141u8 , 107u8 , 33u8 , 179u8 , 110u8 , 131u8 , 222u8 , 39u8 , 194u8 , 249u8 , 2u8 , 44u8 , 4u8 , 58u8 , 50u8 , 247u8 , 11u8 , 8u8 , 63u8 , 171u8 , 218u8 , 145u8 , 131u8 , 156u8 ,] ,) } pub fn get_subnet_to_prune (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetSubnetToPrune , types :: get_subnet_to_prune :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetInfoRuntimeApi" , "get_subnet_to_prune" , types :: GetSubnetToPrune { } , [183u8 , 139u8 , 194u8 , 87u8 , 222u8 , 32u8 , 229u8 , 247u8 , 154u8 , 61u8 , 62u8 , 119u8 , 86u8 , 52u8 , 24u8 , 6u8 , 77u8 , 20u8 , 218u8 , 118u8 , 229u8 , 243u8 , 142u8 , 0u8 , 2u8 , 80u8 , 245u8 , 198u8 , 21u8 , 221u8 , 68u8 , 227u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod get_subnet_info { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: subnet_info :: SubnetInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetInfo { pub netuid : get_subnet_info :: Netuid , } pub mod get_subnets_info { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: subnet_info :: SubnetInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetsInfo { } pub mod get_subnet_info_v2 { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: subnet_info :: SubnetInfov2 < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetInfoV2 { pub netuid : get_subnet_info_v2 :: Netuid , } pub mod get_subnets_info_v2 { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: subnet_info :: SubnetInfov2 < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetsInfoV2 { } pub mod get_subnet_hyperparams { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: subnet_info :: SubnetHyperparams > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetHyperparams { pub netuid : get_subnet_hyperparams :: Netuid , } pub mod get_subnet_hyperparams_v2 { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: subnet_info :: SubnetHyperparamsV2 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetHyperparamsV2 { pub netuid : get_subnet_hyperparams_v2 :: Netuid , } pub mod get_all_dynamic_info { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: dynamic_info :: DynamicInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetAllDynamicInfo { } pub mod get_all_metagraphs { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: metagraph :: Metagraph < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetAllMetagraphs { } pub mod get_metagraph { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: metagraph :: Metagraph < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetMetagraph { pub netuid : get_metagraph :: Netuid , } pub mod get_all_mechagraphs { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: metagraph :: Metagraph < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetAllMechagraphs { } pub mod get_mechagraph { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Mecid = :: core :: primitive :: u8 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: metagraph :: Metagraph < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetMechagraph { pub netuid : get_mechagraph :: Netuid , pub mecid : get_mechagraph :: Mecid , } pub mod get_dynamic_info { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: dynamic_info :: DynamicInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetDynamicInfo { pub netuid : get_dynamic_info :: Netuid , } pub mod get_subnet_state { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: show_subnet :: SubnetState < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetState { pub netuid : get_subnet_state :: Netuid , } pub mod get_selective_metagraph { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MetagraphIndexes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: metagraph :: SelectiveMetagraph < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSelectiveMetagraph { pub netuid : get_selective_metagraph :: Netuid , pub metagraph_indexes : get_selective_metagraph :: MetagraphIndexes , } pub mod get_coldkey_auto_stake_hotkey { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetColdkeyAutoStakeHotkey { pub coldkey : get_coldkey_auto_stake_hotkey :: Coldkey , pub netuid : get_coldkey_auto_stake_hotkey :: Netuid , } pub mod get_selective_mechagraph { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Subid = :: core :: primitive :: u8 ; pub type MetagraphIndexes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: metagraph :: SelectiveMetagraph < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSelectiveMechagraph { pub netuid : get_selective_mechagraph :: Netuid , pub subid : get_selective_mechagraph :: Subid , pub metagraph_indexes : get_selective_mechagraph :: MetagraphIndexes , } pub mod get_subnet_to_prune { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < :: core :: primitive :: u16 > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetSubnetToPrune { } } } pub mod stake_info_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct StakeInfoRuntimeApi ; impl StakeInfoRuntimeApi { pub fn get_stake_info_for_coldkey (& self , coldkey_account : types :: get_stake_info_for_coldkey :: ColdkeyAccount ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetStakeInfoForColdkey , types :: get_stake_info_for_coldkey :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("StakeInfoRuntimeApi" , "get_stake_info_for_coldkey" , types :: GetStakeInfoForColdkey { coldkey_account , } , [143u8 , 77u8 , 215u8 , 163u8 , 187u8 , 63u8 , 84u8 , 15u8 , 21u8 , 63u8 , 12u8 , 196u8 , 129u8 , 195u8 , 95u8 , 120u8 , 196u8 , 70u8 , 200u8 , 84u8 , 169u8 , 188u8 , 150u8 , 136u8 , 119u8 , 30u8 , 171u8 , 87u8 , 73u8 , 189u8 , 186u8 , 108u8 ,] ,) } pub fn get_stake_info_for_coldkeys (& self , coldkey_accounts : types :: get_stake_info_for_coldkeys :: ColdkeyAccounts ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetStakeInfoForColdkeys , types :: get_stake_info_for_coldkeys :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("StakeInfoRuntimeApi" , "get_stake_info_for_coldkeys" , types :: GetStakeInfoForColdkeys { coldkey_accounts , } , [1u8 , 78u8 , 223u8 , 196u8 , 230u8 , 76u8 , 101u8 , 184u8 , 52u8 , 211u8 , 205u8 , 55u8 , 53u8 , 111u8 , 1u8 , 120u8 , 132u8 , 164u8 , 143u8 , 245u8 , 188u8 , 192u8 , 212u8 , 42u8 , 2u8 , 67u8 , 107u8 , 74u8 , 118u8 , 82u8 , 217u8 , 60u8 ,] ,) } pub fn get_stake_info_for_hotkey_coldkey_netuid (& self , hotkey_account : types :: get_stake_info_for_hotkey_coldkey_netuid :: HotkeyAccount , coldkey_account : types :: get_stake_info_for_hotkey_coldkey_netuid :: ColdkeyAccount , netuid : types :: get_stake_info_for_hotkey_coldkey_netuid :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetStakeInfoForHotkeyColdkeyNetuid , types :: get_stake_info_for_hotkey_coldkey_netuid :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("StakeInfoRuntimeApi" , "get_stake_info_for_hotkey_coldkey_netuid" , types :: GetStakeInfoForHotkeyColdkeyNetuid { hotkey_account , coldkey_account , netuid , } , [228u8 , 228u8 , 175u8 , 61u8 , 136u8 , 161u8 , 60u8 , 52u8 , 116u8 , 133u8 , 188u8 , 29u8 , 43u8 , 145u8 , 157u8 , 49u8 , 241u8 , 175u8 , 142u8 , 150u8 , 241u8 , 79u8 , 204u8 , 222u8 , 165u8 , 138u8 , 5u8 , 139u8 , 51u8 , 89u8 , 87u8 , 136u8 ,] ,) } pub fn get_stake_fee (& self , origin : types :: get_stake_fee :: Origin , origin_coldkey_account : types :: get_stake_fee :: OriginColdkeyAccount , destination : types :: get_stake_fee :: Destination , destination_coldkey_account : types :: get_stake_fee :: DestinationColdkeyAccount , amount : types :: get_stake_fee :: Amount ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetStakeFee , types :: get_stake_fee :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("StakeInfoRuntimeApi" , "get_stake_fee" , types :: GetStakeFee { origin , origin_coldkey_account , destination , destination_coldkey_account , amount , } , [183u8 , 139u8 , 137u8 , 149u8 , 162u8 , 63u8 , 53u8 , 161u8 , 255u8 , 164u8 , 217u8 , 252u8 , 213u8 , 205u8 , 138u8 , 70u8 , 200u8 , 241u8 , 162u8 , 190u8 , 81u8 , 248u8 , 140u8 , 38u8 , 83u8 , 12u8 , 110u8 , 70u8 , 15u8 , 93u8 , 70u8 , 39u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod get_stake_info_for_coldkey { use super :: runtime_types ; pub type ColdkeyAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: rpc_info :: stake_info :: StakeInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetStakeInfoForColdkey { pub coldkey_account : get_stake_info_for_coldkey :: ColdkeyAccount , } pub mod get_stake_info_for_coldkeys { use super :: runtime_types ; pub type ColdkeyAccounts = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub mod output { use super :: runtime_types ; pub type Output = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: rpc_info :: stake_info :: StakeInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ,) > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetStakeInfoForColdkeys { pub coldkey_accounts : get_stake_info_for_coldkeys :: ColdkeyAccounts , } pub mod get_stake_info_for_hotkey_coldkey_netuid { use super :: runtime_types ; pub type HotkeyAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ColdkeyAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: pallet_subtensor :: rpc_info :: stake_info :: StakeInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetStakeInfoForHotkeyColdkeyNetuid { pub hotkey_account : get_stake_info_for_hotkey_coldkey_netuid :: HotkeyAccount , pub coldkey_account : get_stake_info_for_hotkey_coldkey_netuid :: ColdkeyAccount , pub netuid : get_stake_info_for_hotkey_coldkey_netuid :: Netuid , } pub mod get_stake_fee { use super :: runtime_types ; pub type Origin = :: core :: option :: Option < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 ,) > ; pub type OriginColdkeyAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Destination = :: core :: option :: Option < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 ,) > ; pub type DestinationColdkeyAccount = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetStakeFee { pub origin : get_stake_fee :: Origin , pub origin_coldkey_account : get_stake_fee :: OriginColdkeyAccount , pub destination : get_stake_fee :: Destination , pub destination_coldkey_account : get_stake_fee :: DestinationColdkeyAccount , pub amount : get_stake_fee :: Amount , } } } pub mod subnet_registration_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct SubnetRegistrationRuntimeApi ; impl SubnetRegistrationRuntimeApi { pub fn get_network_registration_cost (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GetNetworkRegistrationCost , types :: get_network_registration_cost :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SubnetRegistrationRuntimeApi" , "get_network_registration_cost" , types :: GetNetworkRegistrationCost { } , [152u8 , 137u8 , 58u8 , 141u8 , 204u8 , 239u8 , 63u8 , 8u8 , 76u8 , 223u8 , 54u8 , 219u8 , 150u8 , 155u8 , 129u8 , 130u8 , 64u8 , 40u8 , 177u8 , 153u8 , 29u8 , 1u8 , 234u8 , 30u8 , 20u8 , 218u8 , 17u8 , 254u8 , 18u8 , 135u8 , 133u8 , 25u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod get_network_registration_cost { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GetNetworkRegistrationCost { } } } pub mod babe_api { use super :: root_mod ; use super :: runtime_types ; # [doc = " API necessary for block authorship with BABE."] pub struct BabeApi ; impl BabeApi { # [doc = " Return the configuration for BABE."] pub fn configuration (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: Configuration , types :: configuration :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "configuration" , types :: Configuration { } , [50u8 , 198u8 , 27u8 , 26u8 , 92u8 , 199u8 , 8u8 , 181u8 , 12u8 , 199u8 , 116u8 , 247u8 , 95u8 , 70u8 , 241u8 , 24u8 , 14u8 , 250u8 , 179u8 , 77u8 , 251u8 , 55u8 , 133u8 , 8u8 , 142u8 , 107u8 , 6u8 , 214u8 , 228u8 , 38u8 , 134u8 , 153u8 ,] ,) } # [doc = " Returns the slot that started the current epoch."] pub fn current_epoch_start (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentEpochStart , types :: current_epoch_start :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: 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 ,] ,) } # [doc = " Returns information regarding the current epoch."] pub fn current_epoch (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentEpoch , types :: current_epoch :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "current_epoch" , types :: CurrentEpoch { } , [70u8 , 68u8 , 222u8 , 110u8 , 96u8 , 143u8 , 126u8 , 136u8 , 182u8 , 163u8 , 104u8 , 122u8 , 21u8 , 156u8 , 6u8 , 26u8 , 86u8 , 145u8 , 153u8 , 133u8 , 251u8 , 137u8 , 238u8 , 218u8 , 132u8 , 218u8 , 222u8 , 140u8 , 190u8 , 232u8 , 197u8 , 86u8 ,] ,) } # [doc = " Returns information regarding the next epoch (which was already"] # [doc = " previously announced)."] pub fn next_epoch (& self ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: NextEpoch , types :: next_epoch :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "next_epoch" , types :: NextEpoch { } , [141u8 , 86u8 , 122u8 , 185u8 , 215u8 , 255u8 , 142u8 , 131u8 , 8u8 , 178u8 , 143u8 , 200u8 , 148u8 , 84u8 , 174u8 , 215u8 , 91u8 , 251u8 , 243u8 , 155u8 , 92u8 , 13u8 , 44u8 , 53u8 , 128u8 , 26u8 , 165u8 , 172u8 , 49u8 , 33u8 , 130u8 , 148u8 ,] ,) } # [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 : types :: generate_key_ownership_proof :: Slot , authority_id : types :: generate_key_ownership_proof :: AuthorityId ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: GenerateKeyOwnershipProof , types :: generate_key_ownership_proof :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "generate_key_ownership_proof" , types :: GenerateKeyOwnershipProof { slot , authority_id , } , [13u8 , 228u8 , 75u8 , 150u8 , 203u8 , 132u8 , 82u8 , 188u8 , 17u8 , 70u8 , 169u8 , 19u8 , 102u8 , 96u8 , 217u8 , 209u8 , 215u8 , 196u8 , 78u8 , 141u8 , 12u8 , 14u8 , 151u8 , 65u8 , 173u8 , 2u8 , 100u8 , 150u8 , 18u8 , 99u8 , 19u8 , 196u8 ,] ,) } # [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 : types :: submit_report_equivocation_unsigned_extrinsic :: EquivocationProof , key_owner_proof : types :: submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SubmitReportEquivocationUnsignedExtrinsic , types :: submit_report_equivocation_unsigned_extrinsic :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("BabeApi" , "submit_report_equivocation_unsigned_extrinsic" , types :: SubmitReportEquivocationUnsignedExtrinsic { equivocation_proof , key_owner_proof , } , [99u8 , 80u8 , 38u8 , 173u8 , 235u8 , 48u8 , 229u8 , 88u8 , 250u8 , 165u8 , 57u8 , 245u8 , 85u8 , 156u8 , 114u8 , 190u8 , 144u8 , 78u8 , 37u8 , 22u8 , 36u8 , 36u8 , 53u8 , 174u8 , 118u8 , 222u8 , 16u8 , 159u8 , 201u8 , 254u8 , 233u8 , 82u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod configuration { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_consensus_babe :: BabeConfiguration ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Configuration { } pub mod current_epoch_start { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_consensus_slots :: Slot ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentEpochStart { } pub mod current_epoch { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_consensus_babe :: Epoch ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentEpoch { } pub mod next_epoch { use super :: runtime_types ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: sp_consensus_babe :: Epoch ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NextEpoch { } pub mod generate_key_ownership_proof { use super :: runtime_types ; pub type Slot = runtime_types :: sp_consensus_slots :: Slot ; pub type AuthorityId = runtime_types :: sp_consensus_babe :: app :: Public ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < runtime_types :: sp_consensus_babe :: OpaqueKeyOwnershipProof > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct GenerateKeyOwnershipProof { pub slot : generate_key_ownership_proof :: Slot , pub authority_id : generate_key_ownership_proof :: AuthorityId , } pub mod submit_report_equivocation_unsigned_extrinsic { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_slots :: EquivocationProof < runtime_types :: sp_runtime :: generic :: header :: Header < :: core :: primitive :: u32 > , runtime_types :: sp_consensus_babe :: app :: Public > ; pub type KeyOwnerProof = runtime_types :: sp_consensus_babe :: OpaqueKeyOwnershipProof ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: option :: Option < () > ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubmitReportEquivocationUnsignedExtrinsic { pub equivocation_proof : submit_report_equivocation_unsigned_extrinsic :: EquivocationProof , pub key_owner_proof : submit_report_equivocation_unsigned_extrinsic :: KeyOwnerProof , } } } pub mod swap_runtime_api { use super :: root_mod ; use super :: runtime_types ; pub struct SwapRuntimeApi ; impl SwapRuntimeApi { pub fn current_alpha_price (& self , netuid : types :: current_alpha_price :: Netuid ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: CurrentAlphaPrice , types :: current_alpha_price :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SwapRuntimeApi" , "current_alpha_price" , types :: CurrentAlphaPrice { netuid , } , [11u8 , 188u8 , 171u8 , 199u8 , 218u8 , 30u8 , 244u8 , 88u8 , 54u8 , 217u8 , 110u8 , 45u8 , 207u8 , 243u8 , 137u8 , 75u8 , 164u8 , 95u8 , 95u8 , 168u8 , 192u8 , 97u8 , 155u8 , 169u8 , 242u8 , 215u8 , 135u8 , 202u8 , 236u8 , 133u8 , 147u8 , 32u8 ,] ,) } pub fn sim_swap_tao_for_alpha (& self , netuid : types :: sim_swap_tao_for_alpha :: Netuid , tao : types :: sim_swap_tao_for_alpha :: Tao ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SimSwapTaoForAlpha , types :: sim_swap_tao_for_alpha :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SwapRuntimeApi" , "sim_swap_tao_for_alpha" , types :: SimSwapTaoForAlpha { netuid , tao , } , [35u8 , 188u8 , 23u8 , 31u8 , 145u8 , 29u8 , 139u8 , 70u8 , 5u8 , 23u8 , 186u8 , 94u8 , 19u8 , 183u8 , 174u8 , 190u8 , 193u8 , 89u8 , 168u8 , 169u8 , 107u8 , 128u8 , 174u8 , 212u8 , 94u8 , 144u8 , 26u8 , 200u8 , 90u8 , 74u8 , 40u8 , 203u8 ,] ,) } pub fn sim_swap_alpha_for_tao (& self , netuid : types :: sim_swap_alpha_for_tao :: Netuid , alpha : types :: sim_swap_alpha_for_tao :: Alpha ,) -> :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload < types :: SimSwapAlphaForTao , types :: sim_swap_alpha_for_tao :: output :: Output > { :: subxt :: ext :: subxt_core :: runtime_api :: payload :: StaticPayload :: new_static ("SwapRuntimeApi" , "sim_swap_alpha_for_tao" , types :: SimSwapAlphaForTao { netuid , alpha , } , [26u8 , 83u8 , 187u8 , 158u8 , 202u8 , 176u8 , 211u8 , 12u8 , 1u8 , 105u8 , 149u8 , 223u8 , 114u8 , 126u8 , 55u8 , 169u8 , 145u8 , 12u8 , 141u8 , 128u8 , 220u8 , 255u8 , 121u8 , 100u8 , 118u8 , 81u8 , 16u8 , 179u8 , 246u8 , 141u8 , 134u8 , 231u8 ,] ,) } } pub mod types { use super :: runtime_types ; pub mod current_alpha_price { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: u64 ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CurrentAlphaPrice { pub netuid : current_alpha_price :: Netuid , } pub mod sim_swap_tao_for_alpha { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Tao = :: core :: primitive :: u64 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_subtensor_swap_runtime_api :: SimSwapResult ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SimSwapTaoForAlpha { pub netuid : sim_swap_tao_for_alpha :: Netuid , pub tao : sim_swap_tao_for_alpha :: Tao , } pub mod sim_swap_alpha_for_tao { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Alpha = :: core :: primitive :: u64 ; pub mod output { use super :: runtime_types ; pub type Output = runtime_types :: pallet_subtensor_swap_runtime_api :: SimSwapResult ; } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SimSwapAlphaForTao { pub netuid : sim_swap_alpha_for_tao :: Netuid , pub alpha : sim_swap_alpha_for_tao :: Alpha , } } } } pub fn view_functions () -> ViewFunctionsApi { ViewFunctionsApi } pub fn custom () -> CustomValuesApi { CustomValuesApi } pub struct CustomValuesApi ; impl CustomValuesApi { } 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 aura (& self) -> aura :: constants :: ConstantsApi { aura :: constants :: ConstantsApi } pub fn grandpa (& self) -> grandpa :: constants :: ConstantsApi { grandpa :: 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 subtensor_module (& self) -> subtensor_module :: constants :: ConstantsApi { subtensor_module :: constants :: ConstantsApi } pub fn utility (& self) -> utility :: constants :: ConstantsApi { utility :: constants :: ConstantsApi } pub fn multisig (& self) -> multisig :: constants :: ConstantsApi { multisig :: constants :: ConstantsApi } pub fn scheduler (& self) -> scheduler :: constants :: ConstantsApi { scheduler :: constants :: ConstantsApi } pub fn proxy (& self) -> proxy :: constants :: ConstantsApi { proxy :: constants :: ConstantsApi } pub fn registry (& self) -> registry :: constants :: ConstantsApi { registry :: constants :: ConstantsApi } pub fn commitments (& self) -> commitments :: constants :: ConstantsApi { commitments :: constants :: ConstantsApi } pub fn safe_mode (& self) -> safe_mode :: constants :: ConstantsApi { safe_mode :: constants :: ConstantsApi } pub fn drand (& self) -> drand :: constants :: ConstantsApi { drand :: constants :: ConstantsApi } pub fn crowdloan (& self) -> crowdloan :: constants :: ConstantsApi { crowdloan :: constants :: ConstantsApi } pub fn swap (& self) -> swap :: constants :: ConstantsApi { swap :: constants :: ConstantsApi } pub fn contracts (& self) -> contracts :: constants :: ConstantsApi { contracts :: constants :: ConstantsApi } } pub struct StorageApi ; impl StorageApi { pub fn system (& self) -> system :: storage :: StorageApi { system :: storage :: StorageApi } pub fn randomness_collective_flip (& self) -> randomness_collective_flip :: storage :: StorageApi { randomness_collective_flip :: storage :: StorageApi } pub fn timestamp (& self) -> timestamp :: storage :: StorageApi { timestamp :: storage :: StorageApi } pub fn aura (& self) -> aura :: storage :: StorageApi { aura :: storage :: StorageApi } pub fn grandpa (& self) -> grandpa :: storage :: StorageApi { grandpa :: 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 subtensor_module (& self) -> subtensor_module :: storage :: StorageApi { subtensor_module :: storage :: StorageApi } pub fn sudo (& self) -> sudo :: storage :: StorageApi { sudo :: storage :: StorageApi } pub fn multisig (& self) -> multisig :: storage :: StorageApi { multisig :: storage :: StorageApi } pub fn preimage (& self) -> preimage :: storage :: StorageApi { preimage :: storage :: StorageApi } pub fn scheduler (& self) -> scheduler :: storage :: StorageApi { scheduler :: storage :: StorageApi } pub fn proxy (& self) -> proxy :: storage :: StorageApi { proxy :: storage :: StorageApi } pub fn registry (& self) -> registry :: storage :: StorageApi { registry :: storage :: StorageApi } pub fn commitments (& self) -> commitments :: storage :: StorageApi { commitments :: storage :: StorageApi } pub fn admin_utils (& self) -> admin_utils :: storage :: StorageApi { admin_utils :: storage :: StorageApi } pub fn safe_mode (& self) -> safe_mode :: storage :: StorageApi { safe_mode :: 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 base_fee (& self) -> base_fee :: storage :: StorageApi { base_fee :: storage :: StorageApi } pub fn drand (& self) -> drand :: storage :: StorageApi { drand :: storage :: StorageApi } pub fn crowdloan (& self) -> crowdloan :: storage :: StorageApi { crowdloan :: storage :: StorageApi } pub fn swap (& self) -> swap :: storage :: StorageApi { swap :: storage :: StorageApi } pub fn contracts (& self) -> contracts :: storage :: StorageApi { contracts :: storage :: StorageApi } pub fn mev_shield (& self) -> mev_shield :: storage :: StorageApi { mev_shield :: 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 grandpa (& self) -> grandpa :: calls :: TransactionApi { grandpa :: calls :: TransactionApi } pub fn balances (& self) -> balances :: calls :: TransactionApi { balances :: calls :: TransactionApi } pub fn subtensor_module (& self) -> subtensor_module :: calls :: TransactionApi { subtensor_module :: calls :: TransactionApi } pub fn utility (& self) -> utility :: calls :: TransactionApi { utility :: calls :: TransactionApi } pub fn sudo (& self) -> sudo :: calls :: TransactionApi { sudo :: calls :: TransactionApi } pub fn multisig (& self) -> multisig :: calls :: TransactionApi { multisig :: calls :: TransactionApi } pub fn preimage (& self) -> preimage :: calls :: TransactionApi { preimage :: calls :: TransactionApi } pub fn scheduler (& self) -> scheduler :: calls :: TransactionApi { scheduler :: calls :: TransactionApi } pub fn proxy (& self) -> proxy :: calls :: TransactionApi { proxy :: calls :: TransactionApi } pub fn registry (& self) -> registry :: calls :: TransactionApi { registry :: calls :: TransactionApi } pub fn commitments (& self) -> commitments :: calls :: TransactionApi { commitments :: calls :: TransactionApi } pub fn admin_utils (& self) -> admin_utils :: calls :: TransactionApi { admin_utils :: calls :: TransactionApi } pub fn safe_mode (& self) -> safe_mode :: calls :: TransactionApi { safe_mode :: calls :: TransactionApi } pub fn ethereum (& self) -> ethereum :: calls :: TransactionApi { ethereum :: calls :: TransactionApi } pub fn evm (& self) -> evm :: calls :: TransactionApi { evm :: calls :: TransactionApi } pub fn base_fee (& self) -> base_fee :: calls :: TransactionApi { base_fee :: calls :: TransactionApi } pub fn drand (& self) -> drand :: calls :: TransactionApi { drand :: calls :: TransactionApi } pub fn crowdloan (& self) -> crowdloan :: calls :: TransactionApi { crowdloan :: calls :: TransactionApi } pub fn swap (& self) -> swap :: calls :: TransactionApi { swap :: calls :: TransactionApi } pub fn contracts (& self) -> contracts :: calls :: TransactionApi { contracts :: calls :: TransactionApi } pub fn mev_shield (& self) -> mev_shield :: calls :: TransactionApi { mev_shield :: calls :: TransactionApi } } pub struct ViewFunctionsApi ; impl ViewFunctionsApi { pub fn proxy (& self) -> proxy :: view_functions :: ViewFunctionsApi { proxy :: view_functions :: ViewFunctionsApi } } # [doc = r" check whether the metadata provided is aligned with this statically generated code."] pub fn is_codegen_valid_for (metadata : & :: subxt :: ext :: subxt_core :: Metadata) -> bool { let runtime_metadata_hash = metadata . hasher () . only_these_pallets (& PALLETS) . only_these_runtime_apis (& RUNTIME_APIS) . hash () ; runtime_metadata_hash == [100u8 , 72u8 , 82u8 , 88u8 , 132u8 , 151u8 , 237u8 , 16u8 , 91u8 , 227u8 , 206u8 , 248u8 , 82u8 , 200u8 , 200u8 , 220u8 , 226u8 , 207u8 , 247u8 , 249u8 , 254u8 , 55u8 , 117u8 , 100u8 , 162u8 , 235u8 , 233u8 , 52u8 , 32u8 , 41u8 , 175u8 , 152u8 ,] } pub mod system { use super :: root_mod ; use super :: runtime_types ; # [doc = "Error for the System pallet"] pub type Error = runtime_types :: frame_system :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Make some on-chain remark."] # [doc = ""] # [doc = "Can be executed by every `origin`."] pub struct Remark { pub remark : remark :: Remark , } pub mod remark { use super :: runtime_types ; pub type Remark = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Remark { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "remark" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the number of pages in the WebAssembly environment's heap."] pub struct SetHeapPages { pub pages : set_heap_pages :: Pages , } pub mod set_heap_pages { use super :: runtime_types ; pub type Pages = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetHeapPages { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "set_heap_pages" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the new runtime code."] pub struct SetCode { pub code : set_code :: Code , } pub mod set_code { use super :: runtime_types ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCode { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "set_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the new runtime code without doing any checks of the given `code`."] # [doc = ""] # [doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"] # [doc = "version!"] pub struct SetCodeWithoutChecks { pub code : set_code_without_checks :: Code , } pub mod set_code_without_checks { use super :: runtime_types ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCodeWithoutChecks { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "set_code_without_checks" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set some items of storage."] pub struct SetStorage { pub items : set_storage :: Items , } pub mod set_storage { use super :: runtime_types ; pub type Items = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetStorage { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "set_storage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Kill some items from storage."] pub struct KillStorage { pub keys : kill_storage :: Keys , } pub mod kill_storage { use super :: runtime_types ; pub type Keys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for KillStorage { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "kill_storage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Kill all storage items with a key that starts with the given prefix."] # [doc = ""] # [doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] # [doc = "the prefix we are removing to accurately calculate the weight of this function."] pub struct KillPrefix { pub prefix : kill_prefix :: Prefix , pub subkeys : kill_prefix :: Subkeys , } pub mod kill_prefix { use super :: runtime_types ; pub type Prefix = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Subkeys = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for KillPrefix { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "kill_prefix" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Make some on-chain remark and emit event."] pub struct RemarkWithEvent { pub remark : remark_with_event :: Remark , } pub mod remark_with_event { use super :: runtime_types ; pub type Remark = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemarkWithEvent { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "remark_with_event" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "This call requires Root origin."] pub struct AuthorizeUpgrade { pub code_hash : authorize_upgrade :: CodeHash , } pub mod authorize_upgrade { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AuthorizeUpgrade { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "authorize_upgrade" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"] # [doc = "example that the spec name remains the same and that the version number increases. Not"] # [doc = "recommended for normal use. Use `authorize_upgrade` instead."] # [doc = ""] # [doc = "This call requires Root origin."] pub struct AuthorizeUpgradeWithoutChecks { pub code_hash : authorize_upgrade_without_checks :: CodeHash , } pub mod authorize_upgrade_without_checks { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AuthorizeUpgradeWithoutChecks { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "authorize_upgrade_without_checks" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."] # [doc = ""] # [doc = "If the authorization required a version check, this call will ensure the spec name"] # [doc = "remains unchanged and that the spec version has increased."] # [doc = ""] # [doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"] # [doc = "the new `code` in the same block or attempt to schedule the upgrade."] # [doc = ""] # [doc = "All origins are allowed."] pub struct ApplyAuthorizedUpgrade { pub code : apply_authorized_upgrade :: Code , } pub mod apply_authorized_upgrade { use super :: runtime_types ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ApplyAuthorizedUpgrade { const PALLET : & 'static str = "System" ; const CALL : & 'static str = "apply_authorized_upgrade" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Make some on-chain remark."] # [doc = ""] # [doc = "Can be executed by every `origin`."] pub fn remark (& self , remark : types :: remark :: Remark ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Remark > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Set the number of pages in the WebAssembly environment's heap."] pub fn set_heap_pages (& self , pages : types :: set_heap_pages :: Pages ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetHeapPages > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Set the new runtime code."] pub fn set_code (& self , code : types :: set_code :: Code ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Set the new runtime code without doing any checks of the given `code`."] # [doc = ""] # [doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"] # [doc = "version!"] pub fn set_code_without_checks (& self , code : types :: set_code_without_checks :: Code ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCodeWithoutChecks > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Set some items of storage."] pub fn set_storage (& self , items : types :: set_storage :: Items ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetStorage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Kill some items from storage."] pub fn kill_storage (& self , keys : types :: kill_storage :: Keys ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: KillStorage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Kill all storage items with a key that starts with the given prefix."] # [doc = ""] # [doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] # [doc = "the prefix we are removing to accurately calculate the weight of this function."] pub fn kill_prefix (& self , prefix : types :: kill_prefix :: Prefix , subkeys : types :: kill_prefix :: Subkeys ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: KillPrefix > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Make some on-chain remark and emit event."] pub fn remark_with_event (& self , remark : types :: remark_with_event :: Remark ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemarkWithEvent > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "This call requires Root origin."] pub fn authorize_upgrade (& self , code_hash : types :: authorize_upgrade :: CodeHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AuthorizeUpgrade > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "authorize_upgrade" , types :: AuthorizeUpgrade { code_hash , } , [4u8 , 14u8 , 76u8 , 107u8 , 209u8 , 129u8 , 9u8 , 39u8 , 193u8 , 17u8 , 84u8 , 254u8 , 170u8 , 214u8 , 24u8 , 155u8 , 29u8 , 184u8 , 249u8 , 241u8 , 109u8 , 58u8 , 145u8 , 131u8 , 109u8 , 63u8 , 38u8 , 165u8 , 107u8 , 215u8 , 217u8 , 172u8 ,]) } # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"] # [doc = "example that the spec name remains the same and that the version number increases. Not"] # [doc = "recommended for normal use. Use `authorize_upgrade` instead."] # [doc = ""] # [doc = "This call requires Root origin."] pub fn authorize_upgrade_without_checks (& self , code_hash : types :: authorize_upgrade_without_checks :: CodeHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AuthorizeUpgradeWithoutChecks > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "authorize_upgrade_without_checks" , types :: AuthorizeUpgradeWithoutChecks { code_hash , } , [126u8 , 126u8 , 55u8 , 26u8 , 47u8 , 55u8 , 66u8 , 8u8 , 167u8 , 18u8 , 29u8 , 136u8 , 146u8 , 14u8 , 189u8 , 117u8 , 16u8 , 227u8 , 162u8 , 61u8 , 149u8 , 197u8 , 104u8 , 184u8 , 185u8 , 161u8 , 99u8 , 154u8 , 80u8 , 125u8 , 181u8 , 233u8 ,]) } # [doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."] # [doc = ""] # [doc = "If the authorization required a version check, this call will ensure the spec name"] # [doc = "remains unchanged and that the spec version has increased."] # [doc = ""] # [doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"] # [doc = "the new `code` in the same block or attempt to schedule the upgrade."] # [doc = ""] # [doc = "All origins are allowed."] pub fn apply_authorized_upgrade (& self , code : types :: apply_authorized_upgrade :: Code ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ApplyAuthorizedUpgrade > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("System" , "apply_authorized_upgrade" , types :: ApplyAuthorizedUpgrade { code , } , [232u8 , 107u8 , 127u8 , 38u8 , 230u8 , 29u8 , 97u8 , 4u8 , 160u8 , 191u8 , 222u8 , 156u8 , 245u8 , 102u8 , 196u8 , 141u8 , 44u8 , 163u8 , 98u8 , 68u8 , 125u8 , 32u8 , 124u8 , 101u8 , 108u8 , 93u8 , 211u8 , 52u8 , 0u8 , 231u8 , 33u8 , 227u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An extrinsic completed successfully."] pub struct ExtrinsicSuccess { pub dispatch_info : extrinsic_success :: DispatchInfo , } pub mod extrinsic_success { use super :: runtime_types ; pub type DispatchInfo = runtime_types :: frame_system :: DispatchEventInfo ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ExtrinsicSuccess { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "ExtrinsicSuccess" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An extrinsic failed."] pub struct ExtrinsicFailed { pub dispatch_error : extrinsic_failed :: DispatchError , pub dispatch_info : extrinsic_failed :: DispatchInfo , } pub mod extrinsic_failed { use super :: runtime_types ; pub type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub type DispatchInfo = runtime_types :: frame_system :: DispatchEventInfo ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ExtrinsicFailed { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "ExtrinsicFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "`:code` was updated."] pub struct CodeUpdated ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CodeUpdated { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "CodeUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A new account was created."] pub struct NewAccount { pub account : new_account :: Account , } pub mod new_account { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewAccount { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "NewAccount" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account was reaped."] pub struct KilledAccount { pub account : killed_account :: Account , } pub mod killed_account { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for KilledAccount { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "KilledAccount" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "On on-chain remark happened."] pub struct Remarked { pub sender : remarked :: Sender , pub hash : remarked :: Hash , } pub mod remarked { use super :: runtime_types ; pub type Sender = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Remarked { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "Remarked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An upgrade was authorized."] pub struct UpgradeAuthorized { pub code_hash : upgrade_authorized :: CodeHash , pub check_version : upgrade_authorized :: CheckVersion , } pub mod upgrade_authorized { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type CheckVersion = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for UpgradeAuthorized { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "UpgradeAuthorized" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An invalid authorized upgrade was rejected while trying to apply it."] pub struct RejectedInvalidAuthorizedUpgrade { pub code_hash : rejected_invalid_authorized_upgrade :: CodeHash , pub error : rejected_invalid_authorized_upgrade :: Error , } pub mod rejected_invalid_authorized_upgrade { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Error = runtime_types :: sp_runtime :: DispatchError ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RejectedInvalidAuthorizedUpgrade { const PALLET : & 'static str = "System" ; const EVENT : & 'static str = "RejectedInvalidAuthorizedUpgrade" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod account { use super :: runtime_types ; pub type Account = runtime_types :: frame_system :: AccountInfo < :: core :: primitive :: u32 , runtime_types :: pallet_balances :: types :: AccountData < :: core :: primitive :: u64 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod extrinsic_count { use super :: runtime_types ; pub type ExtrinsicCount = :: core :: primitive :: u32 ; } pub mod inherents_applied { use super :: runtime_types ; pub type InherentsApplied = :: core :: primitive :: bool ; } pub mod block_weight { use super :: runtime_types ; pub type BlockWeight = runtime_types :: frame_support :: dispatch :: PerDispatchClass < runtime_types :: sp_weights :: weight_v2 :: Weight > ; } pub mod all_extrinsics_len { use super :: runtime_types ; pub type AllExtrinsicsLen = :: core :: primitive :: u32 ; } pub mod block_hash { use super :: runtime_types ; pub type BlockHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod extrinsic_data { use super :: runtime_types ; pub type ExtrinsicData = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod number { use super :: runtime_types ; pub type Number = :: core :: primitive :: u32 ; } pub mod parent_hash { use super :: runtime_types ; pub type ParentHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod digest { use super :: runtime_types ; pub type Digest = runtime_types :: sp_runtime :: generic :: digest :: Digest ; } pub mod events { use super :: runtime_types ; pub type Events = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: frame_system :: EventRecord < runtime_types :: node_subtensor_runtime :: RuntimeEvent , :: subxt :: ext :: subxt_core :: utils :: H256 > > ; } pub mod event_count { use super :: runtime_types ; pub type EventCount = :: core :: primitive :: u32 ; } pub mod event_topics { use super :: runtime_types ; pub type EventTopics = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod last_runtime_upgrade { use super :: runtime_types ; pub type LastRuntimeUpgrade = runtime_types :: frame_system :: LastRuntimeUpgradeInfo ; } pub mod upgraded_to_u32_ref_count { use super :: runtime_types ; pub type UpgradedToU32RefCount = :: core :: primitive :: bool ; } pub mod upgraded_to_triple_ref_count { use super :: runtime_types ; pub type UpgradedToTripleRefCount = :: core :: primitive :: bool ; } pub mod execution_phase { use super :: runtime_types ; pub type ExecutionPhase = runtime_types :: frame_system :: Phase ; } pub mod authorized_upgrade { use super :: runtime_types ; pub type AuthorizedUpgrade = runtime_types :: frame_system :: CodeUpgradeAuthorization ; } pub mod extrinsic_weight_reclaimed { use super :: runtime_types ; pub type ExtrinsicWeightReclaimed = runtime_types :: sp_weights :: weight_v2 :: Weight ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The full account information for a particular account ID."] pub fn account_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account :: Account , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Account" , () , [134u8 , 36u8 , 200u8 , 97u8 , 250u8 , 93u8 , 194u8 , 130u8 , 234u8 , 169u8 , 160u8 , 176u8 , 58u8 , 142u8 , 63u8 , 133u8 , 29u8 , 94u8 , 102u8 , 192u8 , 82u8 , 6u8 , 105u8 , 248u8 , 238u8 , 246u8 , 26u8 , 107u8 , 39u8 , 219u8 , 103u8 , 212u8 ,]) } # [doc = " The full account information for a particular account ID."] pub fn account (& self , _0 : types :: account :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account :: Param0 > , types :: account :: Account , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Account" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [134u8 , 36u8 , 200u8 , 97u8 , 250u8 , 93u8 , 194u8 , 130u8 , 234u8 , 169u8 , 160u8 , 176u8 , 58u8 , 142u8 , 63u8 , 133u8 , 29u8 , 94u8 , 102u8 , 192u8 , 82u8 , 6u8 , 105u8 , 248u8 , 238u8 , 246u8 , 26u8 , 107u8 , 39u8 , 219u8 , 103u8 , 212u8 ,]) } # [doc = " Total extrinsics count for the current block."] pub fn extrinsic_count (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: extrinsic_count :: ExtrinsicCount , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExtrinsicCount" , () , [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 ,]) } # [doc = " Whether all inherents have been applied."] pub fn inherents_applied (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: inherents_applied :: InherentsApplied , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "InherentsApplied" , () , [132u8 , 249u8 , 142u8 , 252u8 , 8u8 , 103u8 , 80u8 , 120u8 , 50u8 , 6u8 , 188u8 , 223u8 , 101u8 , 55u8 , 165u8 , 189u8 , 172u8 , 249u8 , 165u8 , 230u8 , 183u8 , 109u8 , 34u8 , 65u8 , 185u8 , 150u8 , 29u8 , 8u8 , 186u8 , 129u8 , 135u8 , 239u8 ,]) } # [doc = " The current weight for the block."] pub fn block_weight (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: block_weight :: BlockWeight , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "BlockWeight" , () , [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 ,]) } # [doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: all_extrinsics_len :: AllExtrinsicsLen , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "AllExtrinsicsLen" , () , [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 ,]) } # [doc = " Map of block numbers to block hashes."] pub fn block_hash_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: block_hash :: BlockHash , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "BlockHash" , () , [217u8 , 32u8 , 215u8 , 253u8 , 24u8 , 182u8 , 207u8 , 178u8 , 157u8 , 24u8 , 103u8 , 100u8 , 195u8 , 165u8 , 69u8 , 152u8 , 112u8 , 181u8 , 56u8 , 192u8 , 164u8 , 16u8 , 20u8 , 222u8 , 28u8 , 214u8 , 144u8 , 142u8 , 146u8 , 69u8 , 202u8 , 118u8 ,]) } # [doc = " Map of block numbers to block hashes."] pub fn block_hash (& self , _0 : types :: block_hash :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: block_hash :: Param0 > , types :: block_hash :: BlockHash , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "BlockHash" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [217u8 , 32u8 , 215u8 , 253u8 , 24u8 , 182u8 , 207u8 , 178u8 , 157u8 , 24u8 , 103u8 , 100u8 , 195u8 , 165u8 , 69u8 , 152u8 , 112u8 , 181u8 , 56u8 , 192u8 , 164u8 , 16u8 , 20u8 , 222u8 , 28u8 , 214u8 , 144u8 , 142u8 , 146u8 , 69u8 , 202u8 , 118u8 ,]) } # [doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: extrinsic_data :: ExtrinsicData , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExtrinsicData" , () , [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 ,]) } # [doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data (& self , _0 : types :: extrinsic_data :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: extrinsic_data :: Param0 > , types :: extrinsic_data :: ExtrinsicData , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExtrinsicData" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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 ,]) } # [doc = " The current block number being processed. Set by `execute_block`."] pub fn number (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: number :: Number , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Number" , () , [30u8 , 194u8 , 177u8 , 90u8 , 194u8 , 232u8 , 46u8 , 180u8 , 85u8 , 129u8 , 14u8 , 9u8 , 8u8 , 8u8 , 23u8 , 95u8 , 230u8 , 5u8 , 13u8 , 105u8 , 125u8 , 2u8 , 22u8 , 200u8 , 78u8 , 93u8 , 115u8 , 28u8 , 150u8 , 113u8 , 48u8 , 53u8 ,]) } # [doc = " Hash of the previous block."] pub fn parent_hash (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: parent_hash :: ParentHash , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ParentHash" , () , [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 ,]) } # [doc = " Digest of the current block, also part of the block header."] pub fn digest (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: digest :: Digest , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Digest" , () , [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 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: events :: Events , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "Events" , () , [198u8 , 1u8 , 9u8 , 127u8 , 3u8 , 182u8 , 0u8 , 94u8 , 116u8 , 98u8 , 226u8 , 129u8 , 214u8 , 89u8 , 252u8 , 97u8 , 138u8 , 188u8 , 184u8 , 60u8 , 221u8 , 141u8 , 155u8 , 67u8 , 137u8 , 161u8 , 194u8 , 87u8 , 194u8 , 149u8 , 27u8 , 71u8 ,]) } # [doc = " The number of events in the `Events<T>` list."] pub fn event_count (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: event_count :: EventCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "EventCount" , () , [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 ,]) } # [doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] # [doc = " of events in the `<Events<T>>` 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<T>, 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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: event_topics :: EventTopics , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "EventTopics" , () , [40u8 , 225u8 , 14u8 , 75u8 , 44u8 , 176u8 , 76u8 , 34u8 , 143u8 , 107u8 , 69u8 , 133u8 , 114u8 , 13u8 , 172u8 , 250u8 , 141u8 , 73u8 , 12u8 , 65u8 , 217u8 , 63u8 , 120u8 , 241u8 , 48u8 , 106u8 , 143u8 , 161u8 , 128u8 , 100u8 , 166u8 , 59u8 ,]) } # [doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] # [doc = " of events in the `<Events<T>>` 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<T>, 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 : types :: event_topics :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: event_topics :: Param0 > , types :: event_topics :: EventTopics , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "EventTopics" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [40u8 , 225u8 , 14u8 , 75u8 , 44u8 , 176u8 , 76u8 , 34u8 , 143u8 , 107u8 , 69u8 , 133u8 , 114u8 , 13u8 , 172u8 , 250u8 , 141u8 , 73u8 , 12u8 , 65u8 , 217u8 , 63u8 , 120u8 , 241u8 , 48u8 , 106u8 , 143u8 , 161u8 , 128u8 , 100u8 , 166u8 , 59u8 ,]) } # [doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_runtime_upgrade :: LastRuntimeUpgrade , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "LastRuntimeUpgrade" , () , [197u8 , 212u8 , 249u8 , 209u8 , 79u8 , 34u8 , 55u8 , 203u8 , 31u8 , 42u8 , 199u8 , 242u8 , 188u8 , 74u8 , 234u8 , 250u8 , 245u8 , 44u8 , 139u8 , 162u8 , 45u8 , 150u8 , 230u8 , 249u8 , 135u8 , 100u8 , 158u8 , 167u8 , 118u8 , 219u8 , 28u8 , 98u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: upgraded_to_u32_ref_count :: UpgradedToU32RefCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "UpgradedToU32RefCount" , () , [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 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: upgraded_to_triple_ref_count :: UpgradedToTripleRefCount , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "UpgradedToTripleRefCount" , () , [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 ,]) } # [doc = " The execution phase of the block."] pub fn execution_phase (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: execution_phase :: ExecutionPhase , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExecutionPhase" , () , [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 ,]) } # [doc = " `Some` if a code upgrade has been authorized."] pub fn authorized_upgrade (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: authorized_upgrade :: AuthorizedUpgrade , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "AuthorizedUpgrade" , () , [165u8 , 97u8 , 27u8 , 138u8 , 2u8 , 28u8 , 55u8 , 92u8 , 96u8 , 96u8 , 168u8 , 169u8 , 55u8 , 178u8 , 44u8 , 127u8 , 58u8 , 140u8 , 206u8 , 178u8 , 1u8 , 37u8 , 214u8 , 213u8 , 251u8 , 123u8 , 5u8 , 111u8 , 90u8 , 148u8 , 217u8 , 135u8 ,]) } # [doc = " The weight reclaimed for the extrinsic."] # [doc = ""] # [doc = " This information is available until the end of the extrinsic execution."] # [doc = " More precisely this information is removed in `note_applied_extrinsic`."] # [doc = ""] # [doc = " Logic doing some post dispatch weight reduction must update this storage to avoid duplicate"] # [doc = " reduction."] pub fn extrinsic_weight_reclaimed (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: extrinsic_weight_reclaimed :: ExtrinsicWeightReclaimed , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("System" , "ExtrinsicWeightReclaimed" , () , [195u8 , 143u8 , 164u8 , 84u8 , 225u8 , 194u8 , 227u8 , 128u8 , 196u8 , 241u8 , 188u8 , 159u8 , 59u8 , 197u8 , 11u8 , 12u8 , 119u8 , 164u8 , 46u8 , 229u8 , 92u8 , 212u8 , 236u8 , 255u8 , 238u8 , 54u8 , 105u8 , 200u8 , 229u8 , 191u8 , 221u8 , 202u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " Block & extrinsics weights: base values and limits."] pub fn block_weights (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_system :: limits :: BlockWeights > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " The maximum length of a block (in bytes)."] pub fn block_length (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_system :: limits :: BlockLength > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("System" , "BlockHashCount" , [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 ,]) } # [doc = " The weight of runtime database operations the runtime can invoke."] pub fn db_weight (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_weights :: RuntimeDbWeight > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " Get the chain's in-code version."] pub fn version (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_version :: RuntimeVersion > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("System" , "Version" , [214u8 , 43u8 , 96u8 , 193u8 , 96u8 , 213u8 , 63u8 , 124u8 , 22u8 , 111u8 , 41u8 , 78u8 , 146u8 , 77u8 , 34u8 , 163u8 , 117u8 , 100u8 , 6u8 , 216u8 , 238u8 , 54u8 , 80u8 , 185u8 , 219u8 , 11u8 , 192u8 , 200u8 , 129u8 , 88u8 , 161u8 , 250u8 ,]) } # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 randomness_collective_flip { use super :: root_mod ; use super :: runtime_types ; pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod random_material { use super :: runtime_types ; pub type RandomMaterial = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: subxt :: ext :: subxt_core :: utils :: H256 > ; } } pub struct StorageApi ; impl StorageApi { # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: random_material :: RandomMaterial , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("RandomnessCollectiveFlip" , "RandomMaterial" , () , [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 timestamp { use super :: root_mod ; use super :: runtime_types ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the current time."] # [doc = ""] # [doc = "This call should be invoked exactly once per block. It will panic at the finalization"] # [doc = "phase, if this call hasn't been invoked by that time."] # [doc = ""] # [doc = "The timestamp should be greater than the previous one by the amount specified by"] # [doc = "[`Config::MinimumPeriod`]."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"] # [doc = "that changing the complexity of this call could result exhausting the resources in a"] # [doc = "block to execute any other calls."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] # [doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"] # [doc = "  `on_finalize`)"] # [doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] pub struct Set { # [codec (compact)] pub now : set :: Now , } pub mod set { use super :: runtime_types ; pub type Now = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Set { const PALLET : & 'static str = "Timestamp" ; const CALL : & 'static str = "set" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Set the current time."] # [doc = ""] # [doc = "This call should be invoked exactly once per block. It will panic at the finalization"] # [doc = "phase, if this call hasn't been invoked by that time."] # [doc = ""] # [doc = "The timestamp should be greater than the previous one by the amount specified by"] # [doc = "[`Config::MinimumPeriod`]."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"] # [doc = "that changing the complexity of this call could result exhausting the resources in a"] # [doc = "block to execute any other calls."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] # [doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"] # [doc = "  `on_finalize`)"] # [doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] pub fn set (& self , now : types :: set :: Now ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Set > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 mod types { use super :: runtime_types ; pub mod now { use super :: runtime_types ; pub type Now = :: core :: primitive :: u64 ; } pub mod did_update { use super :: runtime_types ; pub type DidUpdate = :: core :: primitive :: bool ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The current time for the current block."] pub fn now (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: now :: Now , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Timestamp" , "Now" , () , [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 ,]) } # [doc = " Whether the timestamp has been updated in this block."] # [doc = ""] # [doc = " This value is updated to `true` upon successful submission of a timestamp by a node."] # [doc = " It is then checked at the end of each block execution in the `on_finalize` hook."] pub fn did_update (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: did_update :: DidUpdate , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Timestamp" , "DidUpdate" , () , [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 { # [doc = " The minimum period between blocks."] # [doc = ""] # [doc = " Be aware that this is different to the *expected* period that the block production"] # [doc = " apparatus provides. Your chosen consensus system will generally work with this to"] # [doc = " determine a sensible block time. For example, in the Aura pallet it will be double this"] # [doc = " period on default settings."] pub fn minimum_period (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 aura { use super :: root_mod ; use super :: runtime_types ; pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod authorities { use super :: runtime_types ; pub type Authorities = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > ; } pub mod current_slot { use super :: runtime_types ; pub type CurrentSlot = runtime_types :: sp_consensus_slots :: Slot ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The current authority set."] pub fn authorities (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: authorities :: Authorities , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Aura" , "Authorities" , () , [95u8 , 52u8 , 203u8 , 53u8 , 254u8 , 107u8 , 134u8 , 122u8 , 95u8 , 253u8 , 51u8 , 137u8 , 142u8 , 106u8 , 237u8 , 248u8 , 159u8 , 80u8 , 41u8 , 233u8 , 137u8 , 133u8 , 13u8 , 217u8 , 176u8 , 88u8 , 132u8 , 199u8 , 241u8 , 47u8 , 125u8 , 27u8 ,]) } # [doc = " The current slot of this block."] # [doc = ""] # [doc = " This will be set in `on_initialize`."] pub fn current_slot (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_slot :: CurrentSlot , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Aura" , "CurrentSlot" , () , [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 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The slot duration Aura should run with, expressed in milliseconds."] # [doc = " The effective value of this type should not change while the chain is running."] # [doc = ""] # [doc = " For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const."] pub fn slot_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Aura" , "SlotDuration" , [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 grandpa { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_grandpa :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] pub struct ReportEquivocation { pub equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < report_equivocation :: EquivocationProof > , pub key_owner_proof : report_equivocation :: KeyOwnerProof , } pub mod report_equivocation { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > ; pub type KeyOwnerProof = runtime_types :: sp_core :: Void ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReportEquivocation { const PALLET : & 'static str = "Grandpa" ; const CALL : & 'static str = "report_equivocation" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] # [doc = ""] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] pub struct ReportEquivocationUnsigned { pub equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < report_equivocation_unsigned :: EquivocationProof > , pub key_owner_proof : report_equivocation_unsigned :: KeyOwnerProof , } pub mod report_equivocation_unsigned { use super :: runtime_types ; pub type EquivocationProof = runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > ; pub type KeyOwnerProof = runtime_types :: sp_core :: Void ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReportEquivocationUnsigned { const PALLET : & 'static str = "Grandpa" ; const CALL : & 'static str = "report_equivocation_unsigned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] # [doc = ""] # [doc = "This will trigger a forced authority set change at the beginning of the next session, to"] # [doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] # [doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] # [doc = "The block production rate (which may be slowed down because of finality lagging) should"] # [doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] # [doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] # [doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] # [doc = "block of all validators of the new authority set."] # [doc = ""] # [doc = "Only callable by root."] pub struct NoteStalled { pub delay : note_stalled :: Delay , pub best_finalized_block_number : note_stalled :: BestFinalizedBlockNumber , } pub mod note_stalled { use super :: runtime_types ; pub type Delay = :: core :: primitive :: u32 ; pub type BestFinalizedBlockNumber = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for NoteStalled { const PALLET : & 'static str = "Grandpa" ; const CALL : & 'static str = "note_stalled" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] pub fn report_equivocation (& self , equivocation_proof : types :: report_equivocation :: EquivocationProof , key_owner_proof : types :: report_equivocation :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReportEquivocation > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Grandpa" , "report_equivocation" , types :: ReportEquivocation { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (equivocation_proof) , key_owner_proof , } , [187u8 , 224u8 , 115u8 , 5u8 , 236u8 , 32u8 , 180u8 , 155u8 , 218u8 , 109u8 , 238u8 , 253u8 , 30u8 , 225u8 , 4u8 , 225u8 , 132u8 , 232u8 , 243u8 , 54u8 , 56u8 , 158u8 , 94u8 , 192u8 , 94u8 , 206u8 , 189u8 , 61u8 , 14u8 , 49u8 , 48u8 , 131u8 ,]) } # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] # [doc = ""] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] pub fn report_equivocation_unsigned (& self , equivocation_proof : types :: report_equivocation_unsigned :: EquivocationProof , key_owner_proof : types :: report_equivocation_unsigned :: KeyOwnerProof ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReportEquivocationUnsigned > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Grandpa" , "report_equivocation_unsigned" , types :: ReportEquivocationUnsigned { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (equivocation_proof) , key_owner_proof , } , [98u8 , 103u8 , 6u8 , 54u8 , 0u8 , 200u8 , 166u8 , 163u8 , 202u8 , 45u8 , 131u8 , 226u8 , 114u8 , 166u8 , 237u8 , 174u8 , 207u8 , 214u8 , 2u8 , 227u8 , 32u8 , 166u8 , 47u8 , 83u8 , 166u8 , 239u8 , 232u8 , 72u8 , 224u8 , 242u8 , 156u8 , 44u8 ,]) } # [doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] # [doc = ""] # [doc = "This will trigger a forced authority set change at the beginning of the next session, to"] # [doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] # [doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] # [doc = "The block production rate (which may be slowed down because of finality lagging) should"] # [doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] # [doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] # [doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] # [doc = "block of all validators of the new authority set."] # [doc = ""] # [doc = "Only callable by root."] pub fn note_stalled (& self , delay : types :: note_stalled :: Delay , best_finalized_block_number : types :: note_stalled :: BestFinalizedBlockNumber ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: NoteStalled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Grandpa" , "note_stalled" , types :: NoteStalled { delay , best_finalized_block_number , } , [158u8 , 25u8 , 64u8 , 114u8 , 131u8 , 139u8 , 227u8 , 132u8 , 42u8 , 107u8 , 40u8 , 249u8 , 18u8 , 93u8 , 254u8 , 86u8 , 37u8 , 67u8 , 250u8 , 35u8 , 241u8 , 194u8 , 209u8 , 20u8 , 39u8 , 75u8 , 186u8 , 21u8 , 48u8 , 124u8 , 151u8 , 31u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "New authority set has been applied."] pub struct NewAuthorities { pub authority_set : new_authorities :: AuthoritySet , } pub mod new_authorities { use super :: runtime_types ; pub type AuthoritySet = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewAuthorities { const PALLET : & 'static str = "Grandpa" ; const EVENT : & 'static str = "NewAuthorities" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Current authority set has been paused."] pub struct Paused ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Paused { const PALLET : & 'static str = "Grandpa" ; const EVENT : & 'static str = "Paused" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Current authority set has been resumed."] pub struct Resumed ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Resumed { const PALLET : & 'static str = "Grandpa" ; const EVENT : & 'static str = "Resumed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod state { use super :: runtime_types ; pub type State = runtime_types :: pallet_grandpa :: StoredState < :: core :: primitive :: u32 > ; } pub mod pending_change { use super :: runtime_types ; pub type PendingChange = runtime_types :: pallet_grandpa :: StoredPendingChange < :: core :: primitive :: u32 > ; } pub mod next_forced { use super :: runtime_types ; pub type NextForced = :: core :: primitive :: u32 ; } pub mod stalled { use super :: runtime_types ; pub type Stalled = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; } pub mod current_set_id { use super :: runtime_types ; pub type CurrentSetId = :: core :: primitive :: u64 ; } pub mod set_id_session { use super :: runtime_types ; pub type SetIdSession = :: core :: primitive :: u32 ; pub type Param0 = :: core :: primitive :: u64 ; } pub mod authorities { use super :: runtime_types ; pub type Authorities = runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > ; } } pub struct StorageApi ; impl StorageApi { # [doc = " State of the current authority set."] pub fn state (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: state :: State , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "State" , () , [73u8 , 71u8 , 112u8 , 83u8 , 238u8 , 75u8 , 44u8 , 9u8 , 180u8 , 33u8 , 30u8 , 121u8 , 98u8 , 96u8 , 61u8 , 133u8 , 16u8 , 70u8 , 30u8 , 249u8 , 34u8 , 148u8 , 15u8 , 239u8 , 164u8 , 157u8 , 52u8 , 27u8 , 144u8 , 52u8 , 223u8 , 109u8 ,]) } # [doc = " Pending change: (signaled at, scheduled change)."] pub fn pending_change (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_change :: PendingChange , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "PendingChange" , () , [32u8 , 165u8 , 141u8 , 100u8 , 109u8 , 66u8 , 58u8 , 22u8 , 118u8 , 84u8 , 92u8 , 164u8 , 119u8 , 130u8 , 104u8 , 25u8 , 244u8 , 111u8 , 223u8 , 54u8 , 184u8 , 95u8 , 196u8 , 30u8 , 244u8 , 129u8 , 110u8 , 127u8 , 200u8 , 66u8 , 226u8 , 26u8 ,]) } # [doc = " next block number where we can force a change."] pub fn next_forced (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_forced :: NextForced , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "NextForced" , () , [3u8 , 231u8 , 56u8 , 18u8 , 87u8 , 112u8 , 227u8 , 126u8 , 180u8 , 131u8 , 255u8 , 141u8 , 82u8 , 34u8 , 61u8 , 47u8 , 234u8 , 37u8 , 95u8 , 62u8 , 33u8 , 235u8 , 231u8 , 122u8 , 125u8 , 8u8 , 223u8 , 95u8 , 255u8 , 204u8 , 40u8 , 97u8 ,]) } # [doc = " `true` if we are currently stalled."] pub fn stalled (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: stalled :: Stalled , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "Stalled" , () , [6u8 , 81u8 , 205u8 , 142u8 , 195u8 , 48u8 , 0u8 , 247u8 , 108u8 , 170u8 , 10u8 , 249u8 , 72u8 , 206u8 , 32u8 , 103u8 , 109u8 , 57u8 , 51u8 , 21u8 , 144u8 , 204u8 , 79u8 , 8u8 , 191u8 , 185u8 , 38u8 , 34u8 , 118u8 , 223u8 , 75u8 , 241u8 ,]) } # [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_set_id :: CurrentSetId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "CurrentSetId" , () , [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 ,]) } # [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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: set_id_session :: SetIdSession , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "SetIdSession" , () , [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 ,]) } # [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 : types :: set_id_session :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: set_id_session :: Param0 > , types :: set_id_session :: SetIdSession , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "SetIdSession" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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 ,]) } # [doc = " The current list of authorities."] pub fn authorities (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: authorities :: Authorities , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Grandpa" , "Authorities" , () , [192u8 , 157u8 , 98u8 , 244u8 , 104u8 , 38u8 , 195u8 , 114u8 , 183u8 , 62u8 , 247u8 , 18u8 , 31u8 , 152u8 , 246u8 , 206u8 , 97u8 , 13u8 , 118u8 , 211u8 , 104u8 , 54u8 , 150u8 , 152u8 , 126u8 , 170u8 , 228u8 , 158u8 , 108u8 , 129u8 , 134u8 , 44u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " Max Authorities in use"] pub fn max_authorities (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " The maximum number of nominators for each validator."] pub fn max_nominators (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 balances { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_balances :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfer some liquid free balance to another account."] # [doc = ""] # [doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] # [doc = "If the sender's account is below the existential deposit as a result"] # [doc = "of the transfer, the account will be reaped."] # [doc = ""] # [doc = "The dispatch origin for this call must be `Signed` by the transactor."] pub struct TransferAllowDeath { pub dest : transfer_allow_death :: Dest , # [codec (compact)] pub value : transfer_allow_death :: Value , } pub mod transfer_allow_death { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferAllowDeath { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "transfer_allow_death" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] # [doc = "may be specified."] pub struct ForceTransfer { pub source : force_transfer :: Source , pub dest : force_transfer :: Dest , # [codec (compact)] pub value : force_transfer :: Value , } pub mod force_transfer { use super :: runtime_types ; pub type Source = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceTransfer { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "force_transfer" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] # [doc = "kill the origin account."] # [doc = ""] # [doc = "99% of the time you want [`transfer_allow_death`] instead."] # [doc = ""] # [doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] pub struct TransferKeepAlive { pub dest : transfer_keep_alive :: Dest , # [codec (compact)] pub value : transfer_keep_alive :: Value , } pub mod transfer_keep_alive { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferKeepAlive { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "transfer_keep_alive" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfer the entire transferable balance from the caller account."] # [doc = ""] # [doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] # [doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] # [doc = "transferred by this function. To ensure that this function results in a killed account,"] # [doc = "you might need to prepare the account by removing any reference counters, storage"] # [doc = "deposits, etc..."] # [doc = ""] # [doc = "The dispatch origin of this call must be Signed."] # [doc = ""] # [doc = "- `dest`: The recipient of the transfer."] # [doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] # [doc = "  of the funds the account has, causing the sender account to be killed (false), or"] # [doc = "  transfer everything except at least the existential deposit, which will guarantee to"] # [doc = "  keep the sender account alive (true)."] pub struct TransferAll { pub dest : transfer_all :: Dest , pub keep_alive : transfer_all :: KeepAlive , } pub mod transfer_all { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type KeepAlive = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferAll { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "transfer_all" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unreserve some balance from a user by force."] # [doc = ""] # [doc = "Can only be called by ROOT."] pub struct ForceUnreserve { pub who : force_unreserve :: Who , pub amount : force_unreserve :: Amount , } pub mod force_unreserve { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceUnreserve { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "force_unreserve" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Upgrade a specified account."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `who`: The account to be upgraded."] # [doc = ""] # [doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] # [doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] # [doc = "possibility of churn)."] pub struct UpgradeAccounts { pub who : upgrade_accounts :: Who , } pub mod upgrade_accounts { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpgradeAccounts { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "upgrade_accounts" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the regular balance of a given account."] # [doc = ""] # [doc = "The dispatch origin for this call is `root`."] pub struct ForceSetBalance { pub who : force_set_balance :: Who , # [codec (compact)] pub new_free : force_set_balance :: NewFree , } pub mod force_set_balance { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type NewFree = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceSetBalance { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "force_set_balance" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Adjust the total issuance in a saturating way."] # [doc = ""] # [doc = "Can only be called by root and always needs a positive `delta`."] # [doc = ""] # [doc = "# Example"] pub struct ForceAdjustTotalIssuance { pub direction : force_adjust_total_issuance :: Direction , # [codec (compact)] pub delta : force_adjust_total_issuance :: Delta , } pub mod force_adjust_total_issuance { use super :: runtime_types ; pub type Direction = runtime_types :: pallet_balances :: types :: AdjustmentDirection ; pub type Delta = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceAdjustTotalIssuance { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "force_adjust_total_issuance" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Burn the specified liquid free balance from the origin account."] # [doc = ""] # [doc = "If the origin's account ends up below the existential deposit as a result"] # [doc = "of the burn and `keep_alive` is false, the account will be reaped."] # [doc = ""] # [doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"] # [doc = "this `burn` operation will reduce total issuance by the amount _burned_."] pub struct Burn { # [codec (compact)] pub value : burn :: Value , pub keep_alive : burn :: KeepAlive , } pub mod burn { use super :: runtime_types ; pub type Value = :: core :: primitive :: u64 ; pub type KeepAlive = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Burn { const PALLET : & 'static str = "Balances" ; const CALL : & 'static str = "burn" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Transfer some liquid free balance to another account."] # [doc = ""] # [doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] # [doc = "If the sender's account is below the existential deposit as a result"] # [doc = "of the transfer, the account will be reaped."] # [doc = ""] # [doc = "The dispatch origin for this call must be `Signed` by the transactor."] pub fn transfer_allow_death (& self , dest : types :: transfer_allow_death :: Dest , value : types :: transfer_allow_death :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferAllowDeath > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "transfer_allow_death" , types :: TransferAllowDeath { dest , value , } , [55u8 , 189u8 , 102u8 , 71u8 , 231u8 , 179u8 , 169u8 , 229u8 , 206u8 , 42u8 , 10u8 , 117u8 , 36u8 , 34u8 , 30u8 , 145u8 , 227u8 , 105u8 , 252u8 , 188u8 , 162u8 , 0u8 , 84u8 , 24u8 , 123u8 , 241u8 , 152u8 , 118u8 , 181u8 , 182u8 , 137u8 , 241u8 ,]) } # [doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] # [doc = "may be specified."] pub fn force_transfer (& self , source : types :: force_transfer :: Source , dest : types :: force_transfer :: Dest , value : types :: force_transfer :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceTransfer > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "force_transfer" , types :: ForceTransfer { source , dest , value , } , [15u8 , 9u8 , 232u8 , 170u8 , 117u8 , 161u8 , 184u8 , 255u8 , 3u8 , 155u8 , 165u8 , 226u8 , 151u8 , 189u8 , 226u8 , 21u8 , 14u8 , 70u8 , 17u8 , 43u8 , 181u8 , 59u8 , 158u8 , 222u8 , 167u8 , 59u8 , 61u8 , 233u8 , 78u8 , 108u8 , 161u8 , 192u8 ,]) } # [doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] # [doc = "kill the origin account."] # [doc = ""] # [doc = "99% of the time you want [`transfer_allow_death`] instead."] # [doc = ""] # [doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] pub fn transfer_keep_alive (& self , dest : types :: transfer_keep_alive :: Dest , value : types :: transfer_keep_alive :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferKeepAlive > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "transfer_keep_alive" , types :: TransferKeepAlive { dest , value , } , [126u8 , 208u8 , 16u8 , 244u8 , 94u8 , 74u8 , 166u8 , 13u8 , 149u8 , 95u8 , 88u8 , 250u8 , 95u8 , 0u8 , 43u8 , 57u8 , 18u8 , 129u8 , 24u8 , 210u8 , 91u8 , 50u8 , 251u8 , 73u8 , 126u8 , 218u8 , 244u8 , 52u8 , 36u8 , 175u8 , 28u8 , 210u8 ,]) } # [doc = "Transfer the entire transferable balance from the caller account."] # [doc = ""] # [doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] # [doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] # [doc = "transferred by this function. To ensure that this function results in a killed account,"] # [doc = "you might need to prepare the account by removing any reference counters, storage"] # [doc = "deposits, etc..."] # [doc = ""] # [doc = "The dispatch origin of this call must be Signed."] # [doc = ""] # [doc = "- `dest`: The recipient of the transfer."] # [doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] # [doc = "  of the funds the account has, causing the sender account to be killed (false), or"] # [doc = "  transfer everything except at least the existential deposit, which will guarantee to"] # [doc = "  keep the sender account alive (true)."] pub fn transfer_all (& self , dest : types :: transfer_all :: Dest , keep_alive : types :: transfer_all :: KeepAlive ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferAll > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "transfer_all" , types :: TransferAll { dest , keep_alive , } , [105u8 , 132u8 , 49u8 , 144u8 , 195u8 , 250u8 , 34u8 , 46u8 , 213u8 , 248u8 , 112u8 , 188u8 , 81u8 , 228u8 , 136u8 , 18u8 , 67u8 , 172u8 , 37u8 , 38u8 , 238u8 , 9u8 , 34u8 , 15u8 , 67u8 , 34u8 , 148u8 , 195u8 , 223u8 , 29u8 , 154u8 , 6u8 ,]) } # [doc = "Unreserve some balance from a user by force."] # [doc = ""] # [doc = "Can only be called by ROOT."] pub fn force_unreserve (& self , who : types :: force_unreserve :: Who , amount : types :: force_unreserve :: Amount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceUnreserve > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "force_unreserve" , types :: ForceUnreserve { who , amount , } , [194u8 , 160u8 , 176u8 , 186u8 , 10u8 , 132u8 , 201u8 , 232u8 , 127u8 , 9u8 , 234u8 , 37u8 , 167u8 , 77u8 , 157u8 , 228u8 , 62u8 , 207u8 , 172u8 , 240u8 , 1u8 , 10u8 , 136u8 , 97u8 , 115u8 , 13u8 , 2u8 , 61u8 , 200u8 , 235u8 , 39u8 , 97u8 ,]) } # [doc = "Upgrade a specified account."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `who`: The account to be upgraded."] # [doc = ""] # [doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] # [doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] # [doc = "possibility of churn)."] pub fn upgrade_accounts (& self , who : types :: upgrade_accounts :: Who ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpgradeAccounts > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Set the regular balance of a given account."] # [doc = ""] # [doc = "The dispatch origin for this call is `root`."] pub fn force_set_balance (& self , who : types :: force_set_balance :: Who , new_free : types :: force_set_balance :: NewFree ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceSetBalance > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "force_set_balance" , types :: ForceSetBalance { who , new_free , } , [172u8 , 128u8 , 27u8 , 158u8 , 43u8 , 74u8 , 29u8 , 195u8 , 16u8 , 214u8 , 1u8 , 128u8 , 138u8 , 144u8 , 6u8 , 236u8 , 61u8 , 41u8 , 155u8 , 208u8 , 57u8 , 42u8 , 237u8 , 229u8 , 130u8 , 214u8 , 8u8 , 93u8 , 57u8 , 219u8 , 178u8 , 197u8 ,]) } # [doc = "Adjust the total issuance in a saturating way."] # [doc = ""] # [doc = "Can only be called by root and always needs a positive `delta`."] # [doc = ""] # [doc = "# Example"] pub fn force_adjust_total_issuance (& self , direction : types :: force_adjust_total_issuance :: Direction , delta : types :: force_adjust_total_issuance :: Delta ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceAdjustTotalIssuance > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "force_adjust_total_issuance" , types :: ForceAdjustTotalIssuance { direction , delta , } , [70u8 , 239u8 , 219u8 , 254u8 , 5u8 , 227u8 , 119u8 , 182u8 , 85u8 , 96u8 , 88u8 , 71u8 , 89u8 , 73u8 , 199u8 , 50u8 , 89u8 , 157u8 , 30u8 , 121u8 , 34u8 , 184u8 , 9u8 , 118u8 , 51u8 , 182u8 , 121u8 , 109u8 , 22u8 , 155u8 , 83u8 , 198u8 ,]) } # [doc = "Burn the specified liquid free balance from the origin account."] # [doc = ""] # [doc = "If the origin's account ends up below the existential deposit as a result"] # [doc = "of the burn and `keep_alive` is false, the account will be reaped."] # [doc = ""] # [doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"] # [doc = "this `burn` operation will reduce total issuance by the amount _burned_."] pub fn burn (& self , value : types :: burn :: Value , keep_alive : types :: burn :: KeepAlive ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Burn > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Balances" , "burn" , types :: Burn { value , keep_alive , } , [47u8 , 248u8 , 43u8 , 36u8 , 119u8 , 205u8 , 108u8 , 21u8 , 199u8 , 180u8 , 233u8 , 162u8 , 61u8 , 240u8 , 233u8 , 246u8 , 119u8 , 19u8 , 172u8 , 171u8 , 38u8 , 155u8 , 189u8 , 243u8 , 40u8 , 235u8 , 23u8 , 221u8 , 158u8 , 47u8 , 183u8 , 10u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account was created with some free balance."] pub struct Endowed { pub account : endowed :: Account , pub free_balance : endowed :: FreeBalance , } pub mod endowed { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type FreeBalance = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Endowed { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Endowed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] # [doc = "resulting in an outright loss."] pub struct DustLost { pub account : dust_lost :: Account , pub amount : dust_lost :: Amount , } pub mod dust_lost { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DustLost { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "DustLost" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfer succeeded."] pub struct Transfer { pub from : transfer :: From , pub to : transfer :: To , pub amount : transfer :: Amount , } pub mod transfer { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Transfer { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Transfer" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A balance was set by root."] pub struct BalanceSet { pub who : balance_set :: Who , pub free : balance_set :: Free , } pub mod balance_set { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Free = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BalanceSet { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "BalanceSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some balance was reserved (moved from free to reserved)."] pub struct Reserved { pub who : reserved :: Who , pub amount : reserved :: Amount , } pub mod reserved { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Reserved { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Reserved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some balance was unreserved (moved from reserved to free)."] pub struct Unreserved { pub who : unreserved :: Who , pub amount : unreserved :: Amount , } pub mod unreserved { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Unreserved { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Unreserved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [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 : reserve_repatriated :: From , pub to : reserve_repatriated :: To , pub amount : reserve_repatriated :: Amount , pub destination_status : reserve_repatriated :: DestinationStatus , } pub mod reserve_repatriated { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; pub type DestinationStatus = runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ReserveRepatriated { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "ReserveRepatriated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was deposited (e.g. for transaction fees)."] pub struct Deposit { pub who : deposit :: Who , pub amount : deposit :: Amount , } pub mod deposit { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Deposit { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] pub struct Withdraw { pub who : withdraw :: Who , pub amount : withdraw :: Amount , } pub mod withdraw { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Withdraw { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Withdraw" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] pub struct Slashed { pub who : slashed :: Who , pub amount : slashed :: Amount , } pub mod slashed { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Slashed { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Slashed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was minted into an account."] pub struct Minted { pub who : minted :: Who , pub amount : minted :: Amount , } pub mod minted { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Minted { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Minted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was burned from an account."] pub struct Burned { pub who : burned :: Who , pub amount : burned :: Amount , } pub mod burned { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Burned { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Burned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was suspended from an account (it can be restored later)."] pub struct Suspended { pub who : suspended :: Who , pub amount : suspended :: Amount , } pub mod suspended { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Suspended { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Suspended" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some amount was restored into an account."] pub struct Restored { pub who : restored :: Who , pub amount : restored :: Amount , } pub mod restored { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Restored { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Restored" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account was upgraded."] pub struct Upgraded { pub who : upgraded :: Who , } pub mod upgraded { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Upgraded { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Upgraded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] pub struct Issued { pub amount : issued :: Amount , } pub mod issued { use super :: runtime_types ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Issued { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Issued" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] pub struct Rescinded { pub amount : rescinded :: Amount , } pub mod rescinded { use super :: runtime_types ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Rescinded { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Rescinded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some balance was locked."] pub struct Locked { pub who : locked :: Who , pub amount : locked :: Amount , } pub mod locked { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Locked { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Locked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some balance was unlocked."] pub struct Unlocked { pub who : unlocked :: Who , pub amount : unlocked :: Amount , } pub mod unlocked { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Unlocked { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Unlocked" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some balance was frozen."] pub struct Frozen { pub who : frozen :: Who , pub amount : frozen :: Amount , } pub mod frozen { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Frozen { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Frozen" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some balance was thawed."] pub struct Thawed { pub who : thawed :: Who , pub amount : thawed :: Amount , } pub mod thawed { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Thawed { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "Thawed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `TotalIssuance` was forcefully changed."] pub struct TotalIssuanceForced { pub old : total_issuance_forced :: Old , pub new : total_issuance_forced :: New , } pub mod total_issuance_forced { use super :: runtime_types ; pub type Old = :: core :: primitive :: u64 ; pub type New = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TotalIssuanceForced { const PALLET : & 'static str = "Balances" ; const EVENT : & 'static str = "TotalIssuanceForced" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod total_issuance { use super :: runtime_types ; pub type TotalIssuance = :: core :: primitive :: u64 ; } pub mod inactive_issuance { use super :: runtime_types ; pub type InactiveIssuance = :: core :: primitive :: u64 ; } pub mod account { use super :: runtime_types ; pub type Account = runtime_types :: pallet_balances :: types :: AccountData < :: core :: primitive :: u64 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod locks { use super :: runtime_types ; pub type Locks = runtime_types :: bounded_collections :: weak_bounded_vec :: WeakBoundedVec < runtime_types :: pallet_balances :: types :: BalanceLock < :: core :: primitive :: u64 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod reserves { use super :: runtime_types ; pub type Reserves = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_balances :: types :: ReserveData < [:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u64 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod holds { use super :: runtime_types ; pub type Holds = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: frame_support :: traits :: tokens :: misc :: IdAmount < runtime_types :: node_subtensor_runtime :: RuntimeHoldReason , :: core :: primitive :: u64 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod freezes { use super :: runtime_types ; pub type Freezes = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: frame_support :: traits :: tokens :: misc :: IdAmount < runtime_types :: node_subtensor_runtime :: RuntimeFreezeReason , :: core :: primitive :: u64 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The total units issued in the system."] pub fn total_issuance (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_issuance :: TotalIssuance , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "TotalIssuance" , () , [157u8 , 166u8 , 49u8 , 95u8 , 245u8 , 38u8 , 96u8 , 83u8 , 23u8 , 203u8 , 246u8 , 208u8 , 251u8 , 175u8 , 40u8 , 92u8 , 163u8 , 112u8 , 43u8 , 190u8 , 14u8 , 128u8 , 45u8 , 22u8 , 157u8 , 205u8 , 181u8 , 84u8 , 79u8 , 132u8 , 160u8 , 149u8 ,]) } # [doc = " The total units of outstanding deactivated balance in the system."] pub fn inactive_issuance (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: inactive_issuance :: InactiveIssuance , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "InactiveIssuance" , () , [33u8 , 251u8 , 197u8 , 148u8 , 61u8 , 202u8 , 85u8 , 164u8 , 169u8 , 36u8 , 163u8 , 147u8 , 243u8 , 250u8 , 178u8 , 40u8 , 199u8 , 147u8 , 196u8 , 206u8 , 163u8 , 246u8 , 154u8 , 51u8 , 208u8 , 250u8 , 127u8 , 89u8 , 118u8 , 21u8 , 225u8 , 248u8 ,]) } # [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<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>"] # [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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account :: Account , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Account" , () , [0u8 , 34u8 , 91u8 , 238u8 , 87u8 , 151u8 , 107u8 , 4u8 , 104u8 , 111u8 , 47u8 , 9u8 , 10u8 , 169u8 , 173u8 , 69u8 , 182u8 , 183u8 , 227u8 , 37u8 , 148u8 , 135u8 , 184u8 , 83u8 , 67u8 , 66u8 , 238u8 , 130u8 , 90u8 , 28u8 , 248u8 , 68u8 ,]) } # [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<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>"] # [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 : types :: account :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account :: Param0 > , types :: account :: Account , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Account" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [0u8 , 34u8 , 91u8 , 238u8 , 87u8 , 151u8 , 107u8 , 4u8 , 104u8 , 111u8 , 47u8 , 9u8 , 10u8 , 169u8 , 173u8 , 69u8 , 182u8 , 183u8 , 227u8 , 37u8 , 148u8 , 135u8 , 184u8 , 83u8 , 67u8 , 66u8 , 238u8 , 130u8 , 90u8 , 28u8 , 248u8 , 68u8 ,]) } # [doc = " Any liquidity locks on some account balances."] # [doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] # [doc = ""] # [doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn locks_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: locks :: Locks , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Locks" , () , [184u8 , 159u8 , 77u8 , 3u8 , 45u8 , 154u8 , 149u8 , 191u8 , 33u8 , 212u8 , 190u8 , 76u8 , 222u8 , 65u8 , 62u8 , 163u8 , 44u8 , 141u8 , 151u8 , 114u8 , 109u8 , 98u8 , 70u8 , 103u8 , 41u8 , 93u8 , 14u8 , 171u8 , 115u8 , 127u8 , 71u8 , 114u8 ,]) } # [doc = " Any liquidity locks on some account balances."] # [doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] # [doc = ""] # [doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn locks (& self , _0 : types :: locks :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: locks :: Param0 > , types :: locks :: Locks , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Locks" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [184u8 , 159u8 , 77u8 , 3u8 , 45u8 , 154u8 , 149u8 , 191u8 , 33u8 , 212u8 , 190u8 , 76u8 , 222u8 , 65u8 , 62u8 , 163u8 , 44u8 , 141u8 , 151u8 , 114u8 , 109u8 , 98u8 , 70u8 , 103u8 , 41u8 , 93u8 , 14u8 , 171u8 , 115u8 , 127u8 , 71u8 , 114u8 ,]) } # [doc = " Named reserves on some account balances."] # [doc = ""] # [doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn reserves_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: reserves :: Reserves , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Reserves" , () , [229u8 , 249u8 , 203u8 , 167u8 , 55u8 , 45u8 , 194u8 , 217u8 , 66u8 , 155u8 , 16u8 , 204u8 , 106u8 , 207u8 , 49u8 , 127u8 , 193u8 , 192u8 , 147u8 , 242u8 , 31u8 , 220u8 , 137u8 , 8u8 , 247u8 , 96u8 , 175u8 , 28u8 , 246u8 , 50u8 , 254u8 , 222u8 ,]) } # [doc = " Named reserves on some account balances."] # [doc = ""] # [doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn reserves (& self , _0 : types :: reserves :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: reserves :: Param0 > , types :: reserves :: Reserves , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Reserves" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [229u8 , 249u8 , 203u8 , 167u8 , 55u8 , 45u8 , 194u8 , 217u8 , 66u8 , 155u8 , 16u8 , 204u8 , 106u8 , 207u8 , 49u8 , 127u8 , 193u8 , 192u8 , 147u8 , 242u8 , 31u8 , 220u8 , 137u8 , 8u8 , 247u8 , 96u8 , 175u8 , 28u8 , 246u8 , 50u8 , 254u8 , 222u8 ,]) } # [doc = " Holds on account balances."] pub fn holds_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: holds :: Holds , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Holds" , () , [103u8 , 81u8 , 29u8 , 125u8 , 82u8 , 32u8 , 59u8 , 235u8 , 124u8 , 69u8 , 98u8 , 32u8 , 105u8 , 130u8 , 23u8 , 240u8 , 246u8 , 240u8 , 103u8 , 148u8 , 59u8 , 6u8 , 183u8 , 232u8 , 183u8 , 143u8 , 23u8 , 67u8 , 28u8 , 151u8 , 242u8 , 227u8 ,]) } # [doc = " Holds on account balances."] pub fn holds (& self , _0 : types :: holds :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: holds :: Param0 > , types :: holds :: Holds , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Holds" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [103u8 , 81u8 , 29u8 , 125u8 , 82u8 , 32u8 , 59u8 , 235u8 , 124u8 , 69u8 , 98u8 , 32u8 , 105u8 , 130u8 , 23u8 , 240u8 , 246u8 , 240u8 , 103u8 , 148u8 , 59u8 , 6u8 , 183u8 , 232u8 , 183u8 , 143u8 , 23u8 , 67u8 , 28u8 , 151u8 , 242u8 , 227u8 ,]) } # [doc = " Freeze locks on account balances."] pub fn freezes_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: freezes :: Freezes , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Freezes" , () , [53u8 , 28u8 , 230u8 , 230u8 , 26u8 , 176u8 , 210u8 , 21u8 , 149u8 , 240u8 , 217u8 , 196u8 , 134u8 , 217u8 , 43u8 , 98u8 , 245u8 , 54u8 , 222u8 , 227u8 , 140u8 , 204u8 , 119u8 , 99u8 , 198u8 , 252u8 , 76u8 , 83u8 , 140u8 , 122u8 , 55u8 , 236u8 ,]) } # [doc = " Freeze locks on account balances."] pub fn freezes (& self , _0 : types :: freezes :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: freezes :: Param0 > , types :: freezes :: Freezes , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Balances" , "Freezes" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [53u8 , 28u8 , 230u8 , 230u8 , 26u8 , 176u8 , 210u8 , 21u8 , 149u8 , 240u8 , 217u8 , 196u8 , 134u8 , 217u8 , 43u8 , 98u8 , 245u8 , 54u8 , 222u8 , 227u8 , 140u8 , 204u8 , 119u8 , 99u8 , 198u8 , 252u8 , 76u8 , 83u8 , 140u8 , 122u8 , 55u8 , 236u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Balances" , "ExistentialDeposit" , [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 ,]) } # [doc = " The maximum number of locks that should exist on an account."] # [doc = " Not strictly enforced, but used for weight estimation."] # [doc = ""] # [doc = " Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn max_locks (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " The maximum number of named reserves that can exist on an account."] # [doc = ""] # [doc = " Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`"] pub fn max_reserves (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [doc = " The maximum number of individual freeze locks that can exist on an account at any time."] pub fn max_freezes (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ; use super :: runtime_types ; # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [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 : transaction_fee_paid :: Who , pub actual_fee : transaction_fee_paid :: ActualFee , pub tip : transaction_fee_paid :: Tip , } pub mod transaction_fee_paid { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ActualFee = :: core :: primitive :: u64 ; pub type Tip = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TransactionFeePaid { const PALLET : & 'static str = "TransactionPayment" ; const EVENT : & 'static str = "TransactionFeePaid" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod next_fee_multiplier { use super :: runtime_types ; pub type NextFeeMultiplier = runtime_types :: sp_arithmetic :: fixed_point :: FixedU128 ; } pub mod storage_version { use super :: runtime_types ; pub type StorageVersion = runtime_types :: pallet_transaction_payment :: Releases ; } } pub struct StorageApi ; impl StorageApi { pub fn next_fee_multiplier (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_fee_multiplier :: NextFeeMultiplier , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("TransactionPayment" , "NextFeeMultiplier" , () , [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 :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: storage_version :: StorageVersion , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("TransactionPayment" , "StorageVersion" , () , [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 { # [doc = " A fee multiplier for `Operational` extrinsics to compute \"virtual tip\" to boost their"] # [doc = " `priority`"] # [doc = ""] # [doc = " This value is multiplied 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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u8 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 subtensor_module { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_subtensor :: pallet :: Error ; # [doc = "Dispatchable functions allow users to interact with the pallet and invoke state changes."] # [doc = "These functions materialize as \"extrinsics\", which are often compared to transactions."] # [doc = "Dispatchable functions must be annotated with a weight and must return a DispatchResult."] pub type Call = runtime_types :: pallet_subtensor :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Sets the caller weights for the incentive mechanism. The call can be"] # [doc = "made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."] pub struct SetWeights { pub netuid : set_weights :: Netuid , pub dests : set_weights :: Dests , pub weights : set_weights :: Weights , pub version_key : set_weights :: VersionKey , } pub mod set_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Dests = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Weights = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type VersionKey = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = `"--- Sets the caller weights for the incentive mechanism for mechanisms. The call"] # [doc = "can be made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechnism identifier."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."`] pub struct SetMechanismWeights { pub netuid : set_mechanism_weights :: Netuid , pub mecid : set_mechanism_weights :: Mecid , pub dests : set_mechanism_weights :: Dests , pub weights : set_mechanism_weights :: Weights , pub version_key : set_mechanism_weights :: VersionKey , } pub mod set_mechanism_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Mecid = :: core :: primitive :: u8 ; pub type Dests = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Weights = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type VersionKey = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMechanismWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_mechanism_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Allows a hotkey to set weights for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `weights` (Vec<Vec<(Compact<u16>, Compact<u16>)>):"] # [doc = "\t- The weights to set for each network. [(uid, weight), ...]"] # [doc = ""] # [doc = "* `version_keys` (Vec<Compact<u64>>):"] # [doc = "\t- The network version keys to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] pub struct BatchSetWeights { pub netuids : batch_set_weights :: Netuids , pub weights : batch_set_weights :: Weights , pub version_keys : batch_set_weights :: VersionKeys , } pub mod batch_set_weights { use super :: runtime_types ; pub type Netuids = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > ; pub type Weights = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > > ; pub type VersionKeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BatchSetWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "batch_set_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to commit a hash of your weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit_hash` (`H256`):"] # [doc = "  - The hash representing the committed weights."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] pub struct CommitWeights { pub netuid : commit_weights :: Netuid , pub commit_hash : commit_weights :: CommitHash , } pub mod commit_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type CommitHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CommitWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "commit_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to commit a hash of your weight values to later be revealed for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit_hash` (`H256`):"] # [doc = "  - The hash representing the committed weights."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] pub struct CommitMechanismWeights { pub netuid : commit_mechanism_weights :: Netuid , pub mecid : commit_mechanism_weights :: Mecid , pub commit_hash : commit_mechanism_weights :: CommitHash , } pub mod commit_mechanism_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Mecid = :: core :: primitive :: u8 ; pub type CommitHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CommitMechanismWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "commit_mechanism_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Allows a hotkey to commit weight hashes for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `commit_hashes` (Vec<H256>):"] # [doc = "\t- The commit hashes to commit."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] pub struct BatchCommitWeights { pub netuids : batch_commit_weights :: Netuids , pub commit_hashes : batch_commit_weights :: CommitHashes , } pub mod batch_commit_weights { use super :: runtime_types ; pub type Netuids = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > ; pub type CommitHashes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BatchCommitWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "batch_commit_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to reveal the weights for a previously committed hash."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `uids` (`Vec<u16>`):"] # [doc = "  - The uids for the weights being revealed."] # [doc = ""] # [doc = "* `values` (`Vec<u16>`):"] # [doc = "  - The values of the weights being revealed."] # [doc = ""] # [doc = "* `salt` (`Vec<u16>`):"] # [doc = "  - The salt used to generate the commit hash."] # [doc = ""] # [doc = "* `version_key` (`u64`):"] # [doc = "  - The network version key."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] pub struct RevealWeights { pub netuid : reveal_weights :: Netuid , pub uids : reveal_weights :: Uids , pub values : reveal_weights :: Values , pub salt : reveal_weights :: Salt , pub version_key : reveal_weights :: VersionKey , } pub mod reveal_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Uids = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Values = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type VersionKey = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RevealWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "reveal_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to reveal the weights for a previously committed hash for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `uids` (`Vec<u16>`):"] # [doc = "  - The uids for the weights being revealed."] # [doc = ""] # [doc = "* `values` (`Vec<u16>`):"] # [doc = "  - The values of the weights being revealed."] # [doc = ""] # [doc = "* `salt` (`Vec<u16>`):"] # [doc = "  - The salt used to generate the commit hash."] # [doc = ""] # [doc = "* `version_key` (`u64`):"] # [doc = "  - The network version key."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] pub struct RevealMechanismWeights { pub netuid : reveal_mechanism_weights :: Netuid , pub mecid : reveal_mechanism_weights :: Mecid , pub uids : reveal_mechanism_weights :: Uids , pub values : reveal_mechanism_weights :: Values , pub salt : reveal_mechanism_weights :: Salt , pub version_key : reveal_mechanism_weights :: VersionKey , } pub mod reveal_mechanism_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Mecid = :: core :: primitive :: u8 ; pub type Uids = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Values = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type VersionKey = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RevealMechanismWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "reveal_mechanism_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to commit encrypted commit-reveal v3 weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealV3Disabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] # [doc = "---- Used to commit encrypted commit-reveal v3 weight values to later be revealed for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealV3Disabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] pub struct CommitCrv3MechanismWeights { pub netuid : commit_crv3_mechanism_weights :: Netuid , pub mecid : commit_crv3_mechanism_weights :: Mecid , pub commit : commit_crv3_mechanism_weights :: Commit , pub reveal_round : commit_crv3_mechanism_weights :: RevealRound , } pub mod commit_crv3_mechanism_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Mecid = :: core :: primitive :: u8 ; pub type Commit = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type RevealRound = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CommitCrv3MechanismWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "commit_crv3_mechanism_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- The implementation for batch revealing committed weights."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `uids_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of uids for each set of weights being revealed."] # [doc = ""] # [doc = "* `values_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of values for each set of weights being revealed."] # [doc = ""] # [doc = "* `salts_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of salts used to generate the commit hashes."] # [doc = ""] # [doc = "* `version_keys` (`Vec<u64>`):"] # [doc = "  - A list of network version keys."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] # [doc = "* `InvalidInputLengths`:"] # [doc = "  - The input vectors are of mismatched lengths."] pub struct BatchRevealWeights { pub netuid : batch_reveal_weights :: Netuid , pub uids_list : batch_reveal_weights :: UidsList , pub values_list : batch_reveal_weights :: ValuesList , pub salts_list : batch_reveal_weights :: SaltsList , pub version_keys : batch_reveal_weights :: VersionKeys , } pub mod batch_reveal_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type UidsList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > ; pub type ValuesList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > ; pub type SaltsList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > ; pub type VersionKeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BatchRevealWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "batch_reveal_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Allows delegates to decrease its take value."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>::Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The hotkey we are delegating (must be owned by the coldkey.)"] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- Subnet ID to decrease take for"] # [doc = ""] # [doc = "* 'take' (u16):"] # [doc = "\t- The new stake proportion that this hotkey takes from delegations."] # [doc = "       The new value can be between 0 and 11_796 and should be strictly"] # [doc = "       lower than the previous value. It T is the new value (rational number),"] # [doc = "       the the parameter is calculated as [65535 * T]. For example, 1% would be"] # [doc = "       [0.01 * 65535] = [655.35] = 655"] # [doc = ""] # [doc = "# Event:"] # [doc = "* TakeDecreased;"] # [doc = "\t- On successfully setting a decreased take for this hotkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- The hotkey we are delegating is not registered on the network."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- The hotkey we are delegating is not owned by the calling coldkey."] # [doc = ""] # [doc = "* 'DelegateTakeTooLow':"] # [doc = "\t- The delegate is setting a take which is not lower than the previous."] # [doc = ""] pub struct DecreaseTake { pub hotkey : decrease_take :: Hotkey , pub take : decrease_take :: Take , } pub mod decrease_take { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Take = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DecreaseTake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "decrease_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Allows delegates to increase its take value. This call is rate-limited."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>::Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The hotkey we are delegating (must be owned by the coldkey.)"] # [doc = ""] # [doc = "* 'take' (u16):"] # [doc = "\t- The new stake proportion that this hotkey takes from delegations."] # [doc = "       The new value can be between 0 and 11_796 and should be strictly"] # [doc = "       greater than the previous value. T is the new value (rational number),"] # [doc = "       the the parameter is calculated as [65535 * T]. For example, 1% would be"] # [doc = "       [0.01 * 65535] = [655.35] = 655"] # [doc = ""] # [doc = "# Event:"] # [doc = "* TakeIncreased;"] # [doc = "\t- On successfully setting a increased take for this hotkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- The hotkey we are delegating is not registered on the network."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- The hotkey we are delegating is not owned by the calling coldkey."] # [doc = ""] # [doc = "* 'DelegateTakeTooHigh':"] # [doc = "\t- The delegate is setting a take which is not greater than the previous."] # [doc = ""] pub struct IncreaseTake { pub hotkey : increase_take :: Hotkey , pub take : increase_take :: Take , } pub mod increase_take { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Take = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for IncreaseTake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "increase_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Adds stake to a hotkey. The call is made from a coldkey account."] # [doc = "This delegates stake to the hotkey."] # [doc = ""] # [doc = "Note: the coldkey account may own the hotkey, in which case they are"] # [doc = "delegating to themselves."] # [doc = ""] # [doc = "# Args:"] # [doc = " * 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = " * 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = " * 'amount_staked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = "# Event:"] # [doc = " * StakeAdded;"] # [doc = "\t- On the successfully adding stake to a global account."] # [doc = ""] # [doc = "# Raises:"] # [doc = " * 'NotEnoughBalanceToStake':"] # [doc = "\t- Not enough balance on the coldkey to add onto the global account."] # [doc = ""] # [doc = " * 'NonAssociatedColdKey':"] # [doc = "\t- The calling coldkey is not associated with this hotkey."] # [doc = ""] # [doc = " * 'BalanceWithdrawalError':"] # [doc = " \t- Errors stemming from transaction pallet."] # [doc = ""] pub struct AddStake { pub hotkey : add_stake :: Hotkey , pub netuid : add_stake :: Netuid , pub amount_staked : add_stake :: AmountStaked , } pub mod add_stake { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type AmountStaked = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddStake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "add_stake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove stake from the staking account. The call must be made"] # [doc = "from the coldkey account attached to the neuron metadata. Only this key"] # [doc = "has permission to make staking and unstaking requests."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = "* 'amount_unstaked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "\t- On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* 'NotEnoughStakeToWithdraw':"] # [doc = "\t- Thrown if there is not enough stake on the hotkey to withdwraw this amount."] # [doc = ""] pub struct RemoveStake { pub hotkey : remove_stake :: Hotkey , pub netuid : remove_stake :: Netuid , pub amount_unstaked : remove_stake :: AmountUnstaked , } pub mod remove_stake { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type AmountUnstaked = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveStake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "remove_stake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Serves or updates axon /prometheus information for the neuron associated with the caller. If the caller is"] # [doc = "already registered the metadata is updated. If the caller is not registered this call throws NotRegistered."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u64):"] # [doc = "\t- The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u64):"] # [doc = "\t- The endpoint ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The endpoint port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The endpoint ip version as a u8, 4 or 6."] # [doc = ""] # [doc = "* 'protocol' (u8):"] # [doc = "\t- UDP:1 or TCP:0"] # [doc = ""] # [doc = "* 'placeholder1' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'placeholder2' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "# Event:"] # [doc = "* AxonServed;"] # [doc = "\t- On successfully serving the axon info."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'InvalidIpType':"] # [doc = "\t- The ip type is not 4 or 6."] # [doc = ""] # [doc = "* 'InvalidIpAddress':"] # [doc = "\t- The numerically encoded ip address does not resolve to a proper ip."] # [doc = ""] # [doc = "* 'ServingRateLimitExceeded':"] # [doc = "\t- Attempting to set prometheus information withing the rate limit min."] # [doc = ""] pub struct ServeAxon { pub netuid : serve_axon :: Netuid , pub version : serve_axon :: Version , pub ip : serve_axon :: Ip , pub port : serve_axon :: Port , pub ip_type : serve_axon :: IpType , pub protocol : serve_axon :: Protocol , pub placeholder1 : serve_axon :: Placeholder1 , pub placeholder2 : serve_axon :: Placeholder2 , } pub mod serve_axon { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Version = :: core :: primitive :: u32 ; pub type Ip = :: core :: primitive :: u128 ; pub type Port = :: core :: primitive :: u16 ; pub type IpType = :: core :: primitive :: u8 ; pub type Protocol = :: core :: primitive :: u8 ; pub type Placeholder1 = :: core :: primitive :: u8 ; pub type Placeholder2 = :: core :: primitive :: u8 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ServeAxon { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "serve_axon" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Same as `serve_axon` but takes a certificate as an extra optional argument."] # [doc = "Serves or updates axon /prometheus information for the neuron associated with the caller. If the caller is"] # [doc = "already registered the metadata is updated. If the caller is not registered this call throws NotRegistered."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u64):"] # [doc = "\t- The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u64):"] # [doc = "\t- The endpoint ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The endpoint port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The endpoint ip version as a u8, 4 or 6."] # [doc = ""] # [doc = "* 'protocol' (u8):"] # [doc = "\t- UDP:1 or TCP:0"] # [doc = ""] # [doc = "* 'placeholder1' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'placeholder2' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'certificate' (Vec<u8>):"] # [doc = "    - TLS certificate for inter neuron communitation."] # [doc = ""] # [doc = "# Event:"] # [doc = "* AxonServed;"] # [doc = "\t- On successfully serving the axon info."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'InvalidIpType':"] # [doc = "\t- The ip type is not 4 or 6."] # [doc = ""] # [doc = "* 'InvalidIpAddress':"] # [doc = "\t- The numerically encoded ip address does not resolve to a proper ip."] # [doc = ""] # [doc = "* 'ServingRateLimitExceeded':"] # [doc = "\t- Attempting to set prometheus information withing the rate limit min."] # [doc = ""] pub struct ServeAxonTls { pub netuid : serve_axon_tls :: Netuid , pub version : serve_axon_tls :: Version , pub ip : serve_axon_tls :: Ip , pub port : serve_axon_tls :: Port , pub ip_type : serve_axon_tls :: IpType , pub protocol : serve_axon_tls :: Protocol , pub placeholder1 : serve_axon_tls :: Placeholder1 , pub placeholder2 : serve_axon_tls :: Placeholder2 , pub certificate : serve_axon_tls :: Certificate , } pub mod serve_axon_tls { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Version = :: core :: primitive :: u32 ; pub type Ip = :: core :: primitive :: u128 ; pub type Port = :: core :: primitive :: u16 ; pub type IpType = :: core :: primitive :: u8 ; pub type Protocol = :: core :: primitive :: u8 ; pub type Placeholder1 = :: core :: primitive :: u8 ; pub type Placeholder2 = :: core :: primitive :: u8 ; pub type Certificate = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ServeAxonTls { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "serve_axon_tls" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Set prometheus information for the neuron."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u16):"] # [doc = "\t-  The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u128):"] # [doc = "\t- The prometheus ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The prometheus port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The ip type v4 or v6."] # [doc = ""] pub struct ServePrometheus { pub netuid : serve_prometheus :: Netuid , pub version : serve_prometheus :: Version , pub ip : serve_prometheus :: Ip , pub port : serve_prometheus :: Port , pub ip_type : serve_prometheus :: IpType , } pub mod serve_prometheus { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Version = :: core :: primitive :: u32 ; pub type Ip = :: core :: primitive :: u128 ; pub type Port = :: core :: primitive :: u16 ; pub type IpType = :: core :: primitive :: u8 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ServePrometheus { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "serve_prometheus" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Registers a new neuron to the subnetwork."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'block_number' ( u64 ):"] # [doc = "\t- Block hash used to prove work done."] # [doc = ""] # [doc = "* 'nonce' ( u64 ):"] # [doc = "\t- Positive integer nonce used in POW."] # [doc = ""] # [doc = "* 'work' ( Vec<u8> ):"] # [doc = "\t- Vector encoded bytes representing work done."] # [doc = ""] # [doc = "* 'hotkey' ( T::AccountId ):"] # [doc = "\t- Hotkey to be registered to the network."] # [doc = ""] # [doc = "* 'coldkey' ( T::AccountId ):"] # [doc = "\t- Associated coldkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* NeuronRegistered;"] # [doc = "\t- On successfully registering a uid to a neuron slot on a subnetwork."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to register to a non existent network."] # [doc = ""] # [doc = "* 'TooManyRegistrationsThisBlock':"] # [doc = "\t- This registration exceeds the total allowed on this network this block."] # [doc = ""] # [doc = "* 'HotKeyAlreadyRegisteredInSubNet':"] # [doc = "\t- The hotkey is already registered on this network."] # [doc = ""] # [doc = "* 'InvalidWorkBlock':"] # [doc = "\t- The work has been performed on a stale, future, or non existent block."] # [doc = ""] # [doc = "* 'InvalidDifficulty':"] # [doc = "\t- The work does not match the difficulty."] # [doc = ""] # [doc = "* 'InvalidSeal':"] # [doc = "\t- The seal is incorrect."] # [doc = ""] pub struct Register { pub netuid : register :: Netuid , pub block_number : register :: BlockNumber , pub nonce : register :: Nonce , pub work : register :: Work , pub hotkey : register :: Hotkey , pub coldkey : register :: Coldkey , } pub mod register { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type BlockNumber = :: core :: primitive :: u64 ; pub type Nonce = :: core :: primitive :: u64 ; pub type Work = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Register { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "register" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register the hotkey to root network"] pub struct RootRegister { pub hotkey : root_register :: Hotkey , } pub mod root_register { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RootRegister { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "root_register" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "User register a new subnetwork via burning token"] pub struct BurnedRegister { pub netuid : burned_register :: Netuid , pub hotkey : burned_register :: Hotkey , } pub mod burned_register { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BurnedRegister { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "burned_register" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic for user to change its hotkey in subnet or all subnets."] pub struct SwapHotkey { pub hotkey : swap_hotkey :: Hotkey , pub new_hotkey : swap_hotkey :: NewHotkey , pub netuid : swap_hotkey :: Netuid , } pub mod swap_hotkey { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: option :: Option < :: core :: primitive :: u16 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SwapHotkey { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "swap_hotkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic for user to change the coldkey associated with their account."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - The origin of the call, must be signed by the old coldkey."] # [doc = "* `old_coldkey` - The current coldkey associated with the account."] # [doc = "* `new_coldkey` - The new coldkey to be associated with the account."] # [doc = ""] # [doc = "# Returns"] # [doc = ""] # [doc = "Returns a `DispatchResultWithPostInfo` indicating success or failure of the operation."] # [doc = ""] # [doc = "# Weight"] # [doc = ""] # [doc = "Weight is calculated based on the number of database reads and writes."] pub struct SwapColdkey { pub old_coldkey : swap_coldkey :: OldColdkey , pub new_coldkey : swap_coldkey :: NewColdkey , pub swap_cost : swap_coldkey :: SwapCost , } pub mod swap_coldkey { use super :: runtime_types ; pub type OldColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type SwapCost = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SwapColdkey { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "swap_coldkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the childkey take for a given hotkey."] # [doc = ""] # [doc = "This function allows a coldkey to set the childkey take for a given hotkey."] # [doc = "The childkey take determines the proportion of stake that the hotkey keeps for itself"] # [doc = "when distributing stake to its children."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` (<T as frame_system::Config>::RuntimeOrigin):"] # [doc = "    - The signature of the calling coldkey. Setting childkey take can only be done by the coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey for which the childkey take will be set."] # [doc = ""] # [doc = "* `take` (u16):"] # [doc = "    - The new childkey take value. This is a percentage represented as a value between 0 and 10000,"] # [doc = "      where 10000 represents 100%."] # [doc = ""] # [doc = "# Events:"] # [doc = "* `ChildkeyTakeSet`:"] # [doc = "    - On successfully setting the childkey take for a hotkey."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - The coldkey does not own the hotkey."] # [doc = "* `InvalidChildkeyTake`:"] # [doc = "    - The provided take value is invalid (greater than the maximum allowed take)."] # [doc = "* `TxChildkeyTakeRateLimitExceeded`:"] # [doc = "    - The rate limit for changing childkey take has been exceeded."] # [doc = ""] pub struct SetChildkeyTake { pub hotkey : set_childkey_take :: Hotkey , pub netuid : set_childkey_take :: Netuid , pub take : set_childkey_take :: Take , } pub mod set_childkey_take { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type Take = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetChildkeyTake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_childkey_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the transaction rate limit for changing childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `tx_rate_limit` - The new rate limit in blocks."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] pub struct SudoSetTxChildkeyTakeRateLimit { pub tx_rate_limit : sudo_set_tx_childkey_take_rate_limit :: TxRateLimit , } pub mod sudo_set_tx_childkey_take_rate_limit { use super :: runtime_types ; pub type TxRateLimit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTxChildkeyTakeRateLimit { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "sudo_set_tx_childkey_take_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the minimum allowed childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `take` - The new minimum childkey take value."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] pub struct SudoSetMinChildkeyTake { pub take : sudo_set_min_childkey_take :: Take , } pub mod sudo_set_min_childkey_take { use super :: runtime_types ; pub type Take = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinChildkeyTake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "sudo_set_min_childkey_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the maximum allowed childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `take` - The new maximum childkey take value."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] pub struct SudoSetMaxChildkeyTake { pub take : sudo_set_max_childkey_take :: Take , } pub mod sudo_set_max_childkey_take { use super :: runtime_types ; pub type Take = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMaxChildkeyTake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "sudo_set_max_childkey_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "User register a new subnetwork"] pub struct RegisterNetwork { pub hotkey : register_network :: Hotkey , } pub mod register_network { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RegisterNetwork { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "register_network" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove a user's subnetwork"] # [doc = "The caller must be the owner of the network"] pub struct DissolveNetwork { pub coldkey : dissolve_network :: Coldkey , pub netuid : dissolve_network :: Netuid , } pub mod dissolve_network { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DissolveNetwork { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "dissolve_network" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a single child for a given hotkey on a specified network."] # [doc = ""] # [doc = "This function allows a coldkey to set a single child for a given hotkey on a specified network."] # [doc = "The proportion of the hotkey's stake to be allocated to the child is also specified."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` (<T as frame_system::Config>::RuntimeOrigin):"] # [doc = "    - The signature of the calling coldkey. Setting a hotkey child can only be done by the coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey which will be assigned the child."] # [doc = ""] # [doc = "* `child` (T::AccountId):"] # [doc = "    - The child which will be assigned to the hotkey."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "    - The u16 network identifier where the childkey will exist."] # [doc = ""] # [doc = "* `proportion` (u64):"] # [doc = "    - Proportion of the hotkey's stake to be given to the child, the value must be u64 normalized."] # [doc = ""] # [doc = "# Events:"] # [doc = "* `ChildAddedSingular`:"] # [doc = "    - On successfully registering a child to a hotkey."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `MechanismDoesNotExist`:"] # [doc = "    - Attempting to register to a non-existent network."] # [doc = "* `RegistrationNotPermittedOnRootSubnet`:"] # [doc = "    - Attempting to register a child on the root network."] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - The coldkey does not own the hotkey or the child is the same as the hotkey."] # [doc = "* `HotKeyAccountNotExists`:"] # [doc = "    - The hotkey account does not exist."] # [doc = ""] # [doc = "# Detailed Explanation of Checks:"] # [doc = "1. **Signature Verification**: Ensures that the caller has signed the transaction, verifying the coldkey."] # [doc = "2. **Root Network Check**: Ensures that the delegation is not on the root network, as child hotkeys are not valid on the root."] # [doc = "3. **Network Existence Check**: Ensures that the specified network exists."] # [doc = "4. **Ownership Verification**: Ensures that the coldkey owns the hotkey."] # [doc = "5. **Hotkey Account Existence Check**: Ensures that the hotkey account already exists."] # [doc = "6. **Child-Hotkey Distinction**: Ensures that the child is not the same as the hotkey."] # [doc = "7. **Old Children Cleanup**: Removes the hotkey from the parent list of its old children."] # [doc = "8. **New Children Assignment**: Assigns the new child to the hotkey and updates the parent list for the new child."] pub struct SetChildren { pub hotkey : set_children :: Hotkey , pub netuid : set_children :: Netuid , pub children : set_children :: Children , } pub mod set_children { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type Children = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetChildren { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_children" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedules a coldkey swap operation to be executed at a future block."] # [doc = ""] # [doc = "This function allows a user to schedule the swapping of their coldkey to a new one"] # [doc = "at a specified future block. The swap is not executed immediately but is scheduled"] # [doc = "to occur at the specified block number."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - The origin of the call, which should be signed by the current coldkey owner."] # [doc = "* `new_coldkey` - The account ID of the new coldkey that will replace the current one."] # [doc = "* `when` - The block number at which the coldkey swap should be executed."] # [doc = ""] # [doc = "# Returns"] # [doc = ""] # [doc = "Returns a `DispatchResultWithPostInfo` indicating whether the scheduling was successful."] # [doc = ""] # [doc = "# Errors"] # [doc = ""] # [doc = "This function may return an error if:"] # [doc = "* The origin is not signed."] # [doc = "* The scheduling fails due to conflicts or system constraints."] # [doc = ""] # [doc = "# Notes"] # [doc = ""] # [doc = "- The actual swap is not performed by this function. It merely schedules the swap operation."] # [doc = "- The weight of this call is set to a fixed value and may need adjustment based on benchmarking."] # [doc = ""] # [doc = "# TODO"] # [doc = ""] # [doc = "- Implement proper weight calculation based on the complexity of the operation."] # [doc = "- Consider adding checks to prevent scheduling too far into the future."] # [doc = "TODO: Benchmark this call"] pub struct ScheduleSwapColdkey { pub new_coldkey : schedule_swap_coldkey :: NewColdkey , } pub mod schedule_swap_coldkey { use super :: runtime_types ; pub type NewColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleSwapColdkey { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "schedule_swap_coldkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Set prometheus information for the neuron."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u16):"] # [doc = "\t-  The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u128):"] # [doc = "\t- The prometheus ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The prometheus port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The ip type v4 or v6."] # [doc = ""] pub struct SetIdentity { pub name : set_identity :: Name , pub url : set_identity :: Url , pub github_repo : set_identity :: GithubRepo , pub image : set_identity :: Image , pub discord : set_identity :: Discord , pub description : set_identity :: Description , pub additional : set_identity :: Additional , } pub mod set_identity { use super :: runtime_types ; pub type Name = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Url = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type GithubRepo = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Image = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Discord = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Description = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Additional = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetIdentity { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_identity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Set the identity information for a subnet."] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the calling coldkey, which must be the owner of the subnet."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "    - The unique network identifier of the subnet."] # [doc = ""] # [doc = "* `subnet_name` (Vec<u8>):"] # [doc = "    - The name of the subnet."] # [doc = ""] # [doc = "* `github_repo` (Vec<u8>):"] # [doc = "    - The GitHub repository associated with the subnet identity."] # [doc = ""] # [doc = "* `subnet_contact` (Vec<u8>):"] # [doc = "    - The contact information for the subnet."] pub struct SetSubnetIdentity { pub netuid : set_subnet_identity :: Netuid , pub subnet_name : set_subnet_identity :: SubnetName , pub github_repo : set_subnet_identity :: GithubRepo , pub subnet_contact : set_subnet_identity :: SubnetContact , pub subnet_url : set_subnet_identity :: SubnetUrl , pub discord : set_subnet_identity :: Discord , pub description : set_subnet_identity :: Description , pub logo_url : set_subnet_identity :: LogoUrl , pub additional : set_subnet_identity :: Additional , } pub mod set_subnet_identity { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type SubnetName = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type GithubRepo = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type SubnetContact = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type SubnetUrl = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Discord = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Description = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type LogoUrl = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Additional = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetSubnetIdentity { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_subnet_identity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "User register a new subnetwork"] pub struct RegisterNetworkWithIdentity { pub hotkey : register_network_with_identity :: Hotkey , pub identity : register_network_with_identity :: Identity , } pub mod register_network_with_identity { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Identity = :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RegisterNetworkWithIdentity { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "register_network_with_identity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- The implementation for the extrinsic unstake_all: Removes all stake from a hotkey account across all subnets and adds it onto a coldkey."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The associated hotkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "    - On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `NotRegistered`:"] # [doc = "    - Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* `NotEnoughStakeToWithdraw`:"] # [doc = "    - Thrown if there is not enough stake on the hotkey to withdraw this amount."] # [doc = ""] # [doc = "* `TxRateLimitExceeded`:"] # [doc = "    - Thrown if key has hit transaction rate limit"] pub struct UnstakeAll { pub hotkey : unstake_all :: Hotkey , } pub mod unstake_all { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UnstakeAll { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "unstake_all" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- The implementation for the extrinsic unstake_all: Removes all stake from a hotkey account across all subnets and adds it onto a coldkey."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The associated hotkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "    - On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `NotRegistered`:"] # [doc = "    - Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* `NotEnoughStakeToWithdraw`:"] # [doc = "    - Thrown if there is not enough stake on the hotkey to withdraw this amount."] # [doc = ""] # [doc = "* `TxRateLimitExceeded`:"] # [doc = "    - Thrown if key has hit transaction rate limit"] pub struct UnstakeAllAlpha { pub hotkey : unstake_all_alpha :: Hotkey , } pub mod unstake_all_alpha { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UnstakeAllAlpha { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "unstake_all_alpha" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- The implementation for the extrinsic move_stake: Moves specified amount of stake from a hotkey to another across subnets."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `origin_hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to move stake from."] # [doc = ""] # [doc = "* `destination_hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to move stake to."] # [doc = ""] # [doc = "* `origin_netuid` (T::AccountId):"] # [doc = "    - The subnet ID to move stake from."] # [doc = ""] # [doc = "* `destination_netuid` (T::AccountId):"] # [doc = "    - The subnet ID to move stake to."] # [doc = ""] # [doc = "* `alpha_amount` (T::AccountId):"] # [doc = "    - The alpha stake amount to move."] # [doc = ""] pub struct MoveStake { pub origin_hotkey : move_stake :: OriginHotkey , pub destination_hotkey : move_stake :: DestinationHotkey , pub origin_netuid : move_stake :: OriginNetuid , pub destination_netuid : move_stake :: DestinationNetuid , pub alpha_amount : move_stake :: AlphaAmount , } pub mod move_stake { use super :: runtime_types ; pub type OriginHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type DestinationHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type OriginNetuid = :: core :: primitive :: u16 ; pub type DestinationNetuid = :: core :: primitive :: u16 ; pub type AlphaAmount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for MoveStake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "move_stake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transfers a specified amount of stake from one coldkey to another, optionally across subnets,"] # [doc = "while keeping the same hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the `origin_coldkey`."] # [doc = "* `destination_coldkey` - The coldkey to which the stake is transferred."] # [doc = "* `hotkey` - The hotkey associated with the stake."] # [doc = "* `origin_netuid` - The network/subnet ID to move stake from."] # [doc = "* `destination_netuid` - The network/subnet ID to move stake to (for cross-subnet transfer)."] # [doc = "* `alpha_amount` - The amount of stake to transfer."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The origin is not signed by the correct coldkey."] # [doc = "* Either subnet does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(origin_coldkey, hotkey, origin_netuid)`."] # [doc = "* The transfer amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeTransferred` event on success."] pub struct TransferStake { pub destination_coldkey : transfer_stake :: DestinationColdkey , pub hotkey : transfer_stake :: Hotkey , pub origin_netuid : transfer_stake :: OriginNetuid , pub destination_netuid : transfer_stake :: DestinationNetuid , pub alpha_amount : transfer_stake :: AlphaAmount , } pub mod transfer_stake { use super :: runtime_types ; pub type DestinationColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type OriginNetuid = :: core :: primitive :: u16 ; pub type DestinationNetuid = :: core :: primitive :: u16 ; pub type AlphaAmount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TransferStake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "transfer_stake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Swaps a specified amount of stake from one subnet to another, while keeping the same coldkey and hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey whose stake is being swapped."] # [doc = "* `origin_netuid` - The network/subnet ID from which stake is removed."] # [doc = "* `destination_netuid` - The network/subnet ID to which stake is added."] # [doc = "* `alpha_amount` - The amount of stake to swap."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the correct coldkey (i.e., `coldkey_owns_hotkey` fails)."] # [doc = "* Either `origin_netuid` or `destination_netuid` does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(coldkey, hotkey, origin_netuid)`."] # [doc = "* The swap amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeSwapped` event on success."] pub struct SwapStake { pub hotkey : swap_stake :: Hotkey , pub origin_netuid : swap_stake :: OriginNetuid , pub destination_netuid : swap_stake :: DestinationNetuid , pub alpha_amount : swap_stake :: AlphaAmount , } pub mod swap_stake { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type OriginNetuid = :: core :: primitive :: u16 ; pub type DestinationNetuid = :: core :: primitive :: u16 ; pub type AlphaAmount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SwapStake { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "swap_stake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Adds stake to a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (lower) the staking should execute."] # [doc = ""] # [doc = "In case if slippage occurs and the price shall move beyond the limit"] # [doc = "price, the staking order may execute only partially or not execute"] # [doc = "at all."] # [doc = ""] # [doc = "# Args:"] # [doc = " * 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = " * 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = " * 'amount_staked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = " * 'limit_price' (u64):"] # [doc = "\t- The limit price expressed in units of RAO per one Alpha."] # [doc = ""] # [doc = " * 'allow_partial' (bool):"] # [doc = "\t- Allows partial execution of the amount. If set to false, this becomes"] # [doc = "      fill or kill type or order."] # [doc = ""] # [doc = "# Event:"] # [doc = " * StakeAdded;"] # [doc = "\t- On the successfully adding stake to a global account."] # [doc = ""] # [doc = "# Raises:"] # [doc = " * 'NotEnoughBalanceToStake':"] # [doc = "\t- Not enough balance on the coldkey to add onto the global account."] # [doc = ""] # [doc = " * 'NonAssociatedColdKey':"] # [doc = "\t- The calling coldkey is not associated with this hotkey."] # [doc = ""] # [doc = " * 'BalanceWithdrawalError':"] # [doc = " \t- Errors stemming from transaction pallet."] # [doc = ""] pub struct AddStakeLimit { pub hotkey : add_stake_limit :: Hotkey , pub netuid : add_stake_limit :: Netuid , pub amount_staked : add_stake_limit :: AmountStaked , pub limit_price : add_stake_limit :: LimitPrice , pub allow_partial : add_stake_limit :: AllowPartial , } pub mod add_stake_limit { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type AmountStaked = :: core :: primitive :: u64 ; pub type LimitPrice = :: core :: primitive :: u64 ; pub type AllowPartial = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddStakeLimit { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "add_stake_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Removes stake from a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (higher) the staking should execute."] # [doc = ""] # [doc = "In case if slippage occurs and the price shall move beyond the limit"] # [doc = "price, the staking order may execute only partially or not execute"] # [doc = "at all."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = "* 'amount_unstaked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = " * 'limit_price' (u64):"] # [doc = "    - The limit price expressed in units of RAO per one Alpha."] # [doc = ""] # [doc = " * 'allow_partial' (bool):"] # [doc = "    - Allows partial execution of the amount. If set to false, this becomes"] # [doc = "      fill or kill type or order."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "\t- On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* 'NotEnoughStakeToWithdraw':"] # [doc = "\t- Thrown if there is not enough stake on the hotkey to withdwraw this amount."] # [doc = ""] pub struct RemoveStakeLimit { pub hotkey : remove_stake_limit :: Hotkey , pub netuid : remove_stake_limit :: Netuid , pub amount_unstaked : remove_stake_limit :: AmountUnstaked , pub limit_price : remove_stake_limit :: LimitPrice , pub allow_partial : remove_stake_limit :: AllowPartial , } pub mod remove_stake_limit { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type AmountUnstaked = :: core :: primitive :: u64 ; pub type LimitPrice = :: core :: primitive :: u64 ; pub type AllowPartial = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveStakeLimit { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "remove_stake_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Swaps a specified amount of stake from one subnet to another, while keeping the same coldkey and hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey whose stake is being swapped."] # [doc = "* `origin_netuid` - The network/subnet ID from which stake is removed."] # [doc = "* `destination_netuid` - The network/subnet ID to which stake is added."] # [doc = "* `alpha_amount` - The amount of stake to swap."] # [doc = "* `limit_price` - The limit price expressed in units of RAO per one Alpha."] # [doc = "* `allow_partial` - Allows partial execution of the amount. If set to false, this becomes fill or kill type or order."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the correct coldkey (i.e., `coldkey_owns_hotkey` fails)."] # [doc = "* Either `origin_netuid` or `destination_netuid` does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(coldkey, hotkey, origin_netuid)`."] # [doc = "* The swap amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeSwapped` event on success."] pub struct SwapStakeLimit { pub hotkey : swap_stake_limit :: Hotkey , pub origin_netuid : swap_stake_limit :: OriginNetuid , pub destination_netuid : swap_stake_limit :: DestinationNetuid , pub alpha_amount : swap_stake_limit :: AlphaAmount , pub limit_price : swap_stake_limit :: LimitPrice , pub allow_partial : swap_stake_limit :: AllowPartial , } pub mod swap_stake_limit { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type OriginNetuid = :: core :: primitive :: u16 ; pub type DestinationNetuid = :: core :: primitive :: u16 ; pub type AlphaAmount = :: core :: primitive :: u64 ; pub type LimitPrice = :: core :: primitive :: u64 ; pub type AllowPartial = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SwapStakeLimit { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "swap_stake_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Attempts to associate a hotkey with a coldkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey to associate with the coldkey."] # [doc = ""] # [doc = "# Note"] # [doc = "Will charge based on the weight even if the hotkey is already associated with a coldkey."] pub struct TryAssociateHotkey { pub hotkey : try_associate_hotkey :: Hotkey , } pub mod try_associate_hotkey { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TryAssociateHotkey { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "try_associate_hotkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Initiates a call on a subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be signed by the subnet owner."] # [doc = "* `netuid` - The unique identifier of the subnet on which the call is being initiated."] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `FirstEmissionBlockNumberSet` event on success."] pub struct StartCall { pub netuid : start_call :: Netuid , } pub mod start_call { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for StartCall { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "start_call" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Attempts to associate a hotkey with an EVM key."] # [doc = ""] # [doc = "The signature will be checked to see if the recovered public key matches the `evm_key` provided."] # [doc = ""] # [doc = "The EVM key is expected to sign the message according to this formula to produce the signature:"] # [doc = "```text"] # [doc = "keccak_256(hotkey ++ keccak_256(block_number))"] # [doc = "```"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the `hotkey`."] # [doc = "* `netuid` - The netuid that the `hotkey` belongs to."] # [doc = "* `evm_key` - The EVM key to associate with the `hotkey`."] # [doc = "* `block_number` - The block number used in the `signature`."] # [doc = "* `signature` - A signed message by the `evm_key` containing the `hotkey` and the hashed `block_number`."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed."] # [doc = "* The hotkey does not belong to the subnet identified by the netuid."] # [doc = "* The EVM key cannot be recovered from the signature."] # [doc = "* The EVM key recovered from the signature does not match the given EVM key."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `EvmKeyAssociated` event on success"] pub struct AssociateEvmKey { pub netuid : associate_evm_key :: Netuid , pub evm_key : associate_evm_key :: EvmKey , pub block_number : associate_evm_key :: BlockNumber , pub signature : associate_evm_key :: Signature , } pub mod associate_evm_key { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type EvmKey = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type BlockNumber = :: core :: primitive :: u64 ; pub type Signature = [:: core :: primitive :: u8 ; 65usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AssociateEvmKey { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "associate_evm_key" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Recycles alpha from a cold/hot key pair, reducing AlphaOut on a subnet"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call (must be signed by the coldkey)"] # [doc = "* `hotkey` - The hotkey account"] # [doc = "* `amount` - The amount of alpha to recycle"] # [doc = "* `netuid` - The subnet ID"] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `TokensRecycled` event on success."] pub struct RecycleAlpha { pub hotkey : recycle_alpha :: Hotkey , pub amount : recycle_alpha :: Amount , pub netuid : recycle_alpha :: Netuid , } pub mod recycle_alpha { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RecycleAlpha { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "recycle_alpha" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Burns alpha from a cold/hot key pair without reducing `AlphaOut`"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call (must be signed by the coldkey)"] # [doc = "* `hotkey` - The hotkey account"] # [doc = "* `amount` - The amount of alpha to burn"] # [doc = "* `netuid` - The subnet ID"] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `TokensBurned` event on success."] pub struct BurnAlpha { pub hotkey : burn_alpha :: Hotkey , pub amount : burn_alpha :: Amount , pub netuid : burn_alpha :: Netuid , } pub mod burn_alpha { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BurnAlpha { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "burn_alpha" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the pending childkey cooldown (in blocks). Root only."] pub struct SetPendingChildkeyCooldown { pub cooldown : set_pending_childkey_cooldown :: Cooldown , } pub mod set_pending_childkey_cooldown { use super :: runtime_types ; pub type Cooldown = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetPendingChildkeyCooldown { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_pending_childkey_cooldown" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Removes all stake from a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (higher) the staking should execute."] # [doc = "Without limit_price it remove all the stake similar to `remove_stake` extrinsic"] pub struct RemoveStakeFullLimit { pub hotkey : remove_stake_full_limit :: Hotkey , pub netuid : remove_stake_full_limit :: Netuid , pub limit_price : remove_stake_full_limit :: LimitPrice , } pub mod remove_stake_full_limit { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type LimitPrice = :: core :: option :: Option < :: core :: primitive :: u64 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveStakeFullLimit { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "remove_stake_full_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register a new leased network."] # [doc = ""] # [doc = "The crowdloan's contributions are used to compute the share of the emissions that the contributors"] # [doc = "will receive as dividends."] # [doc = ""] # [doc = "The leftover cap is refunded to the contributors and the beneficiary."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `emissions_share` (Percent):"] # [doc = "    - The share of the emissions that the contributors will receive as dividends."] # [doc = ""] # [doc = "* `end_block` (Option<BlockNumberFor<T>>):"] # [doc = "    - The block at which the lease will end. If not defined, the lease is perpetual."] pub struct RegisterLeasedNetwork { pub emissions_share : register_leased_network :: EmissionsShare , pub end_block : register_leased_network :: EndBlock , } pub mod register_leased_network { use super :: runtime_types ; pub type EmissionsShare = runtime_types :: sp_arithmetic :: per_things :: Percent ; pub type EndBlock = :: core :: option :: Option < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RegisterLeasedNetwork { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "register_leased_network" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Terminate a lease."] # [doc = ""] # [doc = "The beneficiary can terminate the lease after the end block has passed and get the subnet ownership."] # [doc = "The subnet is transferred to the beneficiary and the lease is removed from storage."] # [doc = ""] # [doc = "**The hotkey must be owned by the beneficiary coldkey.**"] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `lease_id` (LeaseId):"] # [doc = "    - The ID of the lease to terminate."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey of the beneficiary to mark as subnet owner hotkey."] pub struct TerminateLease { pub lease_id : terminate_lease :: LeaseId , pub hotkey : terminate_lease :: Hotkey , } pub mod terminate_lease { use super :: runtime_types ; pub type LeaseId = :: core :: primitive :: u32 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for TerminateLease { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "terminate_lease" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Updates the symbol for a subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or root."] # [doc = "* `netuid` - The unique identifier of the subnet on which the symbol is being set."] # [doc = "* `symbol` - The symbol to set for the subnet."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the subnet owner."] # [doc = "* The symbol does not exist."] # [doc = "* The symbol is already in use by another subnet."] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `SymbolUpdated` event on success."] pub struct UpdateSymbol { pub netuid : update_symbol :: Netuid , pub symbol : update_symbol :: Symbol , } pub mod update_symbol { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Symbol = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpdateSymbol { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "update_symbol" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to commit timelock encrypted commit-reveal weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "* commit_reveal_version (`u16`):"] # [doc = "    - The client (bittensor-drand) version"] pub struct CommitTimelockedWeights { pub netuid : commit_timelocked_weights :: Netuid , pub commit : commit_timelocked_weights :: Commit , pub reveal_round : commit_timelocked_weights :: RevealRound , pub commit_reveal_version : commit_timelocked_weights :: CommitRevealVersion , } pub mod commit_timelocked_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Commit = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type RevealRound = :: core :: primitive :: u64 ; pub type CommitRevealVersion = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CommitTimelockedWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "commit_timelocked_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the autostake destination hotkey for a coldkey."] # [doc = ""] # [doc = "The caller selects a hotkey where all future rewards"] # [doc = "will be automatically staked."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to designate as the autostake destination."] pub struct SetColdkeyAutoStakeHotkey { pub netuid : set_coldkey_auto_stake_hotkey :: Netuid , pub hotkey : set_coldkey_auto_stake_hotkey :: Hotkey , } pub mod set_coldkey_auto_stake_hotkey { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetColdkeyAutoStakeHotkey { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_coldkey_auto_stake_hotkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "---- Used to commit timelock encrypted commit-reveal weight values to later be revealed for"] # [doc = "a mechanism."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "* commit_reveal_version (`u16`):"] # [doc = "    - The client (bittensor-drand) version"] pub struct CommitTimelockedMechanismWeights { pub netuid : commit_timelocked_mechanism_weights :: Netuid , pub mecid : commit_timelocked_mechanism_weights :: Mecid , pub commit : commit_timelocked_mechanism_weights :: Commit , pub reveal_round : commit_timelocked_mechanism_weights :: RevealRound , pub commit_reveal_version : commit_timelocked_mechanism_weights :: CommitRevealVersion , } pub mod commit_timelocked_mechanism_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Mecid = :: core :: primitive :: u8 ; pub type Commit = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type RevealRound = :: core :: primitive :: u64 ; pub type CommitRevealVersion = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CommitTimelockedMechanismWeights { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "commit_timelocked_mechanism_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove a subnetwork"] # [doc = "The caller must be root"] pub struct RootDissolveNetwork { pub netuid : root_dissolve_network :: Netuid , } pub mod root_dissolve_network { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RootDissolveNetwork { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "root_dissolve_network" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Claims the root emissions for a coldkey."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "# Event:"] # [doc = "* RootClaimed;"] # [doc = "\t- On the successfully claiming the root emissions for a coldkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = ""] pub struct ClaimRoot { pub subnets : claim_root :: Subnets , } pub mod claim_root { use super :: runtime_types ; pub type Subnets = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ClaimRoot { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "claim_root" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Sets the root claim type for the coldkey."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "# Event:"] # [doc = "* RootClaimTypeSet;"] # [doc = "\t- On the successfully setting the root claim type for the coldkey."] # [doc = ""] pub struct SetRootClaimType { pub new_root_claim_type : set_root_claim_type :: NewRootClaimType , } pub mod set_root_claim_type { use super :: runtime_types ; pub type NewRootClaimType = runtime_types :: pallet_subtensor :: pallet :: RootClaimTypeEnum ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetRootClaimType { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "set_root_claim_type" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Sets root claim number (sudo extrinsic). Zero disables auto-claim."] pub struct SudoSetNumRootClaims { pub new_value : sudo_set_num_root_claims :: NewValue , } pub mod sudo_set_num_root_claims { use super :: runtime_types ; pub type NewValue = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNumRootClaims { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "sudo_set_num_root_claims" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "--- Sets root claim threshold for subnet (sudo or owner origin)."] pub struct SudoSetRootClaimThreshold { pub netuid : sudo_set_root_claim_threshold :: Netuid , pub new_value : sudo_set_root_claim_threshold :: NewValue , } pub mod sudo_set_root_claim_threshold { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type NewValue = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetRootClaimThreshold { const PALLET : & 'static str = "SubtensorModule" ; const CALL : & 'static str = "sudo_set_root_claim_threshold" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "--- Sets the caller weights for the incentive mechanism. The call can be"] # [doc = "made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."] pub fn set_weights (& self , netuid : types :: set_weights :: Netuid , dests : types :: set_weights :: Dests , weights : types :: set_weights :: Weights , version_key : types :: set_weights :: VersionKey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_weights" , types :: SetWeights { netuid , dests , weights , version_key , } , [26u8 , 113u8 , 253u8 , 232u8 , 169u8 , 61u8 , 9u8 , 102u8 , 199u8 , 147u8 , 148u8 , 10u8 , 248u8 , 38u8 , 32u8 , 13u8 , 141u8 , 199u8 , 11u8 , 40u8 , 238u8 , 233u8 , 56u8 , 125u8 , 156u8 , 213u8 , 224u8 , 244u8 , 72u8 , 93u8 , 195u8 , 62u8 ,]) } # [doc = "--- Sets the caller weights for the incentive mechanism for mechanisms. The call"] # [doc = "can be made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechnism identifier."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."] pub fn set_mechanism_weights (& self , netuid : types :: set_mechanism_weights :: Netuid , mecid : types :: set_mechanism_weights :: Mecid , dests : types :: set_mechanism_weights :: Dests , weights : types :: set_mechanism_weights :: Weights , version_key : types :: set_mechanism_weights :: VersionKey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMechanismWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_mechanism_weights" , types :: SetMechanismWeights { netuid , mecid , dests , weights , version_key , } , [188u8 , 13u8 , 95u8 , 76u8 , 186u8 , 188u8 , 155u8 , 109u8 , 105u8 , 231u8 , 17u8 , 67u8 , 114u8 , 51u8 , 225u8 , 67u8 , 128u8 , 190u8 , 18u8 , 130u8 , 24u8 , 239u8 , 114u8 , 66u8 , 251u8 , 220u8 , 141u8 , 169u8 , 205u8 , 46u8 , 56u8 , 145u8 ,]) } # [doc = "--- Allows a hotkey to set weights for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `weights` (Vec<Vec<(Compact<u16>, Compact<u16>)>):"] # [doc = "\t- The weights to set for each network. [(uid, weight), ...]"] # [doc = ""] # [doc = "* `version_keys` (Vec<Compact<u64>>):"] # [doc = "\t- The network version keys to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] pub fn batch_set_weights (& self , netuids : types :: batch_set_weights :: Netuids , weights : types :: batch_set_weights :: Weights , version_keys : types :: batch_set_weights :: VersionKeys ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BatchSetWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "batch_set_weights" , types :: BatchSetWeights { netuids , weights , version_keys , } , [7u8 , 33u8 , 231u8 , 220u8 , 57u8 , 56u8 , 201u8 , 202u8 , 139u8 , 235u8 , 190u8 , 216u8 , 235u8 , 1u8 , 103u8 , 10u8 , 216u8 , 117u8 , 224u8 , 2u8 , 237u8 , 19u8 , 111u8 , 169u8 , 146u8 , 99u8 , 27u8 , 128u8 , 84u8 , 131u8 , 246u8 , 123u8 ,]) } # [doc = "---- Used to commit a hash of your weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit_hash` (`H256`):"] # [doc = "  - The hash representing the committed weights."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] pub fn commit_weights (& self , netuid : types :: commit_weights :: Netuid , commit_hash : types :: commit_weights :: CommitHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CommitWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "commit_weights" , types :: CommitWeights { netuid , commit_hash , } , [228u8 , 64u8 , 192u8 , 9u8 , 130u8 , 55u8 , 179u8 , 227u8 , 55u8 , 103u8 , 173u8 , 38u8 , 39u8 , 238u8 , 250u8 , 79u8 , 152u8 , 145u8 , 158u8 , 183u8 , 40u8 , 242u8 , 211u8 , 236u8 , 69u8 , 77u8 , 47u8 , 193u8 , 140u8 , 230u8 , 240u8 , 65u8 ,]) } # [doc = "---- Used to commit a hash of your weight values to later be revealed for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit_hash` (`H256`):"] # [doc = "  - The hash representing the committed weights."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] pub fn commit_mechanism_weights (& self , netuid : types :: commit_mechanism_weights :: Netuid , mecid : types :: commit_mechanism_weights :: Mecid , commit_hash : types :: commit_mechanism_weights :: CommitHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CommitMechanismWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "commit_mechanism_weights" , types :: CommitMechanismWeights { netuid , mecid , commit_hash , } , [124u8 , 75u8 , 106u8 , 201u8 , 2u8 , 158u8 , 196u8 , 1u8 , 16u8 , 54u8 , 206u8 , 17u8 , 39u8 , 212u8 , 249u8 , 255u8 , 219u8 , 186u8 , 95u8 , 122u8 , 58u8 , 66u8 , 65u8 , 253u8 , 187u8 , 220u8 , 48u8 , 106u8 , 112u8 , 191u8 , 84u8 , 151u8 ,]) } # [doc = "--- Allows a hotkey to commit weight hashes for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `commit_hashes` (Vec<H256>):"] # [doc = "\t- The commit hashes to commit."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] pub fn batch_commit_weights (& self , netuids : types :: batch_commit_weights :: Netuids , commit_hashes : types :: batch_commit_weights :: CommitHashes ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BatchCommitWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "batch_commit_weights" , types :: BatchCommitWeights { netuids , commit_hashes , } , [133u8 , 53u8 , 149u8 , 78u8 , 93u8 , 96u8 , 35u8 , 8u8 , 103u8 , 14u8 , 197u8 , 8u8 , 141u8 , 183u8 , 107u8 , 242u8 , 188u8 , 160u8 , 58u8 , 167u8 , 40u8 , 111u8 , 157u8 , 65u8 , 232u8 , 199u8 , 212u8 , 71u8 , 91u8 , 18u8 , 134u8 , 104u8 ,]) } # [doc = "---- Used to reveal the weights for a previously committed hash."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `uids` (`Vec<u16>`):"] # [doc = "  - The uids for the weights being revealed."] # [doc = ""] # [doc = "* `values` (`Vec<u16>`):"] # [doc = "  - The values of the weights being revealed."] # [doc = ""] # [doc = "* `salt` (`Vec<u16>`):"] # [doc = "  - The salt used to generate the commit hash."] # [doc = ""] # [doc = "* `version_key` (`u64`):"] # [doc = "  - The network version key."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] pub fn reveal_weights (& self , netuid : types :: reveal_weights :: Netuid , uids : types :: reveal_weights :: Uids , values : types :: reveal_weights :: Values , salt : types :: reveal_weights :: Salt , version_key : types :: reveal_weights :: VersionKey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RevealWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "reveal_weights" , types :: RevealWeights { netuid , uids , values , salt , version_key , } , [100u8 , 200u8 , 201u8 , 32u8 , 249u8 , 125u8 , 40u8 , 49u8 , 6u8 , 165u8 , 255u8 , 194u8 , 88u8 , 105u8 , 13u8 , 162u8 , 95u8 , 3u8 , 68u8 , 92u8 , 179u8 , 172u8 , 156u8 , 135u8 , 133u8 , 189u8 , 107u8 , 140u8 , 198u8 , 113u8 , 164u8 , 108u8 ,]) } # [doc = "---- Used to reveal the weights for a previously committed hash for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `uids` (`Vec<u16>`):"] # [doc = "  - The uids for the weights being revealed."] # [doc = ""] # [doc = "* `values` (`Vec<u16>`):"] # [doc = "  - The values of the weights being revealed."] # [doc = ""] # [doc = "* `salt` (`Vec<u16>`):"] # [doc = "  - The salt used to generate the commit hash."] # [doc = ""] # [doc = "* `version_key` (`u64`):"] # [doc = "  - The network version key."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] pub fn reveal_mechanism_weights (& self , netuid : types :: reveal_mechanism_weights :: Netuid , mecid : types :: reveal_mechanism_weights :: Mecid , uids : types :: reveal_mechanism_weights :: Uids , values : types :: reveal_mechanism_weights :: Values , salt : types :: reveal_mechanism_weights :: Salt , version_key : types :: reveal_mechanism_weights :: VersionKey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RevealMechanismWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "reveal_mechanism_weights" , types :: RevealMechanismWeights { netuid , mecid , uids , values , salt , version_key , } , [135u8 , 46u8 , 118u8 , 4u8 , 84u8 , 229u8 , 142u8 , 219u8 , 182u8 , 122u8 , 68u8 , 150u8 , 14u8 , 66u8 , 197u8 , 25u8 , 104u8 , 90u8 , 97u8 , 14u8 , 95u8 , 208u8 , 90u8 , 223u8 , 12u8 , 7u8 , 154u8 , 166u8 , 122u8 , 3u8 , 210u8 , 51u8 ,]) } # [doc = "---- Used to commit encrypted commit-reveal v3 weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealV3Disabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] # [doc = "---- Used to commit encrypted commit-reveal v3 weight values to later be revealed for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealV3Disabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] pub fn commit_crv3_mechanism_weights (& self , netuid : types :: commit_crv3_mechanism_weights :: Netuid , mecid : types :: commit_crv3_mechanism_weights :: Mecid , commit : types :: commit_crv3_mechanism_weights :: Commit , reveal_round : types :: commit_crv3_mechanism_weights :: RevealRound ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CommitCrv3MechanismWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "commit_crv3_mechanism_weights" , types :: CommitCrv3MechanismWeights { netuid , mecid , commit , reveal_round , } , [1u8 , 245u8 , 231u8 , 228u8 , 134u8 , 21u8 , 166u8 , 6u8 , 88u8 , 35u8 , 227u8 , 157u8 , 132u8 , 153u8 , 253u8 , 221u8 , 184u8 , 154u8 , 174u8 , 20u8 , 140u8 , 164u8 , 74u8 , 160u8 , 106u8 , 170u8 , 95u8 , 116u8 , 141u8 , 198u8 , 160u8 , 196u8 ,]) } # [doc = "---- The implementation for batch revealing committed weights."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `uids_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of uids for each set of weights being revealed."] # [doc = ""] # [doc = "* `values_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of values for each set of weights being revealed."] # [doc = ""] # [doc = "* `salts_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of salts used to generate the commit hashes."] # [doc = ""] # [doc = "* `version_keys` (`Vec<u64>`):"] # [doc = "  - A list of network version keys."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] # [doc = "* `InvalidInputLengths`:"] # [doc = "  - The input vectors are of mismatched lengths."] pub fn batch_reveal_weights (& self , netuid : types :: batch_reveal_weights :: Netuid , uids_list : types :: batch_reveal_weights :: UidsList , values_list : types :: batch_reveal_weights :: ValuesList , salts_list : types :: batch_reveal_weights :: SaltsList , version_keys : types :: batch_reveal_weights :: VersionKeys ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BatchRevealWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "batch_reveal_weights" , types :: BatchRevealWeights { netuid , uids_list , values_list , salts_list , version_keys , } , [34u8 , 35u8 , 127u8 , 148u8 , 176u8 , 70u8 , 79u8 , 195u8 , 205u8 , 11u8 , 184u8 , 14u8 , 132u8 , 198u8 , 4u8 , 117u8 , 131u8 , 180u8 , 86u8 , 132u8 , 222u8 , 152u8 , 13u8 , 214u8 , 24u8 , 38u8 , 67u8 , 198u8 , 196u8 , 172u8 , 7u8 , 60u8 ,]) } # [doc = "--- Allows delegates to decrease its take value."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>::Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The hotkey we are delegating (must be owned by the coldkey.)"] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- Subnet ID to decrease take for"] # [doc = ""] # [doc = "* 'take' (u16):"] # [doc = "\t- The new stake proportion that this hotkey takes from delegations."] # [doc = "       The new value can be between 0 and 11_796 and should be strictly"] # [doc = "       lower than the previous value. It T is the new value (rational number),"] # [doc = "       the the parameter is calculated as [65535 * T]. For example, 1% would be"] # [doc = "       [0.01 * 65535] = [655.35] = 655"] # [doc = ""] # [doc = "# Event:"] # [doc = "* TakeDecreased;"] # [doc = "\t- On successfully setting a decreased take for this hotkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- The hotkey we are delegating is not registered on the network."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- The hotkey we are delegating is not owned by the calling coldkey."] # [doc = ""] # [doc = "* 'DelegateTakeTooLow':"] # [doc = "\t- The delegate is setting a take which is not lower than the previous."] # [doc = ""] pub fn decrease_take (& self , hotkey : types :: decrease_take :: Hotkey , take : types :: decrease_take :: Take ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DecreaseTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "decrease_take" , types :: DecreaseTake { hotkey , take , } , [220u8 , 18u8 , 152u8 , 244u8 , 15u8 , 135u8 , 42u8 , 101u8 , 78u8 , 32u8 , 61u8 , 230u8 , 248u8 , 203u8 , 252u8 , 150u8 , 109u8 , 187u8 , 44u8 , 194u8 , 239u8 , 16u8 , 162u8 , 67u8 , 90u8 , 34u8 , 245u8 , 120u8 , 33u8 , 57u8 , 155u8 , 33u8 ,]) } # [doc = "--- Allows delegates to increase its take value. This call is rate-limited."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>::Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The hotkey we are delegating (must be owned by the coldkey.)"] # [doc = ""] # [doc = "* 'take' (u16):"] # [doc = "\t- The new stake proportion that this hotkey takes from delegations."] # [doc = "       The new value can be between 0 and 11_796 and should be strictly"] # [doc = "       greater than the previous value. T is the new value (rational number),"] # [doc = "       the the parameter is calculated as [65535 * T]. For example, 1% would be"] # [doc = "       [0.01 * 65535] = [655.35] = 655"] # [doc = ""] # [doc = "# Event:"] # [doc = "* TakeIncreased;"] # [doc = "\t- On successfully setting a increased take for this hotkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- The hotkey we are delegating is not registered on the network."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- The hotkey we are delegating is not owned by the calling coldkey."] # [doc = ""] # [doc = "* 'DelegateTakeTooHigh':"] # [doc = "\t- The delegate is setting a take which is not greater than the previous."] # [doc = ""] pub fn increase_take (& self , hotkey : types :: increase_take :: Hotkey , take : types :: increase_take :: Take ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: IncreaseTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "increase_take" , types :: IncreaseTake { hotkey , take , } , [119u8 , 250u8 , 49u8 , 96u8 , 123u8 , 185u8 , 96u8 , 196u8 , 0u8 , 65u8 , 142u8 , 148u8 , 174u8 , 144u8 , 93u8 , 217u8 , 119u8 , 230u8 , 62u8 , 6u8 , 108u8 , 40u8 , 121u8 , 7u8 , 11u8 , 25u8 , 80u8 , 8u8 , 145u8 , 186u8 , 25u8 , 153u8 ,]) } # [doc = "--- Adds stake to a hotkey. The call is made from a coldkey account."] # [doc = "This delegates stake to the hotkey."] # [doc = ""] # [doc = "Note: the coldkey account may own the hotkey, in which case they are"] # [doc = "delegating to themselves."] # [doc = ""] # [doc = "# Args:"] # [doc = " * 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = " * 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = " * 'amount_staked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = "# Event:"] # [doc = " * StakeAdded;"] # [doc = "\t- On the successfully adding stake to a global account."] # [doc = ""] # [doc = "# Raises:"] # [doc = " * 'NotEnoughBalanceToStake':"] # [doc = "\t- Not enough balance on the coldkey to add onto the global account."] # [doc = ""] # [doc = " * 'NonAssociatedColdKey':"] # [doc = "\t- The calling coldkey is not associated with this hotkey."] # [doc = ""] # [doc = " * 'BalanceWithdrawalError':"] # [doc = " \t- Errors stemming from transaction pallet."] # [doc = ""] pub fn add_stake (& self , hotkey : types :: add_stake :: Hotkey , netuid : types :: add_stake :: Netuid , amount_staked : types :: add_stake :: AmountStaked ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "add_stake" , types :: AddStake { hotkey , netuid , amount_staked , } , [28u8 , 155u8 , 172u8 , 37u8 , 141u8 , 241u8 , 192u8 , 86u8 , 151u8 , 176u8 , 226u8 , 231u8 , 17u8 , 222u8 , 128u8 , 179u8 , 207u8 , 35u8 , 201u8 , 68u8 , 236u8 , 59u8 , 63u8 , 199u8 , 52u8 , 220u8 , 232u8 , 249u8 , 78u8 , 92u8 , 22u8 , 237u8 ,]) } # [doc = "Remove stake from the staking account. The call must be made"] # [doc = "from the coldkey account attached to the neuron metadata. Only this key"] # [doc = "has permission to make staking and unstaking requests."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = "* 'amount_unstaked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "\t- On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* 'NotEnoughStakeToWithdraw':"] # [doc = "\t- Thrown if there is not enough stake on the hotkey to withdwraw this amount."] # [doc = ""] pub fn remove_stake (& self , hotkey : types :: remove_stake :: Hotkey , netuid : types :: remove_stake :: Netuid , amount_unstaked : types :: remove_stake :: AmountUnstaked ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "remove_stake" , types :: RemoveStake { hotkey , netuid , amount_unstaked , } , [30u8 , 103u8 , 143u8 , 13u8 , 22u8 , 208u8 , 129u8 , 17u8 , 83u8 , 166u8 , 102u8 , 241u8 , 34u8 , 168u8 , 106u8 , 152u8 , 78u8 , 165u8 , 176u8 , 175u8 , 195u8 , 119u8 , 80u8 , 160u8 , 216u8 , 34u8 , 230u8 , 196u8 , 190u8 , 149u8 , 243u8 , 34u8 ,]) } # [doc = "Serves or updates axon /prometheus information for the neuron associated with the caller. If the caller is"] # [doc = "already registered the metadata is updated. If the caller is not registered this call throws NotRegistered."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u64):"] # [doc = "\t- The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u64):"] # [doc = "\t- The endpoint ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The endpoint port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The endpoint ip version as a u8, 4 or 6."] # [doc = ""] # [doc = "* 'protocol' (u8):"] # [doc = "\t- UDP:1 or TCP:0"] # [doc = ""] # [doc = "* 'placeholder1' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'placeholder2' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "# Event:"] # [doc = "* AxonServed;"] # [doc = "\t- On successfully serving the axon info."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'InvalidIpType':"] # [doc = "\t- The ip type is not 4 or 6."] # [doc = ""] # [doc = "* 'InvalidIpAddress':"] # [doc = "\t- The numerically encoded ip address does not resolve to a proper ip."] # [doc = ""] # [doc = "* 'ServingRateLimitExceeded':"] # [doc = "\t- Attempting to set prometheus information withing the rate limit min."] # [doc = ""] pub fn serve_axon (& self , netuid : types :: serve_axon :: Netuid , version : types :: serve_axon :: Version , ip : types :: serve_axon :: Ip , port : types :: serve_axon :: Port , ip_type : types :: serve_axon :: IpType , protocol : types :: serve_axon :: Protocol , placeholder1 : types :: serve_axon :: Placeholder1 , placeholder2 : types :: serve_axon :: Placeholder2 ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ServeAxon > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "serve_axon" , types :: ServeAxon { netuid , version , ip , port , ip_type , protocol , placeholder1 , placeholder2 , } , [115u8 , 192u8 , 140u8 , 60u8 , 59u8 , 74u8 , 35u8 , 185u8 , 142u8 , 224u8 , 166u8 , 121u8 , 135u8 , 13u8 , 247u8 , 54u8 , 152u8 , 178u8 , 119u8 , 176u8 , 131u8 , 22u8 , 125u8 , 241u8 , 162u8 , 174u8 , 238u8 , 35u8 , 245u8 , 254u8 , 254u8 , 205u8 ,]) } # [doc = "Same as `serve_axon` but takes a certificate as an extra optional argument."] # [doc = "Serves or updates axon /prometheus information for the neuron associated with the caller. If the caller is"] # [doc = "already registered the metadata is updated. If the caller is not registered this call throws NotRegistered."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u64):"] # [doc = "\t- The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u64):"] # [doc = "\t- The endpoint ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The endpoint port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The endpoint ip version as a u8, 4 or 6."] # [doc = ""] # [doc = "* 'protocol' (u8):"] # [doc = "\t- UDP:1 or TCP:0"] # [doc = ""] # [doc = "* 'placeholder1' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'placeholder2' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'certificate' (Vec<u8>):"] # [doc = "    - TLS certificate for inter neuron communitation."] # [doc = ""] # [doc = "# Event:"] # [doc = "* AxonServed;"] # [doc = "\t- On successfully serving the axon info."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'InvalidIpType':"] # [doc = "\t- The ip type is not 4 or 6."] # [doc = ""] # [doc = "* 'InvalidIpAddress':"] # [doc = "\t- The numerically encoded ip address does not resolve to a proper ip."] # [doc = ""] # [doc = "* 'ServingRateLimitExceeded':"] # [doc = "\t- Attempting to set prometheus information withing the rate limit min."] # [doc = ""] pub fn serve_axon_tls (& self , netuid : types :: serve_axon_tls :: Netuid , version : types :: serve_axon_tls :: Version , ip : types :: serve_axon_tls :: Ip , port : types :: serve_axon_tls :: Port , ip_type : types :: serve_axon_tls :: IpType , protocol : types :: serve_axon_tls :: Protocol , placeholder1 : types :: serve_axon_tls :: Placeholder1 , placeholder2 : types :: serve_axon_tls :: Placeholder2 , certificate : types :: serve_axon_tls :: Certificate ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ServeAxonTls > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "serve_axon_tls" , types :: ServeAxonTls { netuid , version , ip , port , ip_type , protocol , placeholder1 , placeholder2 , certificate , } , [56u8 , 156u8 , 188u8 , 127u8 , 240u8 , 39u8 , 153u8 , 238u8 , 44u8 , 224u8 , 151u8 , 222u8 , 138u8 , 122u8 , 122u8 , 104u8 , 2u8 , 244u8 , 243u8 , 18u8 , 90u8 , 72u8 , 96u8 , 223u8 , 19u8 , 22u8 , 37u8 , 235u8 , 139u8 , 255u8 , 172u8 , 118u8 ,]) } # [doc = "---- Set prometheus information for the neuron."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u16):"] # [doc = "\t-  The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u128):"] # [doc = "\t- The prometheus ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The prometheus port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The ip type v4 or v6."] # [doc = ""] pub fn serve_prometheus (& self , netuid : types :: serve_prometheus :: Netuid , version : types :: serve_prometheus :: Version , ip : types :: serve_prometheus :: Ip , port : types :: serve_prometheus :: Port , ip_type : types :: serve_prometheus :: IpType ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ServePrometheus > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "serve_prometheus" , types :: ServePrometheus { netuid , version , ip , port , ip_type , } , [20u8 , 125u8 , 112u8 , 212u8 , 213u8 , 9u8 , 36u8 , 152u8 , 252u8 , 42u8 , 37u8 , 90u8 , 11u8 , 166u8 , 1u8 , 224u8 , 116u8 , 108u8 , 124u8 , 61u8 , 93u8 , 220u8 , 88u8 , 62u8 , 71u8 , 65u8 , 225u8 , 166u8 , 66u8 , 236u8 , 238u8 , 126u8 ,]) } # [doc = "---- Registers a new neuron to the subnetwork."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'block_number' ( u64 ):"] # [doc = "\t- Block hash used to prove work done."] # [doc = ""] # [doc = "* 'nonce' ( u64 ):"] # [doc = "\t- Positive integer nonce used in POW."] # [doc = ""] # [doc = "* 'work' ( Vec<u8> ):"] # [doc = "\t- Vector encoded bytes representing work done."] # [doc = ""] # [doc = "* 'hotkey' ( T::AccountId ):"] # [doc = "\t- Hotkey to be registered to the network."] # [doc = ""] # [doc = "* 'coldkey' ( T::AccountId ):"] # [doc = "\t- Associated coldkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* NeuronRegistered;"] # [doc = "\t- On successfully registering a uid to a neuron slot on a subnetwork."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to register to a non existent network."] # [doc = ""] # [doc = "* 'TooManyRegistrationsThisBlock':"] # [doc = "\t- This registration exceeds the total allowed on this network this block."] # [doc = ""] # [doc = "* 'HotKeyAlreadyRegisteredInSubNet':"] # [doc = "\t- The hotkey is already registered on this network."] # [doc = ""] # [doc = "* 'InvalidWorkBlock':"] # [doc = "\t- The work has been performed on a stale, future, or non existent block."] # [doc = ""] # [doc = "* 'InvalidDifficulty':"] # [doc = "\t- The work does not match the difficulty."] # [doc = ""] # [doc = "* 'InvalidSeal':"] # [doc = "\t- The seal is incorrect."] # [doc = ""] pub fn register (& self , netuid : types :: register :: Netuid , block_number : types :: register :: BlockNumber , nonce : types :: register :: Nonce , work : types :: register :: Work , hotkey : types :: register :: Hotkey , coldkey : types :: register :: Coldkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Register > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "register" , types :: Register { netuid , block_number , nonce , work , hotkey , coldkey , } , [224u8 , 165u8 , 251u8 , 192u8 , 6u8 , 131u8 , 79u8 , 41u8 , 143u8 , 150u8 , 200u8 , 247u8 , 68u8 , 7u8 , 4u8 , 195u8 , 139u8 , 31u8 , 130u8 , 173u8 , 230u8 , 99u8 , 39u8 , 220u8 , 244u8 , 120u8 , 81u8 , 87u8 , 34u8 , 207u8 , 70u8 , 193u8 ,]) } # [doc = "Register the hotkey to root network"] pub fn root_register (& self , hotkey : types :: root_register :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RootRegister > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "root_register" , types :: RootRegister { hotkey , } , [196u8 , 149u8 , 100u8 , 179u8 , 32u8 , 69u8 , 216u8 , 177u8 , 78u8 , 22u8 , 227u8 , 176u8 , 63u8 , 178u8 , 27u8 , 80u8 , 74u8 , 246u8 , 223u8 , 236u8 , 183u8 , 226u8 , 210u8 , 249u8 , 133u8 , 103u8 , 174u8 , 43u8 , 153u8 , 201u8 , 8u8 , 55u8 ,]) } # [doc = "User register a new subnetwork via burning token"] pub fn burned_register (& self , netuid : types :: burned_register :: Netuid , hotkey : types :: burned_register :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BurnedRegister > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "burned_register" , types :: BurnedRegister { netuid , hotkey , } , [66u8 , 182u8 , 83u8 , 185u8 , 109u8 , 48u8 , 136u8 , 88u8 , 198u8 , 19u8 , 54u8 , 132u8 , 245u8 , 28u8 , 243u8 , 177u8 , 110u8 , 11u8 , 118u8 , 109u8 , 17u8 , 188u8 , 221u8 , 94u8 , 216u8 , 72u8 , 0u8 , 101u8 , 155u8 , 87u8 , 140u8 , 251u8 ,]) } # [doc = "The extrinsic for user to change its hotkey in subnet or all subnets."] pub fn swap_hotkey (& self , hotkey : types :: swap_hotkey :: Hotkey , new_hotkey : types :: swap_hotkey :: NewHotkey , netuid : types :: swap_hotkey :: Netuid ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SwapHotkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "swap_hotkey" , types :: SwapHotkey { hotkey , new_hotkey , netuid , } , [126u8 , 205u8 , 44u8 , 17u8 , 243u8 , 106u8 , 132u8 , 67u8 , 22u8 , 200u8 , 108u8 , 219u8 , 102u8 , 203u8 , 151u8 , 165u8 , 3u8 , 148u8 , 231u8 , 106u8 , 143u8 , 42u8 , 46u8 , 27u8 , 206u8 , 167u8 , 245u8 , 194u8 , 222u8 , 129u8 , 255u8 , 13u8 ,]) } # [doc = "The extrinsic for user to change the coldkey associated with their account."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - The origin of the call, must be signed by the old coldkey."] # [doc = "* `old_coldkey` - The current coldkey associated with the account."] # [doc = "* `new_coldkey` - The new coldkey to be associated with the account."] # [doc = ""] # [doc = "# Returns"] # [doc = ""] # [doc = "Returns a `DispatchResultWithPostInfo` indicating success or failure of the operation."] # [doc = ""] # [doc = "# Weight"] # [doc = ""] # [doc = "Weight is calculated based on the number of database reads and writes."] pub fn swap_coldkey (& self , old_coldkey : types :: swap_coldkey :: OldColdkey , new_coldkey : types :: swap_coldkey :: NewColdkey , swap_cost : types :: swap_coldkey :: SwapCost ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SwapColdkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "swap_coldkey" , types :: SwapColdkey { old_coldkey , new_coldkey , swap_cost , } , [229u8 , 236u8 , 237u8 , 205u8 , 82u8 , 37u8 , 111u8 , 92u8 , 44u8 , 67u8 , 131u8 , 246u8 , 104u8 , 82u8 , 215u8 , 130u8 , 47u8 , 169u8 , 16u8 , 218u8 , 19u8 , 238u8 , 183u8 , 65u8 , 194u8 , 196u8 , 113u8 , 187u8 , 86u8 , 175u8 , 162u8 , 32u8 ,]) } # [doc = "Sets the childkey take for a given hotkey."] # [doc = ""] # [doc = "This function allows a coldkey to set the childkey take for a given hotkey."] # [doc = "The childkey take determines the proportion of stake that the hotkey keeps for itself"] # [doc = "when distributing stake to its children."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` (<T as frame_system::Config>::RuntimeOrigin):"] # [doc = "    - The signature of the calling coldkey. Setting childkey take can only be done by the coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey for which the childkey take will be set."] # [doc = ""] # [doc = "* `take` (u16):"] # [doc = "    - The new childkey take value. This is a percentage represented as a value between 0 and 10000,"] # [doc = "      where 10000 represents 100%."] # [doc = ""] # [doc = "# Events:"] # [doc = "* `ChildkeyTakeSet`:"] # [doc = "    - On successfully setting the childkey take for a hotkey."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - The coldkey does not own the hotkey."] # [doc = "* `InvalidChildkeyTake`:"] # [doc = "    - The provided take value is invalid (greater than the maximum allowed take)."] # [doc = "* `TxChildkeyTakeRateLimitExceeded`:"] # [doc = "    - The rate limit for changing childkey take has been exceeded."] # [doc = ""] pub fn set_childkey_take (& self , hotkey : types :: set_childkey_take :: Hotkey , netuid : types :: set_childkey_take :: Netuid , take : types :: set_childkey_take :: Take ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetChildkeyTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_childkey_take" , types :: SetChildkeyTake { hotkey , netuid , take , } , [121u8 , 93u8 , 32u8 , 255u8 , 50u8 , 102u8 , 154u8 , 191u8 , 45u8 , 27u8 , 53u8 , 78u8 , 108u8 , 88u8 , 147u8 , 83u8 , 170u8 , 32u8 , 114u8 , 16u8 , 119u8 , 178u8 , 138u8 , 107u8 , 211u8 , 73u8 , 71u8 , 151u8 , 178u8 , 44u8 , 250u8 , 224u8 ,]) } # [doc = "Sets the transaction rate limit for changing childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `tx_rate_limit` - The new rate limit in blocks."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] pub fn sudo_set_tx_childkey_take_rate_limit (& self , tx_rate_limit : types :: sudo_set_tx_childkey_take_rate_limit :: TxRateLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTxChildkeyTakeRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "sudo_set_tx_childkey_take_rate_limit" , types :: SudoSetTxChildkeyTakeRateLimit { tx_rate_limit , } , [91u8 , 243u8 , 210u8 , 65u8 , 149u8 , 33u8 , 8u8 , 69u8 , 42u8 , 197u8 , 4u8 , 202u8 , 73u8 , 167u8 , 185u8 , 75u8 , 203u8 , 98u8 , 21u8 , 230u8 , 66u8 , 192u8 , 108u8 , 254u8 , 37u8 , 246u8 , 156u8 , 120u8 , 59u8 , 180u8 , 175u8 , 156u8 ,]) } # [doc = "Sets the minimum allowed childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `take` - The new minimum childkey take value."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] pub fn sudo_set_min_childkey_take (& self , take : types :: sudo_set_min_childkey_take :: Take ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinChildkeyTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "sudo_set_min_childkey_take" , types :: SudoSetMinChildkeyTake { take , } , [229u8 , 132u8 , 126u8 , 102u8 , 220u8 , 249u8 , 9u8 , 110u8 , 89u8 , 137u8 , 46u8 , 248u8 , 54u8 , 95u8 , 124u8 , 194u8 , 190u8 , 6u8 , 198u8 , 113u8 , 35u8 , 21u8 , 214u8 , 165u8 , 231u8 , 91u8 , 158u8 , 133u8 , 6u8 , 192u8 , 14u8 , 170u8 ,]) } # [doc = "Sets the maximum allowed childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `take` - The new maximum childkey take value."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] pub fn sudo_set_max_childkey_take (& self , take : types :: sudo_set_max_childkey_take :: Take ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMaxChildkeyTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "sudo_set_max_childkey_take" , types :: SudoSetMaxChildkeyTake { take , } , [232u8 , 17u8 , 96u8 , 93u8 , 108u8 , 28u8 , 113u8 , 84u8 , 10u8 , 189u8 , 180u8 , 155u8 , 200u8 , 40u8 , 10u8 , 242u8 , 93u8 , 38u8 , 64u8 , 131u8 , 72u8 , 204u8 , 77u8 , 95u8 , 236u8 , 174u8 , 245u8 , 180u8 , 59u8 , 128u8 , 44u8 , 50u8 ,]) } # [doc = "User register a new subnetwork"] pub fn register_network (& self , hotkey : types :: register_network :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RegisterNetwork > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "register_network" , types :: RegisterNetwork { hotkey , } , [27u8 , 43u8 , 133u8 , 172u8 , 180u8 , 221u8 , 134u8 , 246u8 , 95u8 , 112u8 , 218u8 , 27u8 , 156u8 , 230u8 , 45u8 , 167u8 , 169u8 , 196u8 , 100u8 , 34u8 , 52u8 , 10u8 , 57u8 , 180u8 , 242u8 , 210u8 , 229u8 , 151u8 , 154u8 , 82u8 , 115u8 , 133u8 ,]) } # [doc = "Remove a user's subnetwork"] # [doc = "The caller must be the owner of the network"] pub fn dissolve_network (& self , coldkey : types :: dissolve_network :: Coldkey , netuid : types :: dissolve_network :: Netuid ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DissolveNetwork > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "dissolve_network" , types :: DissolveNetwork { coldkey , netuid , } , [54u8 , 42u8 , 87u8 , 170u8 , 5u8 , 130u8 , 20u8 , 182u8 , 95u8 , 226u8 , 55u8 , 193u8 , 60u8 , 185u8 , 139u8 , 45u8 , 107u8 , 158u8 , 210u8 , 61u8 , 133u8 , 222u8 , 92u8 , 57u8 , 137u8 , 217u8 , 93u8 , 143u8 , 66u8 , 97u8 , 88u8 , 11u8 ,]) } # [doc = "Set a single child for a given hotkey on a specified network."] # [doc = ""] # [doc = "This function allows a coldkey to set a single child for a given hotkey on a specified network."] # [doc = "The proportion of the hotkey's stake to be allocated to the child is also specified."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` (<T as frame_system::Config>::RuntimeOrigin):"] # [doc = "    - The signature of the calling coldkey. Setting a hotkey child can only be done by the coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey which will be assigned the child."] # [doc = ""] # [doc = "* `child` (T::AccountId):"] # [doc = "    - The child which will be assigned to the hotkey."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "    - The u16 network identifier where the childkey will exist."] # [doc = ""] # [doc = "* `proportion` (u64):"] # [doc = "    - Proportion of the hotkey's stake to be given to the child, the value must be u64 normalized."] # [doc = ""] # [doc = "# Events:"] # [doc = "* `ChildAddedSingular`:"] # [doc = "    - On successfully registering a child to a hotkey."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `MechanismDoesNotExist`:"] # [doc = "    - Attempting to register to a non-existent network."] # [doc = "* `RegistrationNotPermittedOnRootSubnet`:"] # [doc = "    - Attempting to register a child on the root network."] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - The coldkey does not own the hotkey or the child is the same as the hotkey."] # [doc = "* `HotKeyAccountNotExists`:"] # [doc = "    - The hotkey account does not exist."] # [doc = ""] # [doc = "# Detailed Explanation of Checks:"] # [doc = "1. **Signature Verification**: Ensures that the caller has signed the transaction, verifying the coldkey."] # [doc = "2. **Root Network Check**: Ensures that the delegation is not on the root network, as child hotkeys are not valid on the root."] # [doc = "3. **Network Existence Check**: Ensures that the specified network exists."] # [doc = "4. **Ownership Verification**: Ensures that the coldkey owns the hotkey."] # [doc = "5. **Hotkey Account Existence Check**: Ensures that the hotkey account already exists."] # [doc = "6. **Child-Hotkey Distinction**: Ensures that the child is not the same as the hotkey."] # [doc = "7. **Old Children Cleanup**: Removes the hotkey from the parent list of its old children."] # [doc = "8. **New Children Assignment**: Assigns the new child to the hotkey and updates the parent list for the new child."] pub fn set_children (& self , hotkey : types :: set_children :: Hotkey , netuid : types :: set_children :: Netuid , children : types :: set_children :: Children ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetChildren > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_children" , types :: SetChildren { hotkey , netuid , children , } , [17u8 , 215u8 , 125u8 , 24u8 , 155u8 , 166u8 , 225u8 , 40u8 , 207u8 , 43u8 , 193u8 , 5u8 , 198u8 , 99u8 , 220u8 , 214u8 , 5u8 , 251u8 , 156u8 , 83u8 , 230u8 , 246u8 , 93u8 , 231u8 , 155u8 , 254u8 , 179u8 , 98u8 , 6u8 , 40u8 , 183u8 , 140u8 ,]) } # [doc = "Schedules a coldkey swap operation to be executed at a future block."] # [doc = ""] # [doc = "This function allows a user to schedule the swapping of their coldkey to a new one"] # [doc = "at a specified future block. The swap is not executed immediately but is scheduled"] # [doc = "to occur at the specified block number."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - The origin of the call, which should be signed by the current coldkey owner."] # [doc = "* `new_coldkey` - The account ID of the new coldkey that will replace the current one."] # [doc = "* `when` - The block number at which the coldkey swap should be executed."] # [doc = ""] # [doc = "# Returns"] # [doc = ""] # [doc = "Returns a `DispatchResultWithPostInfo` indicating whether the scheduling was successful."] # [doc = ""] # [doc = "# Errors"] # [doc = ""] # [doc = "This function may return an error if:"] # [doc = "* The origin is not signed."] # [doc = "* The scheduling fails due to conflicts or system constraints."] # [doc = ""] # [doc = "# Notes"] # [doc = ""] # [doc = "- The actual swap is not performed by this function. It merely schedules the swap operation."] # [doc = "- The weight of this call is set to a fixed value and may need adjustment based on benchmarking."] # [doc = ""] # [doc = "# TODO"] # [doc = ""] # [doc = "- Implement proper weight calculation based on the complexity of the operation."] # [doc = "- Consider adding checks to prevent scheduling too far into the future."] # [doc = "TODO: Benchmark this call"] pub fn schedule_swap_coldkey (& self , new_coldkey : types :: schedule_swap_coldkey :: NewColdkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleSwapColdkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "schedule_swap_coldkey" , types :: ScheduleSwapColdkey { new_coldkey , } , [66u8 , 101u8 , 41u8 , 48u8 , 176u8 , 72u8 , 84u8 , 50u8 , 72u8 , 60u8 , 8u8 , 241u8 , 164u8 , 96u8 , 160u8 , 55u8 , 31u8 , 204u8 , 167u8 , 233u8 , 184u8 , 5u8 , 106u8 , 178u8 , 49u8 , 38u8 , 199u8 , 171u8 , 125u8 , 2u8 , 163u8 , 98u8 ,]) } # [doc = "---- Set prometheus information for the neuron."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u16):"] # [doc = "\t-  The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u128):"] # [doc = "\t- The prometheus ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The prometheus port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The ip type v4 or v6."] # [doc = ""] pub fn set_identity (& self , name : types :: set_identity :: Name , url : types :: set_identity :: Url , github_repo : types :: set_identity :: GithubRepo , image : types :: set_identity :: Image , discord : types :: set_identity :: Discord , description : types :: set_identity :: Description , additional : types :: set_identity :: Additional ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetIdentity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_identity" , types :: SetIdentity { name , url , github_repo , image , discord , description , additional , } , [237u8 , 249u8 , 60u8 , 113u8 , 96u8 , 234u8 , 95u8 , 151u8 , 158u8 , 93u8 , 97u8 , 57u8 , 67u8 , 219u8 , 148u8 , 31u8 , 31u8 , 40u8 , 92u8 , 8u8 , 53u8 , 95u8 , 178u8 , 98u8 , 62u8 , 195u8 , 126u8 , 125u8 , 204u8 , 193u8 , 61u8 , 12u8 ,]) } # [doc = "---- Set the identity information for a subnet."] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the calling coldkey, which must be the owner of the subnet."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "    - The unique network identifier of the subnet."] # [doc = ""] # [doc = "* `subnet_name` (Vec<u8>):"] # [doc = "    - The name of the subnet."] # [doc = ""] # [doc = "* `github_repo` (Vec<u8>):"] # [doc = "    - The GitHub repository associated with the subnet identity."] # [doc = ""] # [doc = "* `subnet_contact` (Vec<u8>):"] # [doc = "    - The contact information for the subnet."] pub fn set_subnet_identity (& self , netuid : types :: set_subnet_identity :: Netuid , subnet_name : types :: set_subnet_identity :: SubnetName , github_repo : types :: set_subnet_identity :: GithubRepo , subnet_contact : types :: set_subnet_identity :: SubnetContact , subnet_url : types :: set_subnet_identity :: SubnetUrl , discord : types :: set_subnet_identity :: Discord , description : types :: set_subnet_identity :: Description , logo_url : types :: set_subnet_identity :: LogoUrl , additional : types :: set_subnet_identity :: Additional ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetSubnetIdentity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_subnet_identity" , types :: SetSubnetIdentity { netuid , subnet_name , github_repo , subnet_contact , subnet_url , discord , description , logo_url , additional , } , [32u8 , 41u8 , 124u8 , 227u8 , 220u8 , 125u8 , 125u8 , 188u8 , 171u8 , 36u8 , 184u8 , 137u8 , 43u8 , 80u8 , 117u8 , 121u8 , 239u8 , 63u8 , 198u8 , 224u8 , 229u8 , 97u8 , 56u8 , 251u8 , 41u8 , 243u8 , 53u8 , 38u8 , 240u8 , 65u8 , 101u8 , 186u8 ,]) } # [doc = "User register a new subnetwork"] pub fn register_network_with_identity (& self , hotkey : types :: register_network_with_identity :: Hotkey , identity : types :: register_network_with_identity :: Identity ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RegisterNetworkWithIdentity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "register_network_with_identity" , types :: RegisterNetworkWithIdentity { hotkey , identity , } , [12u8 , 245u8 , 161u8 , 216u8 , 254u8 , 186u8 , 104u8 , 80u8 , 5u8 , 125u8 , 46u8 , 34u8 , 242u8 , 101u8 , 15u8 , 127u8 , 106u8 , 146u8 , 62u8 , 75u8 , 251u8 , 140u8 , 136u8 , 170u8 , 237u8 , 41u8 , 105u8 , 202u8 , 162u8 , 233u8 , 174u8 , 243u8 ,]) } # [doc = "---- The implementation for the extrinsic unstake_all: Removes all stake from a hotkey account across all subnets and adds it onto a coldkey."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The associated hotkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "    - On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `NotRegistered`:"] # [doc = "    - Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* `NotEnoughStakeToWithdraw`:"] # [doc = "    - Thrown if there is not enough stake on the hotkey to withdraw this amount."] # [doc = ""] # [doc = "* `TxRateLimitExceeded`:"] # [doc = "    - Thrown if key has hit transaction rate limit"] pub fn unstake_all (& self , hotkey : types :: unstake_all :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UnstakeAll > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "unstake_all" , types :: UnstakeAll { hotkey , } , [6u8 , 179u8 , 13u8 , 170u8 , 228u8 , 87u8 , 90u8 , 211u8 , 172u8 , 136u8 , 36u8 , 255u8 , 26u8 , 26u8 , 247u8 , 122u8 , 1u8 , 23u8 , 119u8 , 215u8 , 238u8 , 115u8 , 250u8 , 172u8 , 137u8 , 152u8 , 220u8 , 52u8 , 126u8 , 24u8 , 23u8 , 141u8 ,]) } # [doc = "---- The implementation for the extrinsic unstake_all: Removes all stake from a hotkey account across all subnets and adds it onto a coldkey."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The associated hotkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "    - On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `NotRegistered`:"] # [doc = "    - Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* `NotEnoughStakeToWithdraw`:"] # [doc = "    - Thrown if there is not enough stake on the hotkey to withdraw this amount."] # [doc = ""] # [doc = "* `TxRateLimitExceeded`:"] # [doc = "    - Thrown if key has hit transaction rate limit"] pub fn unstake_all_alpha (& self , hotkey : types :: unstake_all_alpha :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UnstakeAllAlpha > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "unstake_all_alpha" , types :: UnstakeAllAlpha { hotkey , } , [154u8 , 142u8 , 32u8 , 183u8 , 143u8 , 119u8 , 9u8 , 143u8 , 204u8 , 220u8 , 41u8 , 213u8 , 34u8 , 206u8 , 48u8 , 96u8 , 37u8 , 214u8 , 2u8 , 95u8 , 51u8 , 11u8 , 86u8 , 230u8 , 149u8 , 99u8 , 119u8 , 251u8 , 209u8 , 42u8 , 85u8 , 93u8 ,]) } # [doc = "---- The implementation for the extrinsic move_stake: Moves specified amount of stake from a hotkey to another across subnets."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `origin_hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to move stake from."] # [doc = ""] # [doc = "* `destination_hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to move stake to."] # [doc = ""] # [doc = "* `origin_netuid` (T::AccountId):"] # [doc = "    - The subnet ID to move stake from."] # [doc = ""] # [doc = "* `destination_netuid` (T::AccountId):"] # [doc = "    - The subnet ID to move stake to."] # [doc = ""] # [doc = "* `alpha_amount` (T::AccountId):"] # [doc = "    - The alpha stake amount to move."] # [doc = ""] pub fn move_stake (& self , origin_hotkey : types :: move_stake :: OriginHotkey , destination_hotkey : types :: move_stake :: DestinationHotkey , origin_netuid : types :: move_stake :: OriginNetuid , destination_netuid : types :: move_stake :: DestinationNetuid , alpha_amount : types :: move_stake :: AlphaAmount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: MoveStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "move_stake" , types :: MoveStake { origin_hotkey , destination_hotkey , origin_netuid , destination_netuid , alpha_amount , } , [80u8 , 176u8 , 34u8 , 148u8 , 176u8 , 38u8 , 6u8 , 93u8 , 82u8 , 93u8 , 86u8 , 249u8 , 78u8 , 87u8 , 103u8 , 183u8 , 197u8 , 161u8 , 215u8 , 23u8 , 248u8 , 72u8 , 86u8 , 58u8 , 162u8 , 156u8 , 101u8 , 2u8 , 107u8 , 219u8 , 108u8 , 249u8 ,]) } # [doc = "Transfers a specified amount of stake from one coldkey to another, optionally across subnets,"] # [doc = "while keeping the same hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the `origin_coldkey`."] # [doc = "* `destination_coldkey` - The coldkey to which the stake is transferred."] # [doc = "* `hotkey` - The hotkey associated with the stake."] # [doc = "* `origin_netuid` - The network/subnet ID to move stake from."] # [doc = "* `destination_netuid` - The network/subnet ID to move stake to (for cross-subnet transfer)."] # [doc = "* `alpha_amount` - The amount of stake to transfer."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The origin is not signed by the correct coldkey."] # [doc = "* Either subnet does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(origin_coldkey, hotkey, origin_netuid)`."] # [doc = "* The transfer amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeTransferred` event on success."] pub fn transfer_stake (& self , destination_coldkey : types :: transfer_stake :: DestinationColdkey , hotkey : types :: transfer_stake :: Hotkey , origin_netuid : types :: transfer_stake :: OriginNetuid , destination_netuid : types :: transfer_stake :: DestinationNetuid , alpha_amount : types :: transfer_stake :: AlphaAmount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TransferStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "transfer_stake" , types :: TransferStake { destination_coldkey , hotkey , origin_netuid , destination_netuid , alpha_amount , } , [76u8 , 95u8 , 121u8 , 127u8 , 46u8 , 25u8 , 21u8 , 29u8 , 168u8 , 194u8 , 198u8 , 21u8 , 135u8 , 12u8 , 207u8 , 235u8 , 129u8 , 228u8 , 54u8 , 37u8 , 129u8 , 13u8 , 127u8 , 186u8 , 78u8 , 17u8 , 139u8 , 40u8 , 71u8 , 149u8 , 234u8 , 252u8 ,]) } # [doc = "Swaps a specified amount of stake from one subnet to another, while keeping the same coldkey and hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey whose stake is being swapped."] # [doc = "* `origin_netuid` - The network/subnet ID from which stake is removed."] # [doc = "* `destination_netuid` - The network/subnet ID to which stake is added."] # [doc = "* `alpha_amount` - The amount of stake to swap."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the correct coldkey (i.e., `coldkey_owns_hotkey` fails)."] # [doc = "* Either `origin_netuid` or `destination_netuid` does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(coldkey, hotkey, origin_netuid)`."] # [doc = "* The swap amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeSwapped` event on success."] pub fn swap_stake (& self , hotkey : types :: swap_stake :: Hotkey , origin_netuid : types :: swap_stake :: OriginNetuid , destination_netuid : types :: swap_stake :: DestinationNetuid , alpha_amount : types :: swap_stake :: AlphaAmount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SwapStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "swap_stake" , types :: SwapStake { hotkey , origin_netuid , destination_netuid , alpha_amount , } , [5u8 , 200u8 , 231u8 , 57u8 , 110u8 , 203u8 , 149u8 , 125u8 , 180u8 , 132u8 , 103u8 , 67u8 , 247u8 , 152u8 , 175u8 , 36u8 , 253u8 , 234u8 , 194u8 , 157u8 , 61u8 , 159u8 , 176u8 , 172u8 , 238u8 , 137u8 , 38u8 , 98u8 , 108u8 , 94u8 , 234u8 , 13u8 ,]) } # [doc = "--- Adds stake to a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (lower) the staking should execute."] # [doc = ""] # [doc = "In case if slippage occurs and the price shall move beyond the limit"] # [doc = "price, the staking order may execute only partially or not execute"] # [doc = "at all."] # [doc = ""] # [doc = "# Args:"] # [doc = " * 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = " * 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = " * 'amount_staked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = " * 'limit_price' (u64):"] # [doc = "\t- The limit price expressed in units of RAO per one Alpha."] # [doc = ""] # [doc = " * 'allow_partial' (bool):"] # [doc = "\t- Allows partial execution of the amount. If set to false, this becomes"] # [doc = "      fill or kill type or order."] # [doc = ""] # [doc = "# Event:"] # [doc = " * StakeAdded;"] # [doc = "\t- On the successfully adding stake to a global account."] # [doc = ""] # [doc = "# Raises:"] # [doc = " * 'NotEnoughBalanceToStake':"] # [doc = "\t- Not enough balance on the coldkey to add onto the global account."] # [doc = ""] # [doc = " * 'NonAssociatedColdKey':"] # [doc = "\t- The calling coldkey is not associated with this hotkey."] # [doc = ""] # [doc = " * 'BalanceWithdrawalError':"] # [doc = " \t- Errors stemming from transaction pallet."] # [doc = ""] pub fn add_stake_limit (& self , hotkey : types :: add_stake_limit :: Hotkey , netuid : types :: add_stake_limit :: Netuid , amount_staked : types :: add_stake_limit :: AmountStaked , limit_price : types :: add_stake_limit :: LimitPrice , allow_partial : types :: add_stake_limit :: AllowPartial ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddStakeLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "add_stake_limit" , types :: AddStakeLimit { hotkey , netuid , amount_staked , limit_price , allow_partial , } , [55u8 , 119u8 , 162u8 , 204u8 , 181u8 , 201u8 , 159u8 , 232u8 , 32u8 , 223u8 , 137u8 , 96u8 , 21u8 , 174u8 , 227u8 , 161u8 , 79u8 , 71u8 , 240u8 , 172u8 , 124u8 , 16u8 , 59u8 , 165u8 , 67u8 , 254u8 , 48u8 , 60u8 , 199u8 , 160u8 , 71u8 , 165u8 ,]) } # [doc = "--- Removes stake from a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (higher) the staking should execute."] # [doc = ""] # [doc = "In case if slippage occurs and the price shall move beyond the limit"] # [doc = "price, the staking order may execute only partially or not execute"] # [doc = "at all."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = "* 'amount_unstaked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = " * 'limit_price' (u64):"] # [doc = "    - The limit price expressed in units of RAO per one Alpha."] # [doc = ""] # [doc = " * 'allow_partial' (bool):"] # [doc = "    - Allows partial execution of the amount. If set to false, this becomes"] # [doc = "      fill or kill type or order."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "\t- On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* 'NotEnoughStakeToWithdraw':"] # [doc = "\t- Thrown if there is not enough stake on the hotkey to withdwraw this amount."] # [doc = ""] pub fn remove_stake_limit (& self , hotkey : types :: remove_stake_limit :: Hotkey , netuid : types :: remove_stake_limit :: Netuid , amount_unstaked : types :: remove_stake_limit :: AmountUnstaked , limit_price : types :: remove_stake_limit :: LimitPrice , allow_partial : types :: remove_stake_limit :: AllowPartial ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveStakeLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "remove_stake_limit" , types :: RemoveStakeLimit { hotkey , netuid , amount_unstaked , limit_price , allow_partial , } , [59u8 , 225u8 , 129u8 , 72u8 , 112u8 , 149u8 , 9u8 , 240u8 , 43u8 , 153u8 , 85u8 , 178u8 , 199u8 , 31u8 , 36u8 , 153u8 , 179u8 , 180u8 , 213u8 , 115u8 , 153u8 , 75u8 , 96u8 , 31u8 , 35u8 , 245u8 , 233u8 , 36u8 , 26u8 , 113u8 , 117u8 , 157u8 ,]) } # [doc = "Swaps a specified amount of stake from one subnet to another, while keeping the same coldkey and hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey whose stake is being swapped."] # [doc = "* `origin_netuid` - The network/subnet ID from which stake is removed."] # [doc = "* `destination_netuid` - The network/subnet ID to which stake is added."] # [doc = "* `alpha_amount` - The amount of stake to swap."] # [doc = "* `limit_price` - The limit price expressed in units of RAO per one Alpha."] # [doc = "* `allow_partial` - Allows partial execution of the amount. If set to false, this becomes fill or kill type or order."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the correct coldkey (i.e., `coldkey_owns_hotkey` fails)."] # [doc = "* Either `origin_netuid` or `destination_netuid` does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(coldkey, hotkey, origin_netuid)`."] # [doc = "* The swap amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeSwapped` event on success."] pub fn swap_stake_limit (& self , hotkey : types :: swap_stake_limit :: Hotkey , origin_netuid : types :: swap_stake_limit :: OriginNetuid , destination_netuid : types :: swap_stake_limit :: DestinationNetuid , alpha_amount : types :: swap_stake_limit :: AlphaAmount , limit_price : types :: swap_stake_limit :: LimitPrice , allow_partial : types :: swap_stake_limit :: AllowPartial ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SwapStakeLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "swap_stake_limit" , types :: SwapStakeLimit { hotkey , origin_netuid , destination_netuid , alpha_amount , limit_price , allow_partial , } , [173u8 , 145u8 , 7u8 , 70u8 , 213u8 , 178u8 , 149u8 , 157u8 , 158u8 , 173u8 , 251u8 , 93u8 , 1u8 , 46u8 , 255u8 , 39u8 , 55u8 , 66u8 , 153u8 , 147u8 , 144u8 , 218u8 , 93u8 , 53u8 , 165u8 , 156u8 , 196u8 , 17u8 , 174u8 , 138u8 , 148u8 , 91u8 ,]) } # [doc = "Attempts to associate a hotkey with a coldkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey to associate with the coldkey."] # [doc = ""] # [doc = "# Note"] # [doc = "Will charge based on the weight even if the hotkey is already associated with a coldkey."] pub fn try_associate_hotkey (& self , hotkey : types :: try_associate_hotkey :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TryAssociateHotkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "try_associate_hotkey" , types :: TryAssociateHotkey { hotkey , } , [212u8 , 87u8 , 45u8 , 211u8 , 243u8 , 195u8 , 169u8 , 16u8 , 19u8 , 100u8 , 14u8 , 250u8 , 14u8 , 45u8 , 182u8 , 7u8 , 193u8 , 14u8 , 184u8 , 161u8 , 10u8 , 42u8 , 59u8 , 227u8 , 209u8 , 24u8 , 164u8 , 216u8 , 115u8 , 145u8 , 214u8 , 187u8 ,]) } # [doc = "Initiates a call on a subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be signed by the subnet owner."] # [doc = "* `netuid` - The unique identifier of the subnet on which the call is being initiated."] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `FirstEmissionBlockNumberSet` event on success."] pub fn start_call (& self , netuid : types :: start_call :: Netuid ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: StartCall > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "start_call" , types :: StartCall { netuid , } , [238u8 , 117u8 , 50u8 , 112u8 , 77u8 , 220u8 , 171u8 , 204u8 , 228u8 , 188u8 , 158u8 , 42u8 , 164u8 , 105u8 , 112u8 , 208u8 , 206u8 , 122u8 , 242u8 , 83u8 , 241u8 , 118u8 , 235u8 , 154u8 , 84u8 , 242u8 , 236u8 , 88u8 , 211u8 , 151u8 , 93u8 , 212u8 ,]) } # [doc = "Attempts to associate a hotkey with an EVM key."] # [doc = ""] # [doc = "The signature will be checked to see if the recovered public key matches the `evm_key` provided."] # [doc = ""] # [doc = "The EVM key is expected to sign the message according to this formula to produce the signature:"] # [doc = "```text"] # [doc = "keccak_256(hotkey ++ keccak_256(block_number))"] # [doc = "```"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the `hotkey`."] # [doc = "* `netuid` - The netuid that the `hotkey` belongs to."] # [doc = "* `evm_key` - The EVM key to associate with the `hotkey`."] # [doc = "* `block_number` - The block number used in the `signature`."] # [doc = "* `signature` - A signed message by the `evm_key` containing the `hotkey` and the hashed `block_number`."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed."] # [doc = "* The hotkey does not belong to the subnet identified by the netuid."] # [doc = "* The EVM key cannot be recovered from the signature."] # [doc = "* The EVM key recovered from the signature does not match the given EVM key."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `EvmKeyAssociated` event on success"] pub fn associate_evm_key (& self , netuid : types :: associate_evm_key :: Netuid , evm_key : types :: associate_evm_key :: EvmKey , block_number : types :: associate_evm_key :: BlockNumber , signature : types :: associate_evm_key :: Signature ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AssociateEvmKey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "associate_evm_key" , types :: AssociateEvmKey { netuid , evm_key , block_number , signature , } , [32u8 , 123u8 , 51u8 , 207u8 , 109u8 , 240u8 , 44u8 , 243u8 , 193u8 , 35u8 , 218u8 , 147u8 , 113u8 , 185u8 , 245u8 , 76u8 , 218u8 , 57u8 , 71u8 , 123u8 , 176u8 , 178u8 , 122u8 , 28u8 , 248u8 , 206u8 , 215u8 , 246u8 , 6u8 , 81u8 , 60u8 , 73u8 ,]) } # [doc = "Recycles alpha from a cold/hot key pair, reducing AlphaOut on a subnet"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call (must be signed by the coldkey)"] # [doc = "* `hotkey` - The hotkey account"] # [doc = "* `amount` - The amount of alpha to recycle"] # [doc = "* `netuid` - The subnet ID"] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `TokensRecycled` event on success."] pub fn recycle_alpha (& self , hotkey : types :: recycle_alpha :: Hotkey , amount : types :: recycle_alpha :: Amount , netuid : types :: recycle_alpha :: Netuid ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RecycleAlpha > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "recycle_alpha" , types :: RecycleAlpha { hotkey , amount , netuid , } , [33u8 , 136u8 , 195u8 , 76u8 , 91u8 , 120u8 , 236u8 , 22u8 , 172u8 , 152u8 , 47u8 , 111u8 , 118u8 , 113u8 , 48u8 , 131u8 , 63u8 , 242u8 , 30u8 , 26u8 , 115u8 , 82u8 , 136u8 , 14u8 , 167u8 , 193u8 , 48u8 , 203u8 , 4u8 , 15u8 , 193u8 , 79u8 ,]) } # [doc = "Burns alpha from a cold/hot key pair without reducing `AlphaOut`"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call (must be signed by the coldkey)"] # [doc = "* `hotkey` - The hotkey account"] # [doc = "* `amount` - The amount of alpha to burn"] # [doc = "* `netuid` - The subnet ID"] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `TokensBurned` event on success."] pub fn burn_alpha (& self , hotkey : types :: burn_alpha :: Hotkey , amount : types :: burn_alpha :: Amount , netuid : types :: burn_alpha :: Netuid ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BurnAlpha > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "burn_alpha" , types :: BurnAlpha { hotkey , amount , netuid , } , [150u8 , 162u8 , 154u8 , 19u8 , 31u8 , 127u8 , 112u8 , 63u8 , 140u8 , 186u8 , 152u8 , 175u8 , 226u8 , 182u8 , 68u8 , 21u8 , 166u8 , 111u8 , 227u8 , 215u8 , 70u8 , 44u8 , 135u8 , 50u8 , 183u8 , 255u8 , 226u8 , 103u8 , 184u8 , 194u8 , 52u8 , 114u8 ,]) } # [doc = "Sets the pending childkey cooldown (in blocks). Root only."] pub fn set_pending_childkey_cooldown (& self , cooldown : types :: set_pending_childkey_cooldown :: Cooldown ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetPendingChildkeyCooldown > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_pending_childkey_cooldown" , types :: SetPendingChildkeyCooldown { cooldown , } , [84u8 , 127u8 , 99u8 , 184u8 , 8u8 , 38u8 , 140u8 , 140u8 , 44u8 , 209u8 , 170u8 , 22u8 , 9u8 , 130u8 , 140u8 , 168u8 , 227u8 , 136u8 , 92u8 , 172u8 , 39u8 , 10u8 , 235u8 , 141u8 , 52u8 , 64u8 , 216u8 , 14u8 , 43u8 , 86u8 , 192u8 , 117u8 ,]) } # [doc = "Removes all stake from a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (higher) the staking should execute."] # [doc = "Without limit_price it remove all the stake similar to `remove_stake` extrinsic"] pub fn remove_stake_full_limit (& self , hotkey : types :: remove_stake_full_limit :: Hotkey , netuid : types :: remove_stake_full_limit :: Netuid , limit_price : types :: remove_stake_full_limit :: LimitPrice ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveStakeFullLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "remove_stake_full_limit" , types :: RemoveStakeFullLimit { hotkey , netuid , limit_price , } , [228u8 , 64u8 , 65u8 , 13u8 , 154u8 , 12u8 , 4u8 , 110u8 , 46u8 , 253u8 , 209u8 , 55u8 , 56u8 , 51u8 , 221u8 , 240u8 , 46u8 , 70u8 , 9u8 , 98u8 , 88u8 , 155u8 , 173u8 , 111u8 , 181u8 , 188u8 , 216u8 , 133u8 , 39u8 , 199u8 , 146u8 , 58u8 ,]) } # [doc = "Register a new leased network."] # [doc = ""] # [doc = "The crowdloan's contributions are used to compute the share of the emissions that the contributors"] # [doc = "will receive as dividends."] # [doc = ""] # [doc = "The leftover cap is refunded to the contributors and the beneficiary."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `emissions_share` (Percent):"] # [doc = "    - The share of the emissions that the contributors will receive as dividends."] # [doc = ""] # [doc = "* `end_block` (Option<BlockNumberFor<T>>):"] # [doc = "    - The block at which the lease will end. If not defined, the lease is perpetual."] pub fn register_leased_network (& self , emissions_share : types :: register_leased_network :: EmissionsShare , end_block : types :: register_leased_network :: EndBlock ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RegisterLeasedNetwork > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "register_leased_network" , types :: RegisterLeasedNetwork { emissions_share , end_block , } , [91u8 , 194u8 , 226u8 , 243u8 , 136u8 , 58u8 , 202u8 , 189u8 , 62u8 , 222u8 , 24u8 , 245u8 , 58u8 , 27u8 , 49u8 , 136u8 , 242u8 , 148u8 , 54u8 , 54u8 , 113u8 , 211u8 , 148u8 , 44u8 , 182u8 , 25u8 , 147u8 , 131u8 , 130u8 , 10u8 , 9u8 , 116u8 ,]) } # [doc = "Terminate a lease."] # [doc = ""] # [doc = "The beneficiary can terminate the lease after the end block has passed and get the subnet ownership."] # [doc = "The subnet is transferred to the beneficiary and the lease is removed from storage."] # [doc = ""] # [doc = "**The hotkey must be owned by the beneficiary coldkey.**"] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `lease_id` (LeaseId):"] # [doc = "    - The ID of the lease to terminate."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey of the beneficiary to mark as subnet owner hotkey."] pub fn terminate_lease (& self , lease_id : types :: terminate_lease :: LeaseId , hotkey : types :: terminate_lease :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: TerminateLease > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "terminate_lease" , types :: TerminateLease { lease_id , hotkey , } , [217u8 , 89u8 , 206u8 , 150u8 , 243u8 , 76u8 , 153u8 , 242u8 , 33u8 , 43u8 , 81u8 , 149u8 , 204u8 , 206u8 , 225u8 , 159u8 , 169u8 , 210u8 , 133u8 , 232u8 , 112u8 , 162u8 , 240u8 , 188u8 , 10u8 , 147u8 , 66u8 , 224u8 , 149u8 , 176u8 , 170u8 , 132u8 ,]) } # [doc = "Updates the symbol for a subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or root."] # [doc = "* `netuid` - The unique identifier of the subnet on which the symbol is being set."] # [doc = "* `symbol` - The symbol to set for the subnet."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the subnet owner."] # [doc = "* The symbol does not exist."] # [doc = "* The symbol is already in use by another subnet."] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `SymbolUpdated` event on success."] pub fn update_symbol (& self , netuid : types :: update_symbol :: Netuid , symbol : types :: update_symbol :: Symbol ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpdateSymbol > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "update_symbol" , types :: UpdateSymbol { netuid , symbol , } , [134u8 , 241u8 , 164u8 , 150u8 , 185u8 , 169u8 , 235u8 , 10u8 , 34u8 , 210u8 , 193u8 , 65u8 , 223u8 , 161u8 , 156u8 , 231u8 , 11u8 , 14u8 , 158u8 , 114u8 , 218u8 , 255u8 , 145u8 , 212u8 , 152u8 , 80u8 , 107u8 , 250u8 , 218u8 , 212u8 , 138u8 , 194u8 ,]) } # [doc = "---- Used to commit timelock encrypted commit-reveal weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "* commit_reveal_version (`u16`):"] # [doc = "    - The client (bittensor-drand) version"] pub fn commit_timelocked_weights (& self , netuid : types :: commit_timelocked_weights :: Netuid , commit : types :: commit_timelocked_weights :: Commit , reveal_round : types :: commit_timelocked_weights :: RevealRound , commit_reveal_version : types :: commit_timelocked_weights :: CommitRevealVersion ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CommitTimelockedWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "commit_timelocked_weights" , types :: CommitTimelockedWeights { netuid , commit , reveal_round , commit_reveal_version , } , [182u8 , 151u8 , 45u8 , 217u8 , 127u8 , 97u8 , 136u8 , 2u8 , 99u8 , 44u8 , 228u8 , 222u8 , 59u8 , 250u8 , 52u8 , 231u8 , 124u8 , 147u8 , 111u8 , 204u8 , 249u8 , 139u8 , 94u8 , 98u8 , 230u8 , 75u8 , 165u8 , 185u8 , 101u8 , 88u8 , 53u8 , 168u8 ,]) } # [doc = "Set the autostake destination hotkey for a coldkey."] # [doc = ""] # [doc = "The caller selects a hotkey where all future rewards"] # [doc = "will be automatically staked."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to designate as the autostake destination."] pub fn set_coldkey_auto_stake_hotkey (& self , netuid : types :: set_coldkey_auto_stake_hotkey :: Netuid , hotkey : types :: set_coldkey_auto_stake_hotkey :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetColdkeyAutoStakeHotkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_coldkey_auto_stake_hotkey" , types :: SetColdkeyAutoStakeHotkey { netuid , hotkey , } , [197u8 , 157u8 , 254u8 , 76u8 , 11u8 , 41u8 , 210u8 , 97u8 , 228u8 , 162u8 , 35u8 , 59u8 , 172u8 , 101u8 , 234u8 , 251u8 , 179u8 , 69u8 , 137u8 , 110u8 , 177u8 , 156u8 , 85u8 , 212u8 , 247u8 , 213u8 , 221u8 , 225u8 , 199u8 , 219u8 , 63u8 , 163u8 ,]) } # [doc = "---- Used to commit timelock encrypted commit-reveal weight values to later be revealed for"] # [doc = "a mechanism."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "* commit_reveal_version (`u16`):"] # [doc = "    - The client (bittensor-drand) version"] pub fn commit_timelocked_mechanism_weights (& self , netuid : types :: commit_timelocked_mechanism_weights :: Netuid , mecid : types :: commit_timelocked_mechanism_weights :: Mecid , commit : types :: commit_timelocked_mechanism_weights :: Commit , reveal_round : types :: commit_timelocked_mechanism_weights :: RevealRound , commit_reveal_version : types :: commit_timelocked_mechanism_weights :: CommitRevealVersion ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CommitTimelockedMechanismWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "commit_timelocked_mechanism_weights" , types :: CommitTimelockedMechanismWeights { netuid , mecid , commit , reveal_round , commit_reveal_version , } , [144u8 , 191u8 , 179u8 , 136u8 , 110u8 , 213u8 , 24u8 , 166u8 , 65u8 , 179u8 , 162u8 , 60u8 , 120u8 , 85u8 , 107u8 , 255u8 , 99u8 , 9u8 , 203u8 , 211u8 , 203u8 , 244u8 , 28u8 , 77u8 , 207u8 , 57u8 , 212u8 , 107u8 , 251u8 , 169u8 , 186u8 , 3u8 ,]) } # [doc = "Remove a subnetwork"] # [doc = "The caller must be root"] pub fn root_dissolve_network (& self , netuid : types :: root_dissolve_network :: Netuid ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RootDissolveNetwork > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "root_dissolve_network" , types :: RootDissolveNetwork { netuid , } , [252u8 , 248u8 , 148u8 , 168u8 , 24u8 , 188u8 , 102u8 , 192u8 , 83u8 , 64u8 , 204u8 , 222u8 , 252u8 , 193u8 , 98u8 , 135u8 , 180u8 , 105u8 , 120u8 , 70u8 , 100u8 , 126u8 , 198u8 , 196u8 , 45u8 , 81u8 , 254u8 , 21u8 , 242u8 , 123u8 , 206u8 , 200u8 ,]) } # [doc = "--- Claims the root emissions for a coldkey."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "# Event:"] # [doc = "* RootClaimed;"] # [doc = "\t- On the successfully claiming the root emissions for a coldkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = ""] pub fn claim_root (& self , subnets : types :: claim_root :: Subnets ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ClaimRoot > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "claim_root" , types :: ClaimRoot { subnets , } , [245u8 , 207u8 , 109u8 , 112u8 , 205u8 , 88u8 , 130u8 , 168u8 , 115u8 , 229u8 , 142u8 , 68u8 , 85u8 , 226u8 , 79u8 , 11u8 , 160u8 , 211u8 , 13u8 , 199u8 , 57u8 , 235u8 , 144u8 , 205u8 , 12u8 , 112u8 , 123u8 , 79u8 , 125u8 , 92u8 , 11u8 , 144u8 ,]) } # [doc = "--- Sets the root claim type for the coldkey."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "# Event:"] # [doc = "* RootClaimTypeSet;"] # [doc = "\t- On the successfully setting the root claim type for the coldkey."] # [doc = ""] pub fn set_root_claim_type (& self , new_root_claim_type : types :: set_root_claim_type :: NewRootClaimType ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetRootClaimType > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "set_root_claim_type" , types :: SetRootClaimType { new_root_claim_type , } , [200u8 , 21u8 , 219u8 , 26u8 , 65u8 , 244u8 , 89u8 , 6u8 , 225u8 , 130u8 , 58u8 , 18u8 , 6u8 , 142u8 , 96u8 , 183u8 , 25u8 , 76u8 , 31u8 , 128u8 , 144u8 , 38u8 , 44u8 , 75u8 , 92u8 , 22u8 , 23u8 , 85u8 , 148u8 , 74u8 , 161u8 , 91u8 ,]) } # [doc = "--- Sets root claim number (sudo extrinsic). Zero disables auto-claim."] pub fn sudo_set_num_root_claims (& self , new_value : types :: sudo_set_num_root_claims :: NewValue ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNumRootClaims > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "sudo_set_num_root_claims" , types :: SudoSetNumRootClaims { new_value , } , [255u8 , 121u8 , 104u8 , 166u8 , 245u8 , 166u8 , 196u8 , 46u8 , 37u8 , 180u8 , 107u8 , 141u8 , 30u8 , 191u8 , 57u8 , 225u8 , 246u8 , 114u8 , 21u8 , 31u8 , 210u8 , 108u8 , 206u8 , 21u8 , 0u8 , 74u8 , 216u8 , 51u8 , 96u8 , 85u8 , 30u8 , 118u8 ,]) } # [doc = "--- Sets root claim threshold for subnet (sudo or owner origin)."] pub fn sudo_set_root_claim_threshold (& self , netuid : types :: sudo_set_root_claim_threshold :: Netuid , new_value : types :: sudo_set_root_claim_threshold :: NewValue ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetRootClaimThreshold > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SubtensorModule" , "sudo_set_root_claim_threshold" , types :: SudoSetRootClaimThreshold { netuid , new_value , } , [141u8 , 140u8 , 253u8 , 33u8 , 112u8 , 180u8 , 86u8 , 187u8 , 196u8 , 224u8 , 73u8 , 78u8 , 87u8 , 96u8 , 196u8 , 14u8 , 125u8 , 65u8 , 229u8 , 109u8 , 61u8 , 238u8 , 131u8 , 235u8 , 205u8 , 138u8 , 112u8 , 93u8 , 69u8 , 45u8 , 203u8 , 180u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_subtensor :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "a new network is added."] pub struct NetworkAdded (pub network_added :: Field0 , pub network_added :: Field1 ,) ; pub mod network_added { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NetworkAdded { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NetworkAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "a network is removed."] pub struct NetworkRemoved (pub network_removed :: Field0 ,) ; pub mod network_removed { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NetworkRemoved { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NetworkRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "stake has been transferred from the a coldkey account onto the hotkey staking account."] pub struct StakeAdded (pub stake_added :: Field0 , pub stake_added :: Field1 , pub stake_added :: Field2 , pub stake_added :: Field3 , pub stake_added :: Field4 , pub stake_added :: Field5 ,) ; pub mod stake_added { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u64 ; pub type Field3 = :: core :: primitive :: u64 ; pub type Field4 = :: core :: primitive :: u16 ; pub type Field5 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakeAdded { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "StakeAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "stake has been removed from the hotkey staking account onto the coldkey account."] pub struct StakeRemoved (pub stake_removed :: Field0 , pub stake_removed :: Field1 , pub stake_removed :: Field2 , pub stake_removed :: Field3 , pub stake_removed :: Field4 , pub stake_removed :: Field5 ,) ; pub mod stake_removed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u64 ; pub type Field3 = :: core :: primitive :: u64 ; pub type Field4 = :: core :: primitive :: u16 ; pub type Field5 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakeRemoved { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "StakeRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "stake has been moved from origin (hotkey, subnet ID) to destination (hotkey, subnet ID) of this amount (in TAO)."] pub struct StakeMoved (pub stake_moved :: Field0 , pub stake_moved :: Field1 , pub stake_moved :: Field2 , pub stake_moved :: Field3 , pub stake_moved :: Field4 , pub stake_moved :: Field5 ,) ; pub mod stake_moved { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u16 ; pub type Field3 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field4 = :: core :: primitive :: u16 ; pub type Field5 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakeMoved { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "StakeMoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "a caller successfully sets their weights on a subnetwork."] pub struct WeightsSet (pub weights_set :: Field0 , pub weights_set :: Field1 ,) ; pub mod weights_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WeightsSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "WeightsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "a new neuron account has been registered to the chain."] pub struct NeuronRegistered (pub neuron_registered :: Field0 , pub neuron_registered :: Field1 , pub neuron_registered :: Field2 ,) ; pub mod neuron_registered { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NeuronRegistered { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NeuronRegistered" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "multiple uids have been concurrently registered."] pub struct BulkNeuronsRegistered (pub bulk_neurons_registered :: Field0 , pub bulk_neurons_registered :: Field1 ,) ; pub mod bulk_neurons_registered { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BulkNeuronsRegistered { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BulkNeuronsRegistered" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "FIXME: Not used yet"] pub struct BulkBalancesSet (pub bulk_balances_set :: Field0 , pub bulk_balances_set :: Field1 ,) ; pub mod bulk_balances_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BulkBalancesSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BulkBalancesSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "max allowed uids has been set for a subnetwork."] pub struct MaxAllowedUidsSet (pub max_allowed_uids_set :: Field0 , pub max_allowed_uids_set :: Field1 ,) ; pub mod max_allowed_uids_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxAllowedUidsSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxAllowedUidsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "DEPRECATED: max weight limit updates are no longer supported."] pub struct MaxWeightLimitSet (pub max_weight_limit_set :: Field0 , pub max_weight_limit_set :: Field1 ,) ; pub mod max_weight_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxWeightLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxWeightLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the difficulty has been set for a subnet."] pub struct DifficultySet (pub difficulty_set :: Field0 , pub difficulty_set :: Field1 ,) ; pub mod difficulty_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DifficultySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "DifficultySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the adjustment interval is set for a subnet."] pub struct AdjustmentIntervalSet (pub adjustment_interval_set :: Field0 , pub adjustment_interval_set :: Field1 ,) ; pub mod adjustment_interval_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AdjustmentIntervalSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AdjustmentIntervalSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "registration per interval is set for a subnet."] pub struct RegistrationPerIntervalSet (pub registration_per_interval_set :: Field0 , pub registration_per_interval_set :: Field1 ,) ; pub mod registration_per_interval_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RegistrationPerIntervalSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "RegistrationPerIntervalSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "we set max registrations per block."] pub struct MaxRegistrationsPerBlockSet (pub max_registrations_per_block_set :: Field0 , pub max_registrations_per_block_set :: Field1 ,) ; pub mod max_registrations_per_block_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxRegistrationsPerBlockSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxRegistrationsPerBlockSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "an activity cutoff is set for a subnet."] pub struct ActivityCutoffSet (pub activity_cutoff_set :: Field0 , pub activity_cutoff_set :: Field1 ,) ; pub mod activity_cutoff_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ActivityCutoffSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ActivityCutoffSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Rho value is set."] pub struct RhoSet (pub rho_set :: Field0 , pub rho_set :: Field1 ,) ; pub mod rho_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RhoSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "RhoSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "steepness of the sigmoid used to compute alpha values."] pub struct AlphaSigmoidSteepnessSet (pub alpha_sigmoid_steepness_set :: Field0 , pub alpha_sigmoid_steepness_set :: Field1 ,) ; pub mod alpha_sigmoid_steepness_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: i16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AlphaSigmoidSteepnessSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AlphaSigmoidSteepnessSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Kappa is set for a subnet."] pub struct KappaSet (pub kappa_set :: Field0 , pub kappa_set :: Field1 ,) ; pub mod kappa_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for KappaSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "KappaSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "minimum allowed weight is set for a subnet."] pub struct MinAllowedWeightSet (pub min_allowed_weight_set :: Field0 , pub min_allowed_weight_set :: Field1 ,) ; pub mod min_allowed_weight_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinAllowedWeightSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinAllowedWeightSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the validator pruning length has been set."] pub struct ValidatorPruneLenSet (pub validator_prune_len_set :: Field0 , pub validator_prune_len_set :: Field1 ,) ; pub mod validator_prune_len_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ValidatorPruneLenSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ValidatorPruneLenSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the scaling law power has been set for a subnet."] pub struct ScalingLawPowerSet (pub scaling_law_power_set :: Field0 , pub scaling_law_power_set :: Field1 ,) ; pub mod scaling_law_power_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ScalingLawPowerSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ScalingLawPowerSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "weights set rate limit has been set for a subnet."] pub struct WeightsSetRateLimitSet (pub weights_set_rate_limit_set :: Field0 , pub weights_set_rate_limit_set :: Field1 ,) ; pub mod weights_set_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WeightsSetRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "WeightsSetRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "immunity period is set for a subnet."] pub struct ImmunityPeriodSet (pub immunity_period_set :: Field0 , pub immunity_period_set :: Field1 ,) ; pub mod immunity_period_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ImmunityPeriodSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ImmunityPeriodSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "bonds moving average is set for a subnet."] pub struct BondsMovingAverageSet (pub bonds_moving_average_set :: Field0 , pub bonds_moving_average_set :: Field1 ,) ; pub mod bonds_moving_average_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BondsMovingAverageSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BondsMovingAverageSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "bonds penalty is set for a subnet."] pub struct BondsPenaltySet (pub bonds_penalty_set :: Field0 , pub bonds_penalty_set :: Field1 ,) ; pub mod bonds_penalty_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BondsPenaltySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BondsPenaltySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "bonds reset is set for a subnet."] pub struct BondsResetOnSet (pub bonds_reset_on_set :: Field0 , pub bonds_reset_on_set :: Field1 ,) ; pub mod bonds_reset_on_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BondsResetOnSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BondsResetOnSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the max number of allowed validators on a subnet."] pub struct MaxAllowedValidatorsSet (pub max_allowed_validators_set :: Field0 , pub max_allowed_validators_set :: Field1 ,) ; pub mod max_allowed_validators_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxAllowedValidatorsSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxAllowedValidatorsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the axon server information is added to the network."] pub struct AxonServed (pub axon_served :: Field0 , pub axon_served :: Field1 ,) ; pub mod axon_served { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AxonServed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AxonServed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the prometheus server information is added to the network."] pub struct PrometheusServed (pub prometheus_served :: Field0 , pub prometheus_served :: Field1 ,) ; pub mod prometheus_served { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PrometheusServed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "PrometheusServed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "a hotkey has become a delegate."] pub struct DelegateAdded (pub delegate_added :: Field0 , pub delegate_added :: Field1 , pub delegate_added :: Field2 ,) ; pub mod delegate_added { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DelegateAdded { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "DelegateAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the default take is set."] pub struct DefaultTakeSet (pub default_take_set :: Field0 ,) ; pub mod default_take_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DefaultTakeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "DefaultTakeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "weights version key is set for a network."] pub struct WeightsVersionKeySet (pub weights_version_key_set :: Field0 , pub weights_version_key_set :: Field1 ,) ; pub mod weights_version_key_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WeightsVersionKeySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "WeightsVersionKeySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting min difficulty on a network."] pub struct MinDifficultySet (pub min_difficulty_set :: Field0 , pub min_difficulty_set :: Field1 ,) ; pub mod min_difficulty_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinDifficultySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinDifficultySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting max difficulty on a network."] pub struct MaxDifficultySet (pub max_difficulty_set :: Field0 , pub max_difficulty_set :: Field1 ,) ; pub mod max_difficulty_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxDifficultySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxDifficultySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the prometheus serving rate limit."] pub struct ServingRateLimitSet (pub serving_rate_limit_set :: Field0 , pub serving_rate_limit_set :: Field1 ,) ; pub mod serving_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ServingRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ServingRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting burn on a network."] pub struct BurnSet (pub burn_set :: Field0 , pub burn_set :: Field1 ,) ; pub mod burn_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BurnSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BurnSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting max burn on a network."] pub struct MaxBurnSet (pub max_burn_set :: Field0 , pub max_burn_set :: Field1 ,) ; pub mod max_burn_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxBurnSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxBurnSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting min burn on a network."] pub struct MinBurnSet (pub min_burn_set :: Field0 , pub min_burn_set :: Field1 ,) ; pub mod min_burn_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinBurnSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinBurnSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the transaction rate limit."] pub struct TxRateLimitSet (pub tx_rate_limit_set :: Field0 ,) ; pub mod tx_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TxRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TxRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the delegate take transaction rate limit."] pub struct TxDelegateTakeRateLimitSet (pub tx_delegate_take_rate_limit_set :: Field0 ,) ; pub mod tx_delegate_take_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TxDelegateTakeRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TxDelegateTakeRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the childkey take transaction rate limit."] pub struct TxChildKeyTakeRateLimitSet (pub tx_child_key_take_rate_limit_set :: Field0 ,) ; pub mod tx_child_key_take_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TxChildKeyTakeRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TxChildKeyTakeRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the admin freeze window length (last N blocks of tempo)"] pub struct AdminFreezeWindowSet (pub admin_freeze_window_set :: Field0 ,) ; pub mod admin_freeze_window_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AdminFreezeWindowSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AdminFreezeWindowSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the owner hyperparameter rate limit in epochs"] pub struct OwnerHyperparamRateLimitSet (pub owner_hyperparam_rate_limit_set :: Field0 ,) ; pub mod owner_hyperparam_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for OwnerHyperparamRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "OwnerHyperparamRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "minimum childkey take set"] pub struct MinChildKeyTakeSet (pub min_child_key_take_set :: Field0 ,) ; pub mod min_child_key_take_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinChildKeyTakeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinChildKeyTakeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "maximum childkey take set"] pub struct MaxChildKeyTakeSet (pub max_child_key_take_set :: Field0 ,) ; pub mod max_child_key_take_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxChildKeyTakeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxChildKeyTakeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "childkey take set"] pub struct ChildKeyTakeSet (pub child_key_take_set :: Field0 , pub child_key_take_set :: Field1 ,) ; pub mod child_key_take_set { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ChildKeyTakeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ChildKeyTakeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "a sudo call is done."] pub struct Sudid (pub sudid :: Field0 ,) ; pub mod sudid { use super :: runtime_types ; pub type Field0 = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Sudid { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "Sudid" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "registration is allowed/disallowed for a subnet."] pub struct RegistrationAllowed (pub registration_allowed :: Field0 , pub registration_allowed :: Field1 ,) ; pub mod registration_allowed { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RegistrationAllowed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "RegistrationAllowed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "POW registration is allowed/disallowed for a subnet."] pub struct PowRegistrationAllowed (pub pow_registration_allowed :: Field0 , pub pow_registration_allowed :: Field1 ,) ; pub mod pow_registration_allowed { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PowRegistrationAllowed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "PowRegistrationAllowed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting tempo on a network"] pub struct TempoSet (pub tempo_set :: Field0 , pub tempo_set :: Field1 ,) ; pub mod tempo_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TempoSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TempoSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the RAO recycled for registration."] pub struct RAORecycledForRegistrationSet (pub rao_recycled_for_registration_set :: Field0 , pub rao_recycled_for_registration_set :: Field1 ,) ; pub mod rao_recycled_for_registration_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RAORecycledForRegistrationSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "RAORecycledForRegistrationSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "min stake is set for validators to set weights."] pub struct StakeThresholdSet (pub stake_threshold_set :: Field0 ,) ; pub mod stake_threshold_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakeThresholdSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "StakeThresholdSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "setting the adjustment alpha on a subnet."] pub struct AdjustmentAlphaSet (pub adjustment_alpha_set :: Field0 , pub adjustment_alpha_set :: Field1 ,) ; pub mod adjustment_alpha_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AdjustmentAlphaSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AdjustmentAlphaSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the faucet it called on the test net."] pub struct Faucet (pub faucet :: Field0 , pub faucet :: Field1 ,) ; pub mod faucet { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Faucet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "Faucet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the subnet owner cut is set."] pub struct SubnetOwnerCutSet (pub subnet_owner_cut_set :: Field0 ,) ; pub mod subnet_owner_cut_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetOwnerCutSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetOwnerCutSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the network creation rate limit is set."] pub struct NetworkRateLimitSet (pub network_rate_limit_set :: Field0 ,) ; pub mod network_rate_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NetworkRateLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NetworkRateLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the network immunity period is set."] pub struct NetworkImmunityPeriodSet (pub network_immunity_period_set :: Field0 ,) ; pub mod network_immunity_period_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NetworkImmunityPeriodSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NetworkImmunityPeriodSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the network minimum locking cost is set."] pub struct NetworkMinLockCostSet (pub network_min_lock_cost_set :: Field0 ,) ; pub mod network_min_lock_cost_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NetworkMinLockCostSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NetworkMinLockCostSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the maximum number of subnets is set"] pub struct SubnetLimitSet (pub subnet_limit_set :: Field0 ,) ; pub mod subnet_limit_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetLimitSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetLimitSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the lock cost reduction is set"] pub struct NetworkLockCostReductionIntervalSet (pub network_lock_cost_reduction_interval_set :: Field0 ,) ; pub mod network_lock_cost_reduction_interval_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NetworkLockCostReductionIntervalSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "NetworkLockCostReductionIntervalSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the take for a delegate is decreased."] pub struct TakeDecreased (pub take_decreased :: Field0 , pub take_decreased :: Field1 , pub take_decreased :: Field2 ,) ; pub mod take_decreased { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TakeDecreased { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TakeDecreased" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the take for a delegate is increased."] pub struct TakeIncreased (pub take_increased :: Field0 , pub take_increased :: Field1 , pub take_increased :: Field2 ,) ; pub mod take_increased { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TakeIncreased { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TakeIncreased" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the hotkey is swapped"] pub struct HotkeySwapped { pub coldkey : hotkey_swapped :: Coldkey , pub old_hotkey : hotkey_swapped :: OldHotkey , pub new_hotkey : hotkey_swapped :: NewHotkey , } pub mod hotkey_swapped { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type OldHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for HotkeySwapped { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "HotkeySwapped" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "maximum delegate take is set by sudo/admin transaction"] pub struct MaxDelegateTakeSet (pub max_delegate_take_set :: Field0 ,) ; pub mod max_delegate_take_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MaxDelegateTakeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MaxDelegateTakeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "minimum delegate take is set by sudo/admin transaction"] pub struct MinDelegateTakeSet (pub min_delegate_take_set :: Field0 ,) ; pub mod min_delegate_take_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinDelegateTakeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinDelegateTakeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A coldkey has been swapped"] pub struct ColdkeySwapped { pub old_coldkey : coldkey_swapped :: OldColdkey , pub new_coldkey : coldkey_swapped :: NewColdkey , pub swap_cost : coldkey_swapped :: SwapCost , } pub mod coldkey_swapped { use super :: runtime_types ; pub type OldColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type SwapCost = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ColdkeySwapped { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ColdkeySwapped" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "All balance of a hotkey has been unstaked and transferred to a new coldkey"] pub struct AllBalanceUnstakedAndTransferredToNewColdkey { pub current_coldkey : all_balance_unstaked_and_transferred_to_new_coldkey :: CurrentColdkey , pub new_coldkey : all_balance_unstaked_and_transferred_to_new_coldkey :: NewColdkey , pub total_balance : all_balance_unstaked_and_transferred_to_new_coldkey :: TotalBalance , } pub mod all_balance_unstaked_and_transferred_to_new_coldkey { use super :: runtime_types ; pub type CurrentColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type TotalBalance = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AllBalanceUnstakedAndTransferredToNewColdkey { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AllBalanceUnstakedAndTransferredToNewColdkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A coldkey swap has been scheduled"] pub struct ColdkeySwapScheduled { pub old_coldkey : coldkey_swap_scheduled :: OldColdkey , pub new_coldkey : coldkey_swap_scheduled :: NewColdkey , pub execution_block : coldkey_swap_scheduled :: ExecutionBlock , pub swap_cost : coldkey_swap_scheduled :: SwapCost , } pub mod coldkey_swap_scheduled { use super :: runtime_types ; pub type OldColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewColdkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ExecutionBlock = :: core :: primitive :: u32 ; pub type SwapCost = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ColdkeySwapScheduled { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ColdkeySwapScheduled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The arbitration period has been extended"] pub struct ArbitrationPeriodExtended { pub coldkey : arbitration_period_extended :: Coldkey , } pub mod arbitration_period_extended { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ArbitrationPeriodExtended { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ArbitrationPeriodExtended" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Setting of children of a hotkey have been scheduled"] pub struct SetChildrenScheduled (pub set_children_scheduled :: Field0 , pub set_children_scheduled :: Field1 , pub set_children_scheduled :: Field2 , pub set_children_scheduled :: Field3 ,) ; pub mod set_children_scheduled { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: core :: primitive :: u64 ; pub type Field3 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SetChildrenScheduled { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SetChildrenScheduled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The children of a hotkey have been set"] pub struct SetChildren (pub set_children :: Field0 , pub set_children :: Field1 , pub set_children :: Field2 ,) ; pub mod set_children { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SetChildren { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SetChildren" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The identity of a coldkey has been set"] pub struct ChainIdentitySet (pub chain_identity_set :: Field0 ,) ; pub mod chain_identity_set { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ChainIdentitySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ChainIdentitySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The identity of a subnet has been set"] pub struct SubnetIdentitySet (pub subnet_identity_set :: Field0 ,) ; pub mod subnet_identity_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetIdentitySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetIdentitySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The identity of a subnet has been removed"] pub struct SubnetIdentityRemoved (pub subnet_identity_removed :: Field0 ,) ; pub mod subnet_identity_removed { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetIdentityRemoved { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetIdentityRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A dissolve network extrinsic scheduled."] pub struct DissolveNetworkScheduled { pub account : dissolve_network_scheduled :: Account , pub netuid : dissolve_network_scheduled :: Netuid , pub execution_block : dissolve_network_scheduled :: ExecutionBlock , } pub mod dissolve_network_scheduled { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type ExecutionBlock = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DissolveNetworkScheduled { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "DissolveNetworkScheduled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The duration of schedule coldkey swap has been set"] pub struct ColdkeySwapScheduleDurationSet (pub coldkey_swap_schedule_duration_set :: Field0 ,) ; pub mod coldkey_swap_schedule_duration_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ColdkeySwapScheduleDurationSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "ColdkeySwapScheduleDurationSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The duration of dissolve network has been set"] pub struct DissolveNetworkScheduleDurationSet (pub dissolve_network_schedule_duration_set :: Field0 ,) ; pub mod dissolve_network_schedule_duration_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DissolveNetworkScheduleDurationSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "DissolveNetworkScheduleDurationSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Commit-reveal v3 weights have been successfully committed."] # [doc = ""] # [doc = "- **who**: The account ID of the user committing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash representing the committed weights."] pub struct CRV3WeightsCommitted (pub crv3_weights_committed :: Field0 , pub crv3_weights_committed :: Field1 , pub crv3_weights_committed :: Field2 ,) ; pub mod crv3_weights_committed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CRV3WeightsCommitted { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "CRV3WeightsCommitted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Weights have been successfully committed."] # [doc = ""] # [doc = "- **who**: The account ID of the user committing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash representing the committed weights."] pub struct WeightsCommitted (pub weights_committed :: Field0 , pub weights_committed :: Field1 , pub weights_committed :: Field2 ,) ; pub mod weights_committed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WeightsCommitted { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "WeightsCommitted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Weights have been successfully revealed."] # [doc = ""] # [doc = "- **who**: The account ID of the user revealing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash of the revealed weights."] pub struct WeightsRevealed (pub weights_revealed :: Field0 , pub weights_revealed :: Field1 , pub weights_revealed :: Field2 ,) ; pub mod weights_revealed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WeightsRevealed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "WeightsRevealed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Weights have been successfully batch revealed."] # [doc = ""] # [doc = "- **who**: The account ID of the user revealing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **revealed_hashes**: A vector of hashes representing each revealed weight set."] pub struct WeightsBatchRevealed (pub weights_batch_revealed :: Field0 , pub weights_batch_revealed :: Field1 , pub weights_batch_revealed :: Field2 ,) ; pub mod weights_batch_revealed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for WeightsBatchRevealed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "WeightsBatchRevealed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A batch of weights (or commits) have been force-set."] # [doc = ""] # [doc = "- **netuids**: The netuids these weights were successfully set/committed for."] # [doc = "- **who**: The hotkey that set this batch."] pub struct BatchWeightsCompleted (pub batch_weights_completed :: Field0 , pub batch_weights_completed :: Field1 ,) ; pub mod batch_weights_completed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchWeightsCompleted { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BatchWeightsCompleted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A batch extrinsic completed but with some errors."] pub struct BatchCompletedWithErrors ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchCompletedWithErrors { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BatchCompletedWithErrors" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A weight set among a batch of weights failed."] # [doc = ""] # [doc = "- **error**: The dispatch error emitted by the failed item."] pub struct BatchWeightItemFailed (pub batch_weight_item_failed :: Field0 ,) ; pub mod batch_weight_item_failed { use super :: runtime_types ; pub type Field0 = runtime_types :: sp_runtime :: DispatchError ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchWeightItemFailed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "BatchWeightItemFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Stake has been transferred from one coldkey to another on the same subnet."] # [doc = "Parameters:"] # [doc = "(origin_coldkey, destination_coldkey, hotkey, origin_netuid, destination_netuid, amount)"] pub struct StakeTransferred (pub stake_transferred :: Field0 , pub stake_transferred :: Field1 , pub stake_transferred :: Field2 , pub stake_transferred :: Field3 , pub stake_transferred :: Field4 , pub stake_transferred :: Field5 ,) ; pub mod stake_transferred { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field3 = :: core :: primitive :: u16 ; pub type Field4 = :: core :: primitive :: u16 ; pub type Field5 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakeTransferred { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "StakeTransferred" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Stake has been swapped from one subnet to another for the same coldkey-hotkey pair."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(coldkey, hotkey, origin_netuid, destination_netuid, amount)"] pub struct StakeSwapped (pub stake_swapped :: Field0 , pub stake_swapped :: Field1 , pub stake_swapped :: Field2 , pub stake_swapped :: Field3 , pub stake_swapped :: Field4 ,) ; pub mod stake_swapped { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u16 ; pub type Field3 = :: core :: primitive :: u16 ; pub type Field4 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StakeSwapped { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "StakeSwapped" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event called when transfer is toggled on a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(netuid, bool)"] pub struct TransferToggle (pub transfer_toggle :: Field0 , pub transfer_toggle :: Field1 ,) ; pub mod transfer_toggle { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TransferToggle { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TransferToggle" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The owner hotkey for a subnet has been set."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(netuid, new_hotkey)"] pub struct SubnetOwnerHotkeySet (pub subnet_owner_hotkey_set :: Field0 , pub subnet_owner_hotkey_set :: Field1 ,) ; pub mod subnet_owner_hotkey_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetOwnerHotkeySet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetOwnerHotkeySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "FirstEmissionBlockNumber is set via start call extrinsic"] # [doc = ""] # [doc = "Parameters:"] # [doc = "netuid"] # [doc = "block number"] pub struct FirstEmissionBlockNumberSet (pub first_emission_block_number_set :: Field0 , pub first_emission_block_number_set :: Field1 ,) ; pub mod first_emission_block_number_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for FirstEmissionBlockNumberSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "FirstEmissionBlockNumberSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Alpha has been recycled, reducing AlphaOut on a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(coldkey, hotkey, amount, subnet_id)"] pub struct AlphaRecycled (pub alpha_recycled :: Field0 , pub alpha_recycled :: Field1 , pub alpha_recycled :: Field2 , pub alpha_recycled :: Field3 ,) ; pub mod alpha_recycled { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u64 ; pub type Field3 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AlphaRecycled { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AlphaRecycled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Alpha have been burned without reducing AlphaOut."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(coldkey, hotkey, amount, subnet_id)"] pub struct AlphaBurned (pub alpha_burned :: Field0 , pub alpha_burned :: Field1 , pub alpha_burned :: Field2 , pub alpha_burned :: Field3 ,) ; pub mod alpha_burned { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field2 = :: core :: primitive :: u64 ; pub type Field3 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AlphaBurned { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AlphaBurned" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An EVM key has been associated with a hotkey."] pub struct EvmKeyAssociated { pub netuid : evm_key_associated :: Netuid , pub hotkey : evm_key_associated :: Hotkey , pub evm_key : evm_key_associated :: EvmKey , pub block_associated : evm_key_associated :: BlockAssociated , } pub mod evm_key_associated { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type EvmKey = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type BlockAssociated = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for EvmKeyAssociated { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "EvmKeyAssociated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "CRV3 Weights have been successfully revealed."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **who**: The account ID of the user revealing the weights."] pub struct CRV3WeightsRevealed (pub crv3_weights_revealed :: Field0 , pub crv3_weights_revealed :: Field1 ,) ; pub mod crv3_weights_revealed { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CRV3WeightsRevealed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "CRV3WeightsRevealed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Commit-Reveal periods has been successfully set."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **periods**: The number of epochs before the reveal."] pub struct CommitRevealPeriodsSet (pub commit_reveal_periods_set :: Field0 , pub commit_reveal_periods_set :: Field1 ,) ; pub mod commit_reveal_periods_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CommitRevealPeriodsSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "CommitRevealPeriodsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Commit-Reveal has been successfully toggled."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **Enabled**: Is Commit-Reveal enabled."] pub struct CommitRevealEnabled (pub commit_reveal_enabled :: Field0 , pub commit_reveal_enabled :: Field1 ,) ; pub mod commit_reveal_enabled { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CommitRevealEnabled { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "CommitRevealEnabled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "the hotkey is swapped"] pub struct HotkeySwappedOnSubnet { pub coldkey : hotkey_swapped_on_subnet :: Coldkey , pub old_hotkey : hotkey_swapped_on_subnet :: OldHotkey , pub new_hotkey : hotkey_swapped_on_subnet :: NewHotkey , pub netuid : hotkey_swapped_on_subnet :: Netuid , } pub mod hotkey_swapped_on_subnet { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type OldHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for HotkeySwappedOnSubnet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "HotkeySwappedOnSubnet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A subnet lease has been created."] pub struct SubnetLeaseCreated { pub beneficiary : subnet_lease_created :: Beneficiary , pub lease_id : subnet_lease_created :: LeaseId , pub netuid : subnet_lease_created :: Netuid , pub end_block : subnet_lease_created :: EndBlock , } pub mod subnet_lease_created { use super :: runtime_types ; pub type Beneficiary = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type LeaseId = :: core :: primitive :: u32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type EndBlock = :: core :: option :: Option < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetLeaseCreated { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetLeaseCreated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A subnet lease has been terminated."] pub struct SubnetLeaseTerminated { pub beneficiary : subnet_lease_terminated :: Beneficiary , pub netuid : subnet_lease_terminated :: Netuid , } pub mod subnet_lease_terminated { use super :: runtime_types ; pub type Beneficiary = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetLeaseTerminated { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetLeaseTerminated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The symbol for a subnet has been updated."] pub struct SymbolUpdated { pub netuid : symbol_updated :: Netuid , pub symbol : symbol_updated :: Symbol , } pub mod symbol_updated { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Symbol = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SymbolUpdated { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SymbolUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Commit Reveal Weights version has been updated."] # [doc = ""] # [doc = "- **version**: The required version."] pub struct CommitRevealVersionSet (pub commit_reveal_version_set :: Field0 ,) ; pub mod commit_reveal_version_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CommitRevealVersionSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "CommitRevealVersionSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Timelocked weights have been successfully committed."] # [doc = ""] # [doc = "- **who**: The account ID of the user committing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash representing the committed weights."] # [doc = "- **reveal_round**: The round at which weights can be revealed."] pub struct TimelockedWeightsCommitted (pub timelocked_weights_committed :: Field0 , pub timelocked_weights_committed :: Field1 , pub timelocked_weights_committed :: Field2 , pub timelocked_weights_committed :: Field3 ,) ; pub mod timelocked_weights_committed { use super :: runtime_types ; pub type Field0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Field1 = :: core :: primitive :: u16 ; pub type Field2 = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Field3 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TimelockedWeightsCommitted { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TimelockedWeightsCommitted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Timelocked Weights have been successfully revealed."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **who**: The account ID of the user revealing the weights."] pub struct TimelockedWeightsRevealed (pub timelocked_weights_revealed :: Field0 , pub timelocked_weights_revealed :: Field1 ,) ; pub mod timelocked_weights_revealed { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TimelockedWeightsRevealed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "TimelockedWeightsRevealed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Auto-staking hotkey received stake"] pub struct AutoStakeAdded { pub netuid : auto_stake_added :: Netuid , pub destination : auto_stake_added :: Destination , pub hotkey : auto_stake_added :: Hotkey , pub owner : auto_stake_added :: Owner , pub incentive : auto_stake_added :: Incentive , } pub mod auto_stake_added { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Destination = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Owner = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Incentive = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AutoStakeAdded { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AutoStakeAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "End-of-epoch miner incentive alpha by UID"] pub struct IncentiveAlphaEmittedToMiners { pub netuid : incentive_alpha_emitted_to_miners :: Netuid , pub emissions : incentive_alpha_emitted_to_miners :: Emissions , } pub mod incentive_alpha_emitted_to_miners { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Emissions = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IncentiveAlphaEmittedToMiners { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "IncentiveAlphaEmittedToMiners" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The minimum allowed UIDs for a subnet have been set."] pub struct MinAllowedUidsSet (pub min_allowed_uids_set :: Field0 , pub min_allowed_uids_set :: Field1 ,) ; pub mod min_allowed_uids_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinAllowedUidsSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinAllowedUidsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The auto stake destination has been set."] # [doc = ""] # [doc = "- **coldkey**: The account ID of the coldkey."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **hotkey**: The account ID of the hotkey."] pub struct AutoStakeDestinationSet { pub coldkey : auto_stake_destination_set :: Coldkey , pub netuid : auto_stake_destination_set :: Netuid , pub hotkey : auto_stake_destination_set :: Hotkey , } pub mod auto_stake_destination_set { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AutoStakeDestinationSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "AutoStakeDestinationSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The minimum allowed non-Immune UIDs has been set."] pub struct MinNonImmuneUidsSet (pub min_non_immune_uids_set :: Field0 , pub min_non_immune_uids_set :: Field1 ,) ; pub mod min_non_immune_uids_set { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u16 ; pub type Field1 = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinNonImmuneUidsSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "MinNonImmuneUidsSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Root emissions have been claimed for a coldkey on all subnets and hotkeys."] # [doc = "Parameters:"] # [doc = "(coldkey)"] pub struct RootClaimed { pub coldkey : root_claimed :: Coldkey , } pub mod root_claimed { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RootClaimed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "RootClaimed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Root claim type for a coldkey has been set."] # [doc = "Parameters:"] # [doc = "(coldkey, u8)"] pub struct RootClaimTypeSet { pub coldkey : root_claim_type_set :: Coldkey , pub root_claim_type : root_claim_type_set :: RootClaimType , } pub mod root_claim_type_set { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type RootClaimType = runtime_types :: pallet_subtensor :: pallet :: RootClaimTypeEnum ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RootClaimTypeSet { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "RootClaimTypeSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Subnet lease dividends have been distributed."] pub struct SubnetLeaseDividendsDistributed { pub lease_id : subnet_lease_dividends_distributed :: LeaseId , pub contributor : subnet_lease_dividends_distributed :: Contributor , pub alpha : subnet_lease_dividends_distributed :: Alpha , } pub mod subnet_lease_dividends_distributed { use super :: runtime_types ; pub type LeaseId = :: core :: primitive :: u32 ; pub type Contributor = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Alpha = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SubnetLeaseDividendsDistributed { const PALLET : & 'static str = "SubtensorModule" ; const EVENT : & 'static str = "SubnetLeaseDividendsDistributed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod min_activity_cutoff { use super :: runtime_types ; pub type MinActivityCutoff = :: core :: primitive :: u16 ; } pub mod admin_freeze_window { use super :: runtime_types ; pub type AdminFreezeWindow = :: core :: primitive :: u16 ; } pub mod owner_hyperparam_rate_limit { use super :: runtime_types ; pub type OwnerHyperparamRateLimit = :: core :: primitive :: u16 ; } pub mod coldkey_swap_schedule_duration { use super :: runtime_types ; pub type ColdkeySwapScheduleDuration = :: core :: primitive :: u32 ; } pub mod coldkey_swap_reschedule_duration { use super :: runtime_types ; pub type ColdkeySwapRescheduleDuration = :: core :: primitive :: u32 ; } pub mod dissolve_network_schedule_duration { use super :: runtime_types ; pub type DissolveNetworkScheduleDuration = :: core :: primitive :: u32 ; } pub mod last_hotkey_swap_on_netuid { use super :: runtime_types ; pub type LastHotkeySwapOnNetuid = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod next_stake_job_id { use super :: runtime_types ; pub type NextStakeJobId = :: core :: primitive :: u64 ; } pub mod tao_weight { use super :: runtime_types ; pub type TaoWeight = :: core :: primitive :: u64 ; } pub mod ck_burn { use super :: runtime_types ; pub type CkBurn = :: core :: primitive :: u64 ; } pub mod max_delegate_take { use super :: runtime_types ; pub type MaxDelegateTake = :: core :: primitive :: u16 ; } pub mod min_delegate_take { use super :: runtime_types ; pub type MinDelegateTake = :: core :: primitive :: u16 ; } pub mod max_childkey_take { use super :: runtime_types ; pub type MaxChildkeyTake = :: core :: primitive :: u16 ; } pub mod min_childkey_take { use super :: runtime_types ; pub type MinChildkeyTake = :: core :: primitive :: u16 ; } pub mod owner { use super :: runtime_types ; pub type Owner = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod delegates { use super :: runtime_types ; pub type Delegates = :: core :: primitive :: u16 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod childkey_take { use super :: runtime_types ; pub type ChildkeyTake = :: core :: primitive :: u16 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod pending_child_keys { use super :: runtime_types ; pub type PendingChildKeys = (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > , :: core :: primitive :: u64 ,) ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod child_keys { use super :: runtime_types ; pub type ChildKeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod parent_keys { use super :: runtime_types ; pub type ParentKeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod alpha_dividends_per_subnet { use super :: runtime_types ; pub type AlphaDividendsPerSubnet = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod root_alpha_dividends_per_subnet { use super :: runtime_types ; pub type RootAlphaDividendsPerSubnet = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod block_emission { use super :: runtime_types ; pub type BlockEmission = :: core :: primitive :: u64 ; } pub mod last_hotkey_emission_on_netuid { use super :: runtime_types ; pub type LastHotkeyEmissionOnNetuid = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod subnet_limit { use super :: runtime_types ; pub type SubnetLimit = :: core :: primitive :: u16 ; } pub mod total_issuance { use super :: runtime_types ; pub type TotalIssuance = :: core :: primitive :: u64 ; } pub mod total_stake { use super :: runtime_types ; pub type TotalStake = :: core :: primitive :: u64 ; } pub mod subnet_moving_alpha { use super :: runtime_types ; pub type SubnetMovingAlpha = runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; } pub mod subnet_moving_price { use super :: runtime_types ; pub type SubnetMovingPrice = runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod root_prop { use super :: runtime_types ; pub type RootProp = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_volume { use super :: runtime_types ; pub type SubnetVolume = :: core :: primitive :: u128 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_tao { use super :: runtime_types ; pub type SubnetTao = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_tao_provided { use super :: runtime_types ; pub type SubnetTaoProvided = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_alpha_in_emission { use super :: runtime_types ; pub type SubnetAlphaInEmission = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_alpha_out_emission { use super :: runtime_types ; pub type SubnetAlphaOutEmission = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_tao_in_emission { use super :: runtime_types ; pub type SubnetTaoInEmission = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_alpha_in { use super :: runtime_types ; pub type SubnetAlphaIn = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_alpha_in_provided { use super :: runtime_types ; pub type SubnetAlphaInProvided = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_alpha_out { use super :: runtime_types ; pub type SubnetAlphaOut = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod staking_hotkeys { use super :: runtime_types ; pub type StakingHotkeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod owned_hotkeys { use super :: runtime_types ; pub type OwnedHotkeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod auto_stake_destination { use super :: runtime_types ; pub type AutoStakeDestination = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod auto_stake_destination_coldkeys { use super :: runtime_types ; pub type AutoStakeDestinationColdkeys = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod coldkey_swap_scheduled { use super :: runtime_types ; pub type ColdkeySwapScheduled = (:: core :: primitive :: u32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod total_hotkey_alpha { use super :: runtime_types ; pub type TotalHotkeyAlpha = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod total_hotkey_alpha_last_epoch { use super :: runtime_types ; pub type TotalHotkeyAlphaLastEpoch = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod total_hotkey_shares { use super :: runtime_types ; pub type TotalHotkeyShares = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod alpha { use super :: runtime_types ; pub type Alpha = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param2 = :: core :: primitive :: u16 ; } pub mod alpha_map_last_key { use super :: runtime_types ; pub type AlphaMapLastKey = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > ; } pub mod token_symbol { use super :: runtime_types ; pub type TokenSymbol = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_tao_flow { use super :: runtime_types ; pub type SubnetTaoFlow = :: core :: primitive :: i64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_ema_tao_flow { use super :: runtime_types ; pub type SubnetEmaTaoFlow = (:: core :: primitive :: u64 , runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ,) ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod tao_flow_cutoff { use super :: runtime_types ; pub type TaoFlowCutoff = runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; } pub mod flow_norm_exponent { use super :: runtime_types ; pub type FlowNormExponent = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; } pub mod flow_ema_smoothing_factor { use super :: runtime_types ; pub type FlowEmaSmoothingFactor = :: core :: primitive :: u64 ; } pub mod used_work { use super :: runtime_types ; pub type UsedWork = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } pub mod max_registrations_per_block { use super :: runtime_types ; pub type MaxRegistrationsPerBlock = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod total_networks { use super :: runtime_types ; pub type TotalNetworks = :: core :: primitive :: u16 ; } pub mod network_immunity_period { use super :: runtime_types ; pub type NetworkImmunityPeriod = :: core :: primitive :: u64 ; } pub mod network_min_lock_cost { use super :: runtime_types ; pub type NetworkMinLockCost = :: core :: primitive :: u64 ; } pub mod network_last_lock_cost { use super :: runtime_types ; pub type NetworkLastLockCost = :: core :: primitive :: u64 ; } pub mod network_lock_reduction_interval { use super :: runtime_types ; pub type NetworkLockReductionInterval = :: core :: primitive :: u64 ; } pub mod subnet_owner_cut { use super :: runtime_types ; pub type SubnetOwnerCut = :: core :: primitive :: u16 ; } pub mod network_rate_limit { use super :: runtime_types ; pub type NetworkRateLimit = :: core :: primitive :: u64 ; } pub mod nominator_min_required_stake { use super :: runtime_types ; pub type NominatorMinRequiredStake = :: core :: primitive :: u64 ; } pub mod weights_version_key_rate_limit { use super :: runtime_types ; pub type WeightsVersionKeyRateLimit = :: core :: primitive :: u64 ; } pub mod last_rate_limited_block { use super :: runtime_types ; pub type LastRateLimitedBlock = :: core :: primitive :: u64 ; pub type Param0 = runtime_types :: pallet_subtensor :: RateLimitKey < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } pub mod transfer_toggle { use super :: runtime_types ; pub type TransferToggle = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_locked { use super :: runtime_types ; pub type SubnetLocked = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod largest_locked { use super :: runtime_types ; pub type LargestLocked = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod tempo { use super :: runtime_types ; pub type Tempo = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod first_emission_block_number { use super :: runtime_types ; pub type FirstEmissionBlockNumber = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_mechanism { use super :: runtime_types ; pub type SubnetMechanism = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnetwork_n { use super :: runtime_types ; pub type SubnetworkN = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod networks_added { use super :: runtime_types ; pub type NetworksAdded = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod is_network_member { use super :: runtime_types ; pub type IsNetworkMember = :: core :: primitive :: bool ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod network_registration_allowed { use super :: runtime_types ; pub type NetworkRegistrationAllowed = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod network_pow_registration_allowed { use super :: runtime_types ; pub type NetworkPowRegistrationAllowed = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod network_registered_at { use super :: runtime_types ; pub type NetworkRegisteredAt = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod pending_server_emission { use super :: runtime_types ; pub type PendingServerEmission = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod pending_validator_emission { use super :: runtime_types ; pub type PendingValidatorEmission = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod pending_root_alpha_divs { use super :: runtime_types ; pub type PendingRootAlphaDivs = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod pending_owner_cut { use super :: runtime_types ; pub type PendingOwnerCut = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod blocks_since_last_step { use super :: runtime_types ; pub type BlocksSinceLastStep = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod last_mechansim_step_block { use super :: runtime_types ; pub type LastMechansimStepBlock = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_owner { use super :: runtime_types ; pub type SubnetOwner = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subnet_owner_hotkey { use super :: runtime_types ; pub type SubnetOwnerHotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod recycle_or_burn { use super :: runtime_types ; pub type RecycleOrBurn = runtime_types :: pallet_subtensor :: pallet :: RecycleOrBurnEnum ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod serving_rate_limit { use super :: runtime_types ; pub type ServingRateLimit = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod rho { use super :: runtime_types ; pub type Rho = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod alpha_sigmoid_steepness { use super :: runtime_types ; pub type AlphaSigmoidSteepness = :: core :: primitive :: i16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod kappa { use super :: runtime_types ; pub type Kappa = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod registrations_this_interval { use super :: runtime_types ; pub type RegistrationsThisInterval = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod pow_registrations_this_interval { use super :: runtime_types ; pub type PowRegistrationsThisInterval = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod burn_registrations_this_interval { use super :: runtime_types ; pub type BurnRegistrationsThisInterval = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod min_allowed_uids { use super :: runtime_types ; pub type MinAllowedUids = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod max_allowed_uids { use super :: runtime_types ; pub type MaxAllowedUids = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod immunity_period { use super :: runtime_types ; pub type ImmunityPeriod = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod activity_cutoff { use super :: runtime_types ; pub type ActivityCutoff = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod max_weights_limit { use super :: runtime_types ; pub type MaxWeightsLimit = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod weights_version_key { use super :: runtime_types ; pub type WeightsVersionKey = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod min_allowed_weights { use super :: runtime_types ; pub type MinAllowedWeights = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod max_allowed_validators { use super :: runtime_types ; pub type MaxAllowedValidators = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod adjustment_interval { use super :: runtime_types ; pub type AdjustmentInterval = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod bonds_moving_average { use super :: runtime_types ; pub type BondsMovingAverage = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod bonds_penalty { use super :: runtime_types ; pub type BondsPenalty = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod bonds_reset_on { use super :: runtime_types ; pub type BondsResetOn = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod weights_set_rate_limit { use super :: runtime_types ; pub type WeightsSetRateLimit = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod validator_prune_len { use super :: runtime_types ; pub type ValidatorPruneLen = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod scaling_law_power { use super :: runtime_types ; pub type ScalingLawPower = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod target_registrations_per_interval { use super :: runtime_types ; pub type TargetRegistrationsPerInterval = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod adjustment_alpha { use super :: runtime_types ; pub type AdjustmentAlpha = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod commit_reveal_weights_enabled { use super :: runtime_types ; pub type CommitRevealWeightsEnabled = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod burn { use super :: runtime_types ; pub type Burn = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod difficulty { use super :: runtime_types ; pub type Difficulty = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod min_burn { use super :: runtime_types ; pub type MinBurn = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod max_burn { use super :: runtime_types ; pub type MaxBurn = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod min_difficulty { use super :: runtime_types ; pub type MinDifficulty = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod max_difficulty { use super :: runtime_types ; pub type MaxDifficulty = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod last_adjustment_block { use super :: runtime_types ; pub type LastAdjustmentBlock = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod registrations_this_block { use super :: runtime_types ; pub type RegistrationsThisBlock = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod ema_price_halving_blocks { use super :: runtime_types ; pub type EmaPriceHalvingBlocks = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod rao_recycled_for_registration { use super :: runtime_types ; pub type RaoRecycledForRegistration = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod tx_rate_limit { use super :: runtime_types ; pub type TxRateLimit = :: core :: primitive :: u64 ; } pub mod tx_delegate_take_rate_limit { use super :: runtime_types ; pub type TxDelegateTakeRateLimit = :: core :: primitive :: u64 ; } pub mod tx_childkey_take_rate_limit { use super :: runtime_types ; pub type TxChildkeyTakeRateLimit = :: core :: primitive :: u64 ; } pub mod liquid_alpha_on { use super :: runtime_types ; pub type LiquidAlphaOn = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod yuma3_on { use super :: runtime_types ; pub type Yuma3On = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod alpha_values { use super :: runtime_types ; pub type AlphaValues = (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod subtoken_enabled { use super :: runtime_types ; pub type SubtokenEnabled = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod immune_owner_uids_limit { use super :: runtime_types ; pub type ImmuneOwnerUidsLimit = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod stake_weight { use super :: runtime_types ; pub type StakeWeight = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod uids { use super :: runtime_types ; pub type Uids = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod keys { use super :: runtime_types ; pub type Keys = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod loaded_emission { use super :: runtime_types ; pub type LoadedEmission = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u64 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod active { use super :: runtime_types ; pub type Active = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod rank { use super :: runtime_types ; pub type Rank = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod trust { use super :: runtime_types ; pub type Trust = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod consensus { use super :: runtime_types ; pub type Consensus = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod incentive { use super :: runtime_types ; pub type Incentive = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod dividends { use super :: runtime_types ; pub type Dividends = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod emission { use super :: runtime_types ; pub type Emission = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod last_update { use super :: runtime_types ; pub type LastUpdate = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod validator_trust { use super :: runtime_types ; pub type ValidatorTrust = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod pruning_scores { use super :: runtime_types ; pub type PruningScores = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod validator_permit { use super :: runtime_types ; pub type ValidatorPermit = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod weights { use super :: runtime_types ; pub type Weights = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod bonds { use super :: runtime_types ; pub type Bonds = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod block_at_registration { use super :: runtime_types ; pub type BlockAtRegistration = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod axons { use super :: runtime_types ; pub type Axons = runtime_types :: pallet_subtensor :: pallet :: AxonInfo ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod neuron_certificates { use super :: runtime_types ; pub type NeuronCertificates = runtime_types :: pallet_subtensor :: pallet :: NeuronCertificate ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod prometheus { use super :: runtime_types ; pub type Prometheus = runtime_types :: pallet_subtensor :: pallet :: PrometheusInfo ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod identities_v2 { use super :: runtime_types ; pub type IdentitiesV2 = runtime_types :: pallet_subtensor :: pallet :: ChainIdentityV2 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod subnet_identities_v3 { use super :: runtime_types ; pub type SubnetIdentitiesV3 = runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod transaction_key_last_block { use super :: runtime_types ; pub type TransactionKeyLastBlock = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u16 ; pub type Param2 = :: core :: primitive :: u16 ; } pub mod last_tx_block { use super :: runtime_types ; pub type LastTxBlock = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod last_tx_block_child_key_take { use super :: runtime_types ; pub type LastTxBlockChildKeyTake = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod last_tx_block_delegate_take { use super :: runtime_types ; pub type LastTxBlockDelegateTake = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod stake_threshold { use super :: runtime_types ; pub type StakeThreshold = :: core :: primitive :: u64 ; } pub mod weight_commits { use super :: runtime_types ; pub type WeightCommits = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u64 , :: core :: primitive :: u64 , :: core :: primitive :: u64 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod timelocked_weight_commits { use super :: runtime_types ; pub type TimelockedWeightCommits = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , :: core :: primitive :: u64 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u64 ; } pub mod crv3_weight_commits { use super :: runtime_types ; pub type Crv3WeightCommits = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , :: core :: primitive :: u64 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u64 ; } pub mod crv3_weight_commits_v2 { use super :: runtime_types ; pub type Crv3WeightCommitsV2 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , :: core :: primitive :: u64 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u64 ; } pub mod reveal_period_epochs { use super :: runtime_types ; pub type RevealPeriodEpochs = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod last_coldkey_hotkey_stake_block { use super :: runtime_types ; pub type LastColdkeyHotkeyStakeBlock = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod staking_operation_rate_limiter { use super :: runtime_types ; pub type StakingOperationRateLimiter = :: core :: primitive :: bool ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param2 = :: core :: primitive :: u16 ; } pub mod root_claimable_threshold { use super :: runtime_types ; pub type RootClaimableThreshold = runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod root_claimable { use super :: runtime_types ; pub type RootClaimable = :: subxt :: ext :: subxt_core :: utils :: KeyedVec < :: core :: primitive :: u16 , runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod root_claimed { use super :: runtime_types ; pub type RootClaimed = :: core :: primitive :: u128 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param2 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod root_claim_type { use super :: runtime_types ; pub type RootClaimType = runtime_types :: pallet_subtensor :: pallet :: RootClaimTypeEnum ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod staking_coldkeys_by_index { use super :: runtime_types ; pub type StakingColdkeysByIndex = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param0 = :: core :: primitive :: u64 ; } pub mod staking_coldkeys { use super :: runtime_types ; pub type StakingColdkeys = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod num_staking_coldkeys { use super :: runtime_types ; pub type NumStakingColdkeys = :: core :: primitive :: u64 ; } pub mod num_root_claim { use super :: runtime_types ; pub type NumRootClaim = :: core :: primitive :: u64 ; } pub mod associated_evm_address { use super :: runtime_types ; pub type AssociatedEvmAddress = (:: subxt :: ext :: subxt_core :: utils :: H160 , :: core :: primitive :: u64 ,) ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: core :: primitive :: u16 ; } pub mod subnet_leases { use super :: runtime_types ; pub type SubnetLeases = runtime_types :: pallet_subtensor :: subnets :: leasing :: SubnetLease < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 , :: core :: primitive :: u64 > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod subnet_lease_shares { use super :: runtime_types ; pub type SubnetLeaseShares = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod subnet_uid_to_lease_id { use super :: runtime_types ; pub type SubnetUidToLeaseId = :: core :: primitive :: u32 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod next_subnet_lease_id { use super :: runtime_types ; pub type NextSubnetLeaseId = :: core :: primitive :: u32 ; } pub mod accumulated_lease_dividends { use super :: runtime_types ; pub type AccumulatedLeaseDividends = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod commit_reveal_weights_version { use super :: runtime_types ; pub type CommitRevealWeightsVersion = :: core :: primitive :: u16 ; } pub mod network_registration_start_block { use super :: runtime_types ; pub type NetworkRegistrationStartBlock = :: core :: primitive :: u64 ; } pub mod min_non_immune_uids { use super :: runtime_types ; pub type MinNonImmuneUids = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod mechanism_count_current { use super :: runtime_types ; pub type MechanismCountCurrent = :: core :: primitive :: u8 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod mechanism_emission_split { use super :: runtime_types ; pub type MechanismEmissionSplit = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod has_migration_run { use super :: runtime_types ; pub type HasMigrationRun = :: core :: primitive :: bool ; pub type Param0 = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } pub mod pending_child_key_cooldown { use super :: runtime_types ; pub type PendingChildKeyCooldown = :: core :: primitive :: u64 ; } } pub struct StorageApi ; impl StorageApi { pub fn min_activity_cutoff (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_activity_cutoff :: MinActivityCutoff , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinActivityCutoff" , () , [21u8 , 123u8 , 162u8 , 205u8 , 232u8 , 171u8 , 55u8 , 152u8 , 86u8 , 37u8 , 65u8 , 186u8 , 63u8 , 248u8 , 155u8 , 234u8 , 244u8 , 180u8 , 236u8 , 101u8 , 64u8 , 232u8 , 43u8 , 181u8 , 36u8 , 18u8 , 30u8 , 120u8 , 210u8 , 183u8 , 4u8 , 82u8 ,]) } # [doc = " Global window (in blocks) at the end of each tempo where admin ops are disallowed"] pub fn admin_freeze_window (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: admin_freeze_window :: AdminFreezeWindow , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AdminFreezeWindow" , () , [151u8 , 97u8 , 132u8 , 224u8 , 168u8 , 58u8 , 155u8 , 55u8 , 253u8 , 209u8 , 114u8 , 83u8 , 132u8 , 130u8 , 22u8 , 28u8 , 84u8 , 157u8 , 133u8 , 238u8 , 70u8 , 240u8 , 4u8 , 61u8 , 115u8 , 55u8 , 141u8 , 8u8 , 14u8 , 77u8 , 18u8 , 25u8 ,]) } # [doc = " Global number of epochs used to rate limit subnet owner hyperparameter updates"] pub fn owner_hyperparam_rate_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: owner_hyperparam_rate_limit :: OwnerHyperparamRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "OwnerHyperparamRateLimit" , () , [248u8 , 49u8 , 158u8 , 212u8 , 44u8 , 238u8 , 239u8 , 34u8 , 176u8 , 110u8 , 65u8 , 49u8 , 63u8 , 249u8 , 37u8 , 255u8 , 163u8 , 176u8 , 170u8 , 84u8 , 31u8 , 200u8 , 247u8 , 152u8 , 32u8 , 178u8 , 152u8 , 96u8 , 80u8 , 21u8 , 137u8 , 220u8 ,]) } # [doc = " Duration of coldkey swap schedule before execution"] pub fn coldkey_swap_schedule_duration (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: coldkey_swap_schedule_duration :: ColdkeySwapScheduleDuration , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ColdkeySwapScheduleDuration" , () , [135u8 , 38u8 , 13u8 , 187u8 , 124u8 , 153u8 , 35u8 , 200u8 , 169u8 , 106u8 , 128u8 , 162u8 , 134u8 , 165u8 , 63u8 , 169u8 , 96u8 , 65u8 , 222u8 , 42u8 , 31u8 , 9u8 , 12u8 , 42u8 , 84u8 , 13u8 , 24u8 , 221u8 , 186u8 , 245u8 , 126u8 , 4u8 ,]) } # [doc = " Duration of coldkey swap reschedule before execution"] pub fn coldkey_swap_reschedule_duration (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: coldkey_swap_reschedule_duration :: ColdkeySwapRescheduleDuration , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ColdkeySwapRescheduleDuration" , () , [115u8 , 173u8 , 172u8 , 119u8 , 70u8 , 246u8 , 8u8 , 217u8 , 21u8 , 150u8 , 24u8 , 119u8 , 201u8 , 249u8 , 112u8 , 200u8 , 219u8 , 79u8 , 187u8 , 250u8 , 173u8 , 88u8 , 226u8 , 50u8 , 137u8 , 47u8 , 51u8 , 206u8 , 1u8 , 187u8 , 184u8 , 201u8 ,]) } # [doc = " Duration of dissolve network schedule before execution"] pub fn dissolve_network_schedule_duration (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: dissolve_network_schedule_duration :: DissolveNetworkScheduleDuration , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "DissolveNetworkScheduleDuration" , () , [211u8 , 28u8 , 73u8 , 53u8 , 21u8 , 221u8 , 68u8 , 103u8 , 73u8 , 81u8 , 235u8 , 185u8 , 185u8 , 120u8 , 64u8 , 149u8 , 189u8 , 49u8 , 250u8 , 173u8 , 74u8 , 31u8 , 228u8 , 139u8 , 187u8 , 6u8 , 77u8 , 242u8 , 15u8 , 41u8 , 184u8 , 27u8 ,]) } # [doc = " --- DMap ( netuid, coldkey ) --> blocknumber | last hotkey swap on network."] pub fn last_hotkey_swap_on_netuid_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_hotkey_swap_on_netuid :: LastHotkeySwapOnNetuid , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastHotkeySwapOnNetuid" , () , [114u8 , 241u8 , 130u8 , 146u8 , 97u8 , 174u8 , 213u8 , 147u8 , 4u8 , 68u8 , 221u8 , 219u8 , 136u8 , 199u8 , 62u8 , 69u8 , 243u8 , 208u8 , 101u8 , 234u8 , 95u8 , 167u8 , 30u8 , 154u8 , 6u8 , 185u8 , 75u8 , 247u8 , 49u8 , 102u8 , 10u8 , 130u8 ,]) } # [doc = " --- DMap ( netuid, coldkey ) --> blocknumber | last hotkey swap on network."] pub fn last_hotkey_swap_on_netuid_iter1 (& self , _0 : types :: last_hotkey_swap_on_netuid :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_hotkey_swap_on_netuid :: Param0 > , types :: last_hotkey_swap_on_netuid :: LastHotkeySwapOnNetuid , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastHotkeySwapOnNetuid" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [114u8 , 241u8 , 130u8 , 146u8 , 97u8 , 174u8 , 213u8 , 147u8 , 4u8 , 68u8 , 221u8 , 219u8 , 136u8 , 199u8 , 62u8 , 69u8 , 243u8 , 208u8 , 101u8 , 234u8 , 95u8 , 167u8 , 30u8 , 154u8 , 6u8 , 185u8 , 75u8 , 247u8 , 49u8 , 102u8 , 10u8 , 130u8 ,]) } # [doc = " --- DMap ( netuid, coldkey ) --> blocknumber | last hotkey swap on network."] pub fn last_hotkey_swap_on_netuid (& self , _0 : types :: last_hotkey_swap_on_netuid :: Param0 , _1 : types :: last_hotkey_swap_on_netuid :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_hotkey_swap_on_netuid :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_hotkey_swap_on_netuid :: Param1 > ,) , types :: last_hotkey_swap_on_netuid :: LastHotkeySwapOnNetuid , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastHotkeySwapOnNetuid" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [114u8 , 241u8 , 130u8 , 146u8 , 97u8 , 174u8 , 213u8 , 147u8 , 4u8 , 68u8 , 221u8 , 219u8 , 136u8 , 199u8 , 62u8 , 69u8 , 243u8 , 208u8 , 101u8 , 234u8 , 95u8 , 167u8 , 30u8 , 154u8 , 6u8 , 185u8 , 75u8 , 247u8 , 49u8 , 102u8 , 10u8 , 130u8 ,]) } # [doc = " Ensures unique IDs for StakeJobs storage map"] pub fn next_stake_job_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_stake_job_id :: NextStakeJobId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NextStakeJobId" , () , [204u8 , 249u8 , 198u8 , 215u8 , 96u8 , 117u8 , 180u8 , 208u8 , 179u8 , 132u8 , 75u8 , 66u8 , 248u8 , 86u8 , 158u8 , 79u8 , 214u8 , 117u8 , 165u8 , 204u8 , 49u8 , 87u8 , 250u8 , 242u8 , 242u8 , 151u8 , 41u8 , 28u8 , 200u8 , 47u8 , 30u8 , 223u8 ,]) } # [doc = " ============================"] # [doc = " ==== Staking Variables ===="] # [doc = " ============================"] # [doc = " The Subtensor [`TotalIssuance`] represents the total issuance of tokens on the Bittensor network."] # [doc = ""] # [doc = " It is comprised of three parts:"] # [doc = " - The total amount of issued tokens, tracked in the TotalIssuance of the Balances pallet"] # [doc = " - The total amount of tokens staked in the system, tracked in [`TotalStake`]"] # [doc = " - The total amount of tokens locked up for subnet reg, tracked in [`TotalSubnetLocked`] attained by iterating over subnet lock."] # [doc = ""] # [doc = " Eventually, Bittensor should migrate to using Holds afterwhich time we will not require this"] # [doc = " separate accounting."] # [doc = " --- ITEM --> Global weight"] pub fn tao_weight (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tao_weight :: TaoWeight , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TaoWeight" , () , [199u8 , 31u8 , 192u8 , 20u8 , 182u8 , 250u8 , 81u8 , 63u8 , 167u8 , 58u8 , 238u8 , 35u8 , 220u8 , 52u8 , 52u8 , 197u8 , 121u8 , 156u8 , 186u8 , 251u8 , 209u8 , 84u8 , 217u8 , 107u8 , 239u8 , 100u8 , 188u8 , 234u8 , 22u8 , 119u8 , 226u8 , 47u8 ,]) } # [doc = " --- ITEM --> CK burn"] pub fn ck_burn (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: ck_burn :: CkBurn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CKBurn" , () , [193u8 , 71u8 , 203u8 , 37u8 , 183u8 , 175u8 , 55u8 , 94u8 , 76u8 , 64u8 , 158u8 , 64u8 , 26u8 , 31u8 , 179u8 , 64u8 , 238u8 , 35u8 , 244u8 , 50u8 , 107u8 , 105u8 , 98u8 , 33u8 , 247u8 , 148u8 , 119u8 , 34u8 , 215u8 , 48u8 , 50u8 , 114u8 ,]) } # [doc = " --- ITEM ( default_delegate_take )"] pub fn max_delegate_take (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_delegate_take :: MaxDelegateTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxDelegateTake" , () , [140u8 , 164u8 , 254u8 , 107u8 , 142u8 , 50u8 , 152u8 , 230u8 , 173u8 , 9u8 , 98u8 , 65u8 , 238u8 , 216u8 , 232u8 , 162u8 , 68u8 , 74u8 , 9u8 , 88u8 , 99u8 , 40u8 , 69u8 , 238u8 , 60u8 , 137u8 , 184u8 , 169u8 , 173u8 , 29u8 , 203u8 , 190u8 ,]) } # [doc = " --- ITEM ( min_delegate_take )"] pub fn min_delegate_take (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_delegate_take :: MinDelegateTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinDelegateTake" , () , [253u8 , 210u8 , 73u8 , 231u8 , 97u8 , 29u8 , 51u8 , 11u8 , 3u8 , 233u8 , 117u8 , 175u8 , 223u8 , 31u8 , 81u8 , 246u8 , 186u8 , 58u8 , 255u8 , 62u8 , 65u8 , 236u8 , 204u8 , 200u8 , 42u8 , 125u8 , 127u8 , 209u8 , 113u8 , 241u8 , 165u8 , 234u8 ,]) } # [doc = " --- ITEM ( default_childkey_take )"] pub fn max_childkey_take (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_childkey_take :: MaxChildkeyTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxChildkeyTake" , () , [232u8 , 205u8 , 201u8 , 56u8 , 228u8 , 129u8 , 26u8 , 148u8 , 26u8 , 152u8 , 98u8 , 38u8 , 249u8 , 185u8 , 100u8 , 185u8 , 221u8 , 16u8 , 150u8 , 192u8 , 48u8 , 103u8 , 29u8 , 183u8 , 241u8 , 152u8 , 234u8 , 210u8 , 179u8 , 100u8 , 213u8 , 108u8 ,]) } # [doc = " --- ITEM ( min_childkey_take )"] pub fn min_childkey_take (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_childkey_take :: MinChildkeyTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinChildkeyTake" , () , [34u8 , 107u8 , 136u8 , 127u8 , 157u8 , 247u8 , 199u8 , 54u8 , 84u8 , 226u8 , 206u8 , 246u8 , 19u8 , 95u8 , 3u8 , 152u8 , 190u8 , 207u8 , 171u8 , 143u8 , 224u8 , 125u8 , 113u8 , 50u8 , 201u8 , 229u8 , 144u8 , 172u8 , 64u8 , 182u8 , 228u8 , 107u8 ,]) } # [doc = " MAP ( hot ) --> cold | Returns the controlling coldkey for a hotkey"] pub fn owner_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: owner :: Owner , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Owner" , () , [42u8 , 187u8 , 183u8 , 236u8 , 168u8 , 211u8 , 164u8 , 206u8 , 104u8 , 89u8 , 156u8 , 12u8 , 1u8 , 65u8 , 130u8 , 16u8 , 104u8 , 229u8 , 168u8 , 245u8 , 123u8 , 31u8 , 228u8 , 72u8 , 122u8 , 14u8 , 38u8 , 188u8 , 45u8 , 35u8 , 16u8 , 132u8 ,]) } # [doc = " MAP ( hot ) --> cold | Returns the controlling coldkey for a hotkey"] pub fn owner (& self , _0 : types :: owner :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: owner :: Param0 > , types :: owner :: Owner , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Owner" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [42u8 , 187u8 , 183u8 , 236u8 , 168u8 , 211u8 , 164u8 , 206u8 , 104u8 , 89u8 , 156u8 , 12u8 , 1u8 , 65u8 , 130u8 , 16u8 , 104u8 , 229u8 , 168u8 , 245u8 , 123u8 , 31u8 , 228u8 , 72u8 , 122u8 , 14u8 , 38u8 , 188u8 , 45u8 , 35u8 , 16u8 , 132u8 ,]) } # [doc = " MAP ( hot ) --> take | Returns the hotkey delegation take. And signals that this key is open for delegation"] pub fn delegates_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: delegates :: Delegates , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Delegates" , () , [44u8 , 10u8 , 104u8 , 255u8 , 105u8 , 110u8 , 131u8 , 174u8 , 247u8 , 100u8 , 165u8 , 220u8 , 198u8 , 71u8 , 212u8 , 83u8 , 238u8 , 109u8 , 61u8 , 53u8 , 175u8 , 29u8 , 233u8 , 38u8 , 56u8 , 76u8 , 41u8 , 207u8 , 169u8 , 70u8 , 141u8 , 251u8 ,]) } # [doc = " MAP ( hot ) --> take | Returns the hotkey delegation take. And signals that this key is open for delegation"] pub fn delegates (& self , _0 : types :: delegates :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: delegates :: Param0 > , types :: delegates :: Delegates , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Delegates" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [44u8 , 10u8 , 104u8 , 255u8 , 105u8 , 110u8 , 131u8 , 174u8 , 247u8 , 100u8 , 165u8 , 220u8 , 198u8 , 71u8 , 212u8 , 83u8 , 238u8 , 109u8 , 61u8 , 53u8 , 175u8 , 29u8 , 233u8 , 38u8 , 56u8 , 76u8 , 41u8 , 207u8 , 169u8 , 70u8 , 141u8 , 251u8 ,]) } # [doc = " DMAP ( hot, netuid ) --> take | Returns the hotkey childkey take for a specific subnet"] pub fn childkey_take_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: childkey_take :: ChildkeyTake , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ChildkeyTake" , () , [130u8 , 71u8 , 111u8 , 167u8 , 104u8 , 2u8 , 244u8 , 86u8 , 145u8 , 164u8 , 235u8 , 205u8 , 163u8 , 63u8 , 188u8 , 204u8 , 147u8 , 179u8 , 72u8 , 153u8 , 247u8 , 116u8 , 17u8 , 228u8 , 121u8 , 77u8 , 172u8 , 133u8 , 164u8 , 248u8 , 158u8 , 54u8 ,]) } # [doc = " DMAP ( hot, netuid ) --> take | Returns the hotkey childkey take for a specific subnet"] pub fn childkey_take_iter1 (& self , _0 : types :: childkey_take :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: childkey_take :: Param0 > , types :: childkey_take :: ChildkeyTake , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ChildkeyTake" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [130u8 , 71u8 , 111u8 , 167u8 , 104u8 , 2u8 , 244u8 , 86u8 , 145u8 , 164u8 , 235u8 , 205u8 , 163u8 , 63u8 , 188u8 , 204u8 , 147u8 , 179u8 , 72u8 , 153u8 , 247u8 , 116u8 , 17u8 , 228u8 , 121u8 , 77u8 , 172u8 , 133u8 , 164u8 , 248u8 , 158u8 , 54u8 ,]) } # [doc = " DMAP ( hot, netuid ) --> take | Returns the hotkey childkey take for a specific subnet"] pub fn childkey_take (& self , _0 : types :: childkey_take :: Param0 , _1 : types :: childkey_take :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: childkey_take :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: childkey_take :: Param1 > ,) , types :: childkey_take :: ChildkeyTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ChildkeyTake" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [130u8 , 71u8 , 111u8 , 167u8 , 104u8 , 2u8 , 244u8 , 86u8 , 145u8 , 164u8 , 235u8 , 205u8 , 163u8 , 63u8 , 188u8 , 204u8 , 147u8 , 179u8 , 72u8 , 153u8 , 247u8 , 116u8 , 17u8 , 228u8 , 121u8 , 77u8 , 172u8 , 133u8 , 164u8 , 248u8 , 158u8 , 54u8 ,]) } # [doc = " DMAP ( netuid, parent ) --> (Vec<(proportion,child)>, cool_down_block)"] pub fn pending_child_keys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_child_keys :: PendingChildKeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingChildKeys" , () , [144u8 , 247u8 , 102u8 , 71u8 , 226u8 , 120u8 , 229u8 , 68u8 , 86u8 , 204u8 , 239u8 , 66u8 , 53u8 , 93u8 , 152u8 , 88u8 , 94u8 , 132u8 , 131u8 , 112u8 , 137u8 , 189u8 , 180u8 , 191u8 , 98u8 , 119u8 , 135u8 , 244u8 , 60u8 , 153u8 , 127u8 , 233u8 ,]) } # [doc = " DMAP ( netuid, parent ) --> (Vec<(proportion,child)>, cool_down_block)"] pub fn pending_child_keys_iter1 (& self , _0 : types :: pending_child_keys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_child_keys :: Param0 > , types :: pending_child_keys :: PendingChildKeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingChildKeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [144u8 , 247u8 , 102u8 , 71u8 , 226u8 , 120u8 , 229u8 , 68u8 , 86u8 , 204u8 , 239u8 , 66u8 , 53u8 , 93u8 , 152u8 , 88u8 , 94u8 , 132u8 , 131u8 , 112u8 , 137u8 , 189u8 , 180u8 , 191u8 , 98u8 , 119u8 , 135u8 , 244u8 , 60u8 , 153u8 , 127u8 , 233u8 ,]) } # [doc = " DMAP ( netuid, parent ) --> (Vec<(proportion,child)>, cool_down_block)"] pub fn pending_child_keys (& self , _0 : types :: pending_child_keys :: Param0 , _1 : types :: pending_child_keys :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_child_keys :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_child_keys :: Param1 > ,) , types :: pending_child_keys :: PendingChildKeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingChildKeys" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [144u8 , 247u8 , 102u8 , 71u8 , 226u8 , 120u8 , 229u8 , 68u8 , 86u8 , 204u8 , 239u8 , 66u8 , 53u8 , 93u8 , 152u8 , 88u8 , 94u8 , 132u8 , 131u8 , 112u8 , 137u8 , 189u8 , 180u8 , 191u8 , 98u8 , 119u8 , 135u8 , 244u8 , 60u8 , 153u8 , 127u8 , 233u8 ,]) } # [doc = " DMAP ( parent, netuid ) --> Vec<(proportion,child)>"] pub fn child_keys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: child_keys :: ChildKeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ChildKeys" , () , [249u8 , 196u8 , 42u8 , 188u8 , 225u8 , 115u8 , 85u8 , 228u8 , 212u8 , 248u8 , 101u8 , 244u8 , 223u8 , 151u8 , 219u8 , 128u8 , 204u8 , 176u8 , 52u8 , 61u8 , 59u8 , 213u8 , 97u8 , 8u8 , 237u8 , 228u8 , 39u8 , 11u8 , 109u8 , 141u8 , 67u8 , 46u8 ,]) } # [doc = " DMAP ( parent, netuid ) --> Vec<(proportion,child)>"] pub fn child_keys_iter1 (& self , _0 : types :: child_keys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: child_keys :: Param0 > , types :: child_keys :: ChildKeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ChildKeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [249u8 , 196u8 , 42u8 , 188u8 , 225u8 , 115u8 , 85u8 , 228u8 , 212u8 , 248u8 , 101u8 , 244u8 , 223u8 , 151u8 , 219u8 , 128u8 , 204u8 , 176u8 , 52u8 , 61u8 , 59u8 , 213u8 , 97u8 , 8u8 , 237u8 , 228u8 , 39u8 , 11u8 , 109u8 , 141u8 , 67u8 , 46u8 ,]) } # [doc = " DMAP ( parent, netuid ) --> Vec<(proportion,child)>"] pub fn child_keys (& self , _0 : types :: child_keys :: Param0 , _1 : types :: child_keys :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: child_keys :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: child_keys :: Param1 > ,) , types :: child_keys :: ChildKeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ChildKeys" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [249u8 , 196u8 , 42u8 , 188u8 , 225u8 , 115u8 , 85u8 , 228u8 , 212u8 , 248u8 , 101u8 , 244u8 , 223u8 , 151u8 , 219u8 , 128u8 , 204u8 , 176u8 , 52u8 , 61u8 , 59u8 , 213u8 , 97u8 , 8u8 , 237u8 , 228u8 , 39u8 , 11u8 , 109u8 , 141u8 , 67u8 , 46u8 ,]) } # [doc = " DMAP ( child, netuid ) --> Vec<(proportion,parent)>"] pub fn parent_keys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: parent_keys :: ParentKeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ParentKeys" , () , [37u8 , 132u8 , 47u8 , 160u8 , 174u8 , 62u8 , 94u8 , 18u8 , 202u8 , 134u8 , 247u8 , 75u8 , 69u8 , 168u8 , 234u8 , 174u8 , 184u8 , 81u8 , 240u8 , 141u8 , 155u8 , 158u8 , 120u8 , 153u8 , 121u8 , 49u8 , 217u8 , 208u8 , 136u8 , 15u8 , 98u8 , 246u8 ,]) } # [doc = " DMAP ( child, netuid ) --> Vec<(proportion,parent)>"] pub fn parent_keys_iter1 (& self , _0 : types :: parent_keys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: parent_keys :: Param0 > , types :: parent_keys :: ParentKeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ParentKeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [37u8 , 132u8 , 47u8 , 160u8 , 174u8 , 62u8 , 94u8 , 18u8 , 202u8 , 134u8 , 247u8 , 75u8 , 69u8 , 168u8 , 234u8 , 174u8 , 184u8 , 81u8 , 240u8 , 141u8 , 155u8 , 158u8 , 120u8 , 153u8 , 121u8 , 49u8 , 217u8 , 208u8 , 136u8 , 15u8 , 98u8 , 246u8 ,]) } # [doc = " DMAP ( child, netuid ) --> Vec<(proportion,parent)>"] pub fn parent_keys (& self , _0 : types :: parent_keys :: Param0 , _1 : types :: parent_keys :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: parent_keys :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: parent_keys :: Param1 > ,) , types :: parent_keys :: ParentKeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ParentKeys" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [37u8 , 132u8 , 47u8 , 160u8 , 174u8 , 62u8 , 94u8 , 18u8 , 202u8 , 134u8 , 247u8 , 75u8 , 69u8 , 168u8 , 234u8 , 174u8 , 184u8 , 81u8 , 240u8 , 141u8 , 155u8 , 158u8 , 120u8 , 153u8 , 121u8 , 49u8 , 217u8 , 208u8 , 136u8 , 15u8 , 98u8 , 246u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> u64 | Last alpha dividend this hotkey got on tempo."] pub fn alpha_dividends_per_subnet_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: alpha_dividends_per_subnet :: AlphaDividendsPerSubnet , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaDividendsPerSubnet" , () , [210u8 , 6u8 , 9u8 , 98u8 , 110u8 , 11u8 , 51u8 , 135u8 , 221u8 , 25u8 , 71u8 , 247u8 , 215u8 , 101u8 , 78u8 , 209u8 , 205u8 , 108u8 , 219u8 , 96u8 , 242u8 , 175u8 , 213u8 , 210u8 , 247u8 , 198u8 , 175u8 , 26u8 , 92u8 , 146u8 , 74u8 , 32u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> u64 | Last alpha dividend this hotkey got on tempo."] pub fn alpha_dividends_per_subnet_iter1 (& self , _0 : types :: alpha_dividends_per_subnet :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha_dividends_per_subnet :: Param0 > , types :: alpha_dividends_per_subnet :: AlphaDividendsPerSubnet , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaDividendsPerSubnet" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [210u8 , 6u8 , 9u8 , 98u8 , 110u8 , 11u8 , 51u8 , 135u8 , 221u8 , 25u8 , 71u8 , 247u8 , 215u8 , 101u8 , 78u8 , 209u8 , 205u8 , 108u8 , 219u8 , 96u8 , 242u8 , 175u8 , 213u8 , 210u8 , 247u8 , 198u8 , 175u8 , 26u8 , 92u8 , 146u8 , 74u8 , 32u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> u64 | Last alpha dividend this hotkey got on tempo."] pub fn alpha_dividends_per_subnet (& self , _0 : types :: alpha_dividends_per_subnet :: Param0 , _1 : types :: alpha_dividends_per_subnet :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha_dividends_per_subnet :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha_dividends_per_subnet :: Param1 > ,) , types :: alpha_dividends_per_subnet :: AlphaDividendsPerSubnet , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaDividendsPerSubnet" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [210u8 , 6u8 , 9u8 , 98u8 , 110u8 , 11u8 , 51u8 , 135u8 , 221u8 , 25u8 , 71u8 , 247u8 , 215u8 , 101u8 , 78u8 , 209u8 , 205u8 , 108u8 , 219u8 , 96u8 , 242u8 , 175u8 , 213u8 , 210u8 , 247u8 , 198u8 , 175u8 , 26u8 , 92u8 , 146u8 , 74u8 , 32u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> u64 | Last root alpha dividend this hotkey got on tempo."] pub fn root_alpha_dividends_per_subnet_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_alpha_dividends_per_subnet :: RootAlphaDividendsPerSubnet , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootAlphaDividendsPerSubnet" , () , [82u8 , 141u8 , 222u8 , 187u8 , 70u8 , 88u8 , 237u8 , 226u8 , 242u8 , 31u8 , 124u8 , 207u8 , 223u8 , 121u8 , 42u8 , 34u8 , 90u8 , 111u8 , 73u8 , 67u8 , 1u8 , 20u8 , 187u8 , 226u8 , 251u8 , 138u8 , 129u8 , 179u8 , 163u8 , 29u8 , 163u8 , 157u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> u64 | Last root alpha dividend this hotkey got on tempo."] pub fn root_alpha_dividends_per_subnet_iter1 (& self , _0 : types :: root_alpha_dividends_per_subnet :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_alpha_dividends_per_subnet :: Param0 > , types :: root_alpha_dividends_per_subnet :: RootAlphaDividendsPerSubnet , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootAlphaDividendsPerSubnet" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [82u8 , 141u8 , 222u8 , 187u8 , 70u8 , 88u8 , 237u8 , 226u8 , 242u8 , 31u8 , 124u8 , 207u8 , 223u8 , 121u8 , 42u8 , 34u8 , 90u8 , 111u8 , 73u8 , 67u8 , 1u8 , 20u8 , 187u8 , 226u8 , 251u8 , 138u8 , 129u8 , 179u8 , 163u8 , 29u8 , 163u8 , 157u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> u64 | Last root alpha dividend this hotkey got on tempo."] pub fn root_alpha_dividends_per_subnet (& self , _0 : types :: root_alpha_dividends_per_subnet :: Param0 , _1 : types :: root_alpha_dividends_per_subnet :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_alpha_dividends_per_subnet :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_alpha_dividends_per_subnet :: Param1 > ,) , types :: root_alpha_dividends_per_subnet :: RootAlphaDividendsPerSubnet , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootAlphaDividendsPerSubnet" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [82u8 , 141u8 , 222u8 , 187u8 , 70u8 , 88u8 , 237u8 , 226u8 , 242u8 , 31u8 , 124u8 , 207u8 , 223u8 , 121u8 , 42u8 , 34u8 , 90u8 , 111u8 , 73u8 , 67u8 , 1u8 , 20u8 , 187u8 , 226u8 , 251u8 , 138u8 , 129u8 , 179u8 , 163u8 , 29u8 , 163u8 , 157u8 ,]) } # [doc = " =================="] # [doc = " ==== Coinbase ===="] # [doc = " =================="] # [doc = " --- ITEM ( global_block_emission )    "] pub fn block_emission (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: block_emission :: BlockEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BlockEmission" , () , [223u8 , 151u8 , 249u8 , 123u8 , 202u8 , 93u8 , 99u8 , 232u8 , 117u8 , 221u8 , 57u8 , 50u8 , 104u8 , 65u8 , 167u8 , 199u8 , 188u8 , 167u8 , 146u8 , 32u8 , 97u8 , 156u8 , 192u8 , 88u8 , 82u8 , 228u8 , 88u8 , 171u8 , 139u8 , 207u8 , 28u8 , 183u8 ,]) } # [doc = " --- DMap ( hot, netuid ) --> emission | last hotkey emission on network."] pub fn last_hotkey_emission_on_netuid_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_hotkey_emission_on_netuid :: LastHotkeyEmissionOnNetuid , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastHotkeyEmissionOnNetuid" , () , [131u8 , 226u8 , 245u8 , 210u8 , 142u8 , 247u8 , 179u8 , 221u8 , 115u8 , 205u8 , 126u8 , 254u8 , 103u8 , 117u8 , 248u8 , 204u8 , 59u8 , 200u8 , 35u8 , 106u8 , 57u8 , 88u8 , 7u8 , 82u8 , 142u8 , 144u8 , 128u8 , 43u8 , 205u8 , 29u8 , 130u8 , 14u8 ,]) } # [doc = " --- DMap ( hot, netuid ) --> emission | last hotkey emission on network."] pub fn last_hotkey_emission_on_netuid_iter1 (& self , _0 : types :: last_hotkey_emission_on_netuid :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_hotkey_emission_on_netuid :: Param0 > , types :: last_hotkey_emission_on_netuid :: LastHotkeyEmissionOnNetuid , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastHotkeyEmissionOnNetuid" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [131u8 , 226u8 , 245u8 , 210u8 , 142u8 , 247u8 , 179u8 , 221u8 , 115u8 , 205u8 , 126u8 , 254u8 , 103u8 , 117u8 , 248u8 , 204u8 , 59u8 , 200u8 , 35u8 , 106u8 , 57u8 , 88u8 , 7u8 , 82u8 , 142u8 , 144u8 , 128u8 , 43u8 , 205u8 , 29u8 , 130u8 , 14u8 ,]) } # [doc = " --- DMap ( hot, netuid ) --> emission | last hotkey emission on network."] pub fn last_hotkey_emission_on_netuid (& self , _0 : types :: last_hotkey_emission_on_netuid :: Param0 , _1 : types :: last_hotkey_emission_on_netuid :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_hotkey_emission_on_netuid :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_hotkey_emission_on_netuid :: Param1 > ,) , types :: last_hotkey_emission_on_netuid :: LastHotkeyEmissionOnNetuid , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastHotkeyEmissionOnNetuid" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [131u8 , 226u8 , 245u8 , 210u8 , 142u8 , 247u8 , 179u8 , 221u8 , 115u8 , 205u8 , 126u8 , 254u8 , 103u8 , 117u8 , 248u8 , 204u8 , 59u8 , 200u8 , 35u8 , 106u8 , 57u8 , 88u8 , 7u8 , 82u8 , 142u8 , 144u8 , 128u8 , 43u8 , 205u8 , 29u8 , 130u8 , 14u8 ,]) } # [doc = " =========================="] # [doc = " ==== Staking Counters ===="] # [doc = " =========================="] # [doc = " The Subtensor [`TotalIssuance`] represents the total issuance of tokens on the Bittensor network."] # [doc = ""] # [doc = " It is comprised of three parts:"] # [doc = " - The total amount of issued tokens, tracked in the TotalIssuance of the Balances pallet"] # [doc = " - The total amount of tokens staked in the system, tracked in [`TotalStake`]"] # [doc = " - The total amount of tokens locked up for subnet reg, tracked in [`TotalSubnetLocked`] attained by iterating over subnet lock."] # [doc = ""] # [doc = " Eventually, Bittensor should migrate to using Holds afterwhich time we will not require this"] # [doc = " separate accounting."] # [doc = " --- ITEM ( maximum_number_of_networks )"] pub fn subnet_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_limit :: SubnetLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLimit" , () , [22u8 , 164u8 , 10u8 , 77u8 , 181u8 , 52u8 , 200u8 , 11u8 , 157u8 , 77u8 , 240u8 , 211u8 , 205u8 , 0u8 , 64u8 , 7u8 , 208u8 , 135u8 , 210u8 , 184u8 , 50u8 , 1u8 , 32u8 , 58u8 , 134u8 , 44u8 , 51u8 , 123u8 , 173u8 , 156u8 , 170u8 , 208u8 ,]) } # [doc = " --- ITEM ( total_issuance )"] pub fn total_issuance (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_issuance :: TotalIssuance , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalIssuance" , () , [157u8 , 166u8 , 49u8 , 95u8 , 245u8 , 38u8 , 96u8 , 83u8 , 23u8 , 203u8 , 246u8 , 208u8 , 251u8 , 175u8 , 40u8 , 92u8 , 163u8 , 112u8 , 43u8 , 190u8 , 14u8 , 128u8 , 45u8 , 22u8 , 157u8 , 205u8 , 181u8 , 84u8 , 79u8 , 132u8 , 160u8 , 149u8 ,]) } # [doc = " --- ITEM ( total_stake )"] pub fn total_stake (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_stake :: TotalStake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalStake" , () , [179u8 , 22u8 , 207u8 , 201u8 , 118u8 , 12u8 , 198u8 , 201u8 , 2u8 , 169u8 , 161u8 , 226u8 , 10u8 , 93u8 , 135u8 , 70u8 , 46u8 , 220u8 , 50u8 , 228u8 , 18u8 , 135u8 , 64u8 , 233u8 , 77u8 , 95u8 , 159u8 , 199u8 , 8u8 , 47u8 , 0u8 , 60u8 ,]) } # [doc = " --- ITEM ( moving_alpha ) -- subnet moving alpha.         "] pub fn subnet_moving_alpha (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_moving_alpha :: SubnetMovingAlpha , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetMovingAlpha" , () , [191u8 , 101u8 , 37u8 , 183u8 , 137u8 , 18u8 , 53u8 , 59u8 , 83u8 , 202u8 , 128u8 , 13u8 , 53u8 , 163u8 , 152u8 , 27u8 , 174u8 , 80u8 , 220u8 , 120u8 , 142u8 , 147u8 , 224u8 , 230u8 , 148u8 , 112u8 , 54u8 , 23u8 , 2u8 , 200u8 , 70u8 , 179u8 ,]) } # [doc = " --- MAP ( netuid ) --> moving_price | The subnet moving price."] pub fn subnet_moving_price_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_moving_price :: SubnetMovingPrice , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetMovingPrice" , () , [96u8 , 223u8 , 194u8 , 165u8 , 135u8 , 39u8 , 252u8 , 186u8 , 143u8 , 154u8 , 228u8 , 184u8 , 163u8 , 187u8 , 56u8 , 30u8 , 94u8 , 174u8 , 255u8 , 36u8 , 169u8 , 74u8 , 186u8 , 196u8 , 64u8 , 68u8 , 75u8 , 191u8 , 99u8 , 138u8 , 237u8 , 149u8 ,]) } # [doc = " --- MAP ( netuid ) --> moving_price | The subnet moving price."] pub fn subnet_moving_price (& self , _0 : types :: subnet_moving_price :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_moving_price :: Param0 > , types :: subnet_moving_price :: SubnetMovingPrice , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetMovingPrice" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [96u8 , 223u8 , 194u8 , 165u8 , 135u8 , 39u8 , 252u8 , 186u8 , 143u8 , 154u8 , 228u8 , 184u8 , 163u8 , 187u8 , 56u8 , 30u8 , 94u8 , 174u8 , 255u8 , 36u8 , 169u8 , 74u8 , 186u8 , 196u8 , 64u8 , 68u8 , 75u8 , 191u8 , 99u8 , 138u8 , 237u8 , 149u8 ,]) } # [doc = " --- MAP ( netuid ) --> root_prop | The subnet root proportion."] pub fn root_prop_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_prop :: RootProp , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootProp" , () , [239u8 , 31u8 , 103u8 , 167u8 , 159u8 , 124u8 , 160u8 , 20u8 , 228u8 , 225u8 , 232u8 , 221u8 , 91u8 , 199u8 , 152u8 , 66u8 , 238u8 , 113u8 , 189u8 , 149u8 , 232u8 , 63u8 , 134u8 , 2u8 , 231u8 , 128u8 , 2u8 , 31u8 , 1u8 , 66u8 , 181u8 , 160u8 ,]) } # [doc = " --- MAP ( netuid ) --> root_prop | The subnet root proportion."] pub fn root_prop (& self , _0 : types :: root_prop :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_prop :: Param0 > , types :: root_prop :: RootProp , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootProp" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [239u8 , 31u8 , 103u8 , 167u8 , 159u8 , 124u8 , 160u8 , 20u8 , 228u8 , 225u8 , 232u8 , 221u8 , 91u8 , 199u8 , 152u8 , 66u8 , 238u8 , 113u8 , 189u8 , 149u8 , 232u8 , 63u8 , 134u8 , 2u8 , 231u8 , 128u8 , 2u8 , 31u8 , 1u8 , 66u8 , 181u8 , 160u8 ,]) } # [doc = " --- MAP ( netuid ) --> total_volume | The total amount of TAO bought and sold since the start of the network."] pub fn subnet_volume_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_volume :: SubnetVolume , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetVolume" , () , [147u8 , 201u8 , 14u8 , 211u8 , 212u8 , 176u8 , 96u8 , 86u8 , 152u8 , 74u8 , 2u8 , 44u8 , 28u8 , 112u8 , 50u8 , 152u8 , 254u8 , 15u8 , 119u8 , 222u8 , 129u8 , 210u8 , 199u8 , 183u8 , 178u8 , 84u8 , 24u8 , 102u8 , 187u8 , 133u8 , 199u8 , 137u8 ,]) } # [doc = " --- MAP ( netuid ) --> total_volume | The total amount of TAO bought and sold since the start of the network."] pub fn subnet_volume (& self , _0 : types :: subnet_volume :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_volume :: Param0 > , types :: subnet_volume :: SubnetVolume , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetVolume" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [147u8 , 201u8 , 14u8 , 211u8 , 212u8 , 176u8 , 96u8 , 86u8 , 152u8 , 74u8 , 2u8 , 44u8 , 28u8 , 112u8 , 50u8 , 152u8 , 254u8 , 15u8 , 119u8 , 222u8 , 129u8 , 210u8 , 199u8 , 183u8 , 178u8 , 84u8 , 24u8 , 102u8 , 187u8 , 133u8 , 199u8 , 137u8 ,]) } # [doc = " --- MAP ( netuid ) --> tao_in_subnet | Returns the amount of TAO in the subnet."] pub fn subnet_tao_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_tao :: SubnetTao , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTAO" , () , [142u8 , 19u8 , 41u8 , 118u8 , 93u8 , 239u8 , 129u8 , 137u8 , 70u8 , 203u8 , 137u8 , 164u8 , 143u8 , 129u8 , 142u8 , 253u8 , 113u8 , 203u8 , 68u8 , 34u8 , 65u8 , 159u8 , 38u8 , 55u8 , 214u8 , 174u8 , 210u8 , 44u8 , 129u8 , 99u8 , 35u8 , 160u8 ,]) } # [doc = " --- MAP ( netuid ) --> tao_in_subnet | Returns the amount of TAO in the subnet."] pub fn subnet_tao (& self , _0 : types :: subnet_tao :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_tao :: Param0 > , types :: subnet_tao :: SubnetTao , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTAO" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [142u8 , 19u8 , 41u8 , 118u8 , 93u8 , 239u8 , 129u8 , 137u8 , 70u8 , 203u8 , 137u8 , 164u8 , 143u8 , 129u8 , 142u8 , 253u8 , 113u8 , 203u8 , 68u8 , 34u8 , 65u8 , 159u8 , 38u8 , 55u8 , 214u8 , 174u8 , 210u8 , 44u8 , 129u8 , 99u8 , 35u8 , 160u8 ,]) } # [doc = " --- MAP ( netuid ) --> tao_in_user_subnet | Returns the amount of TAO in the subnet reserve provided by users as liquidity."] pub fn subnet_tao_provided_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_tao_provided :: SubnetTaoProvided , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTaoProvided" , () , [13u8 , 45u8 , 41u8 , 229u8 , 165u8 , 249u8 , 98u8 , 134u8 , 88u8 , 232u8 , 91u8 , 32u8 , 20u8 , 239u8 , 93u8 , 193u8 , 143u8 , 146u8 , 47u8 , 249u8 , 192u8 , 238u8 , 139u8 , 212u8 , 235u8 , 255u8 , 170u8 , 79u8 , 119u8 , 39u8 , 194u8 , 46u8 ,]) } # [doc = " --- MAP ( netuid ) --> tao_in_user_subnet | Returns the amount of TAO in the subnet reserve provided by users as liquidity."] pub fn subnet_tao_provided (& self , _0 : types :: subnet_tao_provided :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_tao_provided :: Param0 > , types :: subnet_tao_provided :: SubnetTaoProvided , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTaoProvided" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [13u8 , 45u8 , 41u8 , 229u8 , 165u8 , 249u8 , 98u8 , 134u8 , 88u8 , 232u8 , 91u8 , 32u8 , 20u8 , 239u8 , 93u8 , 193u8 , 143u8 , 146u8 , 47u8 , 249u8 , 192u8 , 238u8 , 139u8 , 212u8 , 235u8 , 255u8 , 170u8 , 79u8 , 119u8 , 39u8 , 194u8 , 46u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_in_emission | Returns the amount of alph in  emission into the pool per block."] pub fn subnet_alpha_in_emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_alpha_in_emission :: SubnetAlphaInEmission , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaInEmission" , () , [144u8 , 23u8 , 128u8 , 253u8 , 124u8 , 32u8 , 171u8 , 4u8 , 202u8 , 193u8 , 63u8 , 25u8 , 185u8 , 234u8 , 83u8 , 236u8 , 245u8 , 187u8 , 6u8 , 76u8 , 74u8 , 215u8 , 58u8 , 59u8 , 236u8 , 164u8 , 60u8 , 35u8 , 8u8 , 159u8 , 75u8 , 45u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_in_emission | Returns the amount of alph in  emission into the pool per block."] pub fn subnet_alpha_in_emission (& self , _0 : types :: subnet_alpha_in_emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_alpha_in_emission :: Param0 > , types :: subnet_alpha_in_emission :: SubnetAlphaInEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaInEmission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [144u8 , 23u8 , 128u8 , 253u8 , 124u8 , 32u8 , 171u8 , 4u8 , 202u8 , 193u8 , 63u8 , 25u8 , 185u8 , 234u8 , 83u8 , 236u8 , 245u8 , 187u8 , 6u8 , 76u8 , 74u8 , 215u8 , 58u8 , 59u8 , 236u8 , 164u8 , 60u8 , 35u8 , 8u8 , 159u8 , 75u8 , 45u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_out_emission | Returns the amount of alpha out emission into the network per block."] pub fn subnet_alpha_out_emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_alpha_out_emission :: SubnetAlphaOutEmission , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaOutEmission" , () , [109u8 , 42u8 , 101u8 , 179u8 , 14u8 , 126u8 , 154u8 , 89u8 , 213u8 , 32u8 , 33u8 , 112u8 , 67u8 , 161u8 , 174u8 , 149u8 , 151u8 , 75u8 , 57u8 , 229u8 , 65u8 , 87u8 , 12u8 , 225u8 , 208u8 , 187u8 , 30u8 , 59u8 , 135u8 , 146u8 , 143u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_out_emission | Returns the amount of alpha out emission into the network per block."] pub fn subnet_alpha_out_emission (& self , _0 : types :: subnet_alpha_out_emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_alpha_out_emission :: Param0 > , types :: subnet_alpha_out_emission :: SubnetAlphaOutEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaOutEmission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [109u8 , 42u8 , 101u8 , 179u8 , 14u8 , 126u8 , 154u8 , 89u8 , 213u8 , 32u8 , 33u8 , 112u8 , 67u8 , 161u8 , 174u8 , 149u8 , 151u8 , 75u8 , 57u8 , 229u8 , 65u8 , 87u8 , 12u8 , 225u8 , 208u8 , 187u8 , 30u8 , 59u8 , 135u8 , 146u8 , 143u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> tao_in_emission | Returns the amount of tao emitted into this subent on the last block."] pub fn subnet_tao_in_emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_tao_in_emission :: SubnetTaoInEmission , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTaoInEmission" , () , [57u8 , 220u8 , 215u8 , 87u8 , 57u8 , 165u8 , 174u8 , 114u8 , 85u8 , 45u8 , 32u8 , 59u8 , 9u8 , 86u8 , 111u8 , 186u8 , 124u8 , 100u8 , 129u8 , 240u8 , 123u8 , 39u8 , 146u8 , 235u8 , 50u8 , 235u8 , 96u8 , 230u8 , 105u8 , 111u8 , 186u8 , 131u8 ,]) } # [doc = " --- MAP ( netuid ) --> tao_in_emission | Returns the amount of tao emitted into this subent on the last block."] pub fn subnet_tao_in_emission (& self , _0 : types :: subnet_tao_in_emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_tao_in_emission :: Param0 > , types :: subnet_tao_in_emission :: SubnetTaoInEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTaoInEmission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [57u8 , 220u8 , 215u8 , 87u8 , 57u8 , 165u8 , 174u8 , 114u8 , 85u8 , 45u8 , 32u8 , 59u8 , 9u8 , 86u8 , 111u8 , 186u8 , 124u8 , 100u8 , 129u8 , 240u8 , 123u8 , 39u8 , 146u8 , 235u8 , 50u8 , 235u8 , 96u8 , 230u8 , 105u8 , 111u8 , 186u8 , 131u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_supply_in_pool | Returns the amount of alpha in the pool."] pub fn subnet_alpha_in_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_alpha_in :: SubnetAlphaIn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaIn" , () , [51u8 , 120u8 , 151u8 , 177u8 , 58u8 , 115u8 , 119u8 , 132u8 , 95u8 , 223u8 , 14u8 , 121u8 , 132u8 , 206u8 , 151u8 , 166u8 , 101u8 , 138u8 , 142u8 , 29u8 , 151u8 , 100u8 , 165u8 , 86u8 , 145u8 , 52u8 , 174u8 , 66u8 , 180u8 , 87u8 , 72u8 , 81u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_supply_in_pool | Returns the amount of alpha in the pool."] pub fn subnet_alpha_in (& self , _0 : types :: subnet_alpha_in :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_alpha_in :: Param0 > , types :: subnet_alpha_in :: SubnetAlphaIn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaIn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [51u8 , 120u8 , 151u8 , 177u8 , 58u8 , 115u8 , 119u8 , 132u8 , 95u8 , 223u8 , 14u8 , 121u8 , 132u8 , 206u8 , 151u8 , 166u8 , 101u8 , 138u8 , 142u8 , 29u8 , 151u8 , 100u8 , 165u8 , 86u8 , 145u8 , 52u8 , 174u8 , 66u8 , 180u8 , 87u8 , 72u8 , 81u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_supply_user_in_pool | Returns the amount of alpha in the pool provided by users as liquidity."] pub fn subnet_alpha_in_provided_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_alpha_in_provided :: SubnetAlphaInProvided , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaInProvided" , () , [255u8 , 210u8 , 8u8 , 234u8 , 55u8 , 201u8 , 154u8 , 87u8 , 65u8 , 247u8 , 247u8 , 210u8 , 68u8 , 191u8 , 68u8 , 37u8 , 197u8 , 23u8 , 92u8 , 224u8 , 139u8 , 115u8 , 183u8 , 86u8 , 80u8 , 53u8 , 24u8 , 207u8 , 102u8 , 153u8 , 37u8 , 137u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_supply_user_in_pool | Returns the amount of alpha in the pool provided by users as liquidity."] pub fn subnet_alpha_in_provided (& self , _0 : types :: subnet_alpha_in_provided :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_alpha_in_provided :: Param0 > , types :: subnet_alpha_in_provided :: SubnetAlphaInProvided , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaInProvided" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [255u8 , 210u8 , 8u8 , 234u8 , 55u8 , 201u8 , 154u8 , 87u8 , 65u8 , 247u8 , 247u8 , 210u8 , 68u8 , 191u8 , 68u8 , 37u8 , 197u8 , 23u8 , 92u8 , 224u8 , 139u8 , 115u8 , 183u8 , 86u8 , 80u8 , 53u8 , 24u8 , 207u8 , 102u8 , 153u8 , 37u8 , 137u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_supply_in_subnet | Returns the amount of alpha in the subnet."] pub fn subnet_alpha_out_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_alpha_out :: SubnetAlphaOut , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaOut" , () , [83u8 , 200u8 , 153u8 , 120u8 , 109u8 , 117u8 , 57u8 , 155u8 , 148u8 , 5u8 , 195u8 , 31u8 , 30u8 , 69u8 , 237u8 , 113u8 , 153u8 , 18u8 , 146u8 , 120u8 , 242u8 , 0u8 , 134u8 , 13u8 , 47u8 , 49u8 , 17u8 , 142u8 , 86u8 , 62u8 , 91u8 , 227u8 ,]) } # [doc = " --- MAP ( netuid ) --> alpha_supply_in_subnet | Returns the amount of alpha in the subnet."] pub fn subnet_alpha_out (& self , _0 : types :: subnet_alpha_out :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_alpha_out :: Param0 > , types :: subnet_alpha_out :: SubnetAlphaOut , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetAlphaOut" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [83u8 , 200u8 , 153u8 , 120u8 , 109u8 , 117u8 , 57u8 , 155u8 , 148u8 , 5u8 , 195u8 , 31u8 , 30u8 , 69u8 , 237u8 , 113u8 , 153u8 , 18u8 , 146u8 , 120u8 , 242u8 , 0u8 , 134u8 , 13u8 , 47u8 , 49u8 , 17u8 , 142u8 , 86u8 , 62u8 , 91u8 , 227u8 ,]) } # [doc = " --- MAP ( cold ) --> Vec<hot> | Maps coldkey to hotkeys that stake to it"] pub fn staking_hotkeys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: staking_hotkeys :: StakingHotkeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingHotkeys" , () , [152u8 , 192u8 , 98u8 , 183u8 , 211u8 , 153u8 , 63u8 , 135u8 , 238u8 , 232u8 , 90u8 , 75u8 , 210u8 , 127u8 , 124u8 , 190u8 , 145u8 , 153u8 , 73u8 , 14u8 , 55u8 , 205u8 , 149u8 , 247u8 , 92u8 , 100u8 , 128u8 , 165u8 , 252u8 , 96u8 , 124u8 , 189u8 ,]) } # [doc = " --- MAP ( cold ) --> Vec<hot> | Maps coldkey to hotkeys that stake to it"] pub fn staking_hotkeys (& self , _0 : types :: staking_hotkeys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_hotkeys :: Param0 > , types :: staking_hotkeys :: StakingHotkeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingHotkeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [152u8 , 192u8 , 98u8 , 183u8 , 211u8 , 153u8 , 63u8 , 135u8 , 238u8 , 232u8 , 90u8 , 75u8 , 210u8 , 127u8 , 124u8 , 190u8 , 145u8 , 153u8 , 73u8 , 14u8 , 55u8 , 205u8 , 149u8 , 247u8 , 92u8 , 100u8 , 128u8 , 165u8 , 252u8 , 96u8 , 124u8 , 189u8 ,]) } # [doc = " --- MAP ( cold ) --> Vec<hot> | Returns the vector of hotkeys controlled by this coldkey."] pub fn owned_hotkeys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: owned_hotkeys :: OwnedHotkeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "OwnedHotkeys" , () , [89u8 , 221u8 , 46u8 , 67u8 , 65u8 , 21u8 , 26u8 , 100u8 , 85u8 , 109u8 , 130u8 , 186u8 , 231u8 , 63u8 , 34u8 , 179u8 , 145u8 , 67u8 , 97u8 , 151u8 , 75u8 , 1u8 , 165u8 , 115u8 , 45u8 , 102u8 , 170u8 , 57u8 , 205u8 , 96u8 , 17u8 , 210u8 ,]) } # [doc = " --- MAP ( cold ) --> Vec<hot> | Returns the vector of hotkeys controlled by this coldkey."] pub fn owned_hotkeys (& self , _0 : types :: owned_hotkeys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: owned_hotkeys :: Param0 > , types :: owned_hotkeys :: OwnedHotkeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "OwnedHotkeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [89u8 , 221u8 , 46u8 , 67u8 , 65u8 , 21u8 , 26u8 , 100u8 , 85u8 , 109u8 , 130u8 , 186u8 , 231u8 , 63u8 , 34u8 , 179u8 , 145u8 , 67u8 , 97u8 , 151u8 , 75u8 , 1u8 , 165u8 , 115u8 , 45u8 , 102u8 , 170u8 , 57u8 , 205u8 , 96u8 , 17u8 , 210u8 ,]) } # [doc = " --- DMAP ( cold, netuid )--> hot | Returns the hotkey a coldkey will autostake to with mining rewards."] pub fn auto_stake_destination_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: auto_stake_destination :: AutoStakeDestination , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AutoStakeDestination" , () , [83u8 , 31u8 , 34u8 , 28u8 , 128u8 , 111u8 , 137u8 , 31u8 , 252u8 , 132u8 , 19u8 , 147u8 , 182u8 , 216u8 , 35u8 , 219u8 , 184u8 , 168u8 , 18u8 , 210u8 , 122u8 , 13u8 , 20u8 , 72u8 , 165u8 , 95u8 , 122u8 , 34u8 , 183u8 , 188u8 , 246u8 , 32u8 ,]) } # [doc = " --- DMAP ( cold, netuid )--> hot | Returns the hotkey a coldkey will autostake to with mining rewards."] pub fn auto_stake_destination_iter1 (& self , _0 : types :: auto_stake_destination :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: auto_stake_destination :: Param0 > , types :: auto_stake_destination :: AutoStakeDestination , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AutoStakeDestination" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [83u8 , 31u8 , 34u8 , 28u8 , 128u8 , 111u8 , 137u8 , 31u8 , 252u8 , 132u8 , 19u8 , 147u8 , 182u8 , 216u8 , 35u8 , 219u8 , 184u8 , 168u8 , 18u8 , 210u8 , 122u8 , 13u8 , 20u8 , 72u8 , 165u8 , 95u8 , 122u8 , 34u8 , 183u8 , 188u8 , 246u8 , 32u8 ,]) } # [doc = " --- DMAP ( cold, netuid )--> hot | Returns the hotkey a coldkey will autostake to with mining rewards."] pub fn auto_stake_destination (& self , _0 : types :: auto_stake_destination :: Param0 , _1 : types :: auto_stake_destination :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: auto_stake_destination :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: auto_stake_destination :: Param1 > ,) , types :: auto_stake_destination :: AutoStakeDestination , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AutoStakeDestination" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [83u8 , 31u8 , 34u8 , 28u8 , 128u8 , 111u8 , 137u8 , 31u8 , 252u8 , 132u8 , 19u8 , 147u8 , 182u8 , 216u8 , 35u8 , 219u8 , 184u8 , 168u8 , 18u8 , 210u8 , 122u8 , 13u8 , 20u8 , 72u8 , 165u8 , 95u8 , 122u8 , 34u8 , 183u8 , 188u8 , 246u8 , 32u8 ,]) } # [doc = " --- DMAP ( hot, netuid )--> Vec<cold> | Returns a list of coldkeys that are autostaking to a hotkey"] pub fn auto_stake_destination_coldkeys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: auto_stake_destination_coldkeys :: AutoStakeDestinationColdkeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AutoStakeDestinationColdkeys" , () , [221u8 , 115u8 , 210u8 , 108u8 , 27u8 , 251u8 , 197u8 , 244u8 , 35u8 , 38u8 , 103u8 , 83u8 , 118u8 , 251u8 , 157u8 , 143u8 , 52u8 , 22u8 , 17u8 , 60u8 , 40u8 , 157u8 , 29u8 , 212u8 , 202u8 , 36u8 , 85u8 , 179u8 , 53u8 , 87u8 , 219u8 , 65u8 ,]) } # [doc = " --- DMAP ( hot, netuid )--> Vec<cold> | Returns a list of coldkeys that are autostaking to a hotkey"] pub fn auto_stake_destination_coldkeys_iter1 (& self , _0 : types :: auto_stake_destination_coldkeys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: auto_stake_destination_coldkeys :: Param0 > , types :: auto_stake_destination_coldkeys :: AutoStakeDestinationColdkeys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AutoStakeDestinationColdkeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [221u8 , 115u8 , 210u8 , 108u8 , 27u8 , 251u8 , 197u8 , 244u8 , 35u8 , 38u8 , 103u8 , 83u8 , 118u8 , 251u8 , 157u8 , 143u8 , 52u8 , 22u8 , 17u8 , 60u8 , 40u8 , 157u8 , 29u8 , 212u8 , 202u8 , 36u8 , 85u8 , 179u8 , 53u8 , 87u8 , 219u8 , 65u8 ,]) } # [doc = " --- DMAP ( hot, netuid )--> Vec<cold> | Returns a list of coldkeys that are autostaking to a hotkey"] pub fn auto_stake_destination_coldkeys (& self , _0 : types :: auto_stake_destination_coldkeys :: Param0 , _1 : types :: auto_stake_destination_coldkeys :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: auto_stake_destination_coldkeys :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: auto_stake_destination_coldkeys :: Param1 > ,) , types :: auto_stake_destination_coldkeys :: AutoStakeDestinationColdkeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AutoStakeDestinationColdkeys" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [221u8 , 115u8 , 210u8 , 108u8 , 27u8 , 251u8 , 197u8 , 244u8 , 35u8 , 38u8 , 103u8 , 83u8 , 118u8 , 251u8 , 157u8 , 143u8 , 52u8 , 22u8 , 17u8 , 60u8 , 40u8 , 157u8 , 29u8 , 212u8 , 202u8 , 36u8 , 85u8 , 179u8 , 53u8 , 87u8 , 219u8 , 65u8 ,]) } # [doc = " --- DMAP ( cold ) --> (block_expected, new_coldkey), Maps coldkey to the block to swap at and new coldkey."] pub fn coldkey_swap_scheduled_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: coldkey_swap_scheduled :: ColdkeySwapScheduled , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ColdkeySwapScheduled" , () , [154u8 , 174u8 , 147u8 , 36u8 , 205u8 , 252u8 , 131u8 , 96u8 , 148u8 , 65u8 , 193u8 , 83u8 , 187u8 , 1u8 , 58u8 , 102u8 , 93u8 , 76u8 , 45u8 , 10u8 , 210u8 , 37u8 , 147u8 , 162u8 , 113u8 , 145u8 , 208u8 , 122u8 , 31u8 , 77u8 , 114u8 , 66u8 ,]) } # [doc = " --- DMAP ( cold ) --> (block_expected, new_coldkey), Maps coldkey to the block to swap at and new coldkey."] pub fn coldkey_swap_scheduled (& self , _0 : types :: coldkey_swap_scheduled :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: coldkey_swap_scheduled :: Param0 > , types :: coldkey_swap_scheduled :: ColdkeySwapScheduled , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ColdkeySwapScheduled" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [154u8 , 174u8 , 147u8 , 36u8 , 205u8 , 252u8 , 131u8 , 96u8 , 148u8 , 65u8 , 193u8 , 83u8 , 187u8 , 1u8 , 58u8 , 102u8 , 93u8 , 76u8 , 45u8 , 10u8 , 210u8 , 37u8 , 147u8 , 162u8 , 113u8 , 145u8 , 208u8 , 122u8 , 31u8 , 77u8 , 114u8 , 66u8 ,]) } # [doc = " --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owns."] pub fn total_hotkey_alpha_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_hotkey_alpha :: TotalHotkeyAlpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyAlpha" , () , [211u8 , 142u8 , 51u8 , 239u8 , 59u8 , 186u8 , 234u8 , 28u8 , 223u8 , 49u8 , 202u8 , 206u8 , 191u8 , 151u8 , 90u8 , 91u8 , 206u8 , 104u8 , 94u8 , 7u8 , 149u8 , 54u8 , 194u8 , 138u8 , 136u8 , 45u8 , 252u8 , 61u8 , 119u8 , 77u8 , 179u8 , 24u8 ,]) } # [doc = " --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owns."] pub fn total_hotkey_alpha_iter1 (& self , _0 : types :: total_hotkey_alpha :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_alpha :: Param0 > , types :: total_hotkey_alpha :: TotalHotkeyAlpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyAlpha" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [211u8 , 142u8 , 51u8 , 239u8 , 59u8 , 186u8 , 234u8 , 28u8 , 223u8 , 49u8 , 202u8 , 206u8 , 191u8 , 151u8 , 90u8 , 91u8 , 206u8 , 104u8 , 94u8 , 7u8 , 149u8 , 54u8 , 194u8 , 138u8 , 136u8 , 45u8 , 252u8 , 61u8 , 119u8 , 77u8 , 179u8 , 24u8 ,]) } # [doc = " --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owns."] pub fn total_hotkey_alpha (& self , _0 : types :: total_hotkey_alpha :: Param0 , _1 : types :: total_hotkey_alpha :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_alpha :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_alpha :: Param1 > ,) , types :: total_hotkey_alpha :: TotalHotkeyAlpha , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyAlpha" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [211u8 , 142u8 , 51u8 , 239u8 , 59u8 , 186u8 , 234u8 , 28u8 , 223u8 , 49u8 , 202u8 , 206u8 , 191u8 , 151u8 , 90u8 , 91u8 , 206u8 , 104u8 , 94u8 , 7u8 , 149u8 , 54u8 , 194u8 , 138u8 , 136u8 , 45u8 , 252u8 , 61u8 , 119u8 , 77u8 , 179u8 , 24u8 ,]) } # [doc = " --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owned in the last epoch."] pub fn total_hotkey_alpha_last_epoch_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_hotkey_alpha_last_epoch :: TotalHotkeyAlphaLastEpoch , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyAlphaLastEpoch" , () , [208u8 , 216u8 , 246u8 , 151u8 , 105u8 , 127u8 , 232u8 , 18u8 , 186u8 , 180u8 , 160u8 , 51u8 , 105u8 , 195u8 , 44u8 , 111u8 , 23u8 , 137u8 , 136u8 , 194u8 , 183u8 , 41u8 , 54u8 , 156u8 , 132u8 , 143u8 , 139u8 , 47u8 , 216u8 , 140u8 , 64u8 , 170u8 ,]) } # [doc = " --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owned in the last epoch."] pub fn total_hotkey_alpha_last_epoch_iter1 (& self , _0 : types :: total_hotkey_alpha_last_epoch :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_alpha_last_epoch :: Param0 > , types :: total_hotkey_alpha_last_epoch :: TotalHotkeyAlphaLastEpoch , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyAlphaLastEpoch" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [208u8 , 216u8 , 246u8 , 151u8 , 105u8 , 127u8 , 232u8 , 18u8 , 186u8 , 180u8 , 160u8 , 51u8 , 105u8 , 195u8 , 44u8 , 111u8 , 23u8 , 137u8 , 136u8 , 194u8 , 183u8 , 41u8 , 54u8 , 156u8 , 132u8 , 143u8 , 139u8 , 47u8 , 216u8 , 140u8 , 64u8 , 170u8 ,]) } # [doc = " --- DMAP ( hot, netuid ) --> alpha | Returns the total amount of alpha a hotkey owned in the last epoch."] pub fn total_hotkey_alpha_last_epoch (& self , _0 : types :: total_hotkey_alpha_last_epoch :: Param0 , _1 : types :: total_hotkey_alpha_last_epoch :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_alpha_last_epoch :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_alpha_last_epoch :: Param1 > ,) , types :: total_hotkey_alpha_last_epoch :: TotalHotkeyAlphaLastEpoch , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyAlphaLastEpoch" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [208u8 , 216u8 , 246u8 , 151u8 , 105u8 , 127u8 , 232u8 , 18u8 , 186u8 , 180u8 , 160u8 , 51u8 , 105u8 , 195u8 , 44u8 , 111u8 , 23u8 , 137u8 , 136u8 , 194u8 , 183u8 , 41u8 , 54u8 , 156u8 , 132u8 , 143u8 , 139u8 , 47u8 , 216u8 , 140u8 , 64u8 , 170u8 ,]) } # [doc = " DMAP ( hot, netuid ) --> total_alpha_shares | Returns the number of alpha shares for a hotkey on a subnet."] pub fn total_hotkey_shares_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_hotkey_shares :: TotalHotkeyShares , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyShares" , () , [44u8 , 200u8 , 18u8 , 199u8 , 81u8 , 229u8 , 154u8 , 17u8 , 114u8 , 234u8 , 209u8 , 224u8 , 238u8 , 226u8 , 105u8 , 48u8 , 57u8 , 128u8 , 244u8 , 255u8 , 147u8 , 98u8 , 192u8 , 188u8 , 32u8 , 20u8 , 52u8 , 139u8 , 111u8 , 147u8 , 144u8 , 207u8 ,]) } # [doc = " DMAP ( hot, netuid ) --> total_alpha_shares | Returns the number of alpha shares for a hotkey on a subnet."] pub fn total_hotkey_shares_iter1 (& self , _0 : types :: total_hotkey_shares :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_shares :: Param0 > , types :: total_hotkey_shares :: TotalHotkeyShares , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyShares" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [44u8 , 200u8 , 18u8 , 199u8 , 81u8 , 229u8 , 154u8 , 17u8 , 114u8 , 234u8 , 209u8 , 224u8 , 238u8 , 226u8 , 105u8 , 48u8 , 57u8 , 128u8 , 244u8 , 255u8 , 147u8 , 98u8 , 192u8 , 188u8 , 32u8 , 20u8 , 52u8 , 139u8 , 111u8 , 147u8 , 144u8 , 207u8 ,]) } # [doc = " DMAP ( hot, netuid ) --> total_alpha_shares | Returns the number of alpha shares for a hotkey on a subnet."] pub fn total_hotkey_shares (& self , _0 : types :: total_hotkey_shares :: Param0 , _1 : types :: total_hotkey_shares :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_shares :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: total_hotkey_shares :: Param1 > ,) , types :: total_hotkey_shares :: TotalHotkeyShares , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalHotkeyShares" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [44u8 , 200u8 , 18u8 , 199u8 , 81u8 , 229u8 , 154u8 , 17u8 , 114u8 , 234u8 , 209u8 , 224u8 , 238u8 , 226u8 , 105u8 , 48u8 , 57u8 , 128u8 , 244u8 , 255u8 , 147u8 , 98u8 , 192u8 , 188u8 , 32u8 , 20u8 , 52u8 , 139u8 , 111u8 , 147u8 , 144u8 , 207u8 ,]) } # [doc = " --- NMAP ( hot, cold, netuid ) --> alpha | Returns the alpha shares for a hotkey, coldkey, netuid triplet."] pub fn alpha_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: alpha :: Alpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Alpha" , () , [106u8 , 36u8 , 34u8 , 211u8 , 132u8 , 244u8 , 216u8 , 251u8 , 199u8 , 133u8 , 216u8 , 100u8 , 199u8 , 11u8 , 47u8 , 33u8 , 35u8 , 74u8 , 204u8 , 136u8 , 180u8 , 10u8 , 144u8 , 165u8 , 252u8 , 67u8 , 119u8 , 239u8 , 238u8 , 36u8 , 76u8 , 83u8 ,]) } # [doc = " --- NMAP ( hot, cold, netuid ) --> alpha | Returns the alpha shares for a hotkey, coldkey, netuid triplet."] pub fn alpha_iter1 (& self , _0 : types :: alpha :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha :: Param0 > , types :: alpha :: Alpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Alpha" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [106u8 , 36u8 , 34u8 , 211u8 , 132u8 , 244u8 , 216u8 , 251u8 , 199u8 , 133u8 , 216u8 , 100u8 , 199u8 , 11u8 , 47u8 , 33u8 , 35u8 , 74u8 , 204u8 , 136u8 , 180u8 , 10u8 , 144u8 , 165u8 , 252u8 , 67u8 , 119u8 , 239u8 , 238u8 , 36u8 , 76u8 , 83u8 ,]) } # [doc = " --- NMAP ( hot, cold, netuid ) --> alpha | Returns the alpha shares for a hotkey, coldkey, netuid triplet."] pub fn alpha_iter2 (& self , _0 : types :: alpha :: Param0 , _1 : types :: alpha :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha :: Param1 > ,) , types :: alpha :: Alpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Alpha" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [106u8 , 36u8 , 34u8 , 211u8 , 132u8 , 244u8 , 216u8 , 251u8 , 199u8 , 133u8 , 216u8 , 100u8 , 199u8 , 11u8 , 47u8 , 33u8 , 35u8 , 74u8 , 204u8 , 136u8 , 180u8 , 10u8 , 144u8 , 165u8 , 252u8 , 67u8 , 119u8 , 239u8 , 238u8 , 36u8 , 76u8 , 83u8 ,]) } # [doc = " --- NMAP ( hot, cold, netuid ) --> alpha | Returns the alpha shares for a hotkey, coldkey, netuid triplet."] pub fn alpha (& self , _0 : types :: alpha :: Param0 , _1 : types :: alpha :: Param1 , _2 : types :: alpha :: Param2 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha :: Param2 > ,) , types :: alpha :: Alpha , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Alpha" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2) ,) , [106u8 , 36u8 , 34u8 , 211u8 , 132u8 , 244u8 , 216u8 , 251u8 , 199u8 , 133u8 , 216u8 , 100u8 , 199u8 , 11u8 , 47u8 , 33u8 , 35u8 , 74u8 , 204u8 , 136u8 , 180u8 , 10u8 , 144u8 , 165u8 , 252u8 , 67u8 , 119u8 , 239u8 , 238u8 , 36u8 , 76u8 , 83u8 ,]) } # [doc = " Contains last Alpha storage map key to iterate (check first)"] pub fn alpha_map_last_key (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: alpha_map_last_key :: AlphaMapLastKey , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaMapLastKey" , () , [56u8 , 88u8 , 231u8 , 193u8 , 139u8 , 96u8 , 159u8 , 20u8 , 242u8 , 28u8 , 124u8 , 149u8 , 255u8 , 79u8 , 34u8 , 24u8 , 9u8 , 20u8 , 197u8 , 186u8 , 111u8 , 180u8 , 152u8 , 22u8 , 198u8 , 15u8 , 250u8 , 91u8 , 41u8 , 136u8 , 11u8 , 15u8 ,]) } # [doc = " --- MAP ( netuid ) --> token_symbol | Returns the token symbol for a subnet."] pub fn token_symbol_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: token_symbol :: TokenSymbol , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TokenSymbol" , () , [184u8 , 249u8 , 234u8 , 88u8 , 90u8 , 36u8 , 102u8 , 134u8 , 1u8 , 210u8 , 25u8 , 26u8 , 22u8 , 151u8 , 111u8 , 190u8 , 7u8 , 17u8 , 6u8 , 218u8 , 190u8 , 219u8 , 198u8 , 83u8 , 202u8 , 161u8 , 2u8 , 147u8 , 111u8 , 107u8 , 101u8 , 47u8 ,]) } # [doc = " --- MAP ( netuid ) --> token_symbol | Returns the token symbol for a subnet."] pub fn token_symbol (& self , _0 : types :: token_symbol :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: token_symbol :: Param0 > , types :: token_symbol :: TokenSymbol , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TokenSymbol" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [184u8 , 249u8 , 234u8 , 88u8 , 90u8 , 36u8 , 102u8 , 134u8 , 1u8 , 210u8 , 25u8 , 26u8 , 22u8 , 151u8 , 111u8 , 190u8 , 7u8 , 17u8 , 6u8 , 218u8 , 190u8 , 219u8 , 198u8 , 83u8 , 202u8 , 161u8 , 2u8 , 147u8 , 111u8 , 107u8 , 101u8 , 47u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_tao_flow | Returns the TAO inflow-outflow balance."] pub fn subnet_tao_flow_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_tao_flow :: SubnetTaoFlow , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTaoFlow" , () , [73u8 , 212u8 , 45u8 , 232u8 , 198u8 , 54u8 , 164u8 , 31u8 , 39u8 , 90u8 , 46u8 , 109u8 , 108u8 , 253u8 , 42u8 , 173u8 , 89u8 , 44u8 , 138u8 , 190u8 , 29u8 , 18u8 , 45u8 , 189u8 , 14u8 , 200u8 , 93u8 , 40u8 , 164u8 , 26u8 , 133u8 , 160u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_tao_flow | Returns the TAO inflow-outflow balance."] pub fn subnet_tao_flow (& self , _0 : types :: subnet_tao_flow :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_tao_flow :: Param0 > , types :: subnet_tao_flow :: SubnetTaoFlow , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetTaoFlow" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [73u8 , 212u8 , 45u8 , 232u8 , 198u8 , 54u8 , 164u8 , 31u8 , 39u8 , 90u8 , 46u8 , 109u8 , 108u8 , 253u8 , 42u8 , 173u8 , 89u8 , 44u8 , 138u8 , 190u8 , 29u8 , 18u8 , 45u8 , 189u8 , 14u8 , 200u8 , 93u8 , 40u8 , 164u8 , 26u8 , 133u8 , 160u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_ema_tao_flow | Returns the EMA of TAO inflow-outflow balance."] pub fn subnet_ema_tao_flow_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_ema_tao_flow :: SubnetEmaTaoFlow , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetEmaTaoFlow" , () , [4u8 , 118u8 , 217u8 , 29u8 , 163u8 , 198u8 , 248u8 , 152u8 , 235u8 , 218u8 , 3u8 , 91u8 , 187u8 , 242u8 , 76u8 , 24u8 , 8u8 , 251u8 , 255u8 , 45u8 , 48u8 , 18u8 , 211u8 , 20u8 , 60u8 , 187u8 , 137u8 , 34u8 , 102u8 , 45u8 , 1u8 , 163u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_ema_tao_flow | Returns the EMA of TAO inflow-outflow balance."] pub fn subnet_ema_tao_flow (& self , _0 : types :: subnet_ema_tao_flow :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_ema_tao_flow :: Param0 > , types :: subnet_ema_tao_flow :: SubnetEmaTaoFlow , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetEmaTaoFlow" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [4u8 , 118u8 , 217u8 , 29u8 , 163u8 , 198u8 , 248u8 , 152u8 , 235u8 , 218u8 , 3u8 , 91u8 , 187u8 , 242u8 , 76u8 , 24u8 , 8u8 , 251u8 , 255u8 , 45u8 , 48u8 , 18u8 , 211u8 , 20u8 , 60u8 , 187u8 , 137u8 , 34u8 , 102u8 , 45u8 , 1u8 , 163u8 ,]) } # [doc = " --- ITEM --> TAO Flow Cutoff"] pub fn tao_flow_cutoff (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tao_flow_cutoff :: TaoFlowCutoff , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TaoFlowCutoff" , () , [222u8 , 205u8 , 47u8 , 171u8 , 79u8 , 208u8 , 108u8 , 149u8 , 171u8 , 131u8 , 145u8 , 88u8 , 66u8 , 236u8 , 18u8 , 149u8 , 168u8 , 12u8 , 19u8 , 147u8 , 30u8 , 225u8 , 73u8 , 245u8 , 217u8 , 19u8 , 165u8 , 114u8 , 89u8 , 91u8 , 128u8 , 219u8 ,]) } # [doc = " --- ITEM --> Flow Normalization Exponent (p)"] pub fn flow_norm_exponent (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: flow_norm_exponent :: FlowNormExponent , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "FlowNormExponent" , () , [139u8 , 171u8 , 162u8 , 68u8 , 33u8 , 221u8 , 157u8 , 49u8 , 161u8 , 145u8 , 123u8 , 40u8 , 153u8 , 134u8 , 70u8 , 178u8 , 7u8 , 225u8 , 1u8 , 65u8 , 23u8 , 131u8 , 201u8 , 146u8 , 107u8 , 252u8 , 140u8 , 58u8 , 68u8 , 199u8 , 64u8 , 84u8 ,]) } # [doc = " --- ITEM --> Flow EMA smoothing factor (flow alpha), u64 normalized"] pub fn flow_ema_smoothing_factor (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: flow_ema_smoothing_factor :: FlowEmaSmoothingFactor , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "FlowEmaSmoothingFactor" , () , [170u8 , 216u8 , 102u8 , 96u8 , 64u8 , 75u8 , 133u8 , 8u8 , 202u8 , 51u8 , 119u8 , 172u8 , 11u8 , 129u8 , 221u8 , 205u8 , 210u8 , 248u8 , 159u8 , 184u8 , 127u8 , 159u8 , 121u8 , 50u8 , 137u8 , 78u8 , 82u8 , 157u8 , 153u8 , 193u8 , 225u8 , 150u8 ,]) } # [doc = " ============================"] # [doc = " ==== Global Parameters ====="] # [doc = " ============================"] # [doc = " --- StorageItem Global Used Work."] pub fn used_work_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: used_work :: UsedWork , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "UsedWork" , () , [59u8 , 93u8 , 120u8 , 178u8 , 19u8 , 194u8 , 54u8 , 240u8 , 132u8 , 243u8 , 106u8 , 24u8 , 176u8 , 106u8 , 59u8 , 130u8 , 174u8 , 127u8 , 79u8 , 107u8 , 253u8 , 172u8 , 238u8 , 193u8 , 180u8 , 221u8 , 154u8 , 66u8 , 179u8 , 190u8 , 192u8 , 202u8 ,]) } # [doc = " ============================"] # [doc = " ==== Global Parameters ====="] # [doc = " ============================"] # [doc = " --- StorageItem Global Used Work."] pub fn used_work (& self , _0 : types :: used_work :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: used_work :: Param0 > , types :: used_work :: UsedWork , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "UsedWork" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [59u8 , 93u8 , 120u8 , 178u8 , 19u8 , 194u8 , 54u8 , 240u8 , 132u8 , 243u8 , 106u8 , 24u8 , 176u8 , 106u8 , 59u8 , 130u8 , 174u8 , 127u8 , 79u8 , 107u8 , 253u8 , 172u8 , 238u8 , 193u8 , 180u8 , 221u8 , 154u8 , 66u8 , 179u8 , 190u8 , 192u8 , 202u8 ,]) } # [doc = " --- ITEM( global_max_registrations_per_block )"] pub fn max_registrations_per_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_registrations_per_block :: MaxRegistrationsPerBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxRegistrationsPerBlock" , () , [191u8 , 117u8 , 55u8 , 65u8 , 37u8 , 248u8 , 122u8 , 37u8 , 164u8 , 225u8 , 117u8 , 242u8 , 26u8 , 106u8 , 69u8 , 2u8 , 99u8 , 9u8 , 32u8 , 125u8 , 131u8 , 215u8 , 127u8 , 37u8 , 113u8 , 234u8 , 214u8 , 107u8 , 1u8 , 20u8 , 172u8 , 209u8 ,]) } # [doc = " --- ITEM( global_max_registrations_per_block )"] pub fn max_registrations_per_block (& self , _0 : types :: max_registrations_per_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: max_registrations_per_block :: Param0 > , types :: max_registrations_per_block :: MaxRegistrationsPerBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxRegistrationsPerBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [191u8 , 117u8 , 55u8 , 65u8 , 37u8 , 248u8 , 122u8 , 37u8 , 164u8 , 225u8 , 117u8 , 242u8 , 26u8 , 106u8 , 69u8 , 2u8 , 99u8 , 9u8 , 32u8 , 125u8 , 131u8 , 215u8 , 127u8 , 37u8 , 113u8 , 234u8 , 214u8 , 107u8 , 1u8 , 20u8 , 172u8 , 209u8 ,]) } # [doc = " --- ITEM( total_number_of_existing_networks )"] pub fn total_networks (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: total_networks :: TotalNetworks , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TotalNetworks" , () , [132u8 , 105u8 , 133u8 , 1u8 , 223u8 , 1u8 , 229u8 , 233u8 , 214u8 , 218u8 , 161u8 , 147u8 , 170u8 , 200u8 , 141u8 , 203u8 , 140u8 , 190u8 , 33u8 , 201u8 , 135u8 , 127u8 , 85u8 , 28u8 , 145u8 , 113u8 , 61u8 , 75u8 , 51u8 , 225u8 , 47u8 , 107u8 ,]) } # [doc = " ITEM( network_immunity_period )"] pub fn network_immunity_period (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_immunity_period :: NetworkImmunityPeriod , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkImmunityPeriod" , () , [148u8 , 253u8 , 144u8 , 188u8 , 122u8 , 21u8 , 208u8 , 145u8 , 44u8 , 150u8 , 156u8 , 160u8 , 102u8 , 86u8 , 53u8 , 181u8 , 250u8 , 70u8 , 226u8 , 33u8 , 63u8 , 74u8 , 84u8 , 231u8 , 131u8 , 107u8 , 225u8 , 208u8 , 71u8 , 137u8 , 208u8 , 232u8 ,]) } # [doc = " ITEM( min_network_lock_cost )"] pub fn network_min_lock_cost (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_min_lock_cost :: NetworkMinLockCost , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkMinLockCost" , () , [121u8 , 246u8 , 74u8 , 53u8 , 75u8 , 35u8 , 107u8 , 91u8 , 134u8 , 130u8 , 132u8 , 220u8 , 219u8 , 99u8 , 121u8 , 198u8 , 164u8 , 152u8 , 88u8 , 82u8 , 228u8 , 197u8 , 89u8 , 145u8 , 100u8 , 28u8 , 123u8 , 54u8 , 14u8 , 238u8 , 90u8 , 123u8 ,]) } # [doc = " ITEM( last_network_lock_cost )"] pub fn network_last_lock_cost (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_last_lock_cost :: NetworkLastLockCost , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkLastLockCost" , () , [204u8 , 201u8 , 165u8 , 119u8 , 228u8 , 146u8 , 239u8 , 232u8 , 251u8 , 98u8 , 7u8 , 78u8 , 57u8 , 16u8 , 50u8 , 12u8 , 121u8 , 144u8 , 185u8 , 4u8 , 1u8 , 5u8 , 172u8 , 48u8 , 128u8 , 154u8 , 198u8 , 55u8 , 81u8 , 154u8 , 96u8 , 140u8 ,]) } # [doc = " ITEM( network_lock_reduction_interval )"] pub fn network_lock_reduction_interval (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_lock_reduction_interval :: NetworkLockReductionInterval , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkLockReductionInterval" , () , [152u8 , 66u8 , 107u8 , 209u8 , 243u8 , 1u8 , 28u8 , 95u8 , 254u8 , 78u8 , 47u8 , 219u8 , 35u8 , 112u8 , 73u8 , 86u8 , 210u8 , 24u8 , 196u8 , 124u8 , 28u8 , 223u8 , 82u8 , 34u8 , 84u8 , 70u8 , 76u8 , 182u8 , 38u8 , 196u8 , 199u8 , 244u8 ,]) } # [doc = " ITEM( subnet_owner_cut )"] pub fn subnet_owner_cut (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_owner_cut :: SubnetOwnerCut , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetOwnerCut" , () , [121u8 , 122u8 , 222u8 , 69u8 , 52u8 , 72u8 , 210u8 , 26u8 , 120u8 , 3u8 , 126u8 , 203u8 , 87u8 , 116u8 , 72u8 , 25u8 , 142u8 , 231u8 , 36u8 , 26u8 , 121u8 , 174u8 , 151u8 , 102u8 , 2u8 , 104u8 , 178u8 , 168u8 , 76u8 , 255u8 , 139u8 , 3u8 ,]) } # [doc = " ITEM( network_rate_limit )"] pub fn network_rate_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_rate_limit :: NetworkRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkRateLimit" , () , [61u8 , 107u8 , 0u8 , 71u8 , 139u8 , 133u8 , 10u8 , 238u8 , 249u8 , 102u8 , 121u8 , 59u8 , 74u8 , 155u8 , 129u8 , 16u8 , 44u8 , 90u8 , 163u8 , 19u8 , 15u8 , 22u8 , 6u8 , 44u8 , 254u8 , 120u8 , 15u8 , 117u8 , 73u8 , 85u8 , 73u8 , 74u8 ,]) } # [doc = " --- ITEM( nominator_min_required_stake ) --- Factor of DefaultMinStake in per-mill format."] pub fn nominator_min_required_stake (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: nominator_min_required_stake :: NominatorMinRequiredStake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NominatorMinRequiredStake" , () , [25u8 , 60u8 , 15u8 , 61u8 , 202u8 , 65u8 , 157u8 , 188u8 , 225u8 , 173u8 , 91u8 , 204u8 , 252u8 , 105u8 , 243u8 , 30u8 , 194u8 , 185u8 , 127u8 , 230u8 , 12u8 , 7u8 , 76u8 , 185u8 , 44u8 , 154u8 , 150u8 , 192u8 , 114u8 , 2u8 , 162u8 , 86u8 ,]) } # [doc = " ITEM( weights_version_key_rate_limit ) --- Rate limit in tempos."] pub fn weights_version_key_rate_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: weights_version_key_rate_limit :: WeightsVersionKeyRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightsVersionKeyRateLimit" , () , [239u8 , 254u8 , 114u8 , 81u8 , 104u8 , 96u8 , 97u8 , 113u8 , 66u8 , 206u8 , 85u8 , 197u8 , 163u8 , 240u8 , 131u8 , 172u8 , 173u8 , 100u8 , 76u8 , 160u8 , 209u8 , 60u8 , 134u8 , 22u8 , 193u8 , 185u8 , 83u8 , 253u8 , 177u8 , 212u8 , 78u8 , 80u8 ,]) } # [doc = " ============================"] # [doc = " ==== Rate Limiting ====="] # [doc = " ============================"] # [doc = " --- MAP ( RateLimitKey ) --> Block number in which the last rate limited operation occured"] pub fn last_rate_limited_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_rate_limited_block :: LastRateLimitedBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastRateLimitedBlock" , () , [148u8 , 68u8 , 35u8 , 81u8 , 231u8 , 90u8 , 38u8 , 228u8 , 100u8 , 77u8 , 121u8 , 246u8 , 243u8 , 34u8 , 151u8 , 134u8 , 155u8 , 104u8 , 233u8 , 78u8 , 39u8 , 94u8 , 64u8 , 41u8 , 28u8 , 64u8 , 56u8 , 131u8 , 190u8 , 249u8 , 3u8 , 111u8 ,]) } # [doc = " ============================"] # [doc = " ==== Rate Limiting ====="] # [doc = " ============================"] # [doc = " --- MAP ( RateLimitKey ) --> Block number in which the last rate limited operation occured"] pub fn last_rate_limited_block (& self , _0 : types :: last_rate_limited_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_rate_limited_block :: Param0 > , types :: last_rate_limited_block :: LastRateLimitedBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastRateLimitedBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [148u8 , 68u8 , 35u8 , 81u8 , 231u8 , 90u8 , 38u8 , 228u8 , 100u8 , 77u8 , 121u8 , 246u8 , 243u8 , 34u8 , 151u8 , 134u8 , 155u8 , 104u8 , 233u8 , 78u8 , 39u8 , 94u8 , 64u8 , 41u8 , 28u8 , 64u8 , 56u8 , 131u8 , 190u8 , 249u8 , 3u8 , 111u8 ,]) } # [doc = " ============================"] # [doc = " ==== Subnet Locks ====="] # [doc = " ============================"] # [doc = " --- MAP ( netuid ) --> transfer_toggle"] pub fn transfer_toggle_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: transfer_toggle :: TransferToggle , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TransferToggle" , () , [97u8 , 196u8 , 228u8 , 191u8 , 57u8 , 26u8 , 147u8 , 173u8 , 231u8 , 138u8 , 92u8 , 47u8 , 193u8 , 222u8 , 46u8 , 15u8 , 127u8 , 123u8 , 211u8 , 230u8 , 227u8 , 204u8 , 209u8 , 189u8 , 148u8 , 231u8 , 4u8 , 92u8 , 68u8 , 71u8 , 43u8 , 253u8 ,]) } # [doc = " ============================"] # [doc = " ==== Subnet Locks ====="] # [doc = " ============================"] # [doc = " --- MAP ( netuid ) --> transfer_toggle"] pub fn transfer_toggle (& self , _0 : types :: transfer_toggle :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transfer_toggle :: Param0 > , types :: transfer_toggle :: TransferToggle , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TransferToggle" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [97u8 , 196u8 , 228u8 , 191u8 , 57u8 , 26u8 , 147u8 , 173u8 , 231u8 , 138u8 , 92u8 , 47u8 , 193u8 , 222u8 , 46u8 , 15u8 , 127u8 , 123u8 , 211u8 , 230u8 , 227u8 , 204u8 , 209u8 , 189u8 , 148u8 , 231u8 , 4u8 , 92u8 , 68u8 , 71u8 , 43u8 , 253u8 ,]) } # [doc = " --- MAP ( netuid ) --> total_subnet_locked"] pub fn subnet_locked_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_locked :: SubnetLocked , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLocked" , () , [30u8 , 43u8 , 18u8 , 122u8 , 32u8 , 192u8 , 68u8 , 191u8 , 178u8 , 157u8 , 100u8 , 155u8 , 254u8 , 246u8 , 87u8 , 39u8 , 252u8 , 73u8 , 76u8 , 199u8 , 255u8 , 50u8 , 203u8 , 168u8 , 207u8 , 203u8 , 7u8 , 177u8 , 160u8 , 108u8 , 188u8 , 98u8 ,]) } # [doc = " --- MAP ( netuid ) --> total_subnet_locked"] pub fn subnet_locked (& self , _0 : types :: subnet_locked :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_locked :: Param0 > , types :: subnet_locked :: SubnetLocked , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLocked" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [30u8 , 43u8 , 18u8 , 122u8 , 32u8 , 192u8 , 68u8 , 191u8 , 178u8 , 157u8 , 100u8 , 155u8 , 254u8 , 246u8 , 87u8 , 39u8 , 252u8 , 73u8 , 76u8 , 199u8 , 255u8 , 50u8 , 203u8 , 168u8 , 207u8 , 203u8 , 7u8 , 177u8 , 160u8 , 108u8 , 188u8 , 98u8 ,]) } # [doc = " --- MAP ( netuid ) --> largest_locked"] pub fn largest_locked_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: largest_locked :: LargestLocked , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LargestLocked" , () , [34u8 , 112u8 , 36u8 , 69u8 , 226u8 , 161u8 , 248u8 , 14u8 , 187u8 , 161u8 , 172u8 , 132u8 , 2u8 , 44u8 , 177u8 , 208u8 , 181u8 , 138u8 , 118u8 , 106u8 , 190u8 , 27u8 , 226u8 , 201u8 , 135u8 , 73u8 , 154u8 , 99u8 , 117u8 , 228u8 , 238u8 , 186u8 ,]) } # [doc = " --- MAP ( netuid ) --> largest_locked"] pub fn largest_locked (& self , _0 : types :: largest_locked :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: largest_locked :: Param0 > , types :: largest_locked :: LargestLocked , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LargestLocked" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [34u8 , 112u8 , 36u8 , 69u8 , 226u8 , 161u8 , 248u8 , 14u8 , 187u8 , 161u8 , 172u8 , 132u8 , 2u8 , 44u8 , 177u8 , 208u8 , 181u8 , 138u8 , 118u8 , 106u8 , 190u8 , 27u8 , 226u8 , 201u8 , 135u8 , 73u8 , 154u8 , 99u8 , 117u8 , 228u8 , 238u8 , 186u8 ,]) } # [doc = " ================="] # [doc = " ==== Tempos ====="] # [doc = " ================="] # [doc = " --- MAP ( netuid ) --> tempo"] pub fn tempo_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tempo :: Tempo , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Tempo" , () , [104u8 , 78u8 , 96u8 , 198u8 , 177u8 , 63u8 , 191u8 , 130u8 , 193u8 , 42u8 , 248u8 , 107u8 , 189u8 , 131u8 , 255u8 , 124u8 , 11u8 , 182u8 , 25u8 , 38u8 , 42u8 , 96u8 , 26u8 , 67u8 , 57u8 , 108u8 , 68u8 , 231u8 , 202u8 , 170u8 , 202u8 , 180u8 ,]) } # [doc = " ================="] # [doc = " ==== Tempos ====="] # [doc = " ================="] # [doc = " --- MAP ( netuid ) --> tempo"] pub fn tempo (& self , _0 : types :: tempo :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tempo :: Param0 > , types :: tempo :: Tempo , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Tempo" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [104u8 , 78u8 , 96u8 , 198u8 , 177u8 , 63u8 , 191u8 , 130u8 , 193u8 , 42u8 , 248u8 , 107u8 , 189u8 , 131u8 , 255u8 , 124u8 , 11u8 , 182u8 , 25u8 , 38u8 , 42u8 , 96u8 , 26u8 , 67u8 , 57u8 , 108u8 , 68u8 , 231u8 , 202u8 , 170u8 , 202u8 , 180u8 ,]) } # [doc = " ============================"] # [doc = " ==== Subnet Parameters ====="] # [doc = " ============================"] # [doc = " --- MAP ( netuid ) --> block number of first emission"] pub fn first_emission_block_number_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: first_emission_block_number :: FirstEmissionBlockNumber , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "FirstEmissionBlockNumber" , () , [239u8 , 152u8 , 93u8 , 218u8 , 110u8 , 136u8 , 3u8 , 212u8 , 67u8 , 234u8 , 119u8 , 242u8 , 81u8 , 255u8 , 10u8 , 143u8 , 234u8 , 2u8 , 189u8 , 212u8 , 209u8 , 210u8 , 115u8 , 204u8 , 227u8 , 164u8 , 193u8 , 90u8 , 122u8 , 27u8 , 139u8 , 86u8 ,]) } # [doc = " ============================"] # [doc = " ==== Subnet Parameters ====="] # [doc = " ============================"] # [doc = " --- MAP ( netuid ) --> block number of first emission"] pub fn first_emission_block_number (& self , _0 : types :: first_emission_block_number :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: first_emission_block_number :: Param0 > , types :: first_emission_block_number :: FirstEmissionBlockNumber , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "FirstEmissionBlockNumber" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [239u8 , 152u8 , 93u8 , 218u8 , 110u8 , 136u8 , 3u8 , 212u8 , 67u8 , 234u8 , 119u8 , 242u8 , 81u8 , 255u8 , 10u8 , 143u8 , 234u8 , 2u8 , 189u8 , 212u8 , 209u8 , 210u8 , 115u8 , 204u8 , 227u8 , 164u8 , 193u8 , 90u8 , 122u8 , 27u8 , 139u8 , 86u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet mechanism"] pub fn subnet_mechanism_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_mechanism :: SubnetMechanism , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetMechanism" , () , [212u8 , 73u8 , 184u8 , 246u8 , 148u8 , 118u8 , 59u8 , 253u8 , 96u8 , 199u8 , 197u8 , 84u8 , 9u8 , 156u8 , 125u8 , 140u8 , 54u8 , 78u8 , 233u8 , 48u8 , 213u8 , 233u8 , 187u8 , 138u8 , 26u8 , 135u8 , 34u8 , 236u8 , 75u8 , 169u8 , 37u8 , 23u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet mechanism"] pub fn subnet_mechanism (& self , _0 : types :: subnet_mechanism :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_mechanism :: Param0 > , types :: subnet_mechanism :: SubnetMechanism , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetMechanism" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [212u8 , 73u8 , 184u8 , 246u8 , 148u8 , 118u8 , 59u8 , 253u8 , 96u8 , 199u8 , 197u8 , 84u8 , 9u8 , 156u8 , 125u8 , 140u8 , 54u8 , 78u8 , 233u8 , 48u8 , 213u8 , 233u8 , 187u8 , 138u8 , 26u8 , 135u8 , 34u8 , 236u8 , 75u8 , 169u8 , 37u8 , 23u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnetwork_n (Number of UIDs in the network)."] pub fn subnetwork_n_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnetwork_n :: SubnetworkN , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetworkN" , () , [14u8 , 190u8 , 185u8 , 215u8 , 93u8 , 134u8 , 150u8 , 83u8 , 248u8 , 254u8 , 184u8 , 105u8 , 213u8 , 65u8 , 205u8 , 128u8 , 46u8 , 234u8 , 231u8 , 176u8 , 195u8 , 175u8 , 97u8 , 75u8 , 33u8 , 209u8 , 155u8 , 55u8 , 158u8 , 0u8 , 159u8 , 140u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnetwork_n (Number of UIDs in the network)."] pub fn subnetwork_n (& self , _0 : types :: subnetwork_n :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnetwork_n :: Param0 > , types :: subnetwork_n :: SubnetworkN , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetworkN" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [14u8 , 190u8 , 185u8 , 215u8 , 93u8 , 134u8 , 150u8 , 83u8 , 248u8 , 254u8 , 184u8 , 105u8 , 213u8 , 65u8 , 205u8 , 128u8 , 46u8 , 234u8 , 231u8 , 176u8 , 195u8 , 175u8 , 97u8 , 75u8 , 33u8 , 209u8 , 155u8 , 55u8 , 158u8 , 0u8 , 159u8 , 140u8 ,]) } # [doc = " --- MAP ( netuid ) --> network_is_added"] pub fn networks_added_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: networks_added :: NetworksAdded , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworksAdded" , () , [246u8 , 161u8 , 17u8 , 237u8 , 203u8 , 101u8 , 133u8 , 177u8 , 241u8 , 246u8 , 131u8 , 72u8 , 167u8 , 117u8 , 117u8 , 183u8 , 50u8 , 185u8 , 129u8 , 136u8 , 132u8 , 158u8 , 194u8 , 134u8 , 208u8 , 34u8 , 38u8 , 91u8 , 47u8 , 89u8 , 4u8 , 53u8 ,]) } # [doc = " --- MAP ( netuid ) --> network_is_added"] pub fn networks_added (& self , _0 : types :: networks_added :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: networks_added :: Param0 > , types :: networks_added :: NetworksAdded , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworksAdded" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [246u8 , 161u8 , 17u8 , 237u8 , 203u8 , 101u8 , 133u8 , 177u8 , 241u8 , 246u8 , 131u8 , 72u8 , 167u8 , 117u8 , 117u8 , 183u8 , 50u8 , 185u8 , 129u8 , 136u8 , 132u8 , 158u8 , 194u8 , 134u8 , 208u8 , 34u8 , 38u8 , 91u8 , 47u8 , 89u8 , 4u8 , 53u8 ,]) } # [doc = " --- DMAP ( hotkey, netuid ) --> bool"] pub fn is_network_member_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: is_network_member :: IsNetworkMember , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "IsNetworkMember" , () , [173u8 , 44u8 , 159u8 , 45u8 , 191u8 , 17u8 , 225u8 , 54u8 , 118u8 , 238u8 , 172u8 , 202u8 , 215u8 , 188u8 , 112u8 , 230u8 , 77u8 , 134u8 , 91u8 , 35u8 , 26u8 , 107u8 , 129u8 , 153u8 , 206u8 , 3u8 , 119u8 , 130u8 , 70u8 , 20u8 , 14u8 , 112u8 ,]) } # [doc = " --- DMAP ( hotkey, netuid ) --> bool"] pub fn is_network_member_iter1 (& self , _0 : types :: is_network_member :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: is_network_member :: Param0 > , types :: is_network_member :: IsNetworkMember , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "IsNetworkMember" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [173u8 , 44u8 , 159u8 , 45u8 , 191u8 , 17u8 , 225u8 , 54u8 , 118u8 , 238u8 , 172u8 , 202u8 , 215u8 , 188u8 , 112u8 , 230u8 , 77u8 , 134u8 , 91u8 , 35u8 , 26u8 , 107u8 , 129u8 , 153u8 , 206u8 , 3u8 , 119u8 , 130u8 , 70u8 , 20u8 , 14u8 , 112u8 ,]) } # [doc = " --- DMAP ( hotkey, netuid ) --> bool"] pub fn is_network_member (& self , _0 : types :: is_network_member :: Param0 , _1 : types :: is_network_member :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: is_network_member :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: is_network_member :: Param1 > ,) , types :: is_network_member :: IsNetworkMember , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "IsNetworkMember" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [173u8 , 44u8 , 159u8 , 45u8 , 191u8 , 17u8 , 225u8 , 54u8 , 118u8 , 238u8 , 172u8 , 202u8 , 215u8 , 188u8 , 112u8 , 230u8 , 77u8 , 134u8 , 91u8 , 35u8 , 26u8 , 107u8 , 129u8 , 153u8 , 206u8 , 3u8 , 119u8 , 130u8 , 70u8 , 20u8 , 14u8 , 112u8 ,]) } # [doc = " --- MAP ( netuid ) --> network_registration_allowed"] pub fn network_registration_allowed_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_registration_allowed :: NetworkRegistrationAllowed , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkRegistrationAllowed" , () , [224u8 , 105u8 , 165u8 , 248u8 , 234u8 , 83u8 , 131u8 , 157u8 , 108u8 , 19u8 , 162u8 , 135u8 , 9u8 , 122u8 , 220u8 , 112u8 , 178u8 , 220u8 , 131u8 , 75u8 , 227u8 , 112u8 , 213u8 , 135u8 , 164u8 , 28u8 , 169u8 , 122u8 , 218u8 , 122u8 , 0u8 , 175u8 ,]) } # [doc = " --- MAP ( netuid ) --> network_registration_allowed"] pub fn network_registration_allowed (& self , _0 : types :: network_registration_allowed :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: network_registration_allowed :: Param0 > , types :: network_registration_allowed :: NetworkRegistrationAllowed , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkRegistrationAllowed" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [224u8 , 105u8 , 165u8 , 248u8 , 234u8 , 83u8 , 131u8 , 157u8 , 108u8 , 19u8 , 162u8 , 135u8 , 9u8 , 122u8 , 220u8 , 112u8 , 178u8 , 220u8 , 131u8 , 75u8 , 227u8 , 112u8 , 213u8 , 135u8 , 164u8 , 28u8 , 169u8 , 122u8 , 218u8 , 122u8 , 0u8 , 175u8 ,]) } # [doc = " --- MAP ( netuid ) --> network_pow_allowed"] pub fn network_pow_registration_allowed_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_pow_registration_allowed :: NetworkPowRegistrationAllowed , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkPowRegistrationAllowed" , () , [198u8 , 138u8 , 159u8 , 113u8 , 220u8 , 211u8 , 97u8 , 81u8 , 188u8 , 209u8 , 130u8 , 28u8 , 59u8 , 226u8 , 39u8 , 166u8 , 237u8 , 173u8 , 82u8 , 61u8 , 47u8 , 203u8 , 117u8 , 218u8 , 249u8 , 39u8 , 79u8 , 127u8 , 156u8 , 117u8 , 201u8 , 103u8 ,]) } # [doc = " --- MAP ( netuid ) --> network_pow_allowed"] pub fn network_pow_registration_allowed (& self , _0 : types :: network_pow_registration_allowed :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: network_pow_registration_allowed :: Param0 > , types :: network_pow_registration_allowed :: NetworkPowRegistrationAllowed , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkPowRegistrationAllowed" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [198u8 , 138u8 , 159u8 , 113u8 , 220u8 , 211u8 , 97u8 , 81u8 , 188u8 , 209u8 , 130u8 , 28u8 , 59u8 , 226u8 , 39u8 , 166u8 , 237u8 , 173u8 , 82u8 , 61u8 , 47u8 , 203u8 , 117u8 , 218u8 , 249u8 , 39u8 , 79u8 , 127u8 , 156u8 , 117u8 , 201u8 , 103u8 ,]) } # [doc = " --- MAP ( netuid ) --> block_created"] pub fn network_registered_at_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_registered_at :: NetworkRegisteredAt , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkRegisteredAt" , () , [123u8 , 234u8 , 64u8 , 248u8 , 32u8 , 119u8 , 192u8 , 176u8 , 98u8 , 201u8 , 74u8 , 210u8 , 34u8 , 148u8 , 254u8 , 127u8 , 10u8 , 31u8 , 205u8 , 17u8 , 43u8 , 177u8 , 159u8 , 189u8 , 199u8 , 72u8 , 1u8 , 246u8 , 96u8 , 73u8 , 12u8 , 34u8 ,]) } # [doc = " --- MAP ( netuid ) --> block_created"] pub fn network_registered_at (& self , _0 : types :: network_registered_at :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: network_registered_at :: Param0 > , types :: network_registered_at :: NetworkRegisteredAt , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkRegisteredAt" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [123u8 , 234u8 , 64u8 , 248u8 , 32u8 , 119u8 , 192u8 , 176u8 , 98u8 , 201u8 , 74u8 , 210u8 , 34u8 , 148u8 , 254u8 , 127u8 , 10u8 , 31u8 , 205u8 , 17u8 , 43u8 , 177u8 , 159u8 , 189u8 , 199u8 , 72u8 , 1u8 , 246u8 , 96u8 , 73u8 , 12u8 , 34u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_server_emission"] pub fn pending_server_emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_server_emission :: PendingServerEmission , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingServerEmission" , () , [42u8 , 170u8 , 65u8 , 71u8 , 206u8 , 84u8 , 32u8 , 47u8 , 131u8 , 29u8 , 211u8 , 132u8 , 37u8 , 217u8 , 98u8 , 220u8 , 57u8 , 129u8 , 115u8 , 211u8 , 138u8 , 166u8 , 151u8 , 201u8 , 244u8 , 115u8 , 4u8 , 182u8 , 214u8 , 61u8 , 224u8 , 83u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_server_emission"] pub fn pending_server_emission (& self , _0 : types :: pending_server_emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_server_emission :: Param0 > , types :: pending_server_emission :: PendingServerEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingServerEmission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [42u8 , 170u8 , 65u8 , 71u8 , 206u8 , 84u8 , 32u8 , 47u8 , 131u8 , 29u8 , 211u8 , 132u8 , 37u8 , 217u8 , 98u8 , 220u8 , 57u8 , 129u8 , 115u8 , 211u8 , 138u8 , 166u8 , 151u8 , 201u8 , 244u8 , 115u8 , 4u8 , 182u8 , 214u8 , 61u8 , 224u8 , 83u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_validator_emission"] pub fn pending_validator_emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_validator_emission :: PendingValidatorEmission , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingValidatorEmission" , () , [69u8 , 125u8 , 248u8 , 71u8 , 123u8 , 119u8 , 199u8 , 153u8 , 85u8 , 165u8 , 128u8 , 228u8 , 158u8 , 208u8 , 107u8 , 36u8 , 109u8 , 70u8 , 246u8 , 114u8 , 17u8 , 88u8 , 143u8 , 149u8 , 184u8 , 159u8 , 151u8 , 10u8 , 191u8 , 106u8 , 16u8 , 183u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_validator_emission"] pub fn pending_validator_emission (& self , _0 : types :: pending_validator_emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_validator_emission :: Param0 > , types :: pending_validator_emission :: PendingValidatorEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingValidatorEmission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [69u8 , 125u8 , 248u8 , 71u8 , 123u8 , 119u8 , 199u8 , 153u8 , 85u8 , 165u8 , 128u8 , 228u8 , 158u8 , 208u8 , 107u8 , 36u8 , 109u8 , 70u8 , 246u8 , 114u8 , 17u8 , 88u8 , 143u8 , 149u8 , 184u8 , 159u8 , 151u8 , 10u8 , 191u8 , 106u8 , 16u8 , 183u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_root_alpha_emission"] pub fn pending_root_alpha_divs_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_root_alpha_divs :: PendingRootAlphaDivs , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingRootAlphaDivs" , () , [46u8 , 115u8 , 156u8 , 101u8 , 188u8 , 129u8 , 103u8 , 209u8 , 196u8 , 248u8 , 153u8 , 59u8 , 102u8 , 70u8 , 39u8 , 119u8 , 81u8 , 252u8 , 36u8 , 184u8 , 139u8 , 106u8 , 67u8 , 214u8 , 251u8 , 215u8 , 127u8 , 24u8 , 189u8 , 59u8 , 160u8 , 251u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_root_alpha_emission"] pub fn pending_root_alpha_divs (& self , _0 : types :: pending_root_alpha_divs :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_root_alpha_divs :: Param0 > , types :: pending_root_alpha_divs :: PendingRootAlphaDivs , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingRootAlphaDivs" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [46u8 , 115u8 , 156u8 , 101u8 , 188u8 , 129u8 , 103u8 , 209u8 , 196u8 , 248u8 , 153u8 , 59u8 , 102u8 , 70u8 , 39u8 , 119u8 , 81u8 , 252u8 , 36u8 , 184u8 , 139u8 , 106u8 , 67u8 , 214u8 , 251u8 , 215u8 , 127u8 , 24u8 , 189u8 , 59u8 , 160u8 , 251u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_owner_cut"] pub fn pending_owner_cut_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_owner_cut :: PendingOwnerCut , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingOwnerCut" , () , [136u8 , 188u8 , 33u8 , 177u8 , 166u8 , 227u8 , 185u8 , 163u8 , 221u8 , 53u8 , 74u8 , 240u8 , 13u8 , 229u8 , 161u8 , 133u8 , 255u8 , 157u8 , 12u8 , 238u8 , 240u8 , 199u8 , 64u8 , 35u8 , 199u8 , 208u8 , 91u8 , 101u8 , 113u8 , 73u8 , 178u8 , 55u8 ,]) } # [doc = " --- MAP ( netuid ) --> pending_owner_cut"] pub fn pending_owner_cut (& self , _0 : types :: pending_owner_cut :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending_owner_cut :: Param0 > , types :: pending_owner_cut :: PendingOwnerCut , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingOwnerCut" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [136u8 , 188u8 , 33u8 , 177u8 , 166u8 , 227u8 , 185u8 , 163u8 , 221u8 , 53u8 , 74u8 , 240u8 , 13u8 , 229u8 , 161u8 , 133u8 , 255u8 , 157u8 , 12u8 , 238u8 , 240u8 , 199u8 , 64u8 , 35u8 , 199u8 , 208u8 , 91u8 , 101u8 , 113u8 , 73u8 , 178u8 , 55u8 ,]) } # [doc = " --- MAP ( netuid ) --> blocks_since_last_step"] pub fn blocks_since_last_step_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: blocks_since_last_step :: BlocksSinceLastStep , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BlocksSinceLastStep" , () , [109u8 , 129u8 , 181u8 , 218u8 , 224u8 , 135u8 , 137u8 , 119u8 , 202u8 , 22u8 , 243u8 , 181u8 , 118u8 , 30u8 , 154u8 , 247u8 , 188u8 , 140u8 , 187u8 , 62u8 , 30u8 , 224u8 , 126u8 , 253u8 , 47u8 , 63u8 , 4u8 , 55u8 , 74u8 , 41u8 , 156u8 , 126u8 ,]) } # [doc = " --- MAP ( netuid ) --> blocks_since_last_step"] pub fn blocks_since_last_step (& self , _0 : types :: blocks_since_last_step :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: blocks_since_last_step :: Param0 > , types :: blocks_since_last_step :: BlocksSinceLastStep , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BlocksSinceLastStep" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [109u8 , 129u8 , 181u8 , 218u8 , 224u8 , 135u8 , 137u8 , 119u8 , 202u8 , 22u8 , 243u8 , 181u8 , 118u8 , 30u8 , 154u8 , 247u8 , 188u8 , 140u8 , 187u8 , 62u8 , 30u8 , 224u8 , 126u8 , 253u8 , 47u8 , 63u8 , 4u8 , 55u8 , 74u8 , 41u8 , 156u8 , 126u8 ,]) } # [doc = " --- MAP ( netuid ) --> last_mechanism_step_block"] pub fn last_mechansim_step_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_mechansim_step_block :: LastMechansimStepBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastMechansimStepBlock" , () , [1u8 , 255u8 , 178u8 , 25u8 , 130u8 , 241u8 , 246u8 , 122u8 , 11u8 , 55u8 , 138u8 , 125u8 , 4u8 , 119u8 , 247u8 , 144u8 , 254u8 , 76u8 , 169u8 , 106u8 , 202u8 , 192u8 , 222u8 , 51u8 , 90u8 , 157u8 , 155u8 , 160u8 , 85u8 , 248u8 , 250u8 , 11u8 ,]) } # [doc = " --- MAP ( netuid ) --> last_mechanism_step_block"] pub fn last_mechansim_step_block (& self , _0 : types :: last_mechansim_step_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_mechansim_step_block :: Param0 > , types :: last_mechansim_step_block :: LastMechansimStepBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastMechansimStepBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [1u8 , 255u8 , 178u8 , 25u8 , 130u8 , 241u8 , 246u8 , 122u8 , 11u8 , 55u8 , 138u8 , 125u8 , 4u8 , 119u8 , 247u8 , 144u8 , 254u8 , 76u8 , 169u8 , 106u8 , 202u8 , 192u8 , 222u8 , 51u8 , 90u8 , 157u8 , 155u8 , 160u8 , 85u8 , 248u8 , 250u8 , 11u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_owner"] pub fn subnet_owner_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_owner :: SubnetOwner , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetOwner" , () , [17u8 , 66u8 , 162u8 , 10u8 , 172u8 , 179u8 , 149u8 , 54u8 , 233u8 , 98u8 , 237u8 , 13u8 , 148u8 , 126u8 , 66u8 , 29u8 , 242u8 , 85u8 , 112u8 , 201u8 , 76u8 , 90u8 , 68u8 , 156u8 , 207u8 , 190u8 , 242u8 , 175u8 , 178u8 , 137u8 , 82u8 , 137u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_owner"] pub fn subnet_owner (& self , _0 : types :: subnet_owner :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_owner :: Param0 > , types :: subnet_owner :: SubnetOwner , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetOwner" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [17u8 , 66u8 , 162u8 , 10u8 , 172u8 , 179u8 , 149u8 , 54u8 , 233u8 , 98u8 , 237u8 , 13u8 , 148u8 , 126u8 , 66u8 , 29u8 , 242u8 , 85u8 , 112u8 , 201u8 , 76u8 , 90u8 , 68u8 , 156u8 , 207u8 , 190u8 , 242u8 , 175u8 , 178u8 , 137u8 , 82u8 , 137u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_owner_hotkey"] pub fn subnet_owner_hotkey_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_owner_hotkey :: SubnetOwnerHotkey , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetOwnerHotkey" , () , [246u8 , 148u8 , 12u8 , 90u8 , 111u8 , 18u8 , 142u8 , 181u8 , 12u8 , 130u8 , 24u8 , 199u8 , 130u8 , 111u8 , 201u8 , 142u8 , 10u8 , 12u8 , 144u8 , 51u8 , 104u8 , 29u8 , 118u8 , 181u8 , 27u8 , 177u8 , 176u8 , 20u8 , 20u8 , 36u8 , 202u8 , 112u8 ,]) } # [doc = " --- MAP ( netuid ) --> subnet_owner_hotkey"] pub fn subnet_owner_hotkey (& self , _0 : types :: subnet_owner_hotkey :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_owner_hotkey :: Param0 > , types :: subnet_owner_hotkey :: SubnetOwnerHotkey , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetOwnerHotkey" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [246u8 , 148u8 , 12u8 , 90u8 , 111u8 , 18u8 , 142u8 , 181u8 , 12u8 , 130u8 , 24u8 , 199u8 , 130u8 , 111u8 , 201u8 , 142u8 , 10u8 , 12u8 , 144u8 , 51u8 , 104u8 , 29u8 , 118u8 , 181u8 , 27u8 , 177u8 , 176u8 , 20u8 , 20u8 , 36u8 , 202u8 , 112u8 ,]) } # [doc = " --- MAP ( netuid ) --> recycle_or_burn"] pub fn recycle_or_burn_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: recycle_or_burn :: RecycleOrBurn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RecycleOrBurn" , () , [214u8 , 214u8 , 109u8 , 134u8 , 169u8 , 40u8 , 170u8 , 53u8 , 44u8 , 34u8 , 17u8 , 242u8 , 83u8 , 223u8 , 108u8 , 213u8 , 92u8 , 208u8 , 176u8 , 205u8 , 107u8 , 170u8 , 222u8 , 194u8 , 118u8 , 35u8 , 146u8 , 99u8 , 134u8 , 62u8 , 181u8 , 152u8 ,]) } # [doc = " --- MAP ( netuid ) --> recycle_or_burn"] pub fn recycle_or_burn (& self , _0 : types :: recycle_or_burn :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: recycle_or_burn :: Param0 > , types :: recycle_or_burn :: RecycleOrBurn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RecycleOrBurn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [214u8 , 214u8 , 109u8 , 134u8 , 169u8 , 40u8 , 170u8 , 53u8 , 44u8 , 34u8 , 17u8 , 242u8 , 83u8 , 223u8 , 108u8 , 213u8 , 92u8 , 208u8 , 176u8 , 205u8 , 107u8 , 170u8 , 222u8 , 194u8 , 118u8 , 35u8 , 146u8 , 99u8 , 134u8 , 62u8 , 181u8 , 152u8 ,]) } # [doc = " --- MAP ( netuid ) --> serving_rate_limit"] pub fn serving_rate_limit_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: serving_rate_limit :: ServingRateLimit , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ServingRateLimit" , () , [237u8 , 16u8 , 229u8 , 115u8 , 91u8 , 1u8 , 62u8 , 29u8 , 4u8 , 1u8 , 117u8 , 76u8 , 9u8 , 40u8 , 108u8 , 16u8 , 177u8 , 117u8 , 19u8 , 171u8 , 215u8 , 145u8 , 34u8 , 143u8 , 63u8 , 177u8 , 159u8 , 19u8 , 107u8 , 175u8 , 98u8 , 29u8 ,]) } # [doc = " --- MAP ( netuid ) --> serving_rate_limit"] pub fn serving_rate_limit (& self , _0 : types :: serving_rate_limit :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: serving_rate_limit :: Param0 > , types :: serving_rate_limit :: ServingRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ServingRateLimit" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [237u8 , 16u8 , 229u8 , 115u8 , 91u8 , 1u8 , 62u8 , 29u8 , 4u8 , 1u8 , 117u8 , 76u8 , 9u8 , 40u8 , 108u8 , 16u8 , 177u8 , 117u8 , 19u8 , 171u8 , 215u8 , 145u8 , 34u8 , 143u8 , 63u8 , 177u8 , 159u8 , 19u8 , 107u8 , 175u8 , 98u8 , 29u8 ,]) } # [doc = " --- MAP ( netuid ) --> Rho"] pub fn rho_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: rho :: Rho , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Rho" , () , [217u8 , 113u8 , 127u8 , 214u8 , 58u8 , 210u8 , 84u8 , 189u8 , 225u8 , 55u8 , 9u8 , 215u8 , 246u8 , 72u8 , 225u8 , 55u8 , 137u8 , 158u8 , 141u8 , 57u8 , 246u8 , 8u8 , 16u8 , 81u8 , 75u8 , 66u8 , 211u8 , 158u8 , 83u8 , 49u8 , 130u8 , 6u8 ,]) } # [doc = " --- MAP ( netuid ) --> Rho"] pub fn rho (& self , _0 : types :: rho :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: rho :: Param0 > , types :: rho :: Rho , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Rho" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [217u8 , 113u8 , 127u8 , 214u8 , 58u8 , 210u8 , 84u8 , 189u8 , 225u8 , 55u8 , 9u8 , 215u8 , 246u8 , 72u8 , 225u8 , 55u8 , 137u8 , 158u8 , 141u8 , 57u8 , 246u8 , 8u8 , 16u8 , 81u8 , 75u8 , 66u8 , 211u8 , 158u8 , 83u8 , 49u8 , 130u8 , 6u8 ,]) } # [doc = " --- MAP ( netuid ) --> AlphaSigmoidSteepness"] pub fn alpha_sigmoid_steepness_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: alpha_sigmoid_steepness :: AlphaSigmoidSteepness , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaSigmoidSteepness" , () , [22u8 , 49u8 , 191u8 , 106u8 , 126u8 , 130u8 , 160u8 , 216u8 , 21u8 , 193u8 , 72u8 , 252u8 , 163u8 , 254u8 , 222u8 , 158u8 , 26u8 , 97u8 , 246u8 , 51u8 , 206u8 , 65u8 , 10u8 , 196u8 , 81u8 , 252u8 , 157u8 , 90u8 , 221u8 , 244u8 , 128u8 , 37u8 ,]) } # [doc = " --- MAP ( netuid ) --> AlphaSigmoidSteepness"] pub fn alpha_sigmoid_steepness (& self , _0 : types :: alpha_sigmoid_steepness :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha_sigmoid_steepness :: Param0 > , types :: alpha_sigmoid_steepness :: AlphaSigmoidSteepness , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaSigmoidSteepness" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [22u8 , 49u8 , 191u8 , 106u8 , 126u8 , 130u8 , 160u8 , 216u8 , 21u8 , 193u8 , 72u8 , 252u8 , 163u8 , 254u8 , 222u8 , 158u8 , 26u8 , 97u8 , 246u8 , 51u8 , 206u8 , 65u8 , 10u8 , 196u8 , 81u8 , 252u8 , 157u8 , 90u8 , 221u8 , 244u8 , 128u8 , 37u8 ,]) } # [doc = " --- MAP ( netuid ) --> Kappa"] pub fn kappa_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: kappa :: Kappa , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Kappa" , () , [183u8 , 63u8 , 137u8 , 235u8 , 82u8 , 130u8 , 93u8 , 189u8 , 231u8 , 143u8 , 7u8 , 148u8 , 193u8 , 80u8 , 232u8 , 62u8 , 164u8 , 161u8 , 238u8 , 79u8 , 23u8 , 36u8 , 205u8 , 44u8 , 6u8 , 74u8 , 188u8 , 254u8 , 74u8 , 177u8 , 6u8 , 147u8 ,]) } # [doc = " --- MAP ( netuid ) --> Kappa"] pub fn kappa (& self , _0 : types :: kappa :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: kappa :: Param0 > , types :: kappa :: Kappa , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Kappa" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [183u8 , 63u8 , 137u8 , 235u8 , 82u8 , 130u8 , 93u8 , 189u8 , 231u8 , 143u8 , 7u8 , 148u8 , 193u8 , 80u8 , 232u8 , 62u8 , 164u8 , 161u8 , 238u8 , 79u8 , 23u8 , 36u8 , 205u8 , 44u8 , 6u8 , 74u8 , 188u8 , 254u8 , 74u8 , 177u8 , 6u8 , 147u8 ,]) } # [doc = " --- MAP ( netuid ) --> registrations_this_interval"] pub fn registrations_this_interval_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: registrations_this_interval :: RegistrationsThisInterval , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RegistrationsThisInterval" , () , [82u8 , 150u8 , 225u8 , 120u8 , 61u8 , 53u8 , 156u8 , 229u8 , 196u8 , 47u8 , 209u8 , 243u8 , 207u8 , 64u8 , 233u8 , 193u8 , 130u8 , 205u8 , 58u8 , 64u8 , 184u8 , 57u8 , 219u8 , 254u8 , 164u8 , 101u8 , 168u8 , 4u8 , 225u8 , 12u8 , 116u8 , 55u8 ,]) } # [doc = " --- MAP ( netuid ) --> registrations_this_interval"] pub fn registrations_this_interval (& self , _0 : types :: registrations_this_interval :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: registrations_this_interval :: Param0 > , types :: registrations_this_interval :: RegistrationsThisInterval , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RegistrationsThisInterval" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [82u8 , 150u8 , 225u8 , 120u8 , 61u8 , 53u8 , 156u8 , 229u8 , 196u8 , 47u8 , 209u8 , 243u8 , 207u8 , 64u8 , 233u8 , 193u8 , 130u8 , 205u8 , 58u8 , 64u8 , 184u8 , 57u8 , 219u8 , 254u8 , 164u8 , 101u8 , 168u8 , 4u8 , 225u8 , 12u8 , 116u8 , 55u8 ,]) } # [doc = " --- MAP ( netuid ) --> pow_registrations_this_interval"] pub fn pow_registrations_this_interval_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pow_registrations_this_interval :: PowRegistrationsThisInterval , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "POWRegistrationsThisInterval" , () , [137u8 , 0u8 , 128u8 , 92u8 , 62u8 , 201u8 , 248u8 , 253u8 , 92u8 , 50u8 , 81u8 , 86u8 , 59u8 , 216u8 , 49u8 , 61u8 , 120u8 , 197u8 , 237u8 , 172u8 , 97u8 , 101u8 , 249u8 , 122u8 , 169u8 , 246u8 , 23u8 , 69u8 , 98u8 , 74u8 , 108u8 , 183u8 ,]) } # [doc = " --- MAP ( netuid ) --> pow_registrations_this_interval"] pub fn pow_registrations_this_interval (& self , _0 : types :: pow_registrations_this_interval :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pow_registrations_this_interval :: Param0 > , types :: pow_registrations_this_interval :: PowRegistrationsThisInterval , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "POWRegistrationsThisInterval" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [137u8 , 0u8 , 128u8 , 92u8 , 62u8 , 201u8 , 248u8 , 253u8 , 92u8 , 50u8 , 81u8 , 86u8 , 59u8 , 216u8 , 49u8 , 61u8 , 120u8 , 197u8 , 237u8 , 172u8 , 97u8 , 101u8 , 249u8 , 122u8 , 169u8 , 246u8 , 23u8 , 69u8 , 98u8 , 74u8 , 108u8 , 183u8 ,]) } # [doc = " --- MAP ( netuid ) --> burn_registrations_this_interval"] pub fn burn_registrations_this_interval_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: burn_registrations_this_interval :: BurnRegistrationsThisInterval , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BurnRegistrationsThisInterval" , () , [41u8 , 170u8 , 250u8 , 166u8 , 41u8 , 18u8 , 190u8 , 42u8 , 45u8 , 103u8 , 105u8 , 137u8 , 86u8 , 241u8 , 101u8 , 43u8 , 205u8 , 174u8 , 251u8 , 227u8 , 82u8 , 119u8 , 19u8 , 94u8 , 41u8 , 10u8 , 132u8 , 0u8 , 171u8 , 248u8 , 147u8 , 114u8 ,]) } # [doc = " --- MAP ( netuid ) --> burn_registrations_this_interval"] pub fn burn_registrations_this_interval (& self , _0 : types :: burn_registrations_this_interval :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: burn_registrations_this_interval :: Param0 > , types :: burn_registrations_this_interval :: BurnRegistrationsThisInterval , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BurnRegistrationsThisInterval" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [41u8 , 170u8 , 250u8 , 166u8 , 41u8 , 18u8 , 190u8 , 42u8 , 45u8 , 103u8 , 105u8 , 137u8 , 86u8 , 241u8 , 101u8 , 43u8 , 205u8 , 174u8 , 251u8 , 227u8 , 82u8 , 119u8 , 19u8 , 94u8 , 41u8 , 10u8 , 132u8 , 0u8 , 171u8 , 248u8 , 147u8 , 114u8 ,]) } # [doc = " --- MAP ( netuid ) --> min_allowed_uids"] pub fn min_allowed_uids_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_allowed_uids :: MinAllowedUids , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinAllowedUids" , () , [22u8 , 167u8 , 24u8 , 40u8 , 166u8 , 199u8 , 192u8 , 241u8 , 126u8 , 68u8 , 90u8 , 103u8 , 92u8 , 227u8 , 250u8 , 22u8 , 216u8 , 214u8 , 26u8 , 238u8 , 248u8 , 51u8 , 29u8 , 165u8 , 146u8 , 131u8 , 199u8 , 102u8 , 9u8 , 161u8 , 75u8 , 246u8 ,]) } # [doc = " --- MAP ( netuid ) --> min_allowed_uids"] pub fn min_allowed_uids (& self , _0 : types :: min_allowed_uids :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: min_allowed_uids :: Param0 > , types :: min_allowed_uids :: MinAllowedUids , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinAllowedUids" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [22u8 , 167u8 , 24u8 , 40u8 , 166u8 , 199u8 , 192u8 , 241u8 , 126u8 , 68u8 , 90u8 , 103u8 , 92u8 , 227u8 , 250u8 , 22u8 , 216u8 , 214u8 , 26u8 , 238u8 , 248u8 , 51u8 , 29u8 , 165u8 , 146u8 , 131u8 , 199u8 , 102u8 , 9u8 , 161u8 , 75u8 , 246u8 ,]) } # [doc = " --- MAP ( netuid ) --> max_allowed_uids"] pub fn max_allowed_uids_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_allowed_uids :: MaxAllowedUids , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxAllowedUids" , () , [103u8 , 194u8 , 4u8 , 173u8 , 182u8 , 163u8 , 163u8 , 1u8 , 186u8 , 185u8 , 66u8 , 126u8 , 65u8 , 255u8 , 56u8 , 124u8 , 32u8 , 146u8 , 248u8 , 172u8 , 106u8 , 230u8 , 16u8 , 17u8 , 58u8 , 105u8 , 32u8 , 199u8 , 104u8 , 148u8 , 89u8 , 220u8 ,]) } # [doc = " --- MAP ( netuid ) --> max_allowed_uids"] pub fn max_allowed_uids (& self , _0 : types :: max_allowed_uids :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: max_allowed_uids :: Param0 > , types :: max_allowed_uids :: MaxAllowedUids , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxAllowedUids" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [103u8 , 194u8 , 4u8 , 173u8 , 182u8 , 163u8 , 163u8 , 1u8 , 186u8 , 185u8 , 66u8 , 126u8 , 65u8 , 255u8 , 56u8 , 124u8 , 32u8 , 146u8 , 248u8 , 172u8 , 106u8 , 230u8 , 16u8 , 17u8 , 58u8 , 105u8 , 32u8 , 199u8 , 104u8 , 148u8 , 89u8 , 220u8 ,]) } # [doc = " --- MAP ( netuid ) --> immunity_period"] pub fn immunity_period_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: immunity_period :: ImmunityPeriod , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ImmunityPeriod" , () , [70u8 , 128u8 , 190u8 , 139u8 , 24u8 , 7u8 , 169u8 , 148u8 , 152u8 , 190u8 , 182u8 , 15u8 , 153u8 , 243u8 , 173u8 , 164u8 , 90u8 , 126u8 , 88u8 , 147u8 , 204u8 , 184u8 , 113u8 , 40u8 , 239u8 , 243u8 , 172u8 , 127u8 , 255u8 , 98u8 , 163u8 , 185u8 ,]) } # [doc = " --- MAP ( netuid ) --> immunity_period"] pub fn immunity_period (& self , _0 : types :: immunity_period :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: immunity_period :: Param0 > , types :: immunity_period :: ImmunityPeriod , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ImmunityPeriod" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [70u8 , 128u8 , 190u8 , 139u8 , 24u8 , 7u8 , 169u8 , 148u8 , 152u8 , 190u8 , 182u8 , 15u8 , 153u8 , 243u8 , 173u8 , 164u8 , 90u8 , 126u8 , 88u8 , 147u8 , 204u8 , 184u8 , 113u8 , 40u8 , 239u8 , 243u8 , 172u8 , 127u8 , 255u8 , 98u8 , 163u8 , 185u8 ,]) } # [doc = " --- MAP ( netuid ) --> activity_cutoff"] pub fn activity_cutoff_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: activity_cutoff :: ActivityCutoff , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ActivityCutoff" , () , [89u8 , 224u8 , 144u8 , 219u8 , 103u8 , 178u8 , 43u8 , 161u8 , 8u8 , 116u8 , 75u8 , 181u8 , 177u8 , 97u8 , 38u8 , 12u8 , 230u8 , 202u8 , 240u8 , 40u8 , 163u8 , 225u8 , 236u8 , 151u8 , 197u8 , 24u8 , 193u8 , 70u8 , 47u8 , 214u8 , 240u8 , 83u8 ,]) } # [doc = " --- MAP ( netuid ) --> activity_cutoff"] pub fn activity_cutoff (& self , _0 : types :: activity_cutoff :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: activity_cutoff :: Param0 > , types :: activity_cutoff :: ActivityCutoff , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ActivityCutoff" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [89u8 , 224u8 , 144u8 , 219u8 , 103u8 , 178u8 , 43u8 , 161u8 , 8u8 , 116u8 , 75u8 , 181u8 , 177u8 , 97u8 , 38u8 , 12u8 , 230u8 , 202u8 , 240u8 , 40u8 , 163u8 , 225u8 , 236u8 , 151u8 , 197u8 , 24u8 , 193u8 , 70u8 , 47u8 , 214u8 , 240u8 , 83u8 ,]) } # [doc = " --- MAP ( netuid ) --> max_weight_limit"] pub fn max_weights_limit_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_weights_limit :: MaxWeightsLimit , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxWeightsLimit" , () , [196u8 , 51u8 , 76u8 , 19u8 , 131u8 , 191u8 , 47u8 , 164u8 , 180u8 , 137u8 , 42u8 , 212u8 , 29u8 , 30u8 , 252u8 , 121u8 , 140u8 , 117u8 , 191u8 , 205u8 , 247u8 , 192u8 , 136u8 , 228u8 , 186u8 , 237u8 , 220u8 , 17u8 , 233u8 , 153u8 , 46u8 , 61u8 ,]) } # [doc = " --- MAP ( netuid ) --> max_weight_limit"] pub fn max_weights_limit (& self , _0 : types :: max_weights_limit :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: max_weights_limit :: Param0 > , types :: max_weights_limit :: MaxWeightsLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxWeightsLimit" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [196u8 , 51u8 , 76u8 , 19u8 , 131u8 , 191u8 , 47u8 , 164u8 , 180u8 , 137u8 , 42u8 , 212u8 , 29u8 , 30u8 , 252u8 , 121u8 , 140u8 , 117u8 , 191u8 , 205u8 , 247u8 , 192u8 , 136u8 , 228u8 , 186u8 , 237u8 , 220u8 , 17u8 , 233u8 , 153u8 , 46u8 , 61u8 ,]) } # [doc = " --- MAP ( netuid ) --> weights_version_key"] pub fn weights_version_key_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: weights_version_key :: WeightsVersionKey , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightsVersionKey" , () , [21u8 , 190u8 , 212u8 , 229u8 , 10u8 , 128u8 , 146u8 , 53u8 , 14u8 , 95u8 , 216u8 , 17u8 , 0u8 , 196u8 , 96u8 , 121u8 , 100u8 , 183u8 , 80u8 , 81u8 , 116u8 , 83u8 , 3u8 , 105u8 , 49u8 , 82u8 , 37u8 , 43u8 , 15u8 , 225u8 , 181u8 , 13u8 ,]) } # [doc = " --- MAP ( netuid ) --> weights_version_key"] pub fn weights_version_key (& self , _0 : types :: weights_version_key :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weights_version_key :: Param0 > , types :: weights_version_key :: WeightsVersionKey , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightsVersionKey" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [21u8 , 190u8 , 212u8 , 229u8 , 10u8 , 128u8 , 146u8 , 53u8 , 14u8 , 95u8 , 216u8 , 17u8 , 0u8 , 196u8 , 96u8 , 121u8 , 100u8 , 183u8 , 80u8 , 81u8 , 116u8 , 83u8 , 3u8 , 105u8 , 49u8 , 82u8 , 37u8 , 43u8 , 15u8 , 225u8 , 181u8 , 13u8 ,]) } # [doc = " --- MAP ( netuid ) --> min_allowed_weights"] pub fn min_allowed_weights_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_allowed_weights :: MinAllowedWeights , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinAllowedWeights" , () , [113u8 , 188u8 , 139u8 , 178u8 , 162u8 , 34u8 , 89u8 , 245u8 , 248u8 , 78u8 , 152u8 , 110u8 , 240u8 , 138u8 , 117u8 , 226u8 , 247u8 , 84u8 , 43u8 , 89u8 , 219u8 , 75u8 , 228u8 , 50u8 , 212u8 , 17u8 , 128u8 , 228u8 , 4u8 , 247u8 , 173u8 , 138u8 ,]) } # [doc = " --- MAP ( netuid ) --> min_allowed_weights"] pub fn min_allowed_weights (& self , _0 : types :: min_allowed_weights :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: min_allowed_weights :: Param0 > , types :: min_allowed_weights :: MinAllowedWeights , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinAllowedWeights" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [113u8 , 188u8 , 139u8 , 178u8 , 162u8 , 34u8 , 89u8 , 245u8 , 248u8 , 78u8 , 152u8 , 110u8 , 240u8 , 138u8 , 117u8 , 226u8 , 247u8 , 84u8 , 43u8 , 89u8 , 219u8 , 75u8 , 228u8 , 50u8 , 212u8 , 17u8 , 128u8 , 228u8 , 4u8 , 247u8 , 173u8 , 138u8 ,]) } # [doc = " --- MAP ( netuid ) --> max_allowed_validators"] pub fn max_allowed_validators_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_allowed_validators :: MaxAllowedValidators , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxAllowedValidators" , () , [94u8 , 68u8 , 128u8 , 243u8 , 87u8 , 104u8 , 50u8 , 96u8 , 190u8 , 109u8 , 70u8 , 25u8 , 40u8 , 54u8 , 181u8 , 68u8 , 187u8 , 79u8 , 42u8 , 131u8 , 132u8 , 52u8 , 209u8 , 7u8 , 93u8 , 235u8 , 162u8 , 168u8 , 32u8 , 170u8 , 214u8 , 211u8 ,]) } # [doc = " --- MAP ( netuid ) --> max_allowed_validators"] pub fn max_allowed_validators (& self , _0 : types :: max_allowed_validators :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: max_allowed_validators :: Param0 > , types :: max_allowed_validators :: MaxAllowedValidators , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxAllowedValidators" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [94u8 , 68u8 , 128u8 , 243u8 , 87u8 , 104u8 , 50u8 , 96u8 , 190u8 , 109u8 , 70u8 , 25u8 , 40u8 , 54u8 , 181u8 , 68u8 , 187u8 , 79u8 , 42u8 , 131u8 , 132u8 , 52u8 , 209u8 , 7u8 , 93u8 , 235u8 , 162u8 , 168u8 , 32u8 , 170u8 , 214u8 , 211u8 ,]) } # [doc = " --- MAP ( netuid ) --> adjustment_interval"] pub fn adjustment_interval_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: adjustment_interval :: AdjustmentInterval , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AdjustmentInterval" , () , [15u8 , 129u8 , 107u8 , 246u8 , 81u8 , 165u8 , 110u8 , 41u8 , 213u8 , 47u8 , 234u8 , 166u8 , 249u8 , 35u8 , 197u8 , 152u8 , 31u8 , 7u8 , 189u8 , 120u8 , 17u8 , 254u8 , 156u8 , 91u8 , 135u8 , 51u8 , 166u8 , 229u8 , 115u8 , 41u8 , 33u8 , 7u8 ,]) } # [doc = " --- MAP ( netuid ) --> adjustment_interval"] pub fn adjustment_interval (& self , _0 : types :: adjustment_interval :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: adjustment_interval :: Param0 > , types :: adjustment_interval :: AdjustmentInterval , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AdjustmentInterval" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [15u8 , 129u8 , 107u8 , 246u8 , 81u8 , 165u8 , 110u8 , 41u8 , 213u8 , 47u8 , 234u8 , 166u8 , 249u8 , 35u8 , 197u8 , 152u8 , 31u8 , 7u8 , 189u8 , 120u8 , 17u8 , 254u8 , 156u8 , 91u8 , 135u8 , 51u8 , 166u8 , 229u8 , 115u8 , 41u8 , 33u8 , 7u8 ,]) } # [doc = " --- MAP ( netuid ) --> bonds_moving_average"] pub fn bonds_moving_average_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bonds_moving_average :: BondsMovingAverage , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BondsMovingAverage" , () , [180u8 , 93u8 , 149u8 , 65u8 , 179u8 , 150u8 , 79u8 , 96u8 , 198u8 , 26u8 , 139u8 , 204u8 , 144u8 , 76u8 , 179u8 , 99u8 , 57u8 , 231u8 , 43u8 , 202u8 , 40u8 , 230u8 , 192u8 , 248u8 , 53u8 , 225u8 , 201u8 , 143u8 , 48u8 , 161u8 , 90u8 , 111u8 ,]) } # [doc = " --- MAP ( netuid ) --> bonds_moving_average"] pub fn bonds_moving_average (& self , _0 : types :: bonds_moving_average :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonds_moving_average :: Param0 > , types :: bonds_moving_average :: BondsMovingAverage , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BondsMovingAverage" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [180u8 , 93u8 , 149u8 , 65u8 , 179u8 , 150u8 , 79u8 , 96u8 , 198u8 , 26u8 , 139u8 , 204u8 , 144u8 , 76u8 , 179u8 , 99u8 , 57u8 , 231u8 , 43u8 , 202u8 , 40u8 , 230u8 , 192u8 , 248u8 , 53u8 , 225u8 , 201u8 , 143u8 , 48u8 , 161u8 , 90u8 , 111u8 ,]) } # [doc = " --- MAP ( netuid ) --> bonds_penalty"] pub fn bonds_penalty_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bonds_penalty :: BondsPenalty , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BondsPenalty" , () , [102u8 , 148u8 , 115u8 , 31u8 , 250u8 , 197u8 , 164u8 , 114u8 , 203u8 , 2u8 , 247u8 , 7u8 , 206u8 , 185u8 , 159u8 , 184u8 , 219u8 , 171u8 , 255u8 , 162u8 , 57u8 , 135u8 , 201u8 , 147u8 , 179u8 , 40u8 , 252u8 , 170u8 , 232u8 , 47u8 , 201u8 , 75u8 ,]) } # [doc = " --- MAP ( netuid ) --> bonds_penalty"] pub fn bonds_penalty (& self , _0 : types :: bonds_penalty :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonds_penalty :: Param0 > , types :: bonds_penalty :: BondsPenalty , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BondsPenalty" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [102u8 , 148u8 , 115u8 , 31u8 , 250u8 , 197u8 , 164u8 , 114u8 , 203u8 , 2u8 , 247u8 , 7u8 , 206u8 , 185u8 , 159u8 , 184u8 , 219u8 , 171u8 , 255u8 , 162u8 , 57u8 , 135u8 , 201u8 , 147u8 , 179u8 , 40u8 , 252u8 , 170u8 , 232u8 , 47u8 , 201u8 , 75u8 ,]) } # [doc = " --- MAP ( netuid ) --> bonds_reset"] pub fn bonds_reset_on_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bonds_reset_on :: BondsResetOn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BondsResetOn" , () , [17u8 , 71u8 , 255u8 , 66u8 , 190u8 , 27u8 , 191u8 , 10u8 , 24u8 , 49u8 , 78u8 , 30u8 , 157u8 , 95u8 , 240u8 , 164u8 , 139u8 , 210u8 , 79u8 , 168u8 , 99u8 , 31u8 , 99u8 , 179u8 , 39u8 , 144u8 , 227u8 , 154u8 , 5u8 , 207u8 , 175u8 , 135u8 ,]) } # [doc = " --- MAP ( netuid ) --> bonds_reset"] pub fn bonds_reset_on (& self , _0 : types :: bonds_reset_on :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonds_reset_on :: Param0 > , types :: bonds_reset_on :: BondsResetOn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BondsResetOn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [17u8 , 71u8 , 255u8 , 66u8 , 190u8 , 27u8 , 191u8 , 10u8 , 24u8 , 49u8 , 78u8 , 30u8 , 157u8 , 95u8 , 240u8 , 164u8 , 139u8 , 210u8 , 79u8 , 168u8 , 99u8 , 31u8 , 99u8 , 179u8 , 39u8 , 144u8 , 227u8 , 154u8 , 5u8 , 207u8 , 175u8 , 135u8 ,]) } # [doc = " --- MAP ( netuid ) --> weights_set_rate_limit"] pub fn weights_set_rate_limit_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: weights_set_rate_limit :: WeightsSetRateLimit , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightsSetRateLimit" , () , [70u8 , 81u8 , 142u8 , 75u8 , 162u8 , 207u8 , 75u8 , 24u8 , 120u8 , 233u8 , 253u8 , 71u8 , 249u8 , 9u8 , 62u8 , 169u8 , 119u8 , 124u8 , 45u8 , 113u8 , 77u8 , 186u8 , 55u8 , 4u8 , 5u8 , 91u8 , 166u8 , 171u8 , 41u8 , 215u8 , 57u8 , 132u8 ,]) } # [doc = " --- MAP ( netuid ) --> weights_set_rate_limit"] pub fn weights_set_rate_limit (& self , _0 : types :: weights_set_rate_limit :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weights_set_rate_limit :: Param0 > , types :: weights_set_rate_limit :: WeightsSetRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightsSetRateLimit" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [70u8 , 81u8 , 142u8 , 75u8 , 162u8 , 207u8 , 75u8 , 24u8 , 120u8 , 233u8 , 253u8 , 71u8 , 249u8 , 9u8 , 62u8 , 169u8 , 119u8 , 124u8 , 45u8 , 113u8 , 77u8 , 186u8 , 55u8 , 4u8 , 5u8 , 91u8 , 166u8 , 171u8 , 41u8 , 215u8 , 57u8 , 132u8 ,]) } # [doc = " --- MAP ( netuid ) --> validator_prune_len"] pub fn validator_prune_len_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validator_prune_len :: ValidatorPruneLen , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ValidatorPruneLen" , () , [225u8 , 241u8 , 182u8 , 243u8 , 247u8 , 144u8 , 187u8 , 64u8 , 15u8 , 223u8 , 8u8 , 214u8 , 171u8 , 122u8 , 162u8 , 33u8 , 163u8 , 216u8 , 48u8 , 146u8 , 253u8 , 230u8 , 250u8 , 22u8 , 22u8 , 110u8 , 204u8 , 70u8 , 126u8 , 246u8 , 100u8 , 69u8 ,]) } # [doc = " --- MAP ( netuid ) --> validator_prune_len"] pub fn validator_prune_len (& self , _0 : types :: validator_prune_len :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: validator_prune_len :: Param0 > , types :: validator_prune_len :: ValidatorPruneLen , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ValidatorPruneLen" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [225u8 , 241u8 , 182u8 , 243u8 , 247u8 , 144u8 , 187u8 , 64u8 , 15u8 , 223u8 , 8u8 , 214u8 , 171u8 , 122u8 , 162u8 , 33u8 , 163u8 , 216u8 , 48u8 , 146u8 , 253u8 , 230u8 , 250u8 , 22u8 , 22u8 , 110u8 , 204u8 , 70u8 , 126u8 , 246u8 , 100u8 , 69u8 ,]) } # [doc = " --- MAP ( netuid ) --> scaling_law_power"] pub fn scaling_law_power_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: scaling_law_power :: ScalingLawPower , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ScalingLawPower" , () , [195u8 , 171u8 , 225u8 , 2u8 , 211u8 , 254u8 , 87u8 , 76u8 , 255u8 , 7u8 , 175u8 , 101u8 , 123u8 , 92u8 , 44u8 , 26u8 , 124u8 , 92u8 , 9u8 , 207u8 , 82u8 , 30u8 , 243u8 , 26u8 , 52u8 , 12u8 , 200u8 , 149u8 , 93u8 , 23u8 , 204u8 , 141u8 ,]) } # [doc = " --- MAP ( netuid ) --> scaling_law_power"] pub fn scaling_law_power (& self , _0 : types :: scaling_law_power :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: scaling_law_power :: Param0 > , types :: scaling_law_power :: ScalingLawPower , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ScalingLawPower" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [195u8 , 171u8 , 225u8 , 2u8 , 211u8 , 254u8 , 87u8 , 76u8 , 255u8 , 7u8 , 175u8 , 101u8 , 123u8 , 92u8 , 44u8 , 26u8 , 124u8 , 92u8 , 9u8 , 207u8 , 82u8 , 30u8 , 243u8 , 26u8 , 52u8 , 12u8 , 200u8 , 149u8 , 93u8 , 23u8 , 204u8 , 141u8 ,]) } # [doc = " --- MAP ( netuid ) --> target_registrations_this_interval"] pub fn target_registrations_per_interval_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: target_registrations_per_interval :: TargetRegistrationsPerInterval , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TargetRegistrationsPerInterval" , () , [247u8 , 135u8 , 194u8 , 5u8 , 122u8 , 104u8 , 128u8 , 94u8 , 82u8 , 135u8 , 63u8 , 72u8 , 251u8 , 3u8 , 214u8 , 85u8 , 135u8 , 197u8 , 37u8 , 148u8 , 25u8 , 94u8 , 245u8 , 248u8 , 154u8 , 200u8 , 14u8 , 171u8 , 123u8 , 45u8 , 120u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> target_registrations_this_interval"] pub fn target_registrations_per_interval (& self , _0 : types :: target_registrations_per_interval :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: target_registrations_per_interval :: Param0 > , types :: target_registrations_per_interval :: TargetRegistrationsPerInterval , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TargetRegistrationsPerInterval" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [247u8 , 135u8 , 194u8 , 5u8 , 122u8 , 104u8 , 128u8 , 94u8 , 82u8 , 135u8 , 63u8 , 72u8 , 251u8 , 3u8 , 214u8 , 85u8 , 135u8 , 197u8 , 37u8 , 148u8 , 25u8 , 94u8 , 245u8 , 248u8 , 154u8 , 200u8 , 14u8 , 171u8 , 123u8 , 45u8 , 120u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> adjustment_alpha"] pub fn adjustment_alpha_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: adjustment_alpha :: AdjustmentAlpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AdjustmentAlpha" , () , [196u8 , 142u8 , 243u8 , 223u8 , 191u8 , 243u8 , 62u8 , 46u8 , 192u8 , 200u8 , 86u8 , 147u8 , 223u8 , 1u8 , 114u8 , 131u8 , 243u8 , 132u8 , 109u8 , 102u8 , 227u8 , 126u8 , 100u8 , 135u8 , 200u8 , 31u8 , 16u8 , 3u8 , 232u8 , 169u8 , 50u8 , 202u8 ,]) } # [doc = " --- MAP ( netuid ) --> adjustment_alpha"] pub fn adjustment_alpha (& self , _0 : types :: adjustment_alpha :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: adjustment_alpha :: Param0 > , types :: adjustment_alpha :: AdjustmentAlpha , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AdjustmentAlpha" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [196u8 , 142u8 , 243u8 , 223u8 , 191u8 , 243u8 , 62u8 , 46u8 , 192u8 , 200u8 , 86u8 , 147u8 , 223u8 , 1u8 , 114u8 , 131u8 , 243u8 , 132u8 , 109u8 , 102u8 , 227u8 , 126u8 , 100u8 , 135u8 , 200u8 , 31u8 , 16u8 , 3u8 , 232u8 , 169u8 , 50u8 , 202u8 ,]) } # [doc = " --- MAP ( netuid ) --> commit reveal v2 weights are enabled"] pub fn commit_reveal_weights_enabled_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: commit_reveal_weights_enabled :: CommitRevealWeightsEnabled , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CommitRevealWeightsEnabled" , () , [115u8 , 71u8 , 75u8 , 243u8 , 16u8 , 98u8 , 64u8 , 197u8 , 211u8 , 75u8 , 38u8 , 221u8 , 145u8 , 3u8 , 99u8 , 1u8 , 153u8 , 209u8 , 140u8 , 159u8 , 169u8 , 102u8 , 242u8 , 134u8 , 107u8 , 117u8 , 115u8 , 43u8 , 200u8 , 74u8 , 192u8 , 76u8 ,]) } # [doc = " --- MAP ( netuid ) --> commit reveal v2 weights are enabled"] pub fn commit_reveal_weights_enabled (& self , _0 : types :: commit_reveal_weights_enabled :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: commit_reveal_weights_enabled :: Param0 > , types :: commit_reveal_weights_enabled :: CommitRevealWeightsEnabled , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CommitRevealWeightsEnabled" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [115u8 , 71u8 , 75u8 , 243u8 , 16u8 , 98u8 , 64u8 , 197u8 , 211u8 , 75u8 , 38u8 , 221u8 , 145u8 , 3u8 , 99u8 , 1u8 , 153u8 , 209u8 , 140u8 , 159u8 , 169u8 , 102u8 , 242u8 , 134u8 , 107u8 , 117u8 , 115u8 , 43u8 , 200u8 , 74u8 , 192u8 , 76u8 ,]) } # [doc = " --- MAP ( netuid ) --> Burn"] pub fn burn_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: burn :: Burn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Burn" , () , [22u8 , 89u8 , 235u8 , 119u8 , 145u8 , 244u8 , 118u8 , 236u8 , 30u8 , 146u8 , 250u8 , 149u8 , 48u8 , 241u8 , 220u8 , 100u8 , 68u8 , 54u8 , 30u8 , 112u8 , 170u8 , 183u8 , 11u8 , 25u8 , 55u8 , 68u8 , 88u8 , 93u8 , 108u8 , 10u8 , 107u8 , 50u8 ,]) } # [doc = " --- MAP ( netuid ) --> Burn"] pub fn burn (& self , _0 : types :: burn :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: burn :: Param0 > , types :: burn :: Burn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Burn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [22u8 , 89u8 , 235u8 , 119u8 , 145u8 , 244u8 , 118u8 , 236u8 , 30u8 , 146u8 , 250u8 , 149u8 , 48u8 , 241u8 , 220u8 , 100u8 , 68u8 , 54u8 , 30u8 , 112u8 , 170u8 , 183u8 , 11u8 , 25u8 , 55u8 , 68u8 , 88u8 , 93u8 , 108u8 , 10u8 , 107u8 , 50u8 ,]) } # [doc = " --- MAP ( netuid ) --> Difficulty"] pub fn difficulty_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: difficulty :: Difficulty , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Difficulty" , () , [251u8 , 34u8 , 39u8 , 171u8 , 188u8 , 29u8 , 213u8 , 224u8 , 58u8 , 140u8 , 159u8 , 80u8 , 99u8 , 174u8 , 82u8 , 230u8 , 30u8 , 53u8 , 104u8 , 185u8 , 51u8 , 144u8 , 121u8 , 225u8 , 20u8 , 128u8 , 197u8 , 237u8 , 179u8 , 243u8 , 169u8 , 16u8 ,]) } # [doc = " --- MAP ( netuid ) --> Difficulty"] pub fn difficulty (& self , _0 : types :: difficulty :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: difficulty :: Param0 > , types :: difficulty :: Difficulty , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Difficulty" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [251u8 , 34u8 , 39u8 , 171u8 , 188u8 , 29u8 , 213u8 , 224u8 , 58u8 , 140u8 , 159u8 , 80u8 , 99u8 , 174u8 , 82u8 , 230u8 , 30u8 , 53u8 , 104u8 , 185u8 , 51u8 , 144u8 , 121u8 , 225u8 , 20u8 , 128u8 , 197u8 , 237u8 , 179u8 , 243u8 , 169u8 , 16u8 ,]) } # [doc = " --- MAP ( netuid ) --> MinBurn"] pub fn min_burn_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_burn :: MinBurn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinBurn" , () , [100u8 , 172u8 , 88u8 , 86u8 , 61u8 , 108u8 , 115u8 , 220u8 , 96u8 , 210u8 , 51u8 , 111u8 , 23u8 , 4u8 , 67u8 , 80u8 , 161u8 , 139u8 , 87u8 , 216u8 , 127u8 , 236u8 , 99u8 , 215u8 , 20u8 , 50u8 , 201u8 , 151u8 , 159u8 , 124u8 , 69u8 , 224u8 ,]) } # [doc = " --- MAP ( netuid ) --> MinBurn"] pub fn min_burn (& self , _0 : types :: min_burn :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: min_burn :: Param0 > , types :: min_burn :: MinBurn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinBurn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [100u8 , 172u8 , 88u8 , 86u8 , 61u8 , 108u8 , 115u8 , 220u8 , 96u8 , 210u8 , 51u8 , 111u8 , 23u8 , 4u8 , 67u8 , 80u8 , 161u8 , 139u8 , 87u8 , 216u8 , 127u8 , 236u8 , 99u8 , 215u8 , 20u8 , 50u8 , 201u8 , 151u8 , 159u8 , 124u8 , 69u8 , 224u8 ,]) } # [doc = " --- MAP ( netuid ) --> MaxBurn"] pub fn max_burn_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_burn :: MaxBurn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxBurn" , () , [0u8 , 195u8 , 55u8 , 83u8 , 46u8 , 216u8 , 74u8 , 42u8 , 213u8 , 195u8 , 52u8 , 6u8 , 8u8 , 168u8 , 21u8 , 78u8 , 78u8 , 188u8 , 54u8 , 6u8 , 254u8 , 140u8 , 3u8 , 0u8 , 184u8 , 108u8 , 1u8 , 150u8 , 42u8 , 245u8 , 125u8 , 144u8 ,]) } # [doc = " --- MAP ( netuid ) --> MaxBurn"] pub fn max_burn (& self , _0 : types :: max_burn :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: max_burn :: Param0 > , types :: max_burn :: MaxBurn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxBurn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [0u8 , 195u8 , 55u8 , 83u8 , 46u8 , 216u8 , 74u8 , 42u8 , 213u8 , 195u8 , 52u8 , 6u8 , 8u8 , 168u8 , 21u8 , 78u8 , 78u8 , 188u8 , 54u8 , 6u8 , 254u8 , 140u8 , 3u8 , 0u8 , 184u8 , 108u8 , 1u8 , 150u8 , 42u8 , 245u8 , 125u8 , 144u8 ,]) } # [doc = " --- MAP ( netuid ) --> MinDifficulty"] pub fn min_difficulty_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_difficulty :: MinDifficulty , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinDifficulty" , () , [186u8 , 124u8 , 59u8 , 202u8 , 23u8 , 68u8 , 43u8 , 124u8 , 166u8 , 157u8 , 228u8 , 253u8 , 99u8 , 174u8 , 95u8 , 37u8 , 178u8 , 38u8 , 240u8 , 168u8 , 139u8 , 123u8 , 81u8 , 66u8 , 146u8 , 179u8 , 179u8 , 217u8 , 45u8 , 203u8 , 135u8 , 12u8 ,]) } # [doc = " --- MAP ( netuid ) --> MinDifficulty"] pub fn min_difficulty (& self , _0 : types :: min_difficulty :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: min_difficulty :: Param0 > , types :: min_difficulty :: MinDifficulty , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinDifficulty" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [186u8 , 124u8 , 59u8 , 202u8 , 23u8 , 68u8 , 43u8 , 124u8 , 166u8 , 157u8 , 228u8 , 253u8 , 99u8 , 174u8 , 95u8 , 37u8 , 178u8 , 38u8 , 240u8 , 168u8 , 139u8 , 123u8 , 81u8 , 66u8 , 146u8 , 179u8 , 179u8 , 217u8 , 45u8 , 203u8 , 135u8 , 12u8 ,]) } # [doc = " --- MAP ( netuid ) --> MaxDifficulty"] pub fn max_difficulty_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_difficulty :: MaxDifficulty , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxDifficulty" , () , [46u8 , 129u8 , 147u8 , 99u8 , 203u8 , 64u8 , 250u8 , 115u8 , 78u8 , 126u8 , 86u8 , 90u8 , 91u8 , 101u8 , 252u8 , 190u8 , 89u8 , 98u8 , 95u8 , 209u8 , 168u8 , 144u8 , 206u8 , 209u8 , 230u8 , 119u8 , 170u8 , 174u8 , 84u8 , 75u8 , 213u8 , 222u8 ,]) } # [doc = " --- MAP ( netuid ) --> MaxDifficulty"] pub fn max_difficulty (& self , _0 : types :: max_difficulty :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: max_difficulty :: Param0 > , types :: max_difficulty :: MaxDifficulty , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxDifficulty" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [46u8 , 129u8 , 147u8 , 99u8 , 203u8 , 64u8 , 250u8 , 115u8 , 78u8 , 126u8 , 86u8 , 90u8 , 91u8 , 101u8 , 252u8 , 190u8 , 89u8 , 98u8 , 95u8 , 209u8 , 168u8 , 144u8 , 206u8 , 209u8 , 230u8 , 119u8 , 170u8 , 174u8 , 84u8 , 75u8 , 213u8 , 222u8 ,]) } # [doc = " --- MAP ( netuid ) -->  Block at last adjustment."] pub fn last_adjustment_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_adjustment_block :: LastAdjustmentBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastAdjustmentBlock" , () , [144u8 , 153u8 , 243u8 , 4u8 , 76u8 , 97u8 , 87u8 , 84u8 , 16u8 , 101u8 , 8u8 , 162u8 , 236u8 , 213u8 , 60u8 , 161u8 , 131u8 , 22u8 , 249u8 , 109u8 , 242u8 , 70u8 , 138u8 , 19u8 , 19u8 , 224u8 , 199u8 , 163u8 , 240u8 , 219u8 , 187u8 , 201u8 ,]) } # [doc = " --- MAP ( netuid ) -->  Block at last adjustment."] pub fn last_adjustment_block (& self , _0 : types :: last_adjustment_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_adjustment_block :: Param0 > , types :: last_adjustment_block :: LastAdjustmentBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastAdjustmentBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [144u8 , 153u8 , 243u8 , 4u8 , 76u8 , 97u8 , 87u8 , 84u8 , 16u8 , 101u8 , 8u8 , 162u8 , 236u8 , 213u8 , 60u8 , 161u8 , 131u8 , 22u8 , 249u8 , 109u8 , 242u8 , 70u8 , 138u8 , 19u8 , 19u8 , 224u8 , 199u8 , 163u8 , 240u8 , 219u8 , 187u8 , 201u8 ,]) } # [doc = " --- MAP ( netuid ) --> Registrations of this Block."] pub fn registrations_this_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: registrations_this_block :: RegistrationsThisBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RegistrationsThisBlock" , () , [198u8 , 109u8 , 86u8 , 170u8 , 84u8 , 243u8 , 34u8 , 155u8 , 134u8 , 251u8 , 21u8 , 201u8 , 98u8 , 132u8 , 34u8 , 187u8 , 239u8 , 182u8 , 72u8 , 144u8 , 4u8 , 47u8 , 32u8 , 207u8 , 5u8 , 54u8 , 210u8 , 249u8 , 58u8 , 211u8 , 113u8 , 113u8 ,]) } # [doc = " --- MAP ( netuid ) --> Registrations of this Block."] pub fn registrations_this_block (& self , _0 : types :: registrations_this_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: registrations_this_block :: Param0 > , types :: registrations_this_block :: RegistrationsThisBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RegistrationsThisBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [198u8 , 109u8 , 86u8 , 170u8 , 84u8 , 243u8 , 34u8 , 155u8 , 134u8 , 251u8 , 21u8 , 201u8 , 98u8 , 132u8 , 34u8 , 187u8 , 239u8 , 182u8 , 72u8 , 144u8 , 4u8 , 47u8 , 32u8 , 207u8 , 5u8 , 54u8 , 210u8 , 249u8 , 58u8 , 211u8 , 113u8 , 113u8 ,]) } # [doc = " --- MAP ( netuid ) --> Halving time of average moving price."] pub fn ema_price_halving_blocks_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: ema_price_halving_blocks :: EmaPriceHalvingBlocks , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "EMAPriceHalvingBlocks" , () , [60u8 , 170u8 , 50u8 , 112u8 , 146u8 , 140u8 , 10u8 , 170u8 , 171u8 , 158u8 , 106u8 , 59u8 , 245u8 , 183u8 , 53u8 , 231u8 , 67u8 , 117u8 , 241u8 , 243u8 , 207u8 , 168u8 , 159u8 , 22u8 , 111u8 , 167u8 , 77u8 , 104u8 , 39u8 , 148u8 , 176u8 , 187u8 ,]) } # [doc = " --- MAP ( netuid ) --> Halving time of average moving price."] pub fn ema_price_halving_blocks (& self , _0 : types :: ema_price_halving_blocks :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: ema_price_halving_blocks :: Param0 > , types :: ema_price_halving_blocks :: EmaPriceHalvingBlocks , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "EMAPriceHalvingBlocks" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [60u8 , 170u8 , 50u8 , 112u8 , 146u8 , 140u8 , 10u8 , 170u8 , 171u8 , 158u8 , 106u8 , 59u8 , 245u8 , 183u8 , 53u8 , 231u8 , 67u8 , 117u8 , 241u8 , 243u8 , 207u8 , 168u8 , 159u8 , 22u8 , 111u8 , 167u8 , 77u8 , 104u8 , 39u8 , 148u8 , 176u8 , 187u8 ,]) } # [doc = " --- MAP ( netuid ) --> global_RAO_recycled_for_registration"] pub fn rao_recycled_for_registration_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: rao_recycled_for_registration :: RaoRecycledForRegistration , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RAORecycledForRegistration" , () , [124u8 , 58u8 , 21u8 , 4u8 , 81u8 , 158u8 , 21u8 , 117u8 , 241u8 , 67u8 , 244u8 , 109u8 , 179u8 , 60u8 , 157u8 , 209u8 , 46u8 , 76u8 , 232u8 , 89u8 , 152u8 , 61u8 , 230u8 , 85u8 , 32u8 , 213u8 , 63u8 , 161u8 , 129u8 , 143u8 , 234u8 , 250u8 ,]) } # [doc = " --- MAP ( netuid ) --> global_RAO_recycled_for_registration"] pub fn rao_recycled_for_registration (& self , _0 : types :: rao_recycled_for_registration :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: rao_recycled_for_registration :: Param0 > , types :: rao_recycled_for_registration :: RaoRecycledForRegistration , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RAORecycledForRegistration" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [124u8 , 58u8 , 21u8 , 4u8 , 81u8 , 158u8 , 21u8 , 117u8 , 241u8 , 67u8 , 244u8 , 109u8 , 179u8 , 60u8 , 157u8 , 209u8 , 46u8 , 76u8 , 232u8 , 89u8 , 152u8 , 61u8 , 230u8 , 85u8 , 32u8 , 213u8 , 63u8 , 161u8 , 129u8 , 143u8 , 234u8 , 250u8 ,]) } # [doc = " --- ITEM ( tx_rate_limit )"] pub fn tx_rate_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tx_rate_limit :: TxRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TxRateLimit" , () , [149u8 , 107u8 , 236u8 , 201u8 , 45u8 , 84u8 , 26u8 , 52u8 , 215u8 , 61u8 , 215u8 , 137u8 , 2u8 , 193u8 , 11u8 , 177u8 , 44u8 , 107u8 , 241u8 , 14u8 , 146u8 , 150u8 , 140u8 , 87u8 , 166u8 , 91u8 , 106u8 , 55u8 , 54u8 , 38u8 , 144u8 , 135u8 ,]) } # [doc = " --- ITEM ( tx_delegate_take_rate_limit )"] pub fn tx_delegate_take_rate_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tx_delegate_take_rate_limit :: TxDelegateTakeRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TxDelegateTakeRateLimit" , () , [35u8 , 50u8 , 47u8 , 168u8 , 70u8 , 43u8 , 231u8 , 96u8 , 101u8 , 158u8 , 34u8 , 209u8 , 65u8 , 244u8 , 40u8 , 13u8 , 247u8 , 24u8 , 44u8 , 249u8 , 223u8 , 235u8 , 131u8 , 169u8 , 40u8 , 145u8 , 67u8 , 204u8 , 158u8 , 187u8 , 232u8 , 12u8 ,]) } # [doc = " --- ITEM ( tx_childkey_take_rate_limit )"] pub fn tx_childkey_take_rate_limit (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tx_childkey_take_rate_limit :: TxChildkeyTakeRateLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TxChildkeyTakeRateLimit" , () , [188u8 , 114u8 , 147u8 , 189u8 , 187u8 , 221u8 , 224u8 , 253u8 , 34u8 , 109u8 , 225u8 , 43u8 , 82u8 , 71u8 , 184u8 , 132u8 , 51u8 , 219u8 , 237u8 , 255u8 , 85u8 , 23u8 , 215u8 , 128u8 , 81u8 , 57u8 , 11u8 , 188u8 , 40u8 , 53u8 , 163u8 , 5u8 ,]) } # [doc = " --- MAP ( netuid ) --> Whether or not Liquid Alpha is enabled"] pub fn liquid_alpha_on_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: liquid_alpha_on :: LiquidAlphaOn , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LiquidAlphaOn" , () , [163u8 , 44u8 , 143u8 , 121u8 , 172u8 , 79u8 , 198u8 , 64u8 , 45u8 , 150u8 , 212u8 , 4u8 , 77u8 , 48u8 , 41u8 , 44u8 , 26u8 , 120u8 , 241u8 , 133u8 , 10u8 , 166u8 , 41u8 , 158u8 , 78u8 , 25u8 , 47u8 , 239u8 , 113u8 , 220u8 , 109u8 , 194u8 ,]) } # [doc = " --- MAP ( netuid ) --> Whether or not Liquid Alpha is enabled"] pub fn liquid_alpha_on (& self , _0 : types :: liquid_alpha_on :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: liquid_alpha_on :: Param0 > , types :: liquid_alpha_on :: LiquidAlphaOn , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LiquidAlphaOn" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [163u8 , 44u8 , 143u8 , 121u8 , 172u8 , 79u8 , 198u8 , 64u8 , 45u8 , 150u8 , 212u8 , 4u8 , 77u8 , 48u8 , 41u8 , 44u8 , 26u8 , 120u8 , 241u8 , 133u8 , 10u8 , 166u8 , 41u8 , 158u8 , 78u8 , 25u8 , 47u8 , 239u8 , 113u8 , 220u8 , 109u8 , 194u8 ,]) } # [doc = " --- MAP ( netuid ) --> Whether or not Yuma3 is enabled"] pub fn yuma3_on_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: yuma3_on :: Yuma3On , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Yuma3On" , () , [208u8 , 177u8 , 216u8 , 152u8 , 250u8 , 210u8 , 118u8 , 11u8 , 172u8 , 232u8 , 164u8 , 212u8 , 202u8 , 115u8 , 136u8 , 109u8 , 114u8 , 110u8 , 189u8 , 201u8 , 45u8 , 109u8 , 109u8 , 31u8 , 190u8 , 134u8 , 33u8 , 155u8 , 14u8 , 116u8 , 191u8 , 11u8 ,]) } # [doc = " --- MAP ( netuid ) --> Whether or not Yuma3 is enabled"] pub fn yuma3_on (& self , _0 : types :: yuma3_on :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: yuma3_on :: Param0 > , types :: yuma3_on :: Yuma3On , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Yuma3On" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [208u8 , 177u8 , 216u8 , 152u8 , 250u8 , 210u8 , 118u8 , 11u8 , 172u8 , 232u8 , 164u8 , 212u8 , 202u8 , 115u8 , 136u8 , 109u8 , 114u8 , 110u8 , 189u8 , 201u8 , 45u8 , 109u8 , 109u8 , 31u8 , 190u8 , 134u8 , 33u8 , 155u8 , 14u8 , 116u8 , 191u8 , 11u8 ,]) } # [doc = "  MAP ( netuid ) --> (alpha_low, alpha_high)"] pub fn alpha_values_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: alpha_values :: AlphaValues , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaValues" , () , [172u8 , 118u8 , 42u8 , 110u8 , 137u8 , 250u8 , 125u8 , 146u8 , 214u8 , 245u8 , 167u8 , 25u8 , 67u8 , 46u8 , 246u8 , 87u8 , 156u8 , 158u8 , 138u8 , 90u8 , 78u8 , 155u8 , 107u8 , 107u8 , 231u8 , 197u8 , 212u8 , 170u8 , 182u8 , 86u8 , 106u8 , 190u8 ,]) } # [doc = "  MAP ( netuid ) --> (alpha_low, alpha_high)"] pub fn alpha_values (& self , _0 : types :: alpha_values :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha_values :: Param0 > , types :: alpha_values :: AlphaValues , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaValues" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [172u8 , 118u8 , 42u8 , 110u8 , 137u8 , 250u8 , 125u8 , 146u8 , 214u8 , 245u8 , 167u8 , 25u8 , 67u8 , 46u8 , 246u8 , 87u8 , 156u8 , 158u8 , 138u8 , 90u8 , 78u8 , 155u8 , 107u8 , 107u8 , 231u8 , 197u8 , 212u8 , 170u8 , 182u8 , 86u8 , 106u8 , 190u8 ,]) } # [doc = " --- MAP ( netuid ) --> If subtoken trading enabled"] pub fn subtoken_enabled_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subtoken_enabled :: SubtokenEnabled , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubtokenEnabled" , () , [204u8 , 67u8 , 253u8 , 2u8 , 227u8 , 152u8 , 231u8 , 171u8 , 182u8 , 110u8 , 48u8 , 23u8 , 254u8 , 25u8 , 173u8 , 149u8 , 118u8 , 22u8 , 196u8 , 18u8 , 35u8 , 82u8 , 109u8 , 75u8 , 126u8 , 150u8 , 50u8 , 214u8 , 181u8 , 16u8 , 234u8 , 132u8 ,]) } # [doc = " --- MAP ( netuid ) --> If subtoken trading enabled"] pub fn subtoken_enabled (& self , _0 : types :: subtoken_enabled :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subtoken_enabled :: Param0 > , types :: subtoken_enabled :: SubtokenEnabled , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubtokenEnabled" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [204u8 , 67u8 , 253u8 , 2u8 , 227u8 , 152u8 , 231u8 , 171u8 , 182u8 , 110u8 , 48u8 , 23u8 , 254u8 , 25u8 , 173u8 , 149u8 , 118u8 , 22u8 , 196u8 , 18u8 , 35u8 , 82u8 , 109u8 , 75u8 , 126u8 , 150u8 , 50u8 , 214u8 , 181u8 , 16u8 , 234u8 , 132u8 ,]) } # [doc = " --- MAP ( netuid ) --> Burn key limit"] pub fn immune_owner_uids_limit_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: immune_owner_uids_limit :: ImmuneOwnerUidsLimit , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ImmuneOwnerUidsLimit" , () , [18u8 , 85u8 , 53u8 , 145u8 , 109u8 , 130u8 , 114u8 , 89u8 , 118u8 , 49u8 , 15u8 , 12u8 , 89u8 , 93u8 , 177u8 , 216u8 , 180u8 , 68u8 , 219u8 , 215u8 , 195u8 , 32u8 , 176u8 , 82u8 , 227u8 , 200u8 , 191u8 , 65u8 , 80u8 , 241u8 , 39u8 , 92u8 ,]) } # [doc = " --- MAP ( netuid ) --> Burn key limit"] pub fn immune_owner_uids_limit (& self , _0 : types :: immune_owner_uids_limit :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: immune_owner_uids_limit :: Param0 > , types :: immune_owner_uids_limit :: ImmuneOwnerUidsLimit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ImmuneOwnerUidsLimit" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [18u8 , 85u8 , 53u8 , 145u8 , 109u8 , 130u8 , 114u8 , 89u8 , 118u8 , 49u8 , 15u8 , 12u8 , 89u8 , 93u8 , 177u8 , 216u8 , 180u8 , 68u8 , 219u8 , 215u8 , 195u8 , 32u8 , 176u8 , 82u8 , 227u8 , 200u8 , 191u8 , 65u8 , 80u8 , 241u8 , 39u8 , 92u8 ,]) } # [doc = " ======================================="] # [doc = " ==== Subnetwork Consensus Storage  ===="] # [doc = " ======================================="] # [doc = " --- DMAP ( netuid ) --> stake_weight | weight for stake used in YC."] pub fn stake_weight_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: stake_weight :: StakeWeight , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakeWeight" , () , [178u8 , 127u8 , 170u8 , 149u8 , 176u8 , 186u8 , 237u8 , 26u8 , 104u8 , 166u8 , 238u8 , 62u8 , 112u8 , 111u8 , 136u8 , 18u8 , 231u8 , 36u8 , 229u8 , 77u8 , 253u8 , 88u8 , 161u8 , 209u8 , 148u8 , 176u8 , 210u8 , 122u8 , 9u8 , 132u8 , 192u8 , 63u8 ,]) } # [doc = " ======================================="] # [doc = " ==== Subnetwork Consensus Storage  ===="] # [doc = " ======================================="] # [doc = " --- DMAP ( netuid ) --> stake_weight | weight for stake used in YC."] pub fn stake_weight (& self , _0 : types :: stake_weight :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: stake_weight :: Param0 > , types :: stake_weight :: StakeWeight , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakeWeight" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [178u8 , 127u8 , 170u8 , 149u8 , 176u8 , 186u8 , 237u8 , 26u8 , 104u8 , 166u8 , 238u8 , 62u8 , 112u8 , 111u8 , 136u8 , 18u8 , 231u8 , 36u8 , 229u8 , 77u8 , 253u8 , 88u8 , 161u8 , 209u8 , 148u8 , 176u8 , 210u8 , 122u8 , 9u8 , 132u8 , 192u8 , 63u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> uid"] pub fn uids_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: uids :: Uids , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Uids" , () , [33u8 , 64u8 , 48u8 , 239u8 , 201u8 , 205u8 , 31u8 , 252u8 , 134u8 , 235u8 , 58u8 , 176u8 , 244u8 , 181u8 , 9u8 , 16u8 , 21u8 , 92u8 , 2u8 , 171u8 , 13u8 , 215u8 , 67u8 , 212u8 , 139u8 , 193u8 , 145u8 , 164u8 , 186u8 , 86u8 , 163u8 , 44u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> uid"] pub fn uids_iter1 (& self , _0 : types :: uids :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: uids :: Param0 > , types :: uids :: Uids , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Uids" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [33u8 , 64u8 , 48u8 , 239u8 , 201u8 , 205u8 , 31u8 , 252u8 , 134u8 , 235u8 , 58u8 , 176u8 , 244u8 , 181u8 , 9u8 , 16u8 , 21u8 , 92u8 , 2u8 , 171u8 , 13u8 , 215u8 , 67u8 , 212u8 , 139u8 , 193u8 , 145u8 , 164u8 , 186u8 , 86u8 , 163u8 , 44u8 ,]) } # [doc = " --- DMAP ( netuid, hotkey ) --> uid"] pub fn uids (& self , _0 : types :: uids :: Param0 , _1 : types :: uids :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: uids :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: uids :: Param1 > ,) , types :: uids :: Uids , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Uids" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [33u8 , 64u8 , 48u8 , 239u8 , 201u8 , 205u8 , 31u8 , 252u8 , 134u8 , 235u8 , 58u8 , 176u8 , 244u8 , 181u8 , 9u8 , 16u8 , 21u8 , 92u8 , 2u8 , 171u8 , 13u8 , 215u8 , 67u8 , 212u8 , 139u8 , 193u8 , 145u8 , 164u8 , 186u8 , 86u8 , 163u8 , 44u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> hotkey"] pub fn keys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: keys :: Keys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Keys" , () , [110u8 , 251u8 , 14u8 , 35u8 , 199u8 , 87u8 , 231u8 , 16u8 , 178u8 , 193u8 , 240u8 , 20u8 , 184u8 , 57u8 , 187u8 , 227u8 , 67u8 , 80u8 , 120u8 , 148u8 , 51u8 , 239u8 , 130u8 , 12u8 , 35u8 , 84u8 , 213u8 , 233u8 , 239u8 , 79u8 , 153u8 , 141u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> hotkey"] pub fn keys_iter1 (& self , _0 : types :: keys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: keys :: Param0 > , types :: keys :: Keys , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Keys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [110u8 , 251u8 , 14u8 , 35u8 , 199u8 , 87u8 , 231u8 , 16u8 , 178u8 , 193u8 , 240u8 , 20u8 , 184u8 , 57u8 , 187u8 , 227u8 , 67u8 , 80u8 , 120u8 , 148u8 , 51u8 , 239u8 , 130u8 , 12u8 , 35u8 , 84u8 , 213u8 , 233u8 , 239u8 , 79u8 , 153u8 , 141u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> hotkey"] pub fn keys (& self , _0 : types :: keys :: Param0 , _1 : types :: keys :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: keys :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: keys :: Param1 > ,) , types :: keys :: Keys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Keys" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [110u8 , 251u8 , 14u8 , 35u8 , 199u8 , 87u8 , 231u8 , 16u8 , 178u8 , 193u8 , 240u8 , 20u8 , 184u8 , 57u8 , 187u8 , 227u8 , 67u8 , 80u8 , 120u8 , 148u8 , 51u8 , 239u8 , 130u8 , 12u8 , 35u8 , 84u8 , 213u8 , 233u8 , 239u8 , 79u8 , 153u8 , 141u8 ,]) } # [doc = " --- MAP ( netuid ) --> (hotkey, se, ve)"] pub fn loaded_emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: loaded_emission :: LoadedEmission , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LoadedEmission" , () , [99u8 , 238u8 , 26u8 , 122u8 , 183u8 , 3u8 , 163u8 , 126u8 , 63u8 , 141u8 , 224u8 , 228u8 , 59u8 , 73u8 , 241u8 , 12u8 , 25u8 , 95u8 , 185u8 , 31u8 , 35u8 , 168u8 , 166u8 , 104u8 , 233u8 , 10u8 , 246u8 , 80u8 , 62u8 , 8u8 , 187u8 , 16u8 ,]) } # [doc = " --- MAP ( netuid ) --> (hotkey, se, ve)"] pub fn loaded_emission (& self , _0 : types :: loaded_emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: loaded_emission :: Param0 > , types :: loaded_emission :: LoadedEmission , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LoadedEmission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [99u8 , 238u8 , 26u8 , 122u8 , 183u8 , 3u8 , 163u8 , 126u8 , 63u8 , 141u8 , 224u8 , 228u8 , 59u8 , 73u8 , 241u8 , 12u8 , 25u8 , 95u8 , 185u8 , 31u8 , 35u8 , 168u8 , 166u8 , 104u8 , 233u8 , 10u8 , 246u8 , 80u8 , 62u8 , 8u8 , 187u8 , 16u8 ,]) } # [doc = " --- MAP ( netuid ) --> active"] pub fn active_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: active :: Active , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Active" , () , [109u8 , 164u8 , 208u8 , 202u8 , 150u8 , 33u8 , 250u8 , 59u8 , 200u8 , 234u8 , 174u8 , 246u8 , 204u8 , 164u8 , 219u8 , 4u8 , 30u8 , 216u8 , 35u8 , 171u8 , 114u8 , 26u8 , 160u8 , 36u8 , 0u8 , 44u8 , 242u8 , 135u8 , 105u8 , 101u8 , 94u8 , 193u8 ,]) } # [doc = " --- MAP ( netuid ) --> active"] pub fn active (& self , _0 : types :: active :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: active :: Param0 > , types :: active :: Active , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Active" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [109u8 , 164u8 , 208u8 , 202u8 , 150u8 , 33u8 , 250u8 , 59u8 , 200u8 , 234u8 , 174u8 , 246u8 , 204u8 , 164u8 , 219u8 , 4u8 , 30u8 , 216u8 , 35u8 , 171u8 , 114u8 , 26u8 , 160u8 , 36u8 , 0u8 , 44u8 , 242u8 , 135u8 , 105u8 , 101u8 , 94u8 , 193u8 ,]) } # [doc = " --- MAP ( netuid ) --> rank"] pub fn rank_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: rank :: Rank , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Rank" , () , [33u8 , 31u8 , 249u8 , 241u8 , 86u8 , 164u8 , 206u8 , 129u8 , 237u8 , 230u8 , 157u8 , 154u8 , 167u8 , 190u8 , 153u8 , 34u8 , 68u8 , 77u8 , 205u8 , 51u8 , 187u8 , 123u8 , 177u8 , 19u8 , 59u8 , 235u8 , 249u8 , 108u8 , 91u8 , 120u8 , 138u8 , 50u8 ,]) } # [doc = " --- MAP ( netuid ) --> rank"] pub fn rank (& self , _0 : types :: rank :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: rank :: Param0 > , types :: rank :: Rank , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Rank" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [33u8 , 31u8 , 249u8 , 241u8 , 86u8 , 164u8 , 206u8 , 129u8 , 237u8 , 230u8 , 157u8 , 154u8 , 167u8 , 190u8 , 153u8 , 34u8 , 68u8 , 77u8 , 205u8 , 51u8 , 187u8 , 123u8 , 177u8 , 19u8 , 59u8 , 235u8 , 249u8 , 108u8 , 91u8 , 120u8 , 138u8 , 50u8 ,]) } # [doc = " --- MAP ( netuid ) --> trust"] pub fn trust_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: trust :: Trust , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Trust" , () , [124u8 , 193u8 , 206u8 , 175u8 , 93u8 , 13u8 , 212u8 , 40u8 , 57u8 , 119u8 , 182u8 , 240u8 , 115u8 , 122u8 , 158u8 , 206u8 , 213u8 , 0u8 , 131u8 , 182u8 , 129u8 , 81u8 , 116u8 , 120u8 , 79u8 , 234u8 , 216u8 , 157u8 , 32u8 , 10u8 , 190u8 , 76u8 ,]) } # [doc = " --- MAP ( netuid ) --> trust"] pub fn trust (& self , _0 : types :: trust :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: trust :: Param0 > , types :: trust :: Trust , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Trust" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [124u8 , 193u8 , 206u8 , 175u8 , 93u8 , 13u8 , 212u8 , 40u8 , 57u8 , 119u8 , 182u8 , 240u8 , 115u8 , 122u8 , 158u8 , 206u8 , 213u8 , 0u8 , 131u8 , 182u8 , 129u8 , 81u8 , 116u8 , 120u8 , 79u8 , 234u8 , 216u8 , 157u8 , 32u8 , 10u8 , 190u8 , 76u8 ,]) } # [doc = " --- MAP ( netuid ) --> consensus"] pub fn consensus_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: consensus :: Consensus , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Consensus" , () , [93u8 , 54u8 , 160u8 , 28u8 , 186u8 , 64u8 , 70u8 , 52u8 , 248u8 , 65u8 , 214u8 , 233u8 , 206u8 , 104u8 , 178u8 , 232u8 , 241u8 , 242u8 , 206u8 , 207u8 , 247u8 , 43u8 , 4u8 , 120u8 , 97u8 , 48u8 , 148u8 , 9u8 , 223u8 , 240u8 , 172u8 , 147u8 ,]) } # [doc = " --- MAP ( netuid ) --> consensus"] pub fn consensus (& self , _0 : types :: consensus :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: consensus :: Param0 > , types :: consensus :: Consensus , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Consensus" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [93u8 , 54u8 , 160u8 , 28u8 , 186u8 , 64u8 , 70u8 , 52u8 , 248u8 , 65u8 , 214u8 , 233u8 , 206u8 , 104u8 , 178u8 , 232u8 , 241u8 , 242u8 , 206u8 , 207u8 , 247u8 , 43u8 , 4u8 , 120u8 , 97u8 , 48u8 , 148u8 , 9u8 , 223u8 , 240u8 , 172u8 , 147u8 ,]) } # [doc = " --- MAP ( netuid ) --> incentive"] pub fn incentive_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: incentive :: Incentive , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Incentive" , () , [24u8 , 160u8 , 83u8 , 255u8 , 196u8 , 69u8 , 170u8 , 68u8 , 16u8 , 239u8 , 220u8 , 198u8 , 137u8 , 89u8 , 222u8 , 247u8 , 198u8 , 16u8 , 120u8 , 147u8 , 63u8 , 186u8 , 113u8 , 137u8 , 106u8 , 143u8 , 254u8 , 211u8 , 205u8 , 217u8 , 232u8 , 64u8 ,]) } # [doc = " --- MAP ( netuid ) --> incentive"] pub fn incentive (& self , _0 : types :: incentive :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: incentive :: Param0 > , types :: incentive :: Incentive , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Incentive" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [24u8 , 160u8 , 83u8 , 255u8 , 196u8 , 69u8 , 170u8 , 68u8 , 16u8 , 239u8 , 220u8 , 198u8 , 137u8 , 89u8 , 222u8 , 247u8 , 198u8 , 16u8 , 120u8 , 147u8 , 63u8 , 186u8 , 113u8 , 137u8 , 106u8 , 143u8 , 254u8 , 211u8 , 205u8 , 217u8 , 232u8 , 64u8 ,]) } # [doc = " --- MAP ( netuid ) --> dividends"] pub fn dividends_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: dividends :: Dividends , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Dividends" , () , [192u8 , 174u8 , 115u8 , 10u8 , 78u8 , 219u8 , 26u8 , 255u8 , 247u8 , 93u8 , 212u8 , 176u8 , 96u8 , 104u8 , 218u8 , 130u8 , 200u8 , 16u8 , 119u8 , 7u8 , 184u8 , 207u8 , 12u8 , 210u8 , 128u8 , 46u8 , 252u8 , 79u8 , 236u8 , 44u8 , 148u8 , 171u8 ,]) } # [doc = " --- MAP ( netuid ) --> dividends"] pub fn dividends (& self , _0 : types :: dividends :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: dividends :: Param0 > , types :: dividends :: Dividends , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Dividends" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [192u8 , 174u8 , 115u8 , 10u8 , 78u8 , 219u8 , 26u8 , 255u8 , 247u8 , 93u8 , 212u8 , 176u8 , 96u8 , 104u8 , 218u8 , 130u8 , 200u8 , 16u8 , 119u8 , 7u8 , 184u8 , 207u8 , 12u8 , 210u8 , 128u8 , 46u8 , 252u8 , 79u8 , 236u8 , 44u8 , 148u8 , 171u8 ,]) } # [doc = " --- MAP ( netuid ) --> emission"] pub fn emission_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: emission :: Emission , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Emission" , () , [35u8 , 81u8 , 81u8 , 182u8 , 207u8 , 133u8 , 177u8 , 90u8 , 159u8 , 99u8 , 40u8 , 204u8 , 179u8 , 79u8 , 71u8 , 168u8 , 58u8 , 69u8 , 10u8 , 162u8 , 249u8 , 105u8 , 180u8 , 223u8 , 14u8 , 143u8 , 1u8 , 154u8 , 68u8 , 91u8 , 184u8 , 65u8 ,]) } # [doc = " --- MAP ( netuid ) --> emission"] pub fn emission (& self , _0 : types :: emission :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: emission :: Param0 > , types :: emission :: Emission , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Emission" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [35u8 , 81u8 , 81u8 , 182u8 , 207u8 , 133u8 , 177u8 , 90u8 , 159u8 , 99u8 , 40u8 , 204u8 , 179u8 , 79u8 , 71u8 , 168u8 , 58u8 , 69u8 , 10u8 , 162u8 , 249u8 , 105u8 , 180u8 , 223u8 , 14u8 , 143u8 , 1u8 , 154u8 , 68u8 , 91u8 , 184u8 , 65u8 ,]) } # [doc = " --- MAP ( netuid ) --> last_update"] pub fn last_update_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_update :: LastUpdate , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastUpdate" , () , [165u8 , 55u8 , 107u8 , 0u8 , 155u8 , 221u8 , 102u8 , 151u8 , 146u8 , 66u8 , 253u8 , 253u8 , 42u8 , 191u8 , 192u8 , 2u8 , 154u8 , 217u8 , 200u8 , 178u8 , 10u8 , 252u8 , 240u8 , 68u8 , 69u8 , 104u8 , 77u8 , 121u8 , 197u8 , 114u8 , 248u8 , 105u8 ,]) } # [doc = " --- MAP ( netuid ) --> last_update"] pub fn last_update (& self , _0 : types :: last_update :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_update :: Param0 > , types :: last_update :: LastUpdate , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastUpdate" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [165u8 , 55u8 , 107u8 , 0u8 , 155u8 , 221u8 , 102u8 , 151u8 , 146u8 , 66u8 , 253u8 , 253u8 , 42u8 , 191u8 , 192u8 , 2u8 , 154u8 , 217u8 , 200u8 , 178u8 , 10u8 , 252u8 , 240u8 , 68u8 , 69u8 , 104u8 , 77u8 , 121u8 , 197u8 , 114u8 , 248u8 , 105u8 ,]) } # [doc = " --- MAP ( netuid ) --> validator_trust"] pub fn validator_trust_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validator_trust :: ValidatorTrust , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ValidatorTrust" , () , [23u8 , 132u8 , 192u8 , 102u8 , 41u8 , 24u8 , 238u8 , 124u8 , 6u8 , 70u8 , 199u8 , 26u8 , 245u8 , 193u8 , 241u8 , 24u8 , 142u8 , 77u8 , 82u8 , 153u8 , 16u8 , 221u8 , 221u8 , 164u8 , 159u8 , 225u8 , 144u8 , 129u8 , 159u8 , 116u8 , 203u8 , 125u8 ,]) } # [doc = " --- MAP ( netuid ) --> validator_trust"] pub fn validator_trust (& self , _0 : types :: validator_trust :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: validator_trust :: Param0 > , types :: validator_trust :: ValidatorTrust , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ValidatorTrust" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [23u8 , 132u8 , 192u8 , 102u8 , 41u8 , 24u8 , 238u8 , 124u8 , 6u8 , 70u8 , 199u8 , 26u8 , 245u8 , 193u8 , 241u8 , 24u8 , 142u8 , 77u8 , 82u8 , 153u8 , 16u8 , 221u8 , 221u8 , 164u8 , 159u8 , 225u8 , 144u8 , 129u8 , 159u8 , 116u8 , 203u8 , 125u8 ,]) } # [doc = " --- MAP ( netuid ) --> pruning_scores"] pub fn pruning_scores_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pruning_scores :: PruningScores , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PruningScores" , () , [141u8 , 17u8 , 95u8 , 238u8 , 81u8 , 29u8 , 210u8 , 253u8 , 112u8 , 15u8 , 35u8 , 185u8 , 226u8 , 155u8 , 189u8 , 250u8 , 28u8 , 115u8 , 254u8 , 177u8 , 11u8 , 86u8 , 212u8 , 176u8 , 154u8 , 193u8 , 5u8 , 120u8 , 163u8 , 172u8 , 97u8 , 173u8 ,]) } # [doc = " --- MAP ( netuid ) --> pruning_scores"] pub fn pruning_scores (& self , _0 : types :: pruning_scores :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pruning_scores :: Param0 > , types :: pruning_scores :: PruningScores , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PruningScores" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [141u8 , 17u8 , 95u8 , 238u8 , 81u8 , 29u8 , 210u8 , 253u8 , 112u8 , 15u8 , 35u8 , 185u8 , 226u8 , 155u8 , 189u8 , 250u8 , 28u8 , 115u8 , 254u8 , 177u8 , 11u8 , 86u8 , 212u8 , 176u8 , 154u8 , 193u8 , 5u8 , 120u8 , 163u8 , 172u8 , 97u8 , 173u8 ,]) } # [doc = " --- MAP ( netuid ) --> validator_permit"] pub fn validator_permit_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: validator_permit :: ValidatorPermit , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ValidatorPermit" , () , [237u8 , 135u8 , 31u8 , 115u8 , 236u8 , 108u8 , 3u8 , 83u8 , 142u8 , 232u8 , 250u8 , 100u8 , 140u8 , 89u8 , 128u8 , 24u8 , 85u8 , 68u8 , 214u8 , 111u8 , 152u8 , 203u8 , 105u8 , 6u8 , 38u8 , 154u8 , 124u8 , 176u8 , 119u8 , 181u8 , 246u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> validator_permit"] pub fn validator_permit (& self , _0 : types :: validator_permit :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: validator_permit :: Param0 > , types :: validator_permit :: ValidatorPermit , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "ValidatorPermit" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [237u8 , 135u8 , 31u8 , 115u8 , 236u8 , 108u8 , 3u8 , 83u8 , 142u8 , 232u8 , 250u8 , 100u8 , 140u8 , 89u8 , 128u8 , 24u8 , 85u8 , 68u8 , 214u8 , 111u8 , 152u8 , 203u8 , 105u8 , 6u8 , 38u8 , 154u8 , 124u8 , 176u8 , 119u8 , 181u8 , 246u8 , 169u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> weights"] pub fn weights_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: weights :: Weights , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Weights" , () , [33u8 , 30u8 , 129u8 , 94u8 , 20u8 , 105u8 , 255u8 , 240u8 , 125u8 , 124u8 , 139u8 , 22u8 , 163u8 , 227u8 , 39u8 , 55u8 , 220u8 , 33u8 , 130u8 , 250u8 , 42u8 , 61u8 , 200u8 , 244u8 , 125u8 , 63u8 , 228u8 , 35u8 , 183u8 , 43u8 , 7u8 , 184u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> weights"] pub fn weights_iter1 (& self , _0 : types :: weights :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weights :: Param0 > , types :: weights :: Weights , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Weights" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [33u8 , 30u8 , 129u8 , 94u8 , 20u8 , 105u8 , 255u8 , 240u8 , 125u8 , 124u8 , 139u8 , 22u8 , 163u8 , 227u8 , 39u8 , 55u8 , 220u8 , 33u8 , 130u8 , 250u8 , 42u8 , 61u8 , 200u8 , 244u8 , 125u8 , 63u8 , 228u8 , 35u8 , 183u8 , 43u8 , 7u8 , 184u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> weights"] pub fn weights (& self , _0 : types :: weights :: Param0 , _1 : types :: weights :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weights :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weights :: Param1 > ,) , types :: weights :: Weights , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Weights" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [33u8 , 30u8 , 129u8 , 94u8 , 20u8 , 105u8 , 255u8 , 240u8 , 125u8 , 124u8 , 139u8 , 22u8 , 163u8 , 227u8 , 39u8 , 55u8 , 220u8 , 33u8 , 130u8 , 250u8 , 42u8 , 61u8 , 200u8 , 244u8 , 125u8 , 63u8 , 228u8 , 35u8 , 183u8 , 43u8 , 7u8 , 184u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> bonds"] pub fn bonds_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: bonds :: Bonds , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Bonds" , () , [11u8 , 36u8 , 139u8 , 245u8 , 90u8 , 20u8 , 111u8 , 189u8 , 60u8 , 65u8 , 247u8 , 126u8 , 209u8 , 110u8 , 104u8 , 140u8 , 171u8 , 248u8 , 40u8 , 94u8 , 193u8 , 61u8 , 129u8 , 130u8 , 128u8 , 114u8 , 60u8 , 60u8 , 231u8 , 227u8 , 223u8 , 202u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> bonds"] pub fn bonds_iter1 (& self , _0 : types :: bonds :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonds :: Param0 > , types :: bonds :: Bonds , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Bonds" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [11u8 , 36u8 , 139u8 , 245u8 , 90u8 , 20u8 , 111u8 , 189u8 , 60u8 , 65u8 , 247u8 , 126u8 , 209u8 , 110u8 , 104u8 , 140u8 , 171u8 , 248u8 , 40u8 , 94u8 , 193u8 , 61u8 , 129u8 , 130u8 , 128u8 , 114u8 , 60u8 , 60u8 , 231u8 , 227u8 , 223u8 , 202u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> bonds"] pub fn bonds (& self , _0 : types :: bonds :: Param0 , _1 : types :: bonds :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonds :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: bonds :: Param1 > ,) , types :: bonds :: Bonds , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Bonds" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [11u8 , 36u8 , 139u8 , 245u8 , 90u8 , 20u8 , 111u8 , 189u8 , 60u8 , 65u8 , 247u8 , 126u8 , 209u8 , 110u8 , 104u8 , 140u8 , 171u8 , 248u8 , 40u8 , 94u8 , 193u8 , 61u8 , 129u8 , 130u8 , 128u8 , 114u8 , 60u8 , 60u8 , 231u8 , 227u8 , 223u8 , 202u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> block_at_registration"] pub fn block_at_registration_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: block_at_registration :: BlockAtRegistration , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BlockAtRegistration" , () , [25u8 , 46u8 , 139u8 , 65u8 , 206u8 , 245u8 , 13u8 , 118u8 , 40u8 , 94u8 , 35u8 , 157u8 , 161u8 , 120u8 , 219u8 , 76u8 , 172u8 , 107u8 , 237u8 , 29u8 , 213u8 , 177u8 , 196u8 , 162u8 , 129u8 , 29u8 , 81u8 , 3u8 , 123u8 , 116u8 , 1u8 , 81u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> block_at_registration"] pub fn block_at_registration_iter1 (& self , _0 : types :: block_at_registration :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: block_at_registration :: Param0 > , types :: block_at_registration :: BlockAtRegistration , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BlockAtRegistration" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [25u8 , 46u8 , 139u8 , 65u8 , 206u8 , 245u8 , 13u8 , 118u8 , 40u8 , 94u8 , 35u8 , 157u8 , 161u8 , 120u8 , 219u8 , 76u8 , 172u8 , 107u8 , 237u8 , 29u8 , 213u8 , 177u8 , 196u8 , 162u8 , 129u8 , 29u8 , 81u8 , 3u8 , 123u8 , 116u8 , 1u8 , 81u8 ,]) } # [doc = " --- DMAP ( netuid, uid ) --> block_at_registration"] pub fn block_at_registration (& self , _0 : types :: block_at_registration :: Param0 , _1 : types :: block_at_registration :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: block_at_registration :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: block_at_registration :: Param1 > ,) , types :: block_at_registration :: BlockAtRegistration , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "BlockAtRegistration" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [25u8 , 46u8 , 139u8 , 65u8 , 206u8 , 245u8 , 13u8 , 118u8 , 40u8 , 94u8 , 35u8 , 157u8 , 161u8 , 120u8 , 219u8 , 76u8 , 172u8 , 107u8 , 237u8 , 29u8 , 213u8 , 177u8 , 196u8 , 162u8 , 129u8 , 29u8 , 81u8 , 3u8 , 123u8 , 116u8 , 1u8 , 81u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> axon_info"] pub fn axons_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: axons :: Axons , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Axons" , () , [88u8 , 108u8 , 102u8 , 2u8 , 44u8 , 234u8 , 133u8 , 231u8 , 190u8 , 19u8 , 185u8 , 26u8 , 74u8 , 162u8 , 11u8 , 232u8 , 85u8 , 75u8 , 180u8 , 178u8 , 220u8 , 211u8 , 60u8 , 22u8 , 66u8 , 5u8 , 78u8 , 68u8 , 70u8 , 126u8 , 125u8 , 227u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> axon_info"] pub fn axons_iter1 (& self , _0 : types :: axons :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: axons :: Param0 > , types :: axons :: Axons , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Axons" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [88u8 , 108u8 , 102u8 , 2u8 , 44u8 , 234u8 , 133u8 , 231u8 , 190u8 , 19u8 , 185u8 , 26u8 , 74u8 , 162u8 , 11u8 , 232u8 , 85u8 , 75u8 , 180u8 , 178u8 , 220u8 , 211u8 , 60u8 , 22u8 , 66u8 , 5u8 , 78u8 , 68u8 , 70u8 , 126u8 , 125u8 , 227u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> axon_info"] pub fn axons (& self , _0 : types :: axons :: Param0 , _1 : types :: axons :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: axons :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: axons :: Param1 > ,) , types :: axons :: Axons , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Axons" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [88u8 , 108u8 , 102u8 , 2u8 , 44u8 , 234u8 , 133u8 , 231u8 , 190u8 , 19u8 , 185u8 , 26u8 , 74u8 , 162u8 , 11u8 , 232u8 , 85u8 , 75u8 , 180u8 , 178u8 , 220u8 , 211u8 , 60u8 , 22u8 , 66u8 , 5u8 , 78u8 , 68u8 , 70u8 , 126u8 , 125u8 , 227u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> certificate"] pub fn neuron_certificates_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: neuron_certificates :: NeuronCertificates , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NeuronCertificates" , () , [184u8 , 21u8 , 56u8 , 81u8 , 139u8 , 123u8 , 169u8 , 40u8 , 160u8 , 55u8 , 182u8 , 47u8 , 123u8 , 20u8 , 176u8 , 174u8 , 64u8 , 234u8 , 102u8 , 244u8 , 23u8 , 125u8 , 118u8 , 152u8 , 82u8 , 51u8 , 243u8 , 97u8 , 222u8 , 215u8 , 190u8 , 19u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> certificate"] pub fn neuron_certificates_iter1 (& self , _0 : types :: neuron_certificates :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: neuron_certificates :: Param0 > , types :: neuron_certificates :: NeuronCertificates , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NeuronCertificates" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [184u8 , 21u8 , 56u8 , 81u8 , 139u8 , 123u8 , 169u8 , 40u8 , 160u8 , 55u8 , 182u8 , 47u8 , 123u8 , 20u8 , 176u8 , 174u8 , 64u8 , 234u8 , 102u8 , 244u8 , 23u8 , 125u8 , 118u8 , 152u8 , 82u8 , 51u8 , 243u8 , 97u8 , 222u8 , 215u8 , 190u8 , 19u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> certificate"] pub fn neuron_certificates (& self , _0 : types :: neuron_certificates :: Param0 , _1 : types :: neuron_certificates :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: neuron_certificates :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: neuron_certificates :: Param1 > ,) , types :: neuron_certificates :: NeuronCertificates , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NeuronCertificates" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [184u8 , 21u8 , 56u8 , 81u8 , 139u8 , 123u8 , 169u8 , 40u8 , 160u8 , 55u8 , 182u8 , 47u8 , 123u8 , 20u8 , 176u8 , 174u8 , 64u8 , 234u8 , 102u8 , 244u8 , 23u8 , 125u8 , 118u8 , 152u8 , 82u8 , 51u8 , 243u8 , 97u8 , 222u8 , 215u8 , 190u8 , 19u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> prometheus_info"] pub fn prometheus_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: prometheus :: Prometheus , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Prometheus" , () , [145u8 , 192u8 , 240u8 , 31u8 , 78u8 , 238u8 , 87u8 , 30u8 , 67u8 , 43u8 , 132u8 , 227u8 , 210u8 , 241u8 , 202u8 , 63u8 , 250u8 , 32u8 , 30u8 , 209u8 , 31u8 , 97u8 , 34u8 , 68u8 , 16u8 , 192u8 , 24u8 , 16u8 , 210u8 , 252u8 , 164u8 , 80u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> prometheus_info"] pub fn prometheus_iter1 (& self , _0 : types :: prometheus :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: prometheus :: Param0 > , types :: prometheus :: Prometheus , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Prometheus" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [145u8 , 192u8 , 240u8 , 31u8 , 78u8 , 238u8 , 87u8 , 30u8 , 67u8 , 43u8 , 132u8 , 227u8 , 210u8 , 241u8 , 202u8 , 63u8 , 250u8 , 32u8 , 30u8 , 209u8 , 31u8 , 97u8 , 34u8 , 68u8 , 16u8 , 192u8 , 24u8 , 16u8 , 210u8 , 252u8 , 164u8 , 80u8 ,]) } # [doc = " --- MAP ( netuid, hotkey ) --> prometheus_info"] pub fn prometheus (& self , _0 : types :: prometheus :: Param0 , _1 : types :: prometheus :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: prometheus :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: prometheus :: Param1 > ,) , types :: prometheus :: Prometheus , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "Prometheus" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [145u8 , 192u8 , 240u8 , 31u8 , 78u8 , 238u8 , 87u8 , 30u8 , 67u8 , 43u8 , 132u8 , 227u8 , 210u8 , 241u8 , 202u8 , 63u8 , 250u8 , 32u8 , 30u8 , 209u8 , 31u8 , 97u8 , 34u8 , 68u8 , 16u8 , 192u8 , 24u8 , 16u8 , 210u8 , 252u8 , 164u8 , 80u8 ,]) } # [doc = " --- MAP ( coldkey ) --> identity"] pub fn identities_v2_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: identities_v2 :: IdentitiesV2 , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "IdentitiesV2" , () , [153u8 , 254u8 , 19u8 , 142u8 , 204u8 , 217u8 , 210u8 , 18u8 , 168u8 , 33u8 , 63u8 , 141u8 , 209u8 , 140u8 , 25u8 , 171u8 , 63u8 , 40u8 , 147u8 , 158u8 , 161u8 , 139u8 , 11u8 , 163u8 , 204u8 , 111u8 , 6u8 , 30u8 , 19u8 , 128u8 , 183u8 , 150u8 ,]) } # [doc = " --- MAP ( coldkey ) --> identity"] pub fn identities_v2 (& self , _0 : types :: identities_v2 :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: identities_v2 :: Param0 > , types :: identities_v2 :: IdentitiesV2 , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "IdentitiesV2" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [153u8 , 254u8 , 19u8 , 142u8 , 204u8 , 217u8 , 210u8 , 18u8 , 168u8 , 33u8 , 63u8 , 141u8 , 209u8 , 140u8 , 25u8 , 171u8 , 63u8 , 40u8 , 147u8 , 158u8 , 161u8 , 139u8 , 11u8 , 163u8 , 204u8 , 111u8 , 6u8 , 30u8 , 19u8 , 128u8 , 183u8 , 150u8 ,]) } # [doc = " --- MAP ( netuid ) --> SubnetIdentityOfV3"] pub fn subnet_identities_v3_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_identities_v3 :: SubnetIdentitiesV3 , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetIdentitiesV3" , () , [77u8 , 65u8 , 133u8 , 174u8 , 114u8 , 139u8 , 233u8 , 183u8 , 250u8 , 138u8 , 246u8 , 12u8 , 24u8 , 255u8 , 143u8 , 218u8 , 77u8 , 96u8 , 18u8 , 70u8 , 14u8 , 179u8 , 34u8 , 37u8 , 219u8 , 198u8 , 11u8 , 146u8 , 250u8 , 238u8 , 118u8 , 52u8 ,]) } # [doc = " --- MAP ( netuid ) --> SubnetIdentityOfV3"] pub fn subnet_identities_v3 (& self , _0 : types :: subnet_identities_v3 :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_identities_v3 :: Param0 > , types :: subnet_identities_v3 :: SubnetIdentitiesV3 , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetIdentitiesV3" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [77u8 , 65u8 , 133u8 , 174u8 , 114u8 , 139u8 , 233u8 , 183u8 , 250u8 , 138u8 , 246u8 , 12u8 , 24u8 , 255u8 , 143u8 , 218u8 , 77u8 , 96u8 , 18u8 , 70u8 , 14u8 , 179u8 , 34u8 , 37u8 , 219u8 , 198u8 , 11u8 , 146u8 , 250u8 , 238u8 , 118u8 , 52u8 ,]) } # [doc = " ================================="] # [doc = " ==== Axon / Promo Endpoints ====="] # [doc = " ================================="] # [doc = " --- NMAP ( hot, netuid, name ) --> last_block | Returns the last block of a transaction for a given key, netuid, and name."] pub fn transaction_key_last_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: transaction_key_last_block :: TransactionKeyLastBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TransactionKeyLastBlock" , () , [133u8 , 67u8 , 139u8 , 127u8 , 103u8 , 156u8 , 31u8 , 142u8 , 163u8 , 221u8 , 251u8 , 219u8 , 8u8 , 44u8 , 51u8 , 230u8 , 229u8 , 243u8 , 255u8 , 80u8 , 16u8 , 247u8 , 49u8 , 36u8 , 183u8 , 122u8 , 162u8 , 44u8 , 226u8 , 1u8 , 122u8 , 244u8 ,]) } # [doc = " ================================="] # [doc = " ==== Axon / Promo Endpoints ====="] # [doc = " ================================="] # [doc = " --- NMAP ( hot, netuid, name ) --> last_block | Returns the last block of a transaction for a given key, netuid, and name."] pub fn transaction_key_last_block_iter1 (& self , _0 : types :: transaction_key_last_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transaction_key_last_block :: Param0 > , types :: transaction_key_last_block :: TransactionKeyLastBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TransactionKeyLastBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [133u8 , 67u8 , 139u8 , 127u8 , 103u8 , 156u8 , 31u8 , 142u8 , 163u8 , 221u8 , 251u8 , 219u8 , 8u8 , 44u8 , 51u8 , 230u8 , 229u8 , 243u8 , 255u8 , 80u8 , 16u8 , 247u8 , 49u8 , 36u8 , 183u8 , 122u8 , 162u8 , 44u8 , 226u8 , 1u8 , 122u8 , 244u8 ,]) } # [doc = " ================================="] # [doc = " ==== Axon / Promo Endpoints ====="] # [doc = " ================================="] # [doc = " --- NMAP ( hot, netuid, name ) --> last_block | Returns the last block of a transaction for a given key, netuid, and name."] pub fn transaction_key_last_block_iter2 (& self , _0 : types :: transaction_key_last_block :: Param0 , _1 : types :: transaction_key_last_block :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transaction_key_last_block :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transaction_key_last_block :: Param1 > ,) , types :: transaction_key_last_block :: TransactionKeyLastBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TransactionKeyLastBlock" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [133u8 , 67u8 , 139u8 , 127u8 , 103u8 , 156u8 , 31u8 , 142u8 , 163u8 , 221u8 , 251u8 , 219u8 , 8u8 , 44u8 , 51u8 , 230u8 , 229u8 , 243u8 , 255u8 , 80u8 , 16u8 , 247u8 , 49u8 , 36u8 , 183u8 , 122u8 , 162u8 , 44u8 , 226u8 , 1u8 , 122u8 , 244u8 ,]) } # [doc = " ================================="] # [doc = " ==== Axon / Promo Endpoints ====="] # [doc = " ================================="] # [doc = " --- NMAP ( hot, netuid, name ) --> last_block | Returns the last block of a transaction for a given key, netuid, and name."] pub fn transaction_key_last_block (& self , _0 : types :: transaction_key_last_block :: Param0 , _1 : types :: transaction_key_last_block :: Param1 , _2 : types :: transaction_key_last_block :: Param2 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transaction_key_last_block :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transaction_key_last_block :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: transaction_key_last_block :: Param2 > ,) , types :: transaction_key_last_block :: TransactionKeyLastBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TransactionKeyLastBlock" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2) ,) , [133u8 , 67u8 , 139u8 , 127u8 , 103u8 , 156u8 , 31u8 , 142u8 , 163u8 , 221u8 , 251u8 , 219u8 , 8u8 , 44u8 , 51u8 , 230u8 , 229u8 , 243u8 , 255u8 , 80u8 , 16u8 , 247u8 , 49u8 , 36u8 , 183u8 , 122u8 , 162u8 , 44u8 , 226u8 , 1u8 , 122u8 , 244u8 ,]) } # [doc = " --- MAP ( key ) --> last_block"] pub fn last_tx_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_tx_block :: LastTxBlock , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastTxBlock" , () , [110u8 , 36u8 , 249u8 , 1u8 , 181u8 , 193u8 , 146u8 , 153u8 , 25u8 , 162u8 , 230u8 , 16u8 , 223u8 , 176u8 , 189u8 , 253u8 , 109u8 , 101u8 , 151u8 , 63u8 , 199u8 , 191u8 , 114u8 , 38u8 , 207u8 , 186u8 , 96u8 , 46u8 , 45u8 , 87u8 , 182u8 , 177u8 ,]) } # [doc = " --- MAP ( key ) --> last_block"] pub fn last_tx_block (& self , _0 : types :: last_tx_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_tx_block :: Param0 > , types :: last_tx_block :: LastTxBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastTxBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [110u8 , 36u8 , 249u8 , 1u8 , 181u8 , 193u8 , 146u8 , 153u8 , 25u8 , 162u8 , 230u8 , 16u8 , 223u8 , 176u8 , 189u8 , 253u8 , 109u8 , 101u8 , 151u8 , 63u8 , 199u8 , 191u8 , 114u8 , 38u8 , 207u8 , 186u8 , 96u8 , 46u8 , 45u8 , 87u8 , 182u8 , 177u8 ,]) } # [doc = " --- MAP ( key ) --> last_tx_block_childkey_take"] pub fn last_tx_block_child_key_take_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_tx_block_child_key_take :: LastTxBlockChildKeyTake , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastTxBlockChildKeyTake" , () , [235u8 , 75u8 , 165u8 , 153u8 , 97u8 , 11u8 , 159u8 , 51u8 , 229u8 , 39u8 , 75u8 , 75u8 , 178u8 , 71u8 , 31u8 , 124u8 , 159u8 , 107u8 , 250u8 , 58u8 , 165u8 , 87u8 , 10u8 , 233u8 , 253u8 , 200u8 , 206u8 , 158u8 , 75u8 , 150u8 , 199u8 , 228u8 ,]) } # [doc = " --- MAP ( key ) --> last_tx_block_childkey_take"] pub fn last_tx_block_child_key_take (& self , _0 : types :: last_tx_block_child_key_take :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_tx_block_child_key_take :: Param0 > , types :: last_tx_block_child_key_take :: LastTxBlockChildKeyTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastTxBlockChildKeyTake" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [235u8 , 75u8 , 165u8 , 153u8 , 97u8 , 11u8 , 159u8 , 51u8 , 229u8 , 39u8 , 75u8 , 75u8 , 178u8 , 71u8 , 31u8 , 124u8 , 159u8 , 107u8 , 250u8 , 58u8 , 165u8 , 87u8 , 10u8 , 233u8 , 253u8 , 200u8 , 206u8 , 158u8 , 75u8 , 150u8 , 199u8 , 228u8 ,]) } # [doc = " --- MAP ( key ) --> last_tx_block_delegate_take"] pub fn last_tx_block_delegate_take_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_tx_block_delegate_take :: LastTxBlockDelegateTake , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastTxBlockDelegateTake" , () , [12u8 , 222u8 , 74u8 , 237u8 , 136u8 , 118u8 , 12u8 , 175u8 , 121u8 , 238u8 , 132u8 , 170u8 , 227u8 , 140u8 , 109u8 , 218u8 , 3u8 , 133u8 , 250u8 , 125u8 , 141u8 , 211u8 , 45u8 , 120u8 , 22u8 , 94u8 , 166u8 , 100u8 , 104u8 , 51u8 , 65u8 , 252u8 ,]) } # [doc = " --- MAP ( key ) --> last_tx_block_delegate_take"] pub fn last_tx_block_delegate_take (& self , _0 : types :: last_tx_block_delegate_take :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_tx_block_delegate_take :: Param0 > , types :: last_tx_block_delegate_take :: LastTxBlockDelegateTake , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastTxBlockDelegateTake" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [12u8 , 222u8 , 74u8 , 237u8 , 136u8 , 118u8 , 12u8 , 175u8 , 121u8 , 238u8 , 132u8 , 170u8 , 227u8 , 140u8 , 109u8 , 218u8 , 3u8 , 133u8 , 250u8 , 125u8 , 141u8 , 211u8 , 45u8 , 120u8 , 22u8 , 94u8 , 166u8 , 100u8 , 104u8 , 51u8 , 65u8 , 252u8 ,]) } # [doc = " ITEM( weights_min_stake )"] pub fn stake_threshold (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: stake_threshold :: StakeThreshold , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakeThreshold" , () , [218u8 , 140u8 , 20u8 , 241u8 , 216u8 , 33u8 , 78u8 , 151u8 , 201u8 , 249u8 , 225u8 , 74u8 , 159u8 , 247u8 , 188u8 , 64u8 , 13u8 , 139u8 , 11u8 , 59u8 , 109u8 , 38u8 , 3u8 , 48u8 , 28u8 , 97u8 , 147u8 , 154u8 , 250u8 , 156u8 , 254u8 , 217u8 ,]) } # [doc = " --- MAP (netuid, who) --> VecDeque<(hash, commit_block, first_reveal_block, last_reveal_block)> | Stores a queue of commits for an account on a given netuid."] pub fn weight_commits_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: weight_commits :: WeightCommits , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightCommits" , () , [15u8 , 187u8 , 166u8 , 200u8 , 193u8 , 181u8 , 127u8 , 255u8 , 214u8 , 69u8 , 191u8 , 112u8 , 249u8 , 88u8 , 110u8 , 102u8 , 180u8 , 130u8 , 65u8 , 190u8 , 74u8 , 252u8 , 11u8 , 236u8 , 100u8 , 143u8 , 30u8 , 70u8 , 131u8 , 90u8 , 51u8 , 62u8 ,]) } # [doc = " --- MAP (netuid, who) --> VecDeque<(hash, commit_block, first_reveal_block, last_reveal_block)> | Stores a queue of commits for an account on a given netuid."] pub fn weight_commits_iter1 (& self , _0 : types :: weight_commits :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weight_commits :: Param0 > , types :: weight_commits :: WeightCommits , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightCommits" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [15u8 , 187u8 , 166u8 , 200u8 , 193u8 , 181u8 , 127u8 , 255u8 , 214u8 , 69u8 , 191u8 , 112u8 , 249u8 , 88u8 , 110u8 , 102u8 , 180u8 , 130u8 , 65u8 , 190u8 , 74u8 , 252u8 , 11u8 , 236u8 , 100u8 , 143u8 , 30u8 , 70u8 , 131u8 , 90u8 , 51u8 , 62u8 ,]) } # [doc = " --- MAP (netuid, who) --> VecDeque<(hash, commit_block, first_reveal_block, last_reveal_block)> | Stores a queue of commits for an account on a given netuid."] pub fn weight_commits (& self , _0 : types :: weight_commits :: Param0 , _1 : types :: weight_commits :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weight_commits :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: weight_commits :: Param1 > ,) , types :: weight_commits :: WeightCommits , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "WeightCommits" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [15u8 , 187u8 , 166u8 , 200u8 , 193u8 , 181u8 , 127u8 , 255u8 , 214u8 , 69u8 , 191u8 , 112u8 , 249u8 , 88u8 , 110u8 , 102u8 , 180u8 , 130u8 , 65u8 , 190u8 , 74u8 , 252u8 , 11u8 , 236u8 , 100u8 , 143u8 , 30u8 , 70u8 , 131u8 , 90u8 , 51u8 , 62u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)>"] # [doc = " Stores a queue of weight commits for an account on a given subnet."] pub fn timelocked_weight_commits_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: timelocked_weight_commits :: TimelockedWeightCommits , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TimelockedWeightCommits" , () , [142u8 , 95u8 , 3u8 , 128u8 , 158u8 , 142u8 , 161u8 , 150u8 , 157u8 , 172u8 , 161u8 , 78u8 , 128u8 , 69u8 , 202u8 , 119u8 , 157u8 , 118u8 , 18u8 , 67u8 , 8u8 , 250u8 , 222u8 , 56u8 , 107u8 , 216u8 , 168u8 , 44u8 , 197u8 , 144u8 , 52u8 , 217u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)>"] # [doc = " Stores a queue of weight commits for an account on a given subnet."] pub fn timelocked_weight_commits_iter1 (& self , _0 : types :: timelocked_weight_commits :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: timelocked_weight_commits :: Param0 > , types :: timelocked_weight_commits :: TimelockedWeightCommits , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TimelockedWeightCommits" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [142u8 , 95u8 , 3u8 , 128u8 , 158u8 , 142u8 , 161u8 , 150u8 , 157u8 , 172u8 , 161u8 , 78u8 , 128u8 , 69u8 , 202u8 , 119u8 , 157u8 , 118u8 , 18u8 , 67u8 , 8u8 , 250u8 , 222u8 , 56u8 , 107u8 , 216u8 , 168u8 , 44u8 , 197u8 , 144u8 , 52u8 , 217u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)>"] # [doc = " Stores a queue of weight commits for an account on a given subnet."] pub fn timelocked_weight_commits (& self , _0 : types :: timelocked_weight_commits :: Param0 , _1 : types :: timelocked_weight_commits :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: timelocked_weight_commits :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: timelocked_weight_commits :: Param1 > ,) , types :: timelocked_weight_commits :: TimelockedWeightCommits , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "TimelockedWeightCommits" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [142u8 , 95u8 , 3u8 , 128u8 , 158u8 , 142u8 , 161u8 , 150u8 , 157u8 , 172u8 , 161u8 , 78u8 , 128u8 , 69u8 , 202u8 , 119u8 , 157u8 , 118u8 , 18u8 , 67u8 , 8u8 , 250u8 , 222u8 , 56u8 , 107u8 , 216u8 , 168u8 , 44u8 , 197u8 , 144u8 , 52u8 , 217u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, ciphertext, reveal_round)>"] # [doc = " DEPRECATED for CRV3WeightCommitsV2"] pub fn crv3_weight_commits_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: crv3_weight_commits :: Crv3WeightCommits , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CRV3WeightCommits" , () , [202u8 , 4u8 , 164u8 , 156u8 , 73u8 , 244u8 , 226u8 , 70u8 , 35u8 , 55u8 , 201u8 , 224u8 , 127u8 , 234u8 , 93u8 , 11u8 , 172u8 , 66u8 , 180u8 , 62u8 , 70u8 , 225u8 , 59u8 , 75u8 , 37u8 , 244u8 , 48u8 , 151u8 , 43u8 , 5u8 , 42u8 , 140u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, ciphertext, reveal_round)>"] # [doc = " DEPRECATED for CRV3WeightCommitsV2"] pub fn crv3_weight_commits_iter1 (& self , _0 : types :: crv3_weight_commits :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crv3_weight_commits :: Param0 > , types :: crv3_weight_commits :: Crv3WeightCommits , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CRV3WeightCommits" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [202u8 , 4u8 , 164u8 , 156u8 , 73u8 , 244u8 , 226u8 , 70u8 , 35u8 , 55u8 , 201u8 , 224u8 , 127u8 , 234u8 , 93u8 , 11u8 , 172u8 , 66u8 , 180u8 , 62u8 , 70u8 , 225u8 , 59u8 , 75u8 , 37u8 , 244u8 , 48u8 , 151u8 , 43u8 , 5u8 , 42u8 , 140u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, ciphertext, reveal_round)>"] # [doc = " DEPRECATED for CRV3WeightCommitsV2"] pub fn crv3_weight_commits (& self , _0 : types :: crv3_weight_commits :: Param0 , _1 : types :: crv3_weight_commits :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crv3_weight_commits :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crv3_weight_commits :: Param1 > ,) , types :: crv3_weight_commits :: Crv3WeightCommits , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CRV3WeightCommits" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [202u8 , 4u8 , 164u8 , 156u8 , 73u8 , 244u8 , 226u8 , 70u8 , 35u8 , 55u8 , 201u8 , 224u8 , 127u8 , 234u8 , 93u8 , 11u8 , 172u8 , 66u8 , 180u8 , 62u8 , 70u8 , 225u8 , 59u8 , 75u8 , 37u8 , 244u8 , 48u8 , 151u8 , 43u8 , 5u8 , 42u8 , 140u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)>"] # [doc = " DEPRECATED for TimelockedWeightCommits"] pub fn crv3_weight_commits_v2_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: crv3_weight_commits_v2 :: Crv3WeightCommitsV2 , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CRV3WeightCommitsV2" , () , [63u8 , 34u8 , 149u8 , 244u8 , 110u8 , 80u8 , 77u8 , 51u8 , 73u8 , 135u8 , 43u8 , 60u8 , 66u8 , 2u8 , 176u8 , 96u8 , 72u8 , 33u8 , 53u8 , 81u8 , 232u8 , 195u8 , 85u8 , 93u8 , 99u8 , 211u8 , 249u8 , 50u8 , 68u8 , 35u8 , 134u8 , 175u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)>"] # [doc = " DEPRECATED for TimelockedWeightCommits"] pub fn crv3_weight_commits_v2_iter1 (& self , _0 : types :: crv3_weight_commits_v2 :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crv3_weight_commits_v2 :: Param0 > , types :: crv3_weight_commits_v2 :: Crv3WeightCommitsV2 , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CRV3WeightCommitsV2" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [63u8 , 34u8 , 149u8 , 244u8 , 110u8 , 80u8 , 77u8 , 51u8 , 73u8 , 135u8 , 43u8 , 60u8 , 66u8 , 2u8 , 176u8 , 96u8 , 72u8 , 33u8 , 53u8 , 81u8 , 232u8 , 195u8 , 85u8 , 93u8 , 99u8 , 211u8 , 249u8 , 50u8 , 68u8 , 35u8 , 134u8 , 175u8 ,]) } # [doc = " MAP (netuid, epoch) → VecDeque<(who, commit_block, ciphertext, reveal_round)>"] # [doc = " DEPRECATED for TimelockedWeightCommits"] pub fn crv3_weight_commits_v2 (& self , _0 : types :: crv3_weight_commits_v2 :: Param0 , _1 : types :: crv3_weight_commits_v2 :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crv3_weight_commits_v2 :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crv3_weight_commits_v2 :: Param1 > ,) , types :: crv3_weight_commits_v2 :: Crv3WeightCommitsV2 , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CRV3WeightCommitsV2" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [63u8 , 34u8 , 149u8 , 244u8 , 110u8 , 80u8 , 77u8 , 51u8 , 73u8 , 135u8 , 43u8 , 60u8 , 66u8 , 2u8 , 176u8 , 96u8 , 72u8 , 33u8 , 53u8 , 81u8 , 232u8 , 195u8 , 85u8 , 93u8 , 99u8 , 211u8 , 249u8 , 50u8 , 68u8 , 35u8 , 134u8 , 175u8 ,]) } # [doc = " --- Map (netuid) --> Number of epochs allowed for commit reveal periods"] pub fn reveal_period_epochs_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: reveal_period_epochs :: RevealPeriodEpochs , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RevealPeriodEpochs" , () , [50u8 , 100u8 , 64u8 , 192u8 , 113u8 , 247u8 , 212u8 , 68u8 , 111u8 , 24u8 , 240u8 , 237u8 , 59u8 , 109u8 , 149u8 , 96u8 , 232u8 , 248u8 , 60u8 , 95u8 , 65u8 , 11u8 , 81u8 , 79u8 , 83u8 , 202u8 , 179u8 , 44u8 , 241u8 , 109u8 , 87u8 , 147u8 ,]) } # [doc = " --- Map (netuid) --> Number of epochs allowed for commit reveal periods"] pub fn reveal_period_epochs (& self , _0 : types :: reveal_period_epochs :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: reveal_period_epochs :: Param0 > , types :: reveal_period_epochs :: RevealPeriodEpochs , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RevealPeriodEpochs" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [50u8 , 100u8 , 64u8 , 192u8 , 113u8 , 247u8 , 212u8 , 68u8 , 111u8 , 24u8 , 240u8 , 237u8 , 59u8 , 109u8 , 149u8 , 96u8 , 232u8 , 248u8 , 60u8 , 95u8 , 65u8 , 11u8 , 81u8 , 79u8 , 83u8 , 202u8 , 179u8 , 44u8 , 241u8 , 109u8 , 87u8 , 147u8 ,]) } # [doc = " --- Map (coldkey, hotkey) --> u64 the last block at which stake was added/removed."] pub fn last_coldkey_hotkey_stake_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_coldkey_hotkey_stake_block :: LastColdkeyHotkeyStakeBlock , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastColdkeyHotkeyStakeBlock" , () , [252u8 , 113u8 , 239u8 , 148u8 , 17u8 , 111u8 , 212u8 , 224u8 , 138u8 , 74u8 , 125u8 , 118u8 , 141u8 , 158u8 , 45u8 , 177u8 , 55u8 , 222u8 , 39u8 , 80u8 , 36u8 , 62u8 , 158u8 , 157u8 , 57u8 , 37u8 , 116u8 , 164u8 , 86u8 , 215u8 , 214u8 , 152u8 ,]) } # [doc = " --- Map (coldkey, hotkey) --> u64 the last block at which stake was added/removed."] pub fn last_coldkey_hotkey_stake_block_iter1 (& self , _0 : types :: last_coldkey_hotkey_stake_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_coldkey_hotkey_stake_block :: Param0 > , types :: last_coldkey_hotkey_stake_block :: LastColdkeyHotkeyStakeBlock , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastColdkeyHotkeyStakeBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [252u8 , 113u8 , 239u8 , 148u8 , 17u8 , 111u8 , 212u8 , 224u8 , 138u8 , 74u8 , 125u8 , 118u8 , 141u8 , 158u8 , 45u8 , 177u8 , 55u8 , 222u8 , 39u8 , 80u8 , 36u8 , 62u8 , 158u8 , 157u8 , 57u8 , 37u8 , 116u8 , 164u8 , 86u8 , 215u8 , 214u8 , 152u8 ,]) } # [doc = " --- Map (coldkey, hotkey) --> u64 the last block at which stake was added/removed."] pub fn last_coldkey_hotkey_stake_block (& self , _0 : types :: last_coldkey_hotkey_stake_block :: Param0 , _1 : types :: last_coldkey_hotkey_stake_block :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_coldkey_hotkey_stake_block :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_coldkey_hotkey_stake_block :: Param1 > ,) , types :: last_coldkey_hotkey_stake_block :: LastColdkeyHotkeyStakeBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "LastColdkeyHotkeyStakeBlock" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [252u8 , 113u8 , 239u8 , 148u8 , 17u8 , 111u8 , 212u8 , 224u8 , 138u8 , 74u8 , 125u8 , 118u8 , 141u8 , 158u8 , 45u8 , 177u8 , 55u8 , 222u8 , 39u8 , 80u8 , 36u8 , 62u8 , 158u8 , 157u8 , 57u8 , 37u8 , 116u8 , 164u8 , 86u8 , 215u8 , 214u8 , 152u8 ,]) } # [doc = " DMAP ( hot, cold, netuid ) --> rate limits for staking operations"] # [doc = " Value contains just a marker: we use this map as a set."] pub fn staking_operation_rate_limiter_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: staking_operation_rate_limiter :: StakingOperationRateLimiter , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingOperationRateLimiter" , () , [17u8 , 129u8 , 141u8 , 110u8 , 112u8 , 160u8 , 39u8 , 49u8 , 166u8 , 1u8 , 109u8 , 42u8 , 81u8 , 70u8 , 115u8 , 200u8 , 224u8 , 30u8 , 68u8 , 254u8 , 239u8 , 109u8 , 129u8 , 181u8 , 19u8 , 83u8 , 240u8 , 6u8 , 94u8 , 64u8 , 239u8 , 164u8 ,]) } # [doc = " DMAP ( hot, cold, netuid ) --> rate limits for staking operations"] # [doc = " Value contains just a marker: we use this map as a set."] pub fn staking_operation_rate_limiter_iter1 (& self , _0 : types :: staking_operation_rate_limiter :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_operation_rate_limiter :: Param0 > , types :: staking_operation_rate_limiter :: StakingOperationRateLimiter , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingOperationRateLimiter" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [17u8 , 129u8 , 141u8 , 110u8 , 112u8 , 160u8 , 39u8 , 49u8 , 166u8 , 1u8 , 109u8 , 42u8 , 81u8 , 70u8 , 115u8 , 200u8 , 224u8 , 30u8 , 68u8 , 254u8 , 239u8 , 109u8 , 129u8 , 181u8 , 19u8 , 83u8 , 240u8 , 6u8 , 94u8 , 64u8 , 239u8 , 164u8 ,]) } # [doc = " DMAP ( hot, cold, netuid ) --> rate limits for staking operations"] # [doc = " Value contains just a marker: we use this map as a set."] pub fn staking_operation_rate_limiter_iter2 (& self , _0 : types :: staking_operation_rate_limiter :: Param0 , _1 : types :: staking_operation_rate_limiter :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_operation_rate_limiter :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_operation_rate_limiter :: Param1 > ,) , types :: staking_operation_rate_limiter :: StakingOperationRateLimiter , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingOperationRateLimiter" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [17u8 , 129u8 , 141u8 , 110u8 , 112u8 , 160u8 , 39u8 , 49u8 , 166u8 , 1u8 , 109u8 , 42u8 , 81u8 , 70u8 , 115u8 , 200u8 , 224u8 , 30u8 , 68u8 , 254u8 , 239u8 , 109u8 , 129u8 , 181u8 , 19u8 , 83u8 , 240u8 , 6u8 , 94u8 , 64u8 , 239u8 , 164u8 ,]) } # [doc = " DMAP ( hot, cold, netuid ) --> rate limits for staking operations"] # [doc = " Value contains just a marker: we use this map as a set."] pub fn staking_operation_rate_limiter (& self , _0 : types :: staking_operation_rate_limiter :: Param0 , _1 : types :: staking_operation_rate_limiter :: Param1 , _2 : types :: staking_operation_rate_limiter :: Param2 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_operation_rate_limiter :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_operation_rate_limiter :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_operation_rate_limiter :: Param2 > ,) , types :: staking_operation_rate_limiter :: StakingOperationRateLimiter , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingOperationRateLimiter" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2) ,) , [17u8 , 129u8 , 141u8 , 110u8 , 112u8 , 160u8 , 39u8 , 49u8 , 166u8 , 1u8 , 109u8 , 42u8 , 81u8 , 70u8 , 115u8 , 200u8 , 224u8 , 30u8 , 68u8 , 254u8 , 239u8 , 109u8 , 129u8 , 181u8 , 19u8 , 83u8 , 240u8 , 6u8 , 94u8 , 64u8 , 239u8 , 164u8 ,]) } pub fn root_claimable_threshold_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_claimable_threshold :: RootClaimableThreshold , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimableThreshold" , () , [189u8 , 175u8 , 21u8 , 115u8 , 184u8 , 153u8 , 143u8 , 29u8 , 85u8 , 65u8 , 8u8 , 160u8 , 134u8 , 141u8 , 192u8 , 23u8 , 224u8 , 122u8 , 200u8 , 60u8 , 184u8 , 45u8 , 169u8 , 153u8 , 42u8 , 0u8 , 162u8 , 6u8 , 32u8 , 64u8 , 72u8 , 116u8 ,]) } pub fn root_claimable_threshold (& self , _0 : types :: root_claimable_threshold :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimable_threshold :: Param0 > , types :: root_claimable_threshold :: RootClaimableThreshold , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimableThreshold" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [189u8 , 175u8 , 21u8 , 115u8 , 184u8 , 153u8 , 143u8 , 29u8 , 85u8 , 65u8 , 8u8 , 160u8 , 134u8 , 141u8 , 192u8 , 23u8 , 224u8 , 122u8 , 200u8 , 60u8 , 184u8 , 45u8 , 169u8 , 153u8 , 42u8 , 0u8 , 162u8 , 6u8 , 32u8 , 64u8 , 72u8 , 116u8 ,]) } pub fn root_claimable_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_claimable :: RootClaimable , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimable" , () , [249u8 , 251u8 , 241u8 , 55u8 , 52u8 , 87u8 , 214u8 , 123u8 , 192u8 , 230u8 , 88u8 , 243u8 , 6u8 , 178u8 , 39u8 , 217u8 , 248u8 , 228u8 , 28u8 , 100u8 , 198u8 , 228u8 , 132u8 , 233u8 , 141u8 , 158u8 , 248u8 , 72u8 , 195u8 , 192u8 , 163u8 , 207u8 ,]) } pub fn root_claimable (& self , _0 : types :: root_claimable :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimable :: Param0 > , types :: root_claimable :: RootClaimable , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimable" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [249u8 , 251u8 , 241u8 , 55u8 , 52u8 , 87u8 , 214u8 , 123u8 , 192u8 , 230u8 , 88u8 , 243u8 , 6u8 , 178u8 , 39u8 , 217u8 , 248u8 , 228u8 , 28u8 , 100u8 , 198u8 , 228u8 , 132u8 , 233u8 , 141u8 , 158u8 , 248u8 , 72u8 , 195u8 , 192u8 , 163u8 , 207u8 ,]) } pub fn root_claimed_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_claimed :: RootClaimed , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimed" , () , [179u8 , 100u8 , 51u8 , 12u8 , 35u8 , 102u8 , 27u8 , 142u8 , 24u8 , 59u8 , 111u8 , 201u8 , 145u8 , 78u8 , 233u8 , 66u8 , 217u8 , 158u8 , 26u8 , 188u8 , 103u8 , 139u8 , 68u8 , 230u8 , 190u8 , 124u8 , 221u8 , 92u8 , 130u8 , 17u8 , 9u8 , 125u8 ,]) } pub fn root_claimed_iter1 (& self , _0 : types :: root_claimed :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimed :: Param0 > , types :: root_claimed :: RootClaimed , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimed" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [179u8 , 100u8 , 51u8 , 12u8 , 35u8 , 102u8 , 27u8 , 142u8 , 24u8 , 59u8 , 111u8 , 201u8 , 145u8 , 78u8 , 233u8 , 66u8 , 217u8 , 158u8 , 26u8 , 188u8 , 103u8 , 139u8 , 68u8 , 230u8 , 190u8 , 124u8 , 221u8 , 92u8 , 130u8 , 17u8 , 9u8 , 125u8 ,]) } pub fn root_claimed_iter2 (& self , _0 : types :: root_claimed :: Param0 , _1 : types :: root_claimed :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimed :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimed :: Param1 > ,) , types :: root_claimed :: RootClaimed , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimed" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [179u8 , 100u8 , 51u8 , 12u8 , 35u8 , 102u8 , 27u8 , 142u8 , 24u8 , 59u8 , 111u8 , 201u8 , 145u8 , 78u8 , 233u8 , 66u8 , 217u8 , 158u8 , 26u8 , 188u8 , 103u8 , 139u8 , 68u8 , 230u8 , 190u8 , 124u8 , 221u8 , 92u8 , 130u8 , 17u8 , 9u8 , 125u8 ,]) } pub fn root_claimed (& self , _0 : types :: root_claimed :: Param0 , _1 : types :: root_claimed :: Param1 , _2 : types :: root_claimed :: Param2 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimed :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimed :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claimed :: Param2 > ,) , types :: root_claimed :: RootClaimed , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimed" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2) ,) , [179u8 , 100u8 , 51u8 , 12u8 , 35u8 , 102u8 , 27u8 , 142u8 , 24u8 , 59u8 , 111u8 , 201u8 , 145u8 , 78u8 , 233u8 , 66u8 , 217u8 , 158u8 , 26u8 , 188u8 , 103u8 , 139u8 , 68u8 , 230u8 , 190u8 , 124u8 , 221u8 , 92u8 , 130u8 , 17u8 , 9u8 , 125u8 ,]) } pub fn root_claim_type_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: root_claim_type :: RootClaimType , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimType" , () , [207u8 , 34u8 , 152u8 , 101u8 , 126u8 , 44u8 , 24u8 , 10u8 , 126u8 , 159u8 , 149u8 , 139u8 , 252u8 , 74u8 , 105u8 , 172u8 , 195u8 , 199u8 , 109u8 , 237u8 , 53u8 , 46u8 , 165u8 , 251u8 , 112u8 , 246u8 , 157u8 , 174u8 , 225u8 , 208u8 , 84u8 , 106u8 ,]) } pub fn root_claim_type (& self , _0 : types :: root_claim_type :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: root_claim_type :: Param0 > , types :: root_claim_type :: RootClaimType , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "RootClaimType" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [207u8 , 34u8 , 152u8 , 101u8 , 126u8 , 44u8 , 24u8 , 10u8 , 126u8 , 159u8 , 149u8 , 139u8 , 252u8 , 74u8 , 105u8 , 172u8 , 195u8 , 199u8 , 109u8 , 237u8 , 53u8 , 46u8 , 165u8 , 251u8 , 112u8 , 246u8 , 157u8 , 174u8 , 225u8 , 208u8 , 84u8 , 106u8 ,]) } pub fn staking_coldkeys_by_index_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: staking_coldkeys_by_index :: StakingColdkeysByIndex , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingColdkeysByIndex" , () , [41u8 , 11u8 , 231u8 , 61u8 , 9u8 , 63u8 , 65u8 , 174u8 , 87u8 , 104u8 , 72u8 , 76u8 , 109u8 , 233u8 , 198u8 , 213u8 , 250u8 , 106u8 , 98u8 , 28u8 , 231u8 , 113u8 , 238u8 , 216u8 , 68u8 , 254u8 , 18u8 , 181u8 , 151u8 , 229u8 , 224u8 , 17u8 ,]) } pub fn staking_coldkeys_by_index (& self , _0 : types :: staking_coldkeys_by_index :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_coldkeys_by_index :: Param0 > , types :: staking_coldkeys_by_index :: StakingColdkeysByIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingColdkeysByIndex" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [41u8 , 11u8 , 231u8 , 61u8 , 9u8 , 63u8 , 65u8 , 174u8 , 87u8 , 104u8 , 72u8 , 76u8 , 109u8 , 233u8 , 198u8 , 213u8 , 250u8 , 106u8 , 98u8 , 28u8 , 231u8 , 113u8 , 238u8 , 216u8 , 68u8 , 254u8 , 18u8 , 181u8 , 151u8 , 229u8 , 224u8 , 17u8 ,]) } pub fn staking_coldkeys_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: staking_coldkeys :: StakingColdkeys , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingColdkeys" , () , [22u8 , 86u8 , 202u8 , 3u8 , 85u8 , 88u8 , 84u8 , 38u8 , 149u8 , 127u8 , 136u8 , 115u8 , 60u8 , 189u8 , 117u8 , 74u8 , 105u8 , 132u8 , 232u8 , 218u8 , 87u8 , 36u8 , 172u8 , 38u8 , 107u8 , 154u8 , 89u8 , 191u8 , 155u8 , 51u8 , 177u8 , 7u8 ,]) } pub fn staking_coldkeys (& self , _0 : types :: staking_coldkeys :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: staking_coldkeys :: Param0 > , types :: staking_coldkeys :: StakingColdkeys , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "StakingColdkeys" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [22u8 , 86u8 , 202u8 , 3u8 , 85u8 , 88u8 , 84u8 , 38u8 , 149u8 , 127u8 , 136u8 , 115u8 , 60u8 , 189u8 , 117u8 , 74u8 , 105u8 , 132u8 , 232u8 , 218u8 , 87u8 , 36u8 , 172u8 , 38u8 , 107u8 , 154u8 , 89u8 , 191u8 , 155u8 , 51u8 , 177u8 , 7u8 ,]) } pub fn num_staking_coldkeys (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: num_staking_coldkeys :: NumStakingColdkeys , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NumStakingColdkeys" , () , [11u8 , 7u8 , 197u8 , 93u8 , 41u8 , 48u8 , 2u8 , 166u8 , 26u8 , 158u8 , 30u8 , 228u8 , 20u8 , 227u8 , 240u8 , 99u8 , 88u8 , 48u8 , 199u8 , 208u8 , 94u8 , 123u8 , 228u8 , 201u8 , 120u8 , 118u8 , 200u8 , 92u8 , 151u8 , 60u8 , 249u8 , 159u8 ,]) } pub fn num_root_claim (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: num_root_claim :: NumRootClaim , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NumRootClaim" , () , [169u8 , 185u8 , 96u8 , 104u8 , 157u8 , 102u8 , 156u8 , 161u8 , 138u8 , 163u8 , 148u8 , 131u8 , 136u8 , 198u8 , 39u8 , 167u8 , 53u8 , 126u8 , 50u8 , 39u8 , 78u8 , 240u8 , 55u8 , 60u8 , 18u8 , 96u8 , 16u8 , 195u8 , 220u8 , 126u8 , 59u8 , 150u8 ,]) } # [doc = " ============================="] # [doc = " ==== EVM related storage ===="] # [doc = " ============================="] # [doc = " --- DMAP (netuid, uid) --> (H160, last_block_where_ownership_was_proven)"] pub fn associated_evm_address_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: associated_evm_address :: AssociatedEvmAddress , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AssociatedEvmAddress" , () , [182u8 , 241u8 , 150u8 , 23u8 , 6u8 , 54u8 , 8u8 , 76u8 , 140u8 , 250u8 , 35u8 , 248u8 , 91u8 , 239u8 , 52u8 , 175u8 , 164u8 , 228u8 , 93u8 , 33u8 , 194u8 , 100u8 , 249u8 , 88u8 , 126u8 , 83u8 , 57u8 , 201u8 , 167u8 , 71u8 , 7u8 , 81u8 ,]) } # [doc = " ============================="] # [doc = " ==== EVM related storage ===="] # [doc = " ============================="] # [doc = " --- DMAP (netuid, uid) --> (H160, last_block_where_ownership_was_proven)"] pub fn associated_evm_address_iter1 (& self , _0 : types :: associated_evm_address :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: associated_evm_address :: Param0 > , types :: associated_evm_address :: AssociatedEvmAddress , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AssociatedEvmAddress" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [182u8 , 241u8 , 150u8 , 23u8 , 6u8 , 54u8 , 8u8 , 76u8 , 140u8 , 250u8 , 35u8 , 248u8 , 91u8 , 239u8 , 52u8 , 175u8 , 164u8 , 228u8 , 93u8 , 33u8 , 194u8 , 100u8 , 249u8 , 88u8 , 126u8 , 83u8 , 57u8 , 201u8 , 167u8 , 71u8 , 7u8 , 81u8 ,]) } # [doc = " ============================="] # [doc = " ==== EVM related storage ===="] # [doc = " ============================="] # [doc = " --- DMAP (netuid, uid) --> (H160, last_block_where_ownership_was_proven)"] pub fn associated_evm_address (& self , _0 : types :: associated_evm_address :: Param0 , _1 : types :: associated_evm_address :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: associated_evm_address :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: associated_evm_address :: Param1 > ,) , types :: associated_evm_address :: AssociatedEvmAddress , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AssociatedEvmAddress" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [182u8 , 241u8 , 150u8 , 23u8 , 6u8 , 54u8 , 8u8 , 76u8 , 140u8 , 250u8 , 35u8 , 248u8 , 91u8 , 239u8 , 52u8 , 175u8 , 164u8 , 228u8 , 93u8 , 33u8 , 194u8 , 100u8 , 249u8 , 88u8 , 126u8 , 83u8 , 57u8 , 201u8 , 167u8 , 71u8 , 7u8 , 81u8 ,]) } # [doc = " ========================"] # [doc = " ==== Subnet Leasing ===="] # [doc = " ========================"] # [doc = " --- MAP ( lease_id ) --> subnet lease | The subnet lease for a given lease id."] pub fn subnet_leases_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_leases :: SubnetLeases , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLeases" , () , [167u8 , 107u8 , 220u8 , 65u8 , 138u8 , 251u8 , 5u8 , 174u8 , 193u8 , 72u8 , 177u8 , 147u8 , 102u8 , 185u8 , 209u8 , 89u8 , 47u8 , 80u8 , 116u8 , 104u8 , 53u8 , 18u8 , 132u8 , 127u8 , 100u8 , 228u8 , 179u8 , 84u8 , 19u8 , 96u8 , 245u8 , 15u8 ,]) } # [doc = " ========================"] # [doc = " ==== Subnet Leasing ===="] # [doc = " ========================"] # [doc = " --- MAP ( lease_id ) --> subnet lease | The subnet lease for a given lease id."] pub fn subnet_leases (& self , _0 : types :: subnet_leases :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_leases :: Param0 > , types :: subnet_leases :: SubnetLeases , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLeases" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [167u8 , 107u8 , 220u8 , 65u8 , 138u8 , 251u8 , 5u8 , 174u8 , 193u8 , 72u8 , 177u8 , 147u8 , 102u8 , 185u8 , 209u8 , 89u8 , 47u8 , 80u8 , 116u8 , 104u8 , 53u8 , 18u8 , 132u8 , 127u8 , 100u8 , 228u8 , 179u8 , 84u8 , 19u8 , 96u8 , 245u8 , 15u8 ,]) } # [doc = " --- DMAP ( lease_id, contributor ) --> shares | The shares of a contributor for a given lease."] pub fn subnet_lease_shares_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_lease_shares :: SubnetLeaseShares , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLeaseShares" , () , [175u8 , 10u8 , 110u8 , 170u8 , 152u8 , 234u8 , 186u8 , 32u8 , 239u8 , 111u8 , 205u8 , 133u8 , 16u8 , 29u8 , 178u8 , 91u8 , 194u8 , 86u8 , 69u8 , 251u8 , 148u8 , 255u8 , 9u8 , 140u8 , 47u8 , 74u8 , 122u8 , 160u8 , 155u8 , 29u8 , 126u8 , 58u8 ,]) } # [doc = " --- DMAP ( lease_id, contributor ) --> shares | The shares of a contributor for a given lease."] pub fn subnet_lease_shares_iter1 (& self , _0 : types :: subnet_lease_shares :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_lease_shares :: Param0 > , types :: subnet_lease_shares :: SubnetLeaseShares , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLeaseShares" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [175u8 , 10u8 , 110u8 , 170u8 , 152u8 , 234u8 , 186u8 , 32u8 , 239u8 , 111u8 , 205u8 , 133u8 , 16u8 , 29u8 , 178u8 , 91u8 , 194u8 , 86u8 , 69u8 , 251u8 , 148u8 , 255u8 , 9u8 , 140u8 , 47u8 , 74u8 , 122u8 , 160u8 , 155u8 , 29u8 , 126u8 , 58u8 ,]) } # [doc = " --- DMAP ( lease_id, contributor ) --> shares | The shares of a contributor for a given lease."] pub fn subnet_lease_shares (& self , _0 : types :: subnet_lease_shares :: Param0 , _1 : types :: subnet_lease_shares :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_lease_shares :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_lease_shares :: Param1 > ,) , types :: subnet_lease_shares :: SubnetLeaseShares , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetLeaseShares" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [175u8 , 10u8 , 110u8 , 170u8 , 152u8 , 234u8 , 186u8 , 32u8 , 239u8 , 111u8 , 205u8 , 133u8 , 16u8 , 29u8 , 178u8 , 91u8 , 194u8 , 86u8 , 69u8 , 251u8 , 148u8 , 255u8 , 9u8 , 140u8 , 47u8 , 74u8 , 122u8 , 160u8 , 155u8 , 29u8 , 126u8 , 58u8 ,]) } # [doc = " --- MAP ( netuid ) --> lease_id | The lease id for a given netuid."] pub fn subnet_uid_to_lease_id_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: subnet_uid_to_lease_id :: SubnetUidToLeaseId , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetUidToLeaseId" , () , [102u8 , 178u8 , 137u8 , 50u8 , 65u8 , 41u8 , 25u8 , 35u8 , 5u8 , 177u8 , 95u8 , 180u8 , 203u8 , 63u8 , 57u8 , 7u8 , 20u8 , 226u8 , 119u8 , 187u8 , 213u8 , 214u8 , 130u8 , 188u8 , 9u8 , 222u8 , 181u8 , 158u8 , 172u8 , 183u8 , 90u8 , 194u8 ,]) } # [doc = " --- MAP ( netuid ) --> lease_id | The lease id for a given netuid."] pub fn subnet_uid_to_lease_id (& self , _0 : types :: subnet_uid_to_lease_id :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: subnet_uid_to_lease_id :: Param0 > , types :: subnet_uid_to_lease_id :: SubnetUidToLeaseId , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "SubnetUidToLeaseId" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [102u8 , 178u8 , 137u8 , 50u8 , 65u8 , 41u8 , 25u8 , 35u8 , 5u8 , 177u8 , 95u8 , 180u8 , 203u8 , 63u8 , 57u8 , 7u8 , 20u8 , 226u8 , 119u8 , 187u8 , 213u8 , 214u8 , 130u8 , 188u8 , 9u8 , 222u8 , 181u8 , 158u8 , 172u8 , 183u8 , 90u8 , 194u8 ,]) } # [doc = " --- ITEM ( next_lease_id ) | The next lease id."] pub fn next_subnet_lease_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_subnet_lease_id :: NextSubnetLeaseId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NextSubnetLeaseId" , () , [195u8 , 252u8 , 241u8 , 67u8 , 49u8 , 225u8 , 245u8 , 24u8 , 43u8 , 150u8 , 160u8 , 0u8 , 202u8 , 91u8 , 187u8 , 202u8 , 117u8 , 194u8 , 127u8 , 176u8 , 101u8 , 110u8 , 3u8 , 198u8 , 217u8 , 111u8 , 227u8 , 141u8 , 59u8 , 131u8 , 23u8 , 118u8 ,]) } # [doc = " --- MAP ( lease_id ) --> accumulated_dividends | The accumulated dividends for a given lease that needs to be distributed."] pub fn accumulated_lease_dividends_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: accumulated_lease_dividends :: AccumulatedLeaseDividends , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AccumulatedLeaseDividends" , () , [162u8 , 130u8 , 186u8 , 72u8 , 238u8 , 109u8 , 43u8 , 112u8 , 11u8 , 75u8 , 121u8 , 87u8 , 197u8 , 129u8 , 227u8 , 206u8 , 141u8 , 153u8 , 79u8 , 236u8 , 179u8 , 138u8 , 110u8 , 131u8 , 128u8 , 24u8 , 177u8 , 67u8 , 60u8 , 7u8 , 200u8 , 227u8 ,]) } # [doc = " --- MAP ( lease_id ) --> accumulated_dividends | The accumulated dividends for a given lease that needs to be distributed."] pub fn accumulated_lease_dividends (& self , _0 : types :: accumulated_lease_dividends :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: accumulated_lease_dividends :: Param0 > , types :: accumulated_lease_dividends :: AccumulatedLeaseDividends , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "AccumulatedLeaseDividends" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [162u8 , 130u8 , 186u8 , 72u8 , 238u8 , 109u8 , 43u8 , 112u8 , 11u8 , 75u8 , 121u8 , 87u8 , 197u8 , 129u8 , 227u8 , 206u8 , 141u8 , 153u8 , 79u8 , 236u8 , 179u8 , 138u8 , 110u8 , 131u8 , 128u8 , 24u8 , 177u8 , 67u8 , 60u8 , 7u8 , 200u8 , 227u8 ,]) } # [doc = " --- ITEM ( CommitRevealWeightsVersion )"] pub fn commit_reveal_weights_version (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: commit_reveal_weights_version :: CommitRevealWeightsVersion , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "CommitRevealWeightsVersion" , () , [55u8 , 62u8 , 124u8 , 80u8 , 145u8 , 16u8 , 153u8 , 11u8 , 71u8 , 218u8 , 244u8 , 6u8 , 229u8 , 67u8 , 237u8 , 198u8 , 26u8 , 49u8 , 170u8 , 185u8 , 61u8 , 107u8 , 117u8 , 81u8 , 36u8 , 167u8 , 47u8 , 50u8 , 14u8 , 1u8 , 124u8 , 56u8 ,]) } # [doc = " ITEM( NetworkRegistrationStartBlock )"] pub fn network_registration_start_block (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: network_registration_start_block :: NetworkRegistrationStartBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "NetworkRegistrationStartBlock" , () , [39u8 , 146u8 , 100u8 , 110u8 , 245u8 , 168u8 , 166u8 , 143u8 , 255u8 , 141u8 , 122u8 , 87u8 , 139u8 , 185u8 , 182u8 , 204u8 , 157u8 , 151u8 , 254u8 , 185u8 , 5u8 , 25u8 , 173u8 , 108u8 , 152u8 , 203u8 , 53u8 , 203u8 , 71u8 , 30u8 , 237u8 , 248u8 ,]) } # [doc = " --- MAP ( netuid ) --> minimum required number of non-immortal & non-immune UIDs"] pub fn min_non_immune_uids_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: min_non_immune_uids :: MinNonImmuneUids , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinNonImmuneUids" , () , [128u8 , 174u8 , 232u8 , 117u8 , 252u8 , 155u8 , 224u8 , 0u8 , 231u8 , 125u8 , 225u8 , 139u8 , 172u8 , 106u8 , 178u8 , 18u8 , 162u8 , 35u8 , 254u8 , 191u8 , 201u8 , 118u8 , 43u8 , 221u8 , 86u8 , 171u8 , 71u8 , 167u8 , 23u8 , 185u8 , 218u8 , 192u8 ,]) } # [doc = " --- MAP ( netuid ) --> minimum required number of non-immortal & non-immune UIDs"] pub fn min_non_immune_uids (& self , _0 : types :: min_non_immune_uids :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: min_non_immune_uids :: Param0 > , types :: min_non_immune_uids :: MinNonImmuneUids , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinNonImmuneUids" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [128u8 , 174u8 , 232u8 , 117u8 , 252u8 , 155u8 , 224u8 , 0u8 , 231u8 , 125u8 , 225u8 , 139u8 , 172u8 , 106u8 , 178u8 , 18u8 , 162u8 , 35u8 , 254u8 , 191u8 , 201u8 , 118u8 , 43u8 , 221u8 , 86u8 , 171u8 , 71u8 , 167u8 , 23u8 , 185u8 , 218u8 , 192u8 ,]) } # [doc = " --- MAP ( netuid ) --> Current number of subnet mechanisms"] pub fn mechanism_count_current_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: mechanism_count_current :: MechanismCountCurrent , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MechanismCountCurrent" , () , [249u8 , 248u8 , 63u8 , 149u8 , 75u8 , 146u8 , 125u8 , 161u8 , 164u8 , 78u8 , 239u8 , 175u8 , 41u8 , 112u8 , 97u8 , 201u8 , 60u8 , 213u8 , 144u8 , 227u8 , 166u8 , 147u8 , 246u8 , 184u8 , 248u8 , 30u8 , 241u8 , 110u8 , 184u8 , 194u8 , 98u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> Current number of subnet mechanisms"] pub fn mechanism_count_current (& self , _0 : types :: mechanism_count_current :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: mechanism_count_current :: Param0 > , types :: mechanism_count_current :: MechanismCountCurrent , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MechanismCountCurrent" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [249u8 , 248u8 , 63u8 , 149u8 , 75u8 , 146u8 , 125u8 , 161u8 , 164u8 , 78u8 , 239u8 , 175u8 , 41u8 , 112u8 , 97u8 , 201u8 , 60u8 , 213u8 , 144u8 , 227u8 , 166u8 , 147u8 , 246u8 , 184u8 , 248u8 , 30u8 , 241u8 , 110u8 , 184u8 , 194u8 , 98u8 , 169u8 ,]) } # [doc = " --- MAP ( netuid ) --> Normalized vector of emission split proportion between subnet mechanisms"] pub fn mechanism_emission_split_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: mechanism_emission_split :: MechanismEmissionSplit , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MechanismEmissionSplit" , () , [75u8 , 195u8 , 126u8 , 83u8 , 159u8 , 202u8 , 75u8 , 131u8 , 33u8 , 142u8 , 0u8 , 190u8 , 213u8 , 87u8 , 0u8 , 171u8 , 80u8 , 13u8 , 143u8 , 202u8 , 30u8 , 240u8 , 6u8 , 157u8 , 189u8 , 111u8 , 119u8 , 196u8 , 59u8 , 86u8 , 204u8 , 102u8 ,]) } # [doc = " --- MAP ( netuid ) --> Normalized vector of emission split proportion between subnet mechanisms"] pub fn mechanism_emission_split (& self , _0 : types :: mechanism_emission_split :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: mechanism_emission_split :: Param0 > , types :: mechanism_emission_split :: MechanismEmissionSplit , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "MechanismEmissionSplit" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [75u8 , 195u8 , 126u8 , 83u8 , 159u8 , 202u8 , 75u8 , 131u8 , 33u8 , 142u8 , 0u8 , 190u8 , 213u8 , 87u8 , 0u8 , 171u8 , 80u8 , 13u8 , 143u8 , 202u8 , 30u8 , 240u8 , 6u8 , 157u8 , 189u8 , 111u8 , 119u8 , 196u8 , 59u8 , 86u8 , 204u8 , 102u8 ,]) } # [doc = " =================="] # [doc = " ==== Genesis ====="] # [doc = " =================="] # [doc = " --- Storage for migration run status"] pub fn has_migration_run_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: has_migration_run :: HasMigrationRun , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "HasMigrationRun" , () , [218u8 , 208u8 , 248u8 , 140u8 , 220u8 , 160u8 , 153u8 , 63u8 , 27u8 , 120u8 , 32u8 , 30u8 , 124u8 , 8u8 , 170u8 , 223u8 , 163u8 , 9u8 , 67u8 , 3u8 , 209u8 , 162u8 , 207u8 , 222u8 , 168u8 , 11u8 , 229u8 , 80u8 , 24u8 , 253u8 , 154u8 , 199u8 ,]) } # [doc = " =================="] # [doc = " ==== Genesis ====="] # [doc = " =================="] # [doc = " --- Storage for migration run status"] pub fn has_migration_run (& self , _0 : types :: has_migration_run :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: has_migration_run :: Param0 > , types :: has_migration_run :: HasMigrationRun , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "HasMigrationRun" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [218u8 , 208u8 , 248u8 , 140u8 , 220u8 , 160u8 , 153u8 , 63u8 , 27u8 , 120u8 , 32u8 , 30u8 , 124u8 , 8u8 , 170u8 , 223u8 , 163u8 , 9u8 , 67u8 , 3u8 , 209u8 , 162u8 , 207u8 , 222u8 , 168u8 , 11u8 , 229u8 , 80u8 , 24u8 , 253u8 , 154u8 , 199u8 ,]) } # [doc = " Storage value for pending childkey cooldown, settable by root."] pub fn pending_child_key_cooldown (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending_child_key_cooldown :: PendingChildKeyCooldown , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SubtensorModule" , "PendingChildKeyCooldown" , () , [244u8 , 57u8 , 176u8 , 55u8 , 165u8 , 114u8 , 55u8 , 28u8 , 210u8 , 190u8 , 125u8 , 37u8 , 133u8 , 221u8 , 187u8 , 181u8 , 47u8 , 50u8 , 1u8 , 212u8 , 241u8 , 169u8 , 153u8 , 130u8 , 16u8 , 12u8 , 129u8 , 5u8 , 185u8 , 182u8 , 217u8 , 47u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " ================================="] # [doc = " ==== Initial Value Constants ===="] # [doc = " ================================="] # [doc = " Initial currency issuance."] pub fn initial_issuance (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialIssuance" , [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 ,]) } # [doc = " Initial min allowed weights setting."] pub fn initial_min_allowed_weights (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMinAllowedWeights" , [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 ,]) } # [doc = " Initial Emission Ratio."] pub fn initial_emission_value (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialEmissionValue" , [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 ,]) } # [doc = " Tempo for each network."] pub fn initial_tempo (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialTempo" , [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 ,]) } # [doc = " Initial Difficulty."] pub fn initial_difficulty (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialDifficulty" , [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 ,]) } # [doc = " Initial Max Difficulty."] pub fn initial_max_difficulty (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMaxDifficulty" , [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 ,]) } # [doc = " Initial Min Difficulty."] pub fn initial_min_difficulty (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMinDifficulty" , [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 ,]) } # [doc = " Initial RAO Recycled."] pub fn initial_rao_recycled_for_registration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialRAORecycledForRegistration" , [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 ,]) } # [doc = " Initial Burn."] pub fn initial_burn (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialBurn" , [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 ,]) } # [doc = " Initial Max Burn."] pub fn initial_max_burn (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMaxBurn" , [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 ,]) } # [doc = " Initial Min Burn."] pub fn initial_min_burn (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMinBurn" , [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 ,]) } # [doc = " Min  burn upper bound."] pub fn min_burn_upper_bound (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "MinBurnUpperBound" , [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 ,]) } # [doc = " Max burn lower bound."] pub fn max_burn_lower_bound (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxBurnLowerBound" , [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 ,]) } # [doc = " Initial adjustment interval."] pub fn initial_adjustment_interval (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialAdjustmentInterval" , [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 ,]) } # [doc = " Initial bonds moving average."] pub fn initial_bonds_moving_average (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialBondsMovingAverage" , [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 ,]) } # [doc = " Initial bonds penalty."] pub fn initial_bonds_penalty (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialBondsPenalty" , [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 ,]) } # [doc = " Initial bonds reset."] pub fn initial_bonds_reset_on (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: bool > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialBondsResetOn" , [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 ,]) } # [doc = " Initial target registrations per interval."] pub fn initial_target_registrations_per_interval (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialTargetRegistrationsPerInterval" , [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 ,]) } # [doc = " Rho constant."] pub fn initial_rho (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialRho" , [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 ,]) } # [doc = " AlphaSigmoidSteepness constant."] pub fn initial_alpha_sigmoid_steepness (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: i16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialAlphaSigmoidSteepness" , [190u8 , 65u8 , 174u8 , 71u8 , 194u8 , 61u8 , 41u8 , 151u8 , 219u8 , 115u8 , 253u8 , 125u8 , 78u8 , 247u8 , 175u8 , 121u8 , 125u8 , 148u8 , 239u8 , 15u8 , 46u8 , 205u8 , 137u8 , 241u8 , 25u8 , 125u8 , 128u8 , 197u8 , 4u8 , 82u8 , 131u8 , 246u8 ,]) } # [doc = " Kappa constant."] pub fn initial_kappa (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialKappa" , [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 ,]) } # [doc = " Initial minimum allowed network UIDs"] pub fn initial_min_allowed_uids (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMinAllowedUids" , [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 ,]) } # [doc = " Initial maximum allowed network UIDs"] pub fn initial_max_allowed_uids (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMaxAllowedUids" , [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 ,]) } # [doc = " Initial validator context pruning length."] pub fn initial_validator_prune_len (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialValidatorPruneLen" , [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 ,]) } # [doc = " Initial scaling law power."] pub fn initial_scaling_law_power (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialScalingLawPower" , [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 ,]) } # [doc = " Immunity Period Constant."] pub fn initial_immunity_period (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialImmunityPeriod" , [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 ,]) } # [doc = " Activity constant."] pub fn initial_activity_cutoff (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialActivityCutoff" , [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 ,]) } # [doc = " Initial max registrations per block."] pub fn initial_max_registrations_per_block (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMaxRegistrationsPerBlock" , [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 ,]) } # [doc = " Initial pruning score for each neuron."] pub fn initial_pruning_score (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialPruningScore" , [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 ,]) } # [doc = " Initial maximum allowed validators per network."] pub fn initial_max_allowed_validators (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMaxAllowedValidators" , [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 ,]) } # [doc = " Initial default delegation take."] pub fn initial_default_delegate_take (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialDefaultDelegateTake" , [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 ,]) } # [doc = " Initial minimum delegation take."] pub fn initial_min_delegate_take (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMinDelegateTake" , [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 ,]) } # [doc = " Initial default childkey take."] pub fn initial_default_child_key_take (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialDefaultChildKeyTake" , [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 ,]) } # [doc = " Initial minimum childkey take."] pub fn initial_min_child_key_take (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMinChildKeyTake" , [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 ,]) } # [doc = " Initial maximum childkey take."] pub fn initial_max_child_key_take (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialMaxChildKeyTake" , [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 ,]) } # [doc = " Initial weights version key."] pub fn initial_weights_version_key (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialWeightsVersionKey" , [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 ,]) } # [doc = " Initial serving rate limit."] pub fn initial_serving_rate_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialServingRateLimit" , [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 ,]) } # [doc = " Initial transaction rate limit."] pub fn initial_tx_rate_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialTxRateLimit" , [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 ,]) } # [doc = " Initial delegate take transaction rate limit."] pub fn initial_tx_delegate_take_rate_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialTxDelegateTakeRateLimit" , [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 ,]) } # [doc = " Initial childkey take transaction rate limit."] pub fn initial_tx_child_key_take_rate_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialTxChildKeyTakeRateLimit" , [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 ,]) } # [doc = " Initial adjustment alpha on burn and pow."] pub fn initial_adjustment_alpha (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialAdjustmentAlpha" , [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 ,]) } # [doc = " Initial network immunity period"] pub fn initial_network_immunity_period (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialNetworkImmunityPeriod" , [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 ,]) } # [doc = " Initial network minimum burn cost"] pub fn initial_network_min_lock_cost (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialNetworkMinLockCost" , [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 ,]) } # [doc = " Initial network subnet cut."] pub fn initial_subnet_owner_cut (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialSubnetOwnerCut" , [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 ,]) } # [doc = " Initial lock reduction interval."] pub fn initial_network_lock_reduction_interval (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialNetworkLockReductionInterval" , [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 ,]) } # [doc = " Initial network creation rate limit"] pub fn initial_network_rate_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialNetworkRateLimit" , [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 ,]) } # [doc = " Cost of swapping a hotkey."] pub fn key_swap_cost (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "KeySwapCost" , [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 ,]) } # [doc = " The upper bound for the alpha parameter. Used for Liquid Alpha."] pub fn alpha_high (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaHigh" , [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 ,]) } # [doc = " The lower bound for the alpha parameter. Used for Liquid Alpha."] pub fn alpha_low (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "AlphaLow" , [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 ,]) } # [doc = " A flag to indicate if Liquid Alpha is enabled."] pub fn liquid_alpha_on (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: bool > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "LiquidAlphaOn" , [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 ,]) } # [doc = " Coldkey swap schedule duartion."] pub fn initial_coldkey_swap_schedule_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialColdkeySwapScheduleDuration" , [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 ,]) } # [doc = " Coldkey swap reschedule duration."] pub fn initial_coldkey_swap_reschedule_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialColdkeySwapRescheduleDuration" , [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 ,]) } # [doc = " Dissolve network schedule duration"] pub fn initial_dissolve_network_schedule_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialDissolveNetworkScheduleDuration" , [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 ,]) } # [doc = " Initial TAO weight."] pub fn initial_tao_weight (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialTaoWeight" , [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 ,]) } # [doc = " Initial EMA price halving period"] pub fn initial_ema_price_halving_period (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "InitialEmaPriceHalvingPeriod" , [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 ,]) } # [doc = " Block number after a new subnet accept the start call extrinsic."] pub fn duration_of_start_call (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "DurationOfStartCall" , [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 ,]) } # [doc = " Cost of swapping a hotkey in a subnet."] pub fn key_swap_on_subnet_cost (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "KeySwapOnSubnetCost" , [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 ,]) } # [doc = " Block number for a coldkey swap the hotkey in specific subnet."] pub fn hotkey_swap_on_subnet_interval (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "HotkeySwapOnSubnetInterval" , [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 ,]) } # [doc = " Number of blocks between dividends distribution."] pub fn lease_dividends_distribution_interval (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "LeaseDividendsDistributionInterval" , [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 ,]) } # [doc = " Maximum percentage of immune UIDs."] pub fn max_immune_uids_percentage (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_arithmetic :: per_things :: Percent > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SubtensorModule" , "MaxImmuneUidsPercentage" , [40u8 , 171u8 , 69u8 , 196u8 , 34u8 , 184u8 , 50u8 , 128u8 , 139u8 , 192u8 , 63u8 , 231u8 , 249u8 , 200u8 , 252u8 , 73u8 , 244u8 , 170u8 , 51u8 , 177u8 , 106u8 , 47u8 , 114u8 , 234u8 , 84u8 , 104u8 , 62u8 , 118u8 , 227u8 , 50u8 , 225u8 , 122u8 ,]) } } } } pub mod utility { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_subtensor_utility :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_subtensor_utility :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a batch of dispatch calls."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] # [doc = ""] # [doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] # [doc = "event is deposited. If a call failed and the batch was interrupted, then the"] # [doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] # [doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] # [doc = "event is deposited."] pub struct Batch { pub calls : batch :: Calls , } pub mod batch { use super :: runtime_types ; pub type Calls = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: node_subtensor_runtime :: RuntimeCall > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Batch { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "batch" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a call through an indexed pseudonym of the sender."] # [doc = ""] # [doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] # [doc = "use the same filter as the origin of this call."] # [doc = ""] # [doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] # [doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] # [doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] # [doc = "in the Multisig pallet instead."] # [doc = ""] # [doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub struct AsDerivative { pub index : as_derivative :: Index , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < as_derivative :: Call > , } pub mod as_derivative { use super :: runtime_types ; pub type Index = :: core :: primitive :: u16 ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AsDerivative { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "as_derivative" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a batch of dispatch calls and atomically execute them."] # [doc = "The whole transaction will rollback and fail if any of the calls failed."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] pub struct BatchAll { pub calls : batch_all :: Calls , } pub mod batch_all { use super :: runtime_types ; pub type Calls = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: node_subtensor_runtime :: RuntimeCall > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for BatchAll { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "batch_all" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub struct DispatchAs { pub as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < dispatch_as :: AsOrigin > , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < dispatch_as :: Call > , } pub mod dispatch_as { use super :: runtime_types ; pub type AsOrigin = runtime_types :: node_subtensor_runtime :: OriginCaller ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DispatchAs { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "dispatch_as" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Send a batch of dispatch calls."] # [doc = "Unlike `batch`, it allows errors and won't interrupt."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] pub struct ForceBatch { pub calls : force_batch :: Calls , } pub mod force_batch { use super :: runtime_types ; pub type Calls = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: node_subtensor_runtime :: RuntimeCall > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceBatch { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "force_batch" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatch a function call with a specified weight."] # [doc = ""] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Root origin to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] pub struct WithWeight { pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < with_weight :: Call > , pub weight : with_weight :: Weight , } pub mod with_weight { use super :: runtime_types ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type Weight = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for WithWeight { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "with_weight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatch a fallback call in the event the main call fails to execute."] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "This function first attempts to dispatch the `main` call."] # [doc = "If the `main` call fails, the `fallback` is attemted."] # [doc = "if the fallback is successfully dispatched, the weights of both calls"] # [doc = "are accumulated and an event containing the main call error is deposited."] # [doc = ""] # [doc = "In the event of a fallback failure the whole call fails"] # [doc = "with the weights returned."] # [doc = ""] # [doc = "- `main`: The main call to be dispatched. This is the primary action to execute."] # [doc = "- `fallback`: The fallback call to be dispatched in case the `main` call fails."] # [doc = ""] # [doc = "## Dispatch Logic"] # [doc = "- If the origin is `root`, both the main and fallback calls are executed without"] # [doc = "  applying any origin filters."] # [doc = "- If the origin is not `root`, the origin filter is applied to both the `main` and"] # [doc = "  `fallback` calls."] # [doc = ""] # [doc = "## Use Case"] # [doc = "- Some use cases might involve submitting a `batch` type call in either main, fallback"] # [doc = "  or both."] pub struct IfElse { pub main : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < if_else :: Main > , pub fallback : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < if_else :: Fallback > , } pub mod if_else { use super :: runtime_types ; pub type Main = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type Fallback = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for IfElse { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "if_else" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] pub struct DispatchAsFallible { pub as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < dispatch_as_fallible :: AsOrigin > , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < dispatch_as_fallible :: Call > , } pub mod dispatch_as_fallible { use super :: runtime_types ; pub type AsOrigin = runtime_types :: node_subtensor_runtime :: OriginCaller ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DispatchAsFallible { const PALLET : & 'static str = "Utility" ; const CALL : & 'static str = "dispatch_as_fallible" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Send a batch of dispatch calls."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] # [doc = ""] # [doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] # [doc = "event is deposited. If a call failed and the batch was interrupted, then the"] # [doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] # [doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] # [doc = "event is deposited."] pub fn batch (& self , calls : types :: batch :: Calls ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Batch > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "batch" , types :: Batch { calls , } , [197u8 , 139u8 , 117u8 , 180u8 , 191u8 , 186u8 , 46u8 , 226u8 , 15u8 , 63u8 , 62u8 , 177u8 , 96u8 , 161u8 , 186u8 , 133u8 , 174u8 , 102u8 , 187u8 , 160u8 , 225u8 , 189u8 , 112u8 , 232u8 , 201u8 , 109u8 , 242u8 , 157u8 , 15u8 , 130u8 , 178u8 , 139u8 ,]) } # [doc = "Send a call through an indexed pseudonym of the sender."] # [doc = ""] # [doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] # [doc = "use the same filter as the origin of this call."] # [doc = ""] # [doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] # [doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] # [doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] # [doc = "in the Multisig pallet instead."] # [doc = ""] # [doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub fn as_derivative (& self , index : types :: as_derivative :: Index , call : types :: as_derivative :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AsDerivative > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "as_derivative" , types :: AsDerivative { index , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [59u8 , 24u8 , 51u8 , 222u8 , 125u8 , 192u8 , 127u8 , 31u8 , 178u8 , 152u8 , 46u8 , 14u8 , 86u8 , 231u8 , 32u8 , 182u8 , 159u8 , 196u8 , 8u8 , 244u8 , 56u8 , 244u8 , 18u8 , 73u8 , 194u8 , 147u8 , 248u8 , 182u8 , 219u8 , 211u8 , 135u8 , 91u8 ,]) } # [doc = "Send a batch of dispatch calls and atomically execute them."] # [doc = "The whole transaction will rollback and fail if any of the calls failed."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] pub fn batch_all (& self , calls : types :: batch_all :: Calls ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: BatchAll > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "batch_all" , types :: BatchAll { calls , } , [178u8 , 126u8 , 253u8 , 179u8 , 222u8 , 200u8 , 231u8 , 15u8 , 139u8 , 63u8 , 244u8 , 42u8 , 238u8 , 72u8 , 57u8 , 50u8 , 217u8 , 219u8 , 160u8 , 82u8 , 23u8 , 133u8 , 218u8 , 153u8 , 206u8 , 241u8 , 142u8 , 17u8 , 1u8 , 60u8 , 176u8 , 27u8 ,]) } # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] pub fn dispatch_as (& self , as_origin : types :: dispatch_as :: AsOrigin , call : types :: dispatch_as :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DispatchAs > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "dispatch_as" , types :: DispatchAs { as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (as_origin) , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [188u8 , 70u8 , 183u8 , 255u8 , 83u8 , 243u8 , 130u8 , 160u8 , 220u8 , 3u8 , 101u8 , 61u8 , 127u8 , 180u8 , 157u8 , 189u8 , 24u8 , 40u8 , 219u8 , 205u8 , 71u8 , 158u8 , 37u8 , 178u8 , 111u8 , 135u8 , 89u8 , 232u8 , 249u8 , 222u8 , 237u8 , 50u8 ,]) } # [doc = "Send a batch of dispatch calls."] # [doc = "Unlike `batch`, it allows errors and won't interrupt."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] pub fn force_batch (& self , calls : types :: force_batch :: Calls ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceBatch > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "force_batch" , types :: ForceBatch { calls , } , [210u8 , 120u8 , 52u8 , 118u8 , 231u8 , 130u8 , 142u8 , 100u8 , 46u8 , 2u8 , 94u8 , 93u8 , 5u8 , 78u8 , 99u8 , 86u8 , 91u8 , 203u8 , 158u8 , 190u8 , 207u8 , 190u8 , 100u8 , 240u8 , 63u8 , 45u8 , 229u8 , 118u8 , 173u8 , 7u8 , 54u8 , 79u8 ,]) } # [doc = "Dispatch a function call with a specified weight."] # [doc = ""] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Root origin to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] pub fn with_weight (& self , call : types :: with_weight :: Call , weight : types :: with_weight :: Weight ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: WithWeight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "with_weight" , types :: WithWeight { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , weight , } , [155u8 , 119u8 , 207u8 , 96u8 , 75u8 , 108u8 , 255u8 , 252u8 , 152u8 , 35u8 , 239u8 , 239u8 , 2u8 , 218u8 , 4u8 , 45u8 , 8u8 , 223u8 , 133u8 , 248u8 , 9u8 , 54u8 , 135u8 , 124u8 , 223u8 , 110u8 , 123u8 , 41u8 , 12u8 , 115u8 , 194u8 , 194u8 ,]) } # [doc = "Dispatch a fallback call in the event the main call fails to execute."] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "This function first attempts to dispatch the `main` call."] # [doc = "If the `main` call fails, the `fallback` is attemted."] # [doc = "if the fallback is successfully dispatched, the weights of both calls"] # [doc = "are accumulated and an event containing the main call error is deposited."] # [doc = ""] # [doc = "In the event of a fallback failure the whole call fails"] # [doc = "with the weights returned."] # [doc = ""] # [doc = "- `main`: The main call to be dispatched. This is the primary action to execute."] # [doc = "- `fallback`: The fallback call to be dispatched in case the `main` call fails."] # [doc = ""] # [doc = "## Dispatch Logic"] # [doc = "- If the origin is `root`, both the main and fallback calls are executed without"] # [doc = "  applying any origin filters."] # [doc = "- If the origin is not `root`, the origin filter is applied to both the `main` and"] # [doc = "  `fallback` calls."] # [doc = ""] # [doc = "## Use Case"] # [doc = "- Some use cases might involve submitting a `batch` type call in either main, fallback"] # [doc = "  or both."] pub fn if_else (& self , main : types :: if_else :: Main , fallback : types :: if_else :: Fallback ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: IfElse > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "if_else" , types :: IfElse { main : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (main) , fallback : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (fallback) , } , [148u8 , 66u8 , 178u8 , 13u8 , 76u8 , 80u8 , 145u8 , 207u8 , 180u8 , 52u8 , 193u8 , 230u8 , 244u8 , 172u8 , 74u8 , 163u8 , 215u8 , 151u8 , 93u8 , 79u8 , 41u8 , 12u8 , 110u8 , 63u8 , 89u8 , 21u8 , 154u8 , 98u8 , 26u8 , 212u8 , 58u8 , 13u8 ,]) } # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] pub fn dispatch_as_fallible (& self , as_origin : types :: dispatch_as_fallible :: AsOrigin , call : types :: dispatch_as_fallible :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DispatchAsFallible > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Utility" , "dispatch_as_fallible" , types :: DispatchAsFallible { as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (as_origin) , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [232u8 , 1u8 , 241u8 , 221u8 , 72u8 , 82u8 , 196u8 , 219u8 , 230u8 , 72u8 , 207u8 , 186u8 , 122u8 , 118u8 , 29u8 , 253u8 , 191u8 , 175u8 , 165u8 , 39u8 , 207u8 , 101u8 , 235u8 , 135u8 , 149u8 , 63u8 , 91u8 , 191u8 , 162u8 , 46u8 , 74u8 , 73u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_subtensor_utility :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [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 : batch_interrupted :: Index , pub error : batch_interrupted :: Error , } pub mod batch_interrupted { use super :: runtime_types ; pub type Index = :: core :: primitive :: u32 ; pub type Error = runtime_types :: sp_runtime :: DispatchError ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchInterrupted { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "BatchInterrupted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Batch of dispatches completed fully with no error."] pub struct BatchCompleted ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchCompleted { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "BatchCompleted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Batch of dispatches completed but has errors."] pub struct BatchCompletedWithErrors ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BatchCompletedWithErrors { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "BatchCompletedWithErrors" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A single item within a Batch of dispatches has completed with no error."] pub struct ItemCompleted ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ItemCompleted { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "ItemCompleted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A single item within a Batch of dispatches has completed with error."] pub struct ItemFailed { pub error : item_failed :: Error , } pub mod item_failed { use super :: runtime_types ; pub type Error = runtime_types :: sp_runtime :: DispatchError ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ItemFailed { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "ItemFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A call was dispatched."] pub struct DispatchedAs { pub result : dispatched_as :: Result , } pub mod dispatched_as { use super :: runtime_types ; pub type Result = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DispatchedAs { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "DispatchedAs" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Main call was dispatched."] pub struct IfElseMainSuccess ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IfElseMainSuccess { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "IfElseMainSuccess" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The fallback call was dispatched."] pub struct IfElseFallbackCalled { pub main_error : if_else_fallback_called :: MainError , } pub mod if_else_fallback_called { use super :: runtime_types ; pub type MainError = runtime_types :: sp_runtime :: DispatchError ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IfElseFallbackCalled { const PALLET : & 'static str = "Utility" ; const EVENT : & 'static str = "IfElseFallbackCalled" ; } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The limit on the number of batched calls."] pub fn batched_calls_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 sudo { use super :: root_mod ; use super :: runtime_types ; # [doc = "Error for the Sudo pallet."] pub type Error = runtime_types :: pallet_sudo :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] pub struct Sudo { pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < sudo :: Call > , } pub mod sudo { use super :: runtime_types ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Sudo { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "sudo" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Sudo user to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub struct SudoUncheckedWeight { pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < sudo_unchecked_weight :: Call > , pub weight : sudo_unchecked_weight :: Weight , } pub mod sudo_unchecked_weight { use super :: runtime_types ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type Weight = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoUncheckedWeight { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "sudo_unchecked_weight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] # [doc = "key."] pub struct SetKey { pub new : set_key :: New , } pub mod set_key { use super :: runtime_types ; pub type New = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetKey { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "set_key" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] # [doc = "a given account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub struct SudoAs { pub who : sudo_as :: Who , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < sudo_as :: Call > , } pub mod sudo_as { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoAs { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "sudo_as" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Permanently removes the sudo key."] # [doc = ""] # [doc = "**This cannot be un-done.**"] pub struct RemoveKey ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveKey { const PALLET : & 'static str = "Sudo" ; const CALL : & 'static str = "remove_key" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] pub fn sudo (& self , call : types :: sudo :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Sudo > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "sudo" , types :: Sudo { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [123u8 , 235u8 , 193u8 , 137u8 , 201u8 , 159u8 , 144u8 , 91u8 , 168u8 , 108u8 , 14u8 , 241u8 , 227u8 , 114u8 , 179u8 , 242u8 , 103u8 , 129u8 , 194u8 , 91u8 , 46u8 , 61u8 , 119u8 , 17u8 , 102u8 , 67u8 , 186u8 , 219u8 , 13u8 , 196u8 , 86u8 , 88u8 ,]) } # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Sudo user to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub fn sudo_unchecked_weight (& self , call : types :: sudo_unchecked_weight :: Call , weight : types :: sudo_unchecked_weight :: Weight ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoUncheckedWeight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "sudo_unchecked_weight" , types :: SudoUncheckedWeight { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , weight , } , [82u8 , 160u8 , 50u8 , 222u8 , 97u8 , 68u8 , 156u8 , 249u8 , 223u8 , 176u8 , 173u8 , 164u8 , 252u8 , 102u8 , 15u8 , 26u8 , 60u8 , 216u8 , 133u8 , 120u8 , 37u8 , 88u8 , 251u8 , 5u8 , 102u8 , 30u8 , 189u8 , 86u8 , 165u8 , 224u8 , 151u8 , 10u8 ,]) } # [doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] # [doc = "key."] pub fn set_key (& self , new : types :: set_key :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetKey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "set_key" , types :: SetKey { new , } , [9u8 , 73u8 , 39u8 , 205u8 , 188u8 , 127u8 , 143u8 , 54u8 , 128u8 , 94u8 , 8u8 , 227u8 , 197u8 , 44u8 , 70u8 , 93u8 , 228u8 , 196u8 , 64u8 , 165u8 , 226u8 , 158u8 , 101u8 , 192u8 , 22u8 , 193u8 , 102u8 , 84u8 , 21u8 , 35u8 , 92u8 , 198u8 ,]) } # [doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] # [doc = "a given account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] pub fn sudo_as (& self , who : types :: sudo_as :: Who , call : types :: sudo_as :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoAs > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "sudo_as" , types :: SudoAs { who , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [129u8 , 27u8 , 34u8 , 70u8 , 20u8 , 206u8 , 107u8 , 77u8 , 217u8 , 221u8 , 184u8 , 81u8 , 130u8 , 18u8 , 198u8 , 80u8 , 74u8 , 145u8 , 197u8 , 139u8 , 11u8 , 5u8 , 183u8 , 154u8 , 213u8 , 13u8 , 142u8 , 235u8 , 78u8 , 243u8 , 172u8 , 5u8 ,]) } # [doc = "Permanently removes the sudo key."] # [doc = ""] # [doc = "**This cannot be un-done.**"] pub fn remove_key (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveKey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Sudo" , "remove_key" , types :: RemoveKey { } , [133u8 , 253u8 , 54u8 , 175u8 , 202u8 , 239u8 , 5u8 , 198u8 , 180u8 , 138u8 , 25u8 , 28u8 , 109u8 , 40u8 , 30u8 , 56u8 , 126u8 , 100u8 , 52u8 , 205u8 , 250u8 , 191u8 , 61u8 , 195u8 , 172u8 , 142u8 , 184u8 , 239u8 , 247u8 , 10u8 , 211u8 , 79u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A sudo call just took place."] pub struct Sudid { pub sudo_result : sudid :: SudoResult , } pub mod sudid { use super :: runtime_types ; pub type SudoResult = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Sudid { const PALLET : & 'static str = "Sudo" ; const EVENT : & 'static str = "Sudid" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The sudo key has been updated."] pub struct KeyChanged { pub old : key_changed :: Old , pub new : key_changed :: New , } pub mod key_changed { use super :: runtime_types ; pub type Old = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type New = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for KeyChanged { const PALLET : & 'static str = "Sudo" ; const EVENT : & 'static str = "KeyChanged" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The key was permanently removed."] pub struct KeyRemoved ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for KeyRemoved { const PALLET : & 'static str = "Sudo" ; const EVENT : & 'static str = "KeyRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A [sudo_as](Pallet::sudo_as) call just took place."] pub struct SudoAsDone { pub sudo_result : sudo_as_done :: SudoResult , } pub mod sudo_as_done { use super :: runtime_types ; pub type SudoResult = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SudoAsDone { const PALLET : & 'static str = "Sudo" ; const EVENT : & 'static str = "SudoAsDone" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod key { use super :: runtime_types ; pub type Key = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The `AccountId` of the sudo key."] pub fn key (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: key :: Key , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Sudo" , "Key" , () , [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 multisig { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_multisig :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "multi-signature, but do not participate in the approval process."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(Z + C) where Z is the length of the call and C its execution weight."] pub struct AsMultiThreshold1 { pub other_signatories : as_multi_threshold1 :: OtherSignatories , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < as_multi_threshold1 :: Call > , } pub mod as_multi_threshold1 { use super :: runtime_types ; pub type OtherSignatories = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AsMultiThreshold1 { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "as_multi_threshold_1" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "If there are enough, then dispatch the call."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "NOTE: Unless this is the final approval, you will generally want to use"] # [doc = "`approve_as_multi` instead, since it only requires a hash of the call."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] # [doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] # [doc = "may be found in the deposited `MultisigExecuted` event."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S + Z + Call)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- The weight of the `call`."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = "  taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub struct AsMulti { pub threshold : as_multi :: Threshold , pub other_signatories : as_multi :: OtherSignatories , pub maybe_timepoint : as_multi :: MaybeTimepoint , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < as_multi :: Call > , pub max_weight : as_multi :: MaxWeight , } pub mod as_multi { use super :: runtime_types ; pub type Threshold = :: core :: primitive :: u16 ; pub type OtherSignatories = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type MaybeTimepoint = :: core :: option :: Option < runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > > ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type MaxWeight = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AsMulti { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "as_multi" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = "  taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub struct ApproveAsMulti { pub threshold : approve_as_multi :: Threshold , pub other_signatories : approve_as_multi :: OtherSignatories , pub maybe_timepoint : approve_as_multi :: MaybeTimepoint , pub call_hash : approve_as_multi :: CallHash , pub max_weight : approve_as_multi :: MaxWeight , } pub mod approve_as_multi { use super :: runtime_types ; pub type Threshold = :: core :: primitive :: u16 ; pub type OtherSignatories = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type MaybeTimepoint = :: core :: option :: Option < runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > > ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; pub type MaxWeight = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ApproveAsMulti { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "approve_as_multi" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] # [doc = "for this operation will be unreserved on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] # [doc = "transaction for this dispatch."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- One event."] # [doc = "- I/O: 1 read `O(S)`, one remove."] # [doc = "- Storage: removes one item."] pub struct CancelAsMulti { pub threshold : cancel_as_multi :: Threshold , pub other_signatories : cancel_as_multi :: OtherSignatories , pub timepoint : cancel_as_multi :: Timepoint , pub call_hash : cancel_as_multi :: CallHash , } pub mod cancel_as_multi { use super :: runtime_types ; pub type Threshold = :: core :: primitive :: u16 ; pub type OtherSignatories = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Timepoint = runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelAsMulti { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "cancel_as_multi" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Poke the deposit reserved for an existing multisig operation."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the original depositor of"] # [doc = "the multisig operation."] # [doc = ""] # [doc = "The transaction fee is waived if the deposit amount has changed."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals needed for this multisig."] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "  multisig."] # [doc = "- `call_hash`: The hash of the call this deposit is reserved for."] # [doc = ""] # [doc = "Emits `DepositPoked` if successful."] pub struct PokeDeposit { pub threshold : poke_deposit :: Threshold , pub other_signatories : poke_deposit :: OtherSignatories , pub call_hash : poke_deposit :: CallHash , } pub mod poke_deposit { use super :: runtime_types ; pub type Threshold = :: core :: primitive :: u16 ; pub type OtherSignatories = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for PokeDeposit { const PALLET : & 'static str = "Multisig" ; const CALL : & 'static str = "poke_deposit" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "multi-signature, but do not participate in the approval process."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(Z + C) where Z is the length of the call and C its execution weight."] pub fn as_multi_threshold_1 (& self , other_signatories : types :: as_multi_threshold1 :: OtherSignatories , call : types :: as_multi_threshold1 :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AsMultiThreshold1 > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Multisig" , "as_multi_threshold_1" , types :: AsMultiThreshold1 { other_signatories , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [195u8 , 116u8 , 255u8 , 158u8 , 213u8 , 118u8 , 6u8 , 149u8 , 143u8 , 80u8 , 37u8 , 107u8 , 250u8 , 143u8 , 17u8 , 154u8 , 97u8 , 223u8 , 119u8 , 151u8 , 106u8 , 64u8 , 176u8 , 48u8 , 255u8 , 52u8 , 91u8 , 211u8 , 180u8 , 29u8 , 98u8 , 13u8 ,]) } # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "If there are enough, then dispatch the call."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "NOTE: Unless this is the final approval, you will generally want to use"] # [doc = "`approve_as_multi` instead, since it only requires a hash of the call."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] # [doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] # [doc = "may be found in the deposited `MultisigExecuted` event."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S + Z + Call)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- The weight of the `call`."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = "  taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub fn as_multi (& self , threshold : types :: as_multi :: Threshold , other_signatories : types :: as_multi :: OtherSignatories , maybe_timepoint : types :: as_multi :: MaybeTimepoint , call : types :: as_multi :: Call , max_weight : types :: as_multi :: MaxWeight ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AsMulti > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Multisig" , "as_multi" , types :: AsMulti { threshold , other_signatories , maybe_timepoint , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , max_weight , } , [40u8 , 129u8 , 165u8 , 172u8 , 202u8 , 198u8 , 230u8 , 95u8 , 231u8 , 130u8 , 235u8 , 7u8 , 161u8 , 42u8 , 136u8 , 148u8 , 40u8 , 133u8 , 210u8 , 211u8 , 242u8 , 161u8 , 129u8 , 61u8 , 158u8 , 236u8 , 91u8 , 172u8 , 223u8 , 82u8 , 10u8 , 66u8 ,]) } # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = "  taken for its lifetime of `DepositBase + threshold * DepositFactor`."] pub fn approve_as_multi (& self , threshold : types :: approve_as_multi :: Threshold , other_signatories : types :: approve_as_multi :: OtherSignatories , maybe_timepoint : types :: approve_as_multi :: MaybeTimepoint , call_hash : types :: approve_as_multi :: CallHash , max_weight : types :: approve_as_multi :: MaxWeight ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ApproveAsMulti > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Multisig" , "approve_as_multi" , types :: ApproveAsMulti { threshold , other_signatories , maybe_timepoint , call_hash , max_weight , } , [248u8 , 46u8 , 131u8 , 35u8 , 204u8 , 12u8 , 218u8 , 150u8 , 88u8 , 131u8 , 89u8 , 13u8 , 95u8 , 122u8 , 87u8 , 107u8 , 136u8 , 154u8 , 92u8 , 199u8 , 108u8 , 92u8 , 207u8 , 171u8 , 113u8 , 8u8 , 47u8 , 248u8 , 65u8 , 26u8 , 203u8 , 135u8 ,]) } # [doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] # [doc = "for this operation will be unreserved on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] # [doc = "transaction for this dispatch."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- One event."] # [doc = "- I/O: 1 read `O(S)`, one remove."] # [doc = "- Storage: removes one item."] pub fn cancel_as_multi (& self , threshold : types :: cancel_as_multi :: Threshold , other_signatories : types :: cancel_as_multi :: OtherSignatories , timepoint : types :: cancel_as_multi :: Timepoint , call_hash : types :: cancel_as_multi :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelAsMulti > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Multisig" , "cancel_as_multi" , types :: CancelAsMulti { threshold , other_signatories , timepoint , call_hash , } , [212u8 , 179u8 , 123u8 , 40u8 , 209u8 , 228u8 , 181u8 , 0u8 , 109u8 , 28u8 , 27u8 , 48u8 , 15u8 , 47u8 , 203u8 , 54u8 , 106u8 , 114u8 , 28u8 , 118u8 , 101u8 , 201u8 , 95u8 , 187u8 , 46u8 , 182u8 , 4u8 , 30u8 , 227u8 , 105u8 , 14u8 , 81u8 ,]) } # [doc = "Poke the deposit reserved for an existing multisig operation."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the original depositor of"] # [doc = "the multisig operation."] # [doc = ""] # [doc = "The transaction fee is waived if the deposit amount has changed."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals needed for this multisig."] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "  multisig."] # [doc = "- `call_hash`: The hash of the call this deposit is reserved for."] # [doc = ""] # [doc = "Emits `DepositPoked` if successful."] pub fn poke_deposit (& self , threshold : types :: poke_deposit :: Threshold , other_signatories : types :: poke_deposit :: OtherSignatories , call_hash : types :: poke_deposit :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PokeDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Multisig" , "poke_deposit" , types :: PokeDeposit { threshold , other_signatories , call_hash , } , [246u8 , 199u8 , 149u8 , 204u8 , 29u8 , 162u8 , 169u8 , 44u8 , 250u8 , 24u8 , 64u8 , 191u8 , 18u8 , 238u8 , 140u8 , 153u8 , 139u8 , 208u8 , 157u8 , 245u8 , 145u8 , 205u8 , 56u8 , 130u8 , 119u8 , 246u8 , 174u8 , 111u8 , 83u8 , 221u8 , 85u8 , 84u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A new multisig operation has begun."] pub struct NewMultisig { pub approving : new_multisig :: Approving , pub multisig : new_multisig :: Multisig , pub call_hash : new_multisig :: CallHash , } pub mod new_multisig { use super :: runtime_types ; pub type Approving = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Multisig = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewMultisig { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "NewMultisig" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A multisig operation has been approved by someone."] pub struct MultisigApproval { pub approving : multisig_approval :: Approving , pub timepoint : multisig_approval :: Timepoint , pub multisig : multisig_approval :: Multisig , pub call_hash : multisig_approval :: CallHash , } pub mod multisig_approval { use super :: runtime_types ; pub type Approving = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Timepoint = runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > ; pub type Multisig = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MultisigApproval { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "MultisigApproval" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A multisig operation has been executed."] pub struct MultisigExecuted { pub approving : multisig_executed :: Approving , pub timepoint : multisig_executed :: Timepoint , pub multisig : multisig_executed :: Multisig , pub call_hash : multisig_executed :: CallHash , pub result : multisig_executed :: Result , } pub mod multisig_executed { use super :: runtime_types ; pub type Approving = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Timepoint = runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > ; pub type Multisig = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; pub type Result = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MultisigExecuted { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "MultisigExecuted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A multisig operation has been cancelled."] pub struct MultisigCancelled { pub cancelling : multisig_cancelled :: Cancelling , pub timepoint : multisig_cancelled :: Timepoint , pub multisig : multisig_cancelled :: Multisig , pub call_hash : multisig_cancelled :: CallHash , } pub mod multisig_cancelled { use super :: runtime_types ; pub type Cancelling = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Timepoint = runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > ; pub type Multisig = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MultisigCancelled { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "MultisigCancelled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The deposit for a multisig operation has been updated/poked."] pub struct DepositPoked { pub who : deposit_poked :: Who , pub call_hash : deposit_poked :: CallHash , pub old_deposit : deposit_poked :: OldDeposit , pub new_deposit : deposit_poked :: NewDeposit , } pub mod deposit_poked { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = [:: core :: primitive :: u8 ; 32usize] ; pub type OldDeposit = :: core :: primitive :: u64 ; pub type NewDeposit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DepositPoked { const PALLET : & 'static str = "Multisig" ; const EVENT : & 'static str = "DepositPoked" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod multisigs { use super :: runtime_types ; pub type Multisigs = runtime_types :: pallet_multisig :: Multisig < :: core :: primitive :: u32 , :: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = [:: core :: primitive :: u8 ; 32usize] ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The set of open multisig operations."] pub fn multisigs_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: multisigs :: Multisigs , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Multisig" , "Multisigs" , () , [208u8 , 119u8 , 103u8 , 193u8 , 220u8 , 35u8 , 173u8 , 190u8 , 239u8 , 195u8 , 81u8 , 14u8 , 114u8 , 66u8 , 251u8 , 46u8 , 29u8 , 186u8 , 184u8 , 21u8 , 202u8 , 73u8 , 249u8 , 167u8 , 204u8 , 248u8 , 106u8 , 82u8 , 138u8 , 73u8 , 9u8 , 140u8 ,]) } # [doc = " The set of open multisig operations."] pub fn multisigs_iter1 (& self , _0 : types :: multisigs :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: multisigs :: Param0 > , types :: multisigs :: Multisigs , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Multisig" , "Multisigs" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [208u8 , 119u8 , 103u8 , 193u8 , 220u8 , 35u8 , 173u8 , 190u8 , 239u8 , 195u8 , 81u8 , 14u8 , 114u8 , 66u8 , 251u8 , 46u8 , 29u8 , 186u8 , 184u8 , 21u8 , 202u8 , 73u8 , 249u8 , 167u8 , 204u8 , 248u8 , 106u8 , 82u8 , 138u8 , 73u8 , 9u8 , 140u8 ,]) } # [doc = " The set of open multisig operations."] pub fn multisigs (& self , _0 : types :: multisigs :: Param0 , _1 : types :: multisigs :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: multisigs :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: multisigs :: Param1 > ,) , types :: multisigs :: Multisigs , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Multisig" , "Multisigs" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [208u8 , 119u8 , 103u8 , 193u8 , 220u8 , 35u8 , 173u8 , 190u8 , 239u8 , 195u8 , 81u8 , 14u8 , 114u8 , 66u8 , 251u8 , 46u8 , 29u8 , 186u8 , 184u8 , 21u8 , 202u8 , 73u8 , 249u8 , 167u8 , 204u8 , 248u8 , 106u8 , 82u8 , 138u8 , 73u8 , 9u8 , 140u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Multisig" , "DepositBase" , [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 ,]) } # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Multisig" , "DepositFactor" , [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 ,]) } # [doc = " The maximum amount of signatories allowed in the multisig."] pub fn max_signatories (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 preimage { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_preimage :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register a preimage on-chain."] # [doc = ""] # [doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] # [doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] pub struct NotePreimage { pub bytes : note_preimage :: Bytes , } pub mod note_preimage { use super :: runtime_types ; pub type Bytes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for NotePreimage { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "note_preimage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Clear an unrequested preimage from the runtime storage."] # [doc = ""] # [doc = "If `len` is provided, then it will be a much cheaper operation."] # [doc = ""] # [doc = "- `hash`: The hash of the preimage to be removed from the store."] # [doc = "- `len`: The length of the preimage of `hash`."] pub struct UnnotePreimage { pub hash : unnote_preimage :: Hash , } pub mod unnote_preimage { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UnnotePreimage { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "unnote_preimage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] # [doc = ""] # [doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] # [doc = "a user may have paid, and take the control of the preimage out of their hands."] pub struct RequestPreimage { pub hash : request_preimage :: Hash , } pub mod request_preimage { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RequestPreimage { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "request_preimage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Clear a previously made request for a preimage."] # [doc = ""] # [doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] pub struct UnrequestPreimage { pub hash : unrequest_preimage :: Hash , } pub mod unrequest_preimage { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UnrequestPreimage { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "unrequest_preimage" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Ensure that the bulk of pre-images is upgraded."] # [doc = ""] # [doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."] pub struct EnsureUpdated { pub hashes : ensure_updated :: Hashes , } pub mod ensure_updated { use super :: runtime_types ; pub type Hashes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for EnsureUpdated { const PALLET : & 'static str = "Preimage" ; const CALL : & 'static str = "ensure_updated" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Register a preimage on-chain."] # [doc = ""] # [doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] # [doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] pub fn note_preimage (& self , bytes : types :: note_preimage :: Bytes ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: NotePreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Clear an unrequested preimage from the runtime storage."] # [doc = ""] # [doc = "If `len` is provided, then it will be a much cheaper operation."] # [doc = ""] # [doc = "- `hash`: The hash of the preimage to be removed from the store."] # [doc = "- `len`: The length of the preimage of `hash`."] pub fn unnote_preimage (& self , hash : types :: unnote_preimage :: Hash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UnnotePreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] # [doc = ""] # [doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] # [doc = "a user may have paid, and take the control of the preimage out of their hands."] pub fn request_preimage (& self , hash : types :: request_preimage :: Hash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RequestPreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Clear a previously made request for a preimage."] # [doc = ""] # [doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] pub fn unrequest_preimage (& self , hash : types :: unrequest_preimage :: Hash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UnrequestPreimage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Ensure that the bulk of pre-images is upgraded."] # [doc = ""] # [doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."] pub fn ensure_updated (& self , hashes : types :: ensure_updated :: Hashes ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: EnsureUpdated > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Preimage" , "ensure_updated" , types :: EnsureUpdated { hashes , } , [254u8 , 228u8 , 88u8 , 44u8 , 126u8 , 235u8 , 188u8 , 153u8 , 61u8 , 27u8 , 103u8 , 253u8 , 163u8 , 161u8 , 113u8 , 243u8 , 87u8 , 136u8 , 2u8 , 231u8 , 209u8 , 188u8 , 215u8 , 106u8 , 192u8 , 225u8 , 75u8 , 125u8 , 224u8 , 96u8 , 221u8 , 90u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A preimage has been noted."] pub struct Noted { pub hash : noted :: Hash , } pub mod noted { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Noted { const PALLET : & 'static str = "Preimage" ; const EVENT : & 'static str = "Noted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A preimage has been requested."] pub struct Requested { pub hash : requested :: Hash , } pub mod requested { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Requested { const PALLET : & 'static str = "Preimage" ; const EVENT : & 'static str = "Requested" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A preimage has ben cleared."] pub struct Cleared { pub hash : cleared :: Hash , } pub mod cleared { use super :: runtime_types ; pub type Hash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Cleared { const PALLET : & 'static str = "Preimage" ; const EVENT : & 'static str = "Cleared" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod status_for { use super :: runtime_types ; pub type StatusFor = runtime_types :: pallet_preimage :: OldRequestStatus < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod request_status_for { use super :: runtime_types ; pub type RequestStatusFor = runtime_types :: pallet_preimage :: RequestStatus < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: frame_support :: traits :: tokens :: fungible :: HoldConsideration > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod preimage_for { use super :: runtime_types ; pub type PreimageFor = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type Param0 = (:: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 ,) ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The request status of a given hash."] pub fn status_for_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: status_for :: StatusFor , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "StatusFor" , () , [16u8 , 95u8 , 212u8 , 193u8 , 245u8 , 56u8 , 255u8 , 183u8 , 177u8 , 15u8 , 81u8 , 194u8 , 210u8 , 12u8 , 101u8 , 227u8 , 189u8 , 125u8 , 47u8 , 186u8 , 245u8 , 94u8 , 221u8 , 238u8 , 86u8 , 130u8 , 12u8 , 82u8 , 154u8 , 114u8 , 5u8 , 63u8 ,]) } # [doc = " The request status of a given hash."] pub fn status_for (& self , _0 : types :: status_for :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: status_for :: Param0 > , types :: status_for :: StatusFor , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "StatusFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [16u8 , 95u8 , 212u8 , 193u8 , 245u8 , 56u8 , 255u8 , 183u8 , 177u8 , 15u8 , 81u8 , 194u8 , 210u8 , 12u8 , 101u8 , 227u8 , 189u8 , 125u8 , 47u8 , 186u8 , 245u8 , 94u8 , 221u8 , 238u8 , 86u8 , 130u8 , 12u8 , 82u8 , 154u8 , 114u8 , 5u8 , 63u8 ,]) } # [doc = " The request status of a given hash."] pub fn request_status_for_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: request_status_for :: RequestStatusFor , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "RequestStatusFor" , () , [244u8 , 110u8 , 140u8 , 65u8 , 68u8 , 102u8 , 62u8 , 65u8 , 2u8 , 1u8 , 230u8 , 241u8 , 57u8 , 137u8 , 200u8 , 170u8 , 40u8 , 170u8 , 41u8 , 114u8 , 148u8 , 39u8 , 128u8 , 144u8 , 159u8 , 73u8 , 0u8 , 96u8 , 1u8 , 114u8 , 121u8 , 72u8 ,]) } # [doc = " The request status of a given hash."] pub fn request_status_for (& self , _0 : types :: request_status_for :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: request_status_for :: Param0 > , types :: request_status_for :: RequestStatusFor , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "RequestStatusFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [244u8 , 110u8 , 140u8 , 65u8 , 68u8 , 102u8 , 62u8 , 65u8 , 2u8 , 1u8 , 230u8 , 241u8 , 57u8 , 137u8 , 200u8 , 170u8 , 40u8 , 170u8 , 41u8 , 114u8 , 148u8 , 39u8 , 128u8 , 144u8 , 159u8 , 73u8 , 0u8 , 96u8 , 1u8 , 114u8 , 121u8 , 72u8 ,]) } pub fn preimage_for_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: preimage_for :: PreimageFor , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "PreimageFor" , () , [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 (& self , _0 : types :: preimage_for :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: preimage_for :: Param0 > , types :: preimage_for :: PreimageFor , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Preimage" , "PreimageFor" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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 scheduler { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_scheduler :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Anonymously schedule a task."] pub struct Schedule { pub when : schedule :: When , pub maybe_periodic : schedule :: MaybePeriodic , pub priority : schedule :: Priority , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < schedule :: Call > , } pub mod schedule { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; pub type MaybePeriodic = :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Priority = :: core :: primitive :: u8 ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Schedule { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "schedule" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel an anonymously scheduled task."] pub struct Cancel { pub when : cancel :: When , pub index : cancel :: Index , } pub mod cancel { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Cancel { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "cancel" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedule a named task."] pub struct ScheduleNamed { pub id : schedule_named :: Id , pub when : schedule_named :: When , pub maybe_periodic : schedule_named :: MaybePeriodic , pub priority : schedule_named :: Priority , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < schedule_named :: Call > , } pub mod schedule_named { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; pub type When = :: core :: primitive :: u32 ; pub type MaybePeriodic = :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Priority = :: core :: primitive :: u8 ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleNamed { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "schedule_named" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel a named scheduled task."] pub struct CancelNamed { pub id : cancel_named :: Id , } pub mod cancel_named { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelNamed { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "cancel_named" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Anonymously schedule a task after a delay."] pub struct ScheduleAfter { pub after : schedule_after :: After , pub maybe_periodic : schedule_after :: MaybePeriodic , pub priority : schedule_after :: Priority , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < schedule_after :: Call > , } pub mod schedule_after { use super :: runtime_types ; pub type After = :: core :: primitive :: u32 ; pub type MaybePeriodic = :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Priority = :: core :: primitive :: u8 ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleAfter { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "schedule_after" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Schedule a named task after a delay."] pub struct ScheduleNamedAfter { pub id : schedule_named_after :: Id , pub after : schedule_named_after :: After , pub maybe_periodic : schedule_named_after :: MaybePeriodic , pub priority : schedule_named_after :: Priority , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < schedule_named_after :: Call > , } pub mod schedule_named_after { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; pub type After = :: core :: primitive :: u32 ; pub type MaybePeriodic = :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > ; pub type Priority = :: core :: primitive :: u8 ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleNamedAfter { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "schedule_named_after" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"] # [doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"] # [doc = "succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] pub struct SetRetry { pub task : set_retry :: Task , pub retries : set_retry :: Retries , pub period : set_retry :: Period , } pub mod set_retry { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Retries = :: core :: primitive :: u8 ; pub type Period = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetRetry { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "set_retry" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"] # [doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"] # [doc = "it succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] pub struct SetRetryNamed { pub id : set_retry_named :: Id , pub retries : set_retry_named :: Retries , pub period : set_retry_named :: Period , } pub mod set_retry_named { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; pub type Retries = :: core :: primitive :: u8 ; pub type Period = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetRetryNamed { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "set_retry_named" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Removes the retry configuration of a task."] pub struct CancelRetry { pub task : cancel_retry :: Task , } pub mod cancel_retry { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelRetry { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "cancel_retry" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel the retry configuration of a named task."] pub struct CancelRetryNamed { pub id : cancel_retry_named :: Id , } pub mod cancel_retry_named { use super :: runtime_types ; pub type Id = [:: core :: primitive :: u8 ; 32usize] ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CancelRetryNamed { const PALLET : & 'static str = "Scheduler" ; const CALL : & 'static str = "cancel_retry_named" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Anonymously schedule a task."] pub fn schedule (& self , when : types :: schedule :: When , maybe_periodic : types :: schedule :: MaybePeriodic , priority : types :: schedule :: Priority , call : types :: schedule :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Schedule > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "schedule" , types :: Schedule { when , maybe_periodic , priority , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [13u8 , 93u8 , 201u8 , 55u8 , 175u8 , 148u8 , 14u8 , 121u8 , 66u8 , 132u8 , 41u8 , 30u8 , 160u8 , 74u8 , 6u8 , 246u8 , 81u8 , 70u8 , 182u8 , 255u8 , 187u8 , 205u8 , 23u8 , 214u8 , 52u8 , 160u8 , 204u8 , 87u8 , 170u8 , 13u8 , 53u8 , 179u8 ,]) } # [doc = "Cancel an anonymously scheduled task."] pub fn cancel (& self , when : types :: cancel :: When , index : types :: cancel :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Cancel > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "cancel" , types :: Cancel { when , index , } , [183u8 , 204u8 , 143u8 , 86u8 , 17u8 , 130u8 , 132u8 , 91u8 , 133u8 , 168u8 , 103u8 , 129u8 , 114u8 , 56u8 , 123u8 , 42u8 , 123u8 , 120u8 , 221u8 , 211u8 , 26u8 , 85u8 , 82u8 , 246u8 , 192u8 , 39u8 , 254u8 , 45u8 , 147u8 , 56u8 , 178u8 , 133u8 ,]) } # [doc = "Schedule a named task."] pub fn schedule_named (& self , id : types :: schedule_named :: Id , when : types :: schedule_named :: When , maybe_periodic : types :: schedule_named :: MaybePeriodic , priority : types :: schedule_named :: Priority , call : types :: schedule_named :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleNamed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "schedule_named" , types :: ScheduleNamed { id , when , maybe_periodic , priority , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [136u8 , 152u8 , 18u8 , 51u8 , 61u8 , 55u8 , 242u8 , 229u8 , 226u8 , 18u8 , 18u8 , 201u8 , 141u8 , 119u8 , 148u8 , 78u8 , 128u8 , 109u8 , 49u8 , 114u8 , 183u8 , 18u8 , 173u8 , 127u8 , 18u8 , 208u8 , 134u8 , 118u8 , 63u8 , 30u8 , 66u8 , 161u8 ,]) } # [doc = "Cancel a named scheduled task."] pub fn cancel_named (& self , id : types :: cancel_named :: Id ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelNamed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } # [doc = "Anonymously schedule a task after a delay."] pub fn schedule_after (& self , after : types :: schedule_after :: After , maybe_periodic : types :: schedule_after :: MaybePeriodic , priority : types :: schedule_after :: Priority , call : types :: schedule_after :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleAfter > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "schedule_after" , types :: ScheduleAfter { after , maybe_periodic , priority , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [232u8 , 78u8 , 5u8 , 36u8 , 121u8 , 205u8 , 108u8 , 53u8 , 141u8 , 33u8 , 131u8 , 178u8 , 52u8 , 98u8 , 166u8 , 89u8 , 7u8 , 143u8 , 132u8 , 222u8 , 161u8 , 55u8 , 162u8 , 67u8 , 30u8 , 106u8 , 104u8 , 44u8 , 30u8 , 110u8 , 49u8 , 130u8 ,]) } # [doc = "Schedule a named task after a delay."] pub fn schedule_named_after (& self , id : types :: schedule_named_after :: Id , after : types :: schedule_named_after :: After , maybe_periodic : types :: schedule_named_after :: MaybePeriodic , priority : types :: schedule_named_after :: Priority , call : types :: schedule_named_after :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleNamedAfter > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "schedule_named_after" , types :: ScheduleNamedAfter { id , after , maybe_periodic , priority , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [99u8 , 217u8 , 177u8 , 36u8 , 62u8 , 120u8 , 233u8 , 105u8 , 180u8 , 96u8 , 101u8 , 146u8 , 60u8 , 143u8 , 157u8 , 182u8 , 70u8 , 53u8 , 103u8 , 93u8 , 74u8 , 243u8 , 205u8 , 29u8 , 33u8 , 39u8 , 249u8 , 189u8 , 17u8 , 196u8 , 70u8 , 82u8 ,]) } # [doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"] # [doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"] # [doc = "succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] pub fn set_retry (& self , task : types :: set_retry :: Task , retries : types :: set_retry :: Retries , period : types :: set_retry :: Period ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetRetry > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "set_retry" , types :: SetRetry { task , retries , period , } , [2u8 , 242u8 , 180u8 , 69u8 , 237u8 , 168u8 , 243u8 , 93u8 , 47u8 , 222u8 , 189u8 , 74u8 , 233u8 , 106u8 , 54u8 , 40u8 , 160u8 , 61u8 , 78u8 , 138u8 , 232u8 , 20u8 , 243u8 , 17u8 , 151u8 , 194u8 , 67u8 , 200u8 , 186u8 , 192u8 , 210u8 , 214u8 ,]) } # [doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"] # [doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"] # [doc = "it succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] pub fn set_retry_named (& self , id : types :: set_retry_named :: Id , retries : types :: set_retry_named :: Retries , period : types :: set_retry_named :: Period ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetRetryNamed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "set_retry_named" , types :: SetRetryNamed { id , retries , period , } , [240u8 , 102u8 , 255u8 , 253u8 , 52u8 , 81u8 , 164u8 , 170u8 , 184u8 , 178u8 , 254u8 , 126u8 , 41u8 , 247u8 , 121u8 , 22u8 , 254u8 , 136u8 , 237u8 , 37u8 , 11u8 , 42u8 , 227u8 , 234u8 , 132u8 , 83u8 , 109u8 , 168u8 , 31u8 , 44u8 , 231u8 , 70u8 ,]) } # [doc = "Removes the retry configuration of a task."] pub fn cancel_retry (& self , task : types :: cancel_retry :: Task ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelRetry > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "cancel_retry" , types :: CancelRetry { task , } , [142u8 , 126u8 , 127u8 , 216u8 , 64u8 , 189u8 , 42u8 , 126u8 , 63u8 , 249u8 , 211u8 , 202u8 , 224u8 , 197u8 , 199u8 , 240u8 , 58u8 , 94u8 , 219u8 , 177u8 , 20u8 , 210u8 , 153u8 , 0u8 , 127u8 , 255u8 , 235u8 , 238u8 , 170u8 , 240u8 , 44u8 , 49u8 ,]) } # [doc = "Cancel the retry configuration of a named task."] pub fn cancel_retry_named (& self , id : types :: cancel_retry_named :: Id ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CancelRetryNamed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Scheduler" , "cancel_retry_named" , types :: CancelRetryNamed { id , } , [76u8 , 157u8 , 253u8 , 113u8 , 162u8 , 54u8 , 98u8 , 21u8 , 62u8 , 44u8 , 155u8 , 202u8 , 2u8 , 28u8 , 153u8 , 219u8 , 67u8 , 166u8 , 206u8 , 79u8 , 139u8 , 3u8 , 119u8 , 182u8 , 254u8 , 134u8 , 143u8 , 121u8 , 155u8 , 220u8 , 192u8 , 209u8 ,]) } } } # [doc = "Events type."] pub type Event = runtime_types :: pallet_scheduler :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Scheduled some task."] pub struct Scheduled { pub when : scheduled :: When , pub index : scheduled :: Index , } pub mod scheduled { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Scheduled { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "Scheduled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Canceled some task."] pub struct Canceled { pub when : canceled :: When , pub index : canceled :: Index , } pub mod canceled { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; pub type Index = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Canceled { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "Canceled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatched some task."] pub struct Dispatched { pub task : dispatched :: Task , pub id : dispatched :: Id , pub result : dispatched :: Result , } pub mod dispatched { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; pub type Result = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Dispatched { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "Dispatched" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set a retry configuration for some task."] pub struct RetrySet { pub task : retry_set :: Task , pub id : retry_set :: Id , pub period : retry_set :: Period , pub retries : retry_set :: Retries , } pub mod retry_set { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; pub type Period = :: core :: primitive :: u32 ; pub type Retries = :: core :: primitive :: u8 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RetrySet { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "RetrySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Cancel a retry configuration for some task."] pub struct RetryCancelled { pub task : retry_cancelled :: Task , pub id : retry_cancelled :: Id , } pub mod retry_cancelled { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RetryCancelled { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "RetryCancelled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The call for the provided hash was not found so the task has been aborted."] pub struct CallUnavailable { pub task : call_unavailable :: Task , pub id : call_unavailable :: Id , } pub mod call_unavailable { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CallUnavailable { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "CallUnavailable" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The given task was unable to be renewed since the agenda is full at that block."] pub struct PeriodicFailed { pub task : periodic_failed :: Task , pub id : periodic_failed :: Id , } pub mod periodic_failed { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PeriodicFailed { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "PeriodicFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The given task was unable to be retried since the agenda is full at that block or there"] # [doc = "was not enough weight to reschedule it."] pub struct RetryFailed { pub task : retry_failed :: Task , pub id : retry_failed :: Id , } pub mod retry_failed { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for RetryFailed { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "RetryFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The given task can never be executed since it is overweight."] pub struct PermanentlyOverweight { pub task : permanently_overweight :: Task , pub id : permanently_overweight :: Id , } pub mod permanently_overweight { use super :: runtime_types ; pub type Task = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Id = :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PermanentlyOverweight { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "PermanentlyOverweight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Agenda is incomplete from `when`."] pub struct AgendaIncomplete { pub when : agenda_incomplete :: When , } pub mod agenda_incomplete { use super :: runtime_types ; pub type When = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AgendaIncomplete { const PALLET : & 'static str = "Scheduler" ; const EVENT : & 'static str = "AgendaIncomplete" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod incomplete_since { use super :: runtime_types ; pub type IncompleteSince = :: core :: primitive :: u32 ; } pub mod agenda { use super :: runtime_types ; pub type Agenda = 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 :: node_subtensor_runtime :: RuntimeCall , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , :: core :: primitive :: u32 , runtime_types :: node_subtensor_runtime :: OriginCaller , :: subxt :: ext :: subxt_core :: utils :: AccountId32 > > > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod retries { use super :: runtime_types ; pub type Retries = runtime_types :: pallet_scheduler :: RetryConfig < :: core :: primitive :: u32 > ; pub type Param0 = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; } pub mod lookup { use super :: runtime_types ; pub type Lookup = (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) ; pub type Param0 = [:: core :: primitive :: u8 ; 32usize] ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Block number at which the agenda began incomplete execution."] pub fn incomplete_since (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: incomplete_since :: IncompleteSince , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "IncompleteSince" , () , [250u8 , 83u8 , 64u8 , 167u8 , 205u8 , 59u8 , 225u8 , 97u8 , 205u8 , 12u8 , 76u8 , 130u8 , 197u8 , 4u8 , 111u8 , 208u8 , 92u8 , 217u8 , 145u8 , 119u8 , 38u8 , 135u8 , 1u8 , 242u8 , 228u8 , 143u8 , 56u8 , 25u8 , 115u8 , 233u8 , 227u8 , 66u8 ,]) } # [doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: agenda :: Agenda , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Agenda" , () , [6u8 , 100u8 , 74u8 , 108u8 , 237u8 , 201u8 , 28u8 , 205u8 , 176u8 , 219u8 , 94u8 , 60u8 , 30u8 , 231u8 , 31u8 , 69u8 , 204u8 , 240u8 , 75u8 , 198u8 , 248u8 , 17u8 , 153u8 , 228u8 , 214u8 , 21u8 , 220u8 , 7u8 , 104u8 , 150u8 , 243u8 , 229u8 ,]) } # [doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda (& self , _0 : types :: agenda :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: agenda :: Param0 > , types :: agenda :: Agenda , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Agenda" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [6u8 , 100u8 , 74u8 , 108u8 , 237u8 , 201u8 , 28u8 , 205u8 , 176u8 , 219u8 , 94u8 , 60u8 , 30u8 , 231u8 , 31u8 , 69u8 , 204u8 , 240u8 , 75u8 , 198u8 , 248u8 , 17u8 , 153u8 , 228u8 , 214u8 , 21u8 , 220u8 , 7u8 , 104u8 , 150u8 , 243u8 , 229u8 ,]) } # [doc = " Retry configurations for items to be executed, indexed by task address."] pub fn retries_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: retries :: Retries , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Retries" , () , [164u8 , 27u8 , 208u8 , 185u8 , 19u8 , 232u8 , 190u8 , 97u8 , 137u8 , 73u8 , 146u8 , 10u8 , 241u8 , 176u8 , 251u8 , 140u8 , 133u8 , 65u8 , 190u8 , 162u8 , 59u8 , 32u8 , 77u8 , 201u8 , 27u8 , 78u8 , 183u8 , 164u8 , 74u8 , 46u8 , 139u8 , 145u8 ,]) } # [doc = " Retry configurations for items to be executed, indexed by task address."] pub fn retries (& self , _0 : types :: retries :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: retries :: Param0 > , types :: retries :: Retries , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Retries" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [164u8 , 27u8 , 208u8 , 185u8 , 19u8 , 232u8 , 190u8 , 97u8 , 137u8 , 73u8 , 146u8 , 10u8 , 241u8 , 176u8 , 251u8 , 140u8 , 133u8 , 65u8 , 190u8 , 162u8 , 59u8 , 32u8 , 77u8 , 201u8 , 27u8 , 78u8 , 183u8 , 164u8 , 74u8 , 46u8 , 139u8 , 145u8 ,]) } # [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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: lookup :: Lookup , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Lookup" , () , [24u8 , 87u8 , 96u8 , 127u8 , 136u8 , 205u8 , 238u8 , 174u8 , 71u8 , 110u8 , 65u8 , 98u8 , 228u8 , 167u8 , 99u8 , 71u8 , 171u8 , 186u8 , 12u8 , 218u8 , 137u8 , 70u8 , 70u8 , 228u8 , 153u8 , 111u8 , 165u8 , 114u8 , 229u8 , 136u8 , 118u8 , 131u8 ,]) } # [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 : types :: lookup :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: lookup :: Param0 > , types :: lookup :: Lookup , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Scheduler" , "Lookup" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [24u8 , 87u8 , 96u8 , 127u8 , 136u8 , 205u8 , 238u8 , 174u8 , 71u8 , 110u8 , 65u8 , 98u8 , 228u8 , 167u8 , 99u8 , 71u8 , 171u8 , 186u8 , 12u8 , 218u8 , 137u8 , 70u8 , 70u8 , 228u8 , 153u8 , 111u8 , 165u8 , 114u8 , 229u8 , 136u8 , 118u8 , 131u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The maximum weight that may be scheduled per block for any dispatchables."] pub fn maximum_weight (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_weights :: weight_v2 :: Weight > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 ,]) } # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: 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 proxy { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_subtensor_proxy :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_subtensor_proxy :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatch the given `call` from an account that the sender is authorised for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] pub struct Proxy { pub real : proxy :: Real , pub force_proxy_type : proxy :: ForceProxyType , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < proxy :: Call > , } pub mod proxy { use super :: runtime_types ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ForceProxyType = :: core :: option :: Option < runtime_types :: subtensor_runtime_common :: ProxyType > ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Proxy { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "proxy" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register a proxy account for the sender that is able to make calls on its behalf."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to make a proxy."] # [doc = "- `proxy_type`: The permissions allowed for this proxy account."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] pub struct AddProxy { pub delegate : add_proxy :: Delegate , pub proxy_type : add_proxy :: ProxyType , pub delay : add_proxy :: Delay , } pub mod add_proxy { use super :: runtime_types ; pub type Delegate = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddProxy { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "add_proxy" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unregister a proxy account for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] # [doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] pub struct RemoveProxy { pub delegate : remove_proxy :: Delegate , pub proxy_type : remove_proxy :: ProxyType , pub delay : remove_proxy :: Delay , } pub mod remove_proxy { use super :: runtime_types ; pub type Delegate = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveProxy { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "remove_proxy" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Unregister all proxy accounts for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "WARNING: This may be called on accounts created by `create_pure`, however if done, then"] # [doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] pub struct RemoveProxies ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveProxies { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "remove_proxies" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] # [doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] # [doc = ""] # [doc = "Requires a `Signed` origin."] # [doc = ""] # [doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] # [doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] # [doc = "allow for maximum flexibility."] # [doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] # [doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] # [doc = "want to use `0`."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] # [doc = ""] # [doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] # [doc = "same sender, with the same parameters."] # [doc = ""] # [doc = "Fails if there are insufficient funds to pay for deposit."] pub struct CreatePure { pub proxy_type : create_pure :: ProxyType , pub delay : create_pure :: Delay , pub index : create_pure :: Index , } pub mod create_pure { use super :: runtime_types ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; pub type Index = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CreatePure { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "create_pure" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Removes a previously spawned pure proxy."] # [doc = ""] # [doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] # [doc = "inaccessible."] # [doc = ""] # [doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] # [doc = "`create_pure` with corresponding parameters."] # [doc = ""] # [doc = "- `spawner`: The account that originally called `create_pure` to create this account."] # [doc = "- `index`: The disambiguation index originally passed to `create_pure`. Probably `0`."] # [doc = "- `proxy_type`: The proxy type originally passed to `create_pure`."] # [doc = "- `height`: The height of the chain when the call to `create_pure` was processed."] # [doc = "- `ext_index`: The extrinsic index in which the call to `create_pure` was processed."] # [doc = ""] # [doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] # [doc = "account whose `create_pure` call has corresponding parameters."] pub struct KillPure { pub spawner : kill_pure :: Spawner , pub proxy_type : kill_pure :: ProxyType , pub index : kill_pure :: Index , # [codec (compact)] pub height : kill_pure :: Height , # [codec (compact)] pub ext_index : kill_pure :: ExtIndex , } pub mod kill_pure { use super :: runtime_types ; pub type Spawner = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Index = :: core :: primitive :: u16 ; pub type Height = :: core :: primitive :: u32 ; pub type ExtIndex = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for KillPure { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "kill_pure" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Publish the hash of a proxy-call that will be made in the future."] # [doc = ""] # [doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] # [doc = "if the delay associated with the proxy relationship is greater than zero."] # [doc = ""] # [doc = "No more than `MaxPending` announcements may be made at any one time."] # [doc = ""] # [doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] # [doc = "`AnnouncementDepositBase` if there are no other pending announcements."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub struct Announce { pub real : announce :: Real , pub call_hash : announce :: CallHash , } pub mod announce { use super :: runtime_types ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Announce { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "announce" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove a given announcement."] # [doc = ""] # [doc = "May be called by a proxy account to remove a call they previously announced and return"] # [doc = "the deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub struct RemoveAnnouncement { pub real : remove_announcement :: Real , pub call_hash : remove_announcement :: CallHash , } pub mod remove_announcement { use super :: runtime_types ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveAnnouncement { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "remove_announcement" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove the given announcement of a delegate."] # [doc = ""] # [doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] # [doc = "(`delegate`) has announced they want to execute. The deposit is returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `delegate`: The account that previously announced the call."] # [doc = "- `call_hash`: The hash of the call to be made."] pub struct RejectAnnouncement { pub delegate : reject_announcement :: Delegate , pub call_hash : reject_announcement :: CallHash , } pub mod reject_announcement { use super :: runtime_types ; pub type Delegate = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RejectAnnouncement { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "reject_announcement" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatch the given `call` from an account that the sender is authorized for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "Removes any corresponding announcement(s)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] pub struct ProxyAnnounced { pub delegate : proxy_announced :: Delegate , pub real : proxy_announced :: Real , pub force_proxy_type : proxy_announced :: ForceProxyType , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < proxy_announced :: Call > , } pub mod proxy_announced { use super :: runtime_types ; pub type Delegate = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type ForceProxyType = :: core :: option :: Option < runtime_types :: subtensor_runtime_common :: ProxyType > ; pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ProxyAnnounced { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "proxy_announced" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Poke / Adjust deposits made for proxies and announcements based on current values."] # [doc = "This can be used by accounts to possibly lower their locked amount."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "The transaction fee is waived if the deposit amount has changed."] # [doc = ""] # [doc = "Emits `DepositPoked` if successful."] pub struct PokeDeposit ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for PokeDeposit { const PALLET : & 'static str = "Proxy" ; const CALL : & 'static str = "poke_deposit" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Dispatch the given `call` from an account that the sender is authorised for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] pub fn proxy (& self , real : types :: proxy :: Real , force_proxy_type : types :: proxy :: ForceProxyType , call : types :: proxy :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Proxy > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "proxy" , types :: Proxy { real , force_proxy_type , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [166u8 , 196u8 , 222u8 , 245u8 , 141u8 , 191u8 , 144u8 , 89u8 , 133u8 , 247u8 , 143u8 , 126u8 , 189u8 , 79u8 , 182u8 , 245u8 , 230u8 , 208u8 , 119u8 , 62u8 , 72u8 , 115u8 , 176u8 , 243u8 , 75u8 , 172u8 , 200u8 , 196u8 , 60u8 , 134u8 , 230u8 , 66u8 ,]) } # [doc = "Register a proxy account for the sender that is able to make calls on its behalf."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to make a proxy."] # [doc = "- `proxy_type`: The permissions allowed for this proxy account."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] pub fn add_proxy (& self , delegate : types :: add_proxy :: Delegate , proxy_type : types :: add_proxy :: ProxyType , delay : types :: add_proxy :: Delay ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddProxy > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "add_proxy" , types :: AddProxy { delegate , proxy_type , delay , } , [41u8 , 20u8 , 119u8 , 72u8 , 148u8 , 5u8 , 60u8 , 129u8 , 74u8 , 153u8 , 133u8 , 186u8 , 41u8 , 72u8 , 162u8 , 67u8 , 0u8 , 115u8 , 10u8 , 148u8 , 150u8 , 49u8 , 178u8 , 212u8 , 169u8 , 77u8 , 109u8 , 110u8 , 56u8 , 26u8 , 61u8 , 123u8 ,]) } # [doc = "Unregister a proxy account for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] # [doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] pub fn remove_proxy (& self , delegate : types :: remove_proxy :: Delegate , proxy_type : types :: remove_proxy :: ProxyType , delay : types :: remove_proxy :: Delay ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveProxy > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "remove_proxy" , types :: RemoveProxy { delegate , proxy_type , delay , } , [124u8 , 92u8 , 165u8 , 104u8 , 12u8 , 55u8 , 125u8 , 89u8 , 212u8 , 70u8 , 90u8 , 193u8 , 150u8 , 74u8 , 68u8 , 91u8 , 83u8 , 209u8 , 193u8 , 233u8 , 157u8 , 241u8 , 99u8 , 32u8 , 82u8 , 64u8 , 175u8 , 202u8 , 179u8 , 209u8 , 106u8 , 141u8 ,]) } # [doc = "Unregister all proxy accounts for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "WARNING: This may be called on accounts created by `create_pure`, however if done, then"] # [doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] pub fn remove_proxies (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveProxies > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "remove_proxies" , types :: RemoveProxies { } , [1u8 , 126u8 , 36u8 , 227u8 , 185u8 , 34u8 , 218u8 , 236u8 , 125u8 , 231u8 , 68u8 , 185u8 , 145u8 , 63u8 , 250u8 , 225u8 , 103u8 , 3u8 , 189u8 , 37u8 , 172u8 , 195u8 , 197u8 , 216u8 , 99u8 , 210u8 , 240u8 , 162u8 , 158u8 , 132u8 , 24u8 , 6u8 ,]) } # [doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] # [doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] # [doc = ""] # [doc = "Requires a `Signed` origin."] # [doc = ""] # [doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] # [doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] # [doc = "allow for maximum flexibility."] # [doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] # [doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] # [doc = "want to use `0`."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] # [doc = ""] # [doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] # [doc = "same sender, with the same parameters."] # [doc = ""] # [doc = "Fails if there are insufficient funds to pay for deposit."] pub fn create_pure (& self , proxy_type : types :: create_pure :: ProxyType , delay : types :: create_pure :: Delay , index : types :: create_pure :: Index ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CreatePure > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "create_pure" , types :: CreatePure { proxy_type , delay , index , } , [217u8 , 249u8 , 104u8 , 64u8 , 2u8 , 151u8 , 37u8 , 44u8 , 37u8 , 79u8 , 228u8 , 96u8 , 63u8 , 32u8 , 214u8 , 135u8 , 131u8 , 249u8 , 90u8 , 138u8 , 204u8 , 19u8 , 222u8 , 178u8 , 86u8 , 11u8 , 124u8 , 204u8 , 224u8 , 142u8 , 238u8 , 28u8 ,]) } # [doc = "Removes a previously spawned pure proxy."] # [doc = ""] # [doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] # [doc = "inaccessible."] # [doc = ""] # [doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] # [doc = "`create_pure` with corresponding parameters."] # [doc = ""] # [doc = "- `spawner`: The account that originally called `create_pure` to create this account."] # [doc = "- `index`: The disambiguation index originally passed to `create_pure`. Probably `0`."] # [doc = "- `proxy_type`: The proxy type originally passed to `create_pure`."] # [doc = "- `height`: The height of the chain when the call to `create_pure` was processed."] # [doc = "- `ext_index`: The extrinsic index in which the call to `create_pure` was processed."] # [doc = ""] # [doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] # [doc = "account whose `create_pure` call has corresponding parameters."] pub fn kill_pure (& self , spawner : types :: kill_pure :: Spawner , proxy_type : types :: kill_pure :: ProxyType , index : types :: kill_pure :: Index , height : types :: kill_pure :: Height , ext_index : types :: kill_pure :: ExtIndex ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: KillPure > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "kill_pure" , types :: KillPure { spawner , proxy_type , index , height , ext_index , } , [229u8 , 239u8 , 72u8 , 103u8 , 122u8 , 141u8 , 136u8 , 201u8 , 172u8 , 243u8 , 99u8 , 76u8 , 61u8 , 188u8 , 45u8 , 44u8 , 63u8 , 33u8 , 3u8 , 238u8 , 128u8 , 94u8 , 192u8 , 138u8 , 134u8 , 51u8 , 221u8 , 17u8 , 86u8 , 57u8 , 144u8 , 184u8 ,]) } # [doc = "Publish the hash of a proxy-call that will be made in the future."] # [doc = ""] # [doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] # [doc = "if the delay associated with the proxy relationship is greater than zero."] # [doc = ""] # [doc = "No more than `MaxPending` announcements may be made at any one time."] # [doc = ""] # [doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] # [doc = "`AnnouncementDepositBase` if there are no other pending announcements."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub fn announce (& self , real : types :: announce :: Real , call_hash : types :: announce :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Announce > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "announce" , types :: Announce { real , call_hash , } , [105u8 , 218u8 , 232u8 , 82u8 , 80u8 , 10u8 , 11u8 , 1u8 , 93u8 , 241u8 , 121u8 , 198u8 , 167u8 , 218u8 , 95u8 , 15u8 , 75u8 , 122u8 , 155u8 , 233u8 , 10u8 , 175u8 , 145u8 , 73u8 , 214u8 , 230u8 , 67u8 , 107u8 , 23u8 , 239u8 , 69u8 , 240u8 ,]) } # [doc = "Remove a given announcement."] # [doc = ""] # [doc = "May be called by a proxy account to remove a call they previously announced and return"] # [doc = "the deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] pub fn remove_announcement (& self , real : types :: remove_announcement :: Real , call_hash : types :: remove_announcement :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveAnnouncement > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "remove_announcement" , types :: RemoveAnnouncement { real , call_hash , } , [40u8 , 237u8 , 179u8 , 128u8 , 201u8 , 183u8 , 20u8 , 47u8 , 99u8 , 182u8 , 81u8 , 31u8 , 27u8 , 212u8 , 133u8 , 36u8 , 8u8 , 248u8 , 57u8 , 230u8 , 138u8 , 80u8 , 241u8 , 147u8 , 69u8 , 236u8 , 156u8 , 167u8 , 205u8 , 49u8 , 60u8 , 16u8 ,]) } # [doc = "Remove the given announcement of a delegate."] # [doc = ""] # [doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] # [doc = "(`delegate`) has announced they want to execute. The deposit is returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `delegate`: The account that previously announced the call."] # [doc = "- `call_hash`: The hash of the call to be made."] pub fn reject_announcement (& self , delegate : types :: reject_announcement :: Delegate , call_hash : types :: reject_announcement :: CallHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RejectAnnouncement > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "reject_announcement" , types :: RejectAnnouncement { delegate , call_hash , } , [150u8 , 178u8 , 49u8 , 160u8 , 211u8 , 75u8 , 58u8 , 228u8 , 121u8 , 253u8 , 167u8 , 72u8 , 68u8 , 105u8 , 159u8 , 52u8 , 41u8 , 155u8 , 92u8 , 26u8 , 169u8 , 177u8 , 102u8 , 36u8 , 1u8 , 47u8 , 87u8 , 189u8 , 223u8 , 238u8 , 244u8 , 110u8 ,]) } # [doc = "Dispatch the given `call` from an account that the sender is authorized for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "Removes any corresponding announcement(s)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] pub fn proxy_announced (& self , delegate : types :: proxy_announced :: Delegate , real : types :: proxy_announced :: Real , force_proxy_type : types :: proxy_announced :: ForceProxyType , call : types :: proxy_announced :: Call ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ProxyAnnounced > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "proxy_announced" , types :: ProxyAnnounced { delegate , real , force_proxy_type , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , } , [245u8 , 49u8 , 243u8 , 103u8 , 84u8 , 11u8 , 145u8 , 8u8 , 137u8 , 163u8 , 119u8 , 231u8 , 100u8 , 170u8 , 150u8 , 165u8 , 47u8 , 200u8 , 169u8 , 227u8 , 224u8 , 26u8 , 84u8 , 47u8 , 250u8 , 148u8 , 245u8 , 19u8 , 187u8 , 78u8 , 174u8 , 214u8 ,]) } # [doc = "Poke / Adjust deposits made for proxies and announcements based on current values."] # [doc = "This can be used by accounts to possibly lower their locked amount."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "The transaction fee is waived if the deposit amount has changed."] # [doc = ""] # [doc = "Emits `DepositPoked` if successful."] pub fn poke_deposit (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: PokeDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Proxy" , "poke_deposit" , types :: PokeDeposit { } , [127u8 , 254u8 , 187u8 , 13u8 , 51u8 , 85u8 , 145u8 , 82u8 , 61u8 , 152u8 , 218u8 , 135u8 , 191u8 , 67u8 , 53u8 , 140u8 , 42u8 , 68u8 , 7u8 , 14u8 , 95u8 , 60u8 , 41u8 , 135u8 , 32u8 , 99u8 , 40u8 , 111u8 , 10u8 , 21u8 , 103u8 , 107u8 ,]) } } } pub mod view_functions { use super :: root_mod ; use super :: runtime_types ; pub struct ViewFunctionsApi ; impl ViewFunctionsApi { # [doc = " Check if a `RuntimeCall` is allowed for a given `ProxyType`."] pub fn check_permissions (& self , call : check_permissions :: Call , proxy_type : check_permissions :: ProxyType) -> :: subxt :: ext :: subxt_core :: view_functions :: payload :: StaticPayload < check_permissions :: Input , check_permissions :: output :: Output > { :: subxt :: ext :: subxt_core :: view_functions :: payload :: StaticPayload :: new_static ([24u8 , 9u8 , 215u8 , 131u8 , 70u8 , 114u8 , 122u8 , 14u8 , 245u8 , 140u8 , 15u8 , 160u8 , 59u8 , 175u8 , 163u8 , 35u8 , 203u8 , 197u8 , 20u8 , 136u8 , 217u8 , 42u8 , 26u8 , 167u8 , 19u8 , 123u8 , 3u8 , 191u8 , 181u8 , 14u8 , 252u8 , 23u8 ,] , check_permissions :: Input { call , proxy_type , } , [244u8 , 36u8 , 238u8 , 114u8 , 182u8 , 213u8 , 0u8 , 227u8 , 197u8 , 44u8 , 139u8 , 9u8 , 173u8 , 47u8 , 58u8 , 3u8 , 90u8 , 255u8 , 139u8 , 240u8 , 57u8 , 191u8 , 144u8 , 114u8 , 165u8 , 228u8 , 250u8 , 112u8 , 184u8 , 78u8 , 139u8 , 126u8 ,] ,) } # [doc = " Check if one `ProxyType` is a subset of another `ProxyType`."] pub fn is_superset (& self , to_check : is_superset :: ToCheck , against : is_superset :: Against) -> :: subxt :: ext :: subxt_core :: view_functions :: payload :: StaticPayload < is_superset :: Input , is_superset :: output :: Output > { :: subxt :: ext :: subxt_core :: view_functions :: payload :: StaticPayload :: new_static ([24u8 , 9u8 , 215u8 , 131u8 , 70u8 , 114u8 , 122u8 , 14u8 , 245u8 , 140u8 , 15u8 , 160u8 , 59u8 , 175u8 , 163u8 , 35u8 , 23u8 , 20u8 , 176u8 , 96u8 , 125u8 , 98u8 , 175u8 , 10u8 , 59u8 , 59u8 , 10u8 , 210u8 , 197u8 , 213u8 , 92u8 , 88u8 ,] , is_superset :: Input { to_check , against , } , [185u8 , 101u8 , 200u8 , 3u8 , 178u8 , 198u8 , 9u8 , 55u8 , 198u8 , 227u8 , 142u8 , 184u8 , 159u8 , 15u8 , 39u8 , 87u8 , 174u8 , 20u8 , 2u8 , 108u8 , 47u8 , 172u8 , 201u8 , 220u8 , 226u8 , 6u8 , 40u8 , 53u8 , 91u8 , 201u8 , 7u8 , 189u8 ,] ,) } } pub mod check_permissions { use super :: root_mod ; use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Input { pub call : Call , pub proxy_type : ProxyType , } pub type Call = runtime_types :: node_subtensor_runtime :: RuntimeCall ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: bool ; } } pub mod is_superset { use super :: root_mod ; use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Input { pub to_check : ToCheck , pub against : Against , } pub type ToCheck = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Against = runtime_types :: subtensor_runtime_common :: ProxyType ; pub mod output { use super :: runtime_types ; pub type Output = :: core :: primitive :: bool ; } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_subtensor_proxy :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A proxy was executed correctly, with the given."] pub struct ProxyExecuted { pub result : proxy_executed :: Result , } pub mod proxy_executed { use super :: runtime_types ; pub type Result = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ProxyExecuted { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "ProxyExecuted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A pure account has been created by new proxy with given"] # [doc = "disambiguation index and proxy type."] pub struct PureCreated { pub pure : pure_created :: Pure , pub who : pure_created :: Who , pub proxy_type : pure_created :: ProxyType , pub disambiguation_index : pure_created :: DisambiguationIndex , } pub mod pure_created { use super :: runtime_types ; pub type Pure = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type DisambiguationIndex = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PureCreated { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "PureCreated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A pure proxy was killed by its spawner."] pub struct PureKilled { pub pure : pure_killed :: Pure , pub spawner : pure_killed :: Spawner , pub proxy_type : pure_killed :: ProxyType , pub disambiguation_index : pure_killed :: DisambiguationIndex , } pub mod pure_killed { use super :: runtime_types ; pub type Pure = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Spawner = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type DisambiguationIndex = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PureKilled { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "PureKilled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An announcement was placed to make a call in the future."] pub struct Announced { pub real : announced :: Real , pub proxy : announced :: Proxy , pub call_hash : announced :: CallHash , } pub mod announced { use super :: runtime_types ; pub type Real = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Proxy = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CallHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Announced { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "Announced" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A proxy was added."] pub struct ProxyAdded { pub delegator : proxy_added :: Delegator , pub delegatee : proxy_added :: Delegatee , pub proxy_type : proxy_added :: ProxyType , pub delay : proxy_added :: Delay , } pub mod proxy_added { use super :: runtime_types ; pub type Delegator = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Delegatee = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ProxyAdded { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "ProxyAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A proxy was removed."] pub struct ProxyRemoved { pub delegator : proxy_removed :: Delegator , pub delegatee : proxy_removed :: Delegatee , pub proxy_type : proxy_removed :: ProxyType , pub delay : proxy_removed :: Delay , } pub mod proxy_removed { use super :: runtime_types ; pub type Delegator = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Delegatee = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type ProxyType = runtime_types :: subtensor_runtime_common :: ProxyType ; pub type Delay = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ProxyRemoved { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "ProxyRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A deposit stored for proxies or announcements was poked / updated."] pub struct DepositPoked { pub who : deposit_poked :: Who , pub kind : deposit_poked :: Kind , pub old_deposit : deposit_poked :: OldDeposit , pub new_deposit : deposit_poked :: NewDeposit , } pub mod deposit_poked { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Kind = runtime_types :: pallet_subtensor_proxy :: DepositKind ; pub type OldDeposit = :: core :: primitive :: u64 ; pub type NewDeposit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DepositPoked { const PALLET : & 'static str = "Proxy" ; const EVENT : & 'static str = "DepositPoked" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod proxies { use super :: runtime_types ; pub type Proxies = (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_subtensor_proxy :: ProxyDefinition < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , runtime_types :: subtensor_runtime_common :: ProxyType , :: core :: primitive :: u32 > > , :: core :: primitive :: u64 ,) ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod announcements { use super :: runtime_types ; pub type Announcements = (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_subtensor_proxy :: Announcement < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > , :: core :: primitive :: u64 ,) ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod last_call_result { use super :: runtime_types ; pub type LastCallResult = :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The set of account proxies. Maps the account which has delegated to the accounts"] # [doc = " which are being delegated to, together with the amount held on deposit."] pub fn proxies_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: proxies :: Proxies , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "Proxies" , () , [53u8 , 52u8 , 112u8 , 212u8 , 25u8 , 10u8 , 47u8 , 210u8 , 249u8 , 3u8 , 119u8 , 140u8 , 116u8 , 207u8 , 237u8 , 117u8 , 6u8 , 6u8 , 65u8 , 4u8 , 219u8 , 43u8 , 84u8 , 212u8 , 58u8 , 103u8 , 184u8 , 201u8 , 34u8 , 240u8 , 218u8 , 3u8 ,]) } # [doc = " The set of account proxies. Maps the account which has delegated to the accounts"] # [doc = " which are being delegated to, together with the amount held on deposit."] pub fn proxies (& self , _0 : types :: proxies :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: proxies :: Param0 > , types :: proxies :: Proxies , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "Proxies" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [53u8 , 52u8 , 112u8 , 212u8 , 25u8 , 10u8 , 47u8 , 210u8 , 249u8 , 3u8 , 119u8 , 140u8 , 116u8 , 207u8 , 237u8 , 117u8 , 6u8 , 6u8 , 65u8 , 4u8 , 219u8 , 43u8 , 84u8 , 212u8 , 58u8 , 103u8 , 184u8 , 201u8 , 34u8 , 240u8 , 218u8 , 3u8 ,]) } # [doc = " The announcements made by the proxy (key)."] pub fn announcements_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: announcements :: Announcements , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "Announcements" , () , [251u8 , 80u8 , 94u8 , 70u8 , 96u8 , 57u8 , 22u8 , 10u8 , 63u8 , 93u8 , 186u8 , 160u8 , 55u8 , 117u8 , 39u8 , 125u8 , 210u8 , 52u8 , 117u8 , 94u8 , 24u8 , 109u8 , 217u8 , 55u8 , 2u8 , 30u8 , 8u8 , 177u8 , 56u8 , 155u8 , 71u8 , 227u8 ,]) } # [doc = " The announcements made by the proxy (key)."] pub fn announcements (& self , _0 : types :: announcements :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: announcements :: Param0 > , types :: announcements :: Announcements , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "Announcements" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [251u8 , 80u8 , 94u8 , 70u8 , 96u8 , 57u8 , 22u8 , 10u8 , 63u8 , 93u8 , 186u8 , 160u8 , 55u8 , 117u8 , 39u8 , 125u8 , 210u8 , 52u8 , 117u8 , 94u8 , 24u8 , 109u8 , 217u8 , 55u8 , 2u8 , 30u8 , 8u8 , 177u8 , 56u8 , 155u8 , 71u8 , 227u8 ,]) } # [doc = " The result of the last call made by the proxy (key)."] pub fn last_call_result_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_call_result :: LastCallResult , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "LastCallResult" , () , [5u8 , 147u8 , 48u8 , 23u8 , 195u8 , 78u8 , 152u8 , 229u8 , 179u8 , 25u8 , 27u8 , 149u8 , 243u8 , 241u8 , 224u8 , 221u8 , 252u8 , 191u8 , 30u8 , 178u8 , 129u8 , 116u8 , 171u8 , 108u8 , 241u8 , 244u8 , 87u8 , 117u8 , 195u8 , 235u8 , 154u8 , 223u8 ,]) } # [doc = " The result of the last call made by the proxy (key)."] pub fn last_call_result (& self , _0 : types :: last_call_result :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_call_result :: Param0 > , types :: last_call_result :: LastCallResult , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Proxy" , "LastCallResult" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [5u8 , 147u8 , 48u8 , 23u8 , 195u8 , 78u8 , 152u8 , 229u8 , 179u8 , 25u8 , 27u8 , 149u8 , 243u8 , 241u8 , 224u8 , 221u8 , 252u8 , 191u8 , 30u8 , 178u8 , 129u8 , 116u8 , 171u8 , 108u8 , 241u8 , 244u8 , 87u8 , 117u8 , 195u8 , 235u8 , 154u8 , 223u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The base amount of currency needed to reserve for creating a proxy."] # [doc = ""] # [doc = " This is held for an additional storage item whose value size is"] # [doc = " `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."] pub fn proxy_deposit_base (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Proxy" , "ProxyDepositBase" , [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 ,]) } # [doc = " The amount of currency needed per proxy added."] # [doc = ""] # [doc = " This is held for adding 32 bytes plus an instance of `ProxyType` more into a"] # [doc = " pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take"] # [doc = " into account `32 + proxy_type.encode().len()` bytes of data."] pub fn proxy_deposit_factor (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Proxy" , "ProxyDepositFactor" , [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 ,]) } # [doc = " The maximum amount of proxies allowed for a single account."] pub fn max_proxies (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Proxy" , "MaxProxies" , [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 ,]) } # [doc = " The maximum amount of time-delayed announcements that are allowed to be pending."] pub fn max_pending (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Proxy" , "MaxPending" , [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 ,]) } # [doc = " The base amount of currency needed to reserve for creating an announcement."] # [doc = ""] # [doc = " This is held when a new storage item holding a `Balance` is created (typically 16"] # [doc = " bytes)."] pub fn announcement_deposit_base (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Proxy" , "AnnouncementDepositBase" , [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 ,]) } # [doc = " The amount of currency needed per announcement made."] # [doc = ""] # [doc = " This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)"] # [doc = " into a pre-existing storage value."] pub fn announcement_deposit_factor (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Proxy" , "AnnouncementDepositFactor" , [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 registry { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_registry :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_registry :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Register an identity for an account. This will overwrite any existing identity."] pub struct SetIdentity { pub identified : set_identity :: Identified , pub info : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < set_identity :: Info > , } pub mod set_identity { use super :: runtime_types ; pub type Identified = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Info = runtime_types :: pallet_registry :: types :: IdentityInfo ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetIdentity { const PALLET : & 'static str = "Registry" ; const CALL : & 'static str = "set_identity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Clear the identity of an account."] pub struct ClearIdentity { pub identified : clear_identity :: Identified , } pub mod clear_identity { use super :: runtime_types ; pub type Identified = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ClearIdentity { const PALLET : & 'static str = "Registry" ; const CALL : & 'static str = "clear_identity" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Register an identity for an account. This will overwrite any existing identity."] pub fn set_identity (& self , identified : types :: set_identity :: Identified , info : types :: set_identity :: Info ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetIdentity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Registry" , "set_identity" , types :: SetIdentity { identified , info : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (info) , } , [255u8 , 222u8 , 188u8 , 128u8 , 170u8 , 119u8 , 134u8 , 170u8 , 42u8 , 31u8 , 3u8 , 8u8 , 53u8 , 100u8 , 198u8 , 14u8 , 115u8 , 29u8 , 228u8 , 90u8 , 39u8 , 182u8 , 215u8 , 189u8 , 29u8 , 111u8 , 230u8 , 253u8 , 89u8 , 109u8 , 191u8 , 220u8 ,]) } # [doc = "Clear the identity of an account."] pub fn clear_identity (& self , identified : types :: clear_identity :: Identified ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ClearIdentity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Registry" , "clear_identity" , types :: ClearIdentity { identified , } , [216u8 , 203u8 , 30u8 , 205u8 , 153u8 , 152u8 , 123u8 , 37u8 , 208u8 , 167u8 , 25u8 , 221u8 , 243u8 , 138u8 , 31u8 , 222u8 , 64u8 , 207u8 , 68u8 , 74u8 , 131u8 , 236u8 , 156u8 , 9u8 , 30u8 , 190u8 , 66u8 , 119u8 , 161u8 , 154u8 , 5u8 , 65u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_registry :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Emitted when a user registers an identity"] pub struct IdentitySet { pub who : identity_set :: Who , } pub mod identity_set { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IdentitySet { const PALLET : & 'static str = "Registry" ; const EVENT : & 'static str = "IdentitySet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Emitted when a user dissolves an identity"] pub struct IdentityDissolved { pub who : identity_dissolved :: Who , } pub mod identity_dissolved { use super :: runtime_types ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for IdentityDissolved { const PALLET : & 'static str = "Registry" ; const EVENT : & 'static str = "IdentityDissolved" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod identity_of { use super :: runtime_types ; pub type IdentityOf = runtime_types :: pallet_registry :: types :: Registration < :: core :: primitive :: u64 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Identity data by account"] pub fn identity_of_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: identity_of :: IdentityOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Registry" , "IdentityOf" , () , [234u8 , 187u8 , 56u8 , 218u8 , 135u8 , 79u8 , 50u8 , 159u8 , 20u8 , 10u8 , 131u8 , 167u8 , 135u8 , 236u8 , 19u8 , 176u8 , 113u8 , 194u8 , 115u8 , 138u8 , 0u8 , 184u8 , 178u8 , 245u8 , 255u8 , 85u8 , 51u8 , 140u8 , 11u8 , 143u8 , 218u8 , 217u8 ,]) } # [doc = " Identity data by account"] pub fn identity_of (& self , _0 : types :: identity_of :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: identity_of :: Param0 > , types :: identity_of :: IdentityOf , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Registry" , "IdentityOf" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [234u8 , 187u8 , 56u8 , 218u8 , 135u8 , 79u8 , 50u8 , 159u8 , 20u8 , 10u8 , 131u8 , 167u8 , 135u8 , 236u8 , 19u8 , 176u8 , 113u8 , 194u8 , 115u8 , 138u8 , 0u8 , 184u8 , 178u8 , 245u8 , 255u8 , 85u8 , 51u8 , 140u8 , 11u8 , 143u8 , 218u8 , 217u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " Configuration fields"] # [doc = " Maximum user-configured additional fields"] pub fn max_additional_fields (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Registry" , "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 ,]) } # [doc = " The amount held on deposit for a registered identity"] pub fn initial_deposit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Registry" , "InitialDeposit" , [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 ,]) } # [doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Registry" , "FieldDeposit" , [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 commitments { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_commitments :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_commitments :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the commitment for a given netuid"] pub struct SetCommitment { pub netuid : set_commitment :: Netuid , pub info : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < set_commitment :: Info > , } pub mod set_commitment { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Info = runtime_types :: pallet_commitments :: types :: CommitmentInfo ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCommitment { const PALLET : & 'static str = "Commitments" ; const CALL : & 'static str = "set_commitment" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sudo-set MaxSpace"] pub struct SetMaxSpace { pub new_limit : set_max_space :: NewLimit , } pub mod set_max_space { use super :: runtime_types ; pub type NewLimit = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetMaxSpace { const PALLET : & 'static str = "Commitments" ; const CALL : & 'static str = "set_max_space" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Set the commitment for a given netuid"] pub fn set_commitment (& self , netuid : types :: set_commitment :: Netuid , info : types :: set_commitment :: Info ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCommitment > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Commitments" , "set_commitment" , types :: SetCommitment { netuid , info : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (info) , } , [188u8 , 98u8 , 69u8 , 166u8 , 54u8 , 104u8 , 38u8 , 160u8 , 19u8 , 24u8 , 227u8 , 201u8 , 149u8 , 229u8 , 86u8 , 51u8 , 182u8 , 132u8 , 65u8 , 200u8 , 88u8 , 6u8 , 164u8 , 35u8 , 240u8 , 227u8 , 136u8 , 114u8 , 194u8 , 118u8 , 70u8 , 122u8 ,]) } # [doc = "Sudo-set MaxSpace"] pub fn set_max_space (& self , new_limit : types :: set_max_space :: NewLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetMaxSpace > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Commitments" , "set_max_space" , types :: SetMaxSpace { new_limit , } , [194u8 , 149u8 , 204u8 , 12u8 , 197u8 , 80u8 , 68u8 , 8u8 , 41u8 , 197u8 , 213u8 , 222u8 , 150u8 , 0u8 , 149u8 , 61u8 , 232u8 , 41u8 , 185u8 , 85u8 , 174u8 , 205u8 , 126u8 , 72u8 , 151u8 , 89u8 , 27u8 , 233u8 , 45u8 , 69u8 , 56u8 , 167u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_commitments :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A commitment was set"] pub struct Commitment { pub netuid : commitment :: Netuid , pub who : commitment :: Who , } pub mod commitment { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Commitment { const PALLET : & 'static str = "Commitments" ; const EVENT : & 'static str = "Commitment" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A timelock-encrypted commitment was set"] pub struct TimelockCommitment { pub netuid : timelock_commitment :: Netuid , pub who : timelock_commitment :: Who , pub reveal_round : timelock_commitment :: RevealRound , } pub mod timelock_commitment { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type RevealRound = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for TimelockCommitment { const PALLET : & 'static str = "Commitments" ; const EVENT : & 'static str = "TimelockCommitment" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A timelock-encrypted commitment was auto-revealed"] pub struct CommitmentRevealed { pub netuid : commitment_revealed :: Netuid , pub who : commitment_revealed :: Who , } pub mod commitment_revealed { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CommitmentRevealed { const PALLET : & 'static str = "Commitments" ; const EVENT : & 'static str = "CommitmentRevealed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod timelocked_index { use super :: runtime_types ; pub type TimelockedIndex = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ; } pub mod commitment_of { use super :: runtime_types ; pub type CommitmentOf = runtime_types :: pallet_commitments :: types :: Registration < :: core :: primitive :: u64 , :: core :: primitive :: u32 > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod last_commitment { use super :: runtime_types ; pub type LastCommitment = :: core :: primitive :: u32 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod last_bonds_reset { use super :: runtime_types ; pub type LastBondsReset = :: core :: primitive :: u32 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod revealed_commitments { use super :: runtime_types ; pub type RevealedCommitments = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , :: core :: primitive :: u64 ,) > ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod used_space_of { use super :: runtime_types ; pub type UsedSpaceOf = runtime_types :: pallet_commitments :: types :: UsageTracker ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod max_space { use super :: runtime_types ; pub type MaxSpace = :: core :: primitive :: u32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Tracks all CommitmentOf that have at least one timelocked field."] pub fn timelocked_index (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: timelocked_index :: TimelockedIndex , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "TimelockedIndex" , () , [238u8 , 133u8 , 144u8 , 233u8 , 81u8 , 247u8 , 174u8 , 114u8 , 23u8 , 107u8 , 191u8 , 192u8 , 74u8 , 26u8 , 42u8 , 157u8 , 37u8 , 223u8 , 113u8 , 71u8 , 244u8 , 228u8 , 166u8 , 196u8 , 250u8 , 249u8 , 170u8 , 40u8 , 87u8 , 138u8 , 25u8 , 72u8 ,]) } # [doc = " Identity data by account"] pub fn commitment_of_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: commitment_of :: CommitmentOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "CommitmentOf" , () , [16u8 , 21u8 , 151u8 , 21u8 , 196u8 , 166u8 , 177u8 , 116u8 , 20u8 , 99u8 , 7u8 , 219u8 , 35u8 , 17u8 , 56u8 , 247u8 , 20u8 , 8u8 , 99u8 , 101u8 , 230u8 , 217u8 , 226u8 , 133u8 , 201u8 , 149u8 , 159u8 , 140u8 , 80u8 , 187u8 , 35u8 , 208u8 ,]) } # [doc = " Identity data by account"] pub fn commitment_of_iter1 (& self , _0 : types :: commitment_of :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: commitment_of :: Param0 > , types :: commitment_of :: CommitmentOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "CommitmentOf" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [16u8 , 21u8 , 151u8 , 21u8 , 196u8 , 166u8 , 177u8 , 116u8 , 20u8 , 99u8 , 7u8 , 219u8 , 35u8 , 17u8 , 56u8 , 247u8 , 20u8 , 8u8 , 99u8 , 101u8 , 230u8 , 217u8 , 226u8 , 133u8 , 201u8 , 149u8 , 159u8 , 140u8 , 80u8 , 187u8 , 35u8 , 208u8 ,]) } # [doc = " Identity data by account"] pub fn commitment_of (& self , _0 : types :: commitment_of :: Param0 , _1 : types :: commitment_of :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: commitment_of :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: commitment_of :: Param1 > ,) , types :: commitment_of :: CommitmentOf , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "CommitmentOf" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [16u8 , 21u8 , 151u8 , 21u8 , 196u8 , 166u8 , 177u8 , 116u8 , 20u8 , 99u8 , 7u8 , 219u8 , 35u8 , 17u8 , 56u8 , 247u8 , 20u8 , 8u8 , 99u8 , 101u8 , 230u8 , 217u8 , 226u8 , 133u8 , 201u8 , 149u8 , 159u8 , 140u8 , 80u8 , 187u8 , 35u8 , 208u8 ,]) } pub fn last_commitment_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_commitment :: LastCommitment , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "LastCommitment" , () , [139u8 , 18u8 , 67u8 , 3u8 , 183u8 , 236u8 , 230u8 , 168u8 , 162u8 , 27u8 , 124u8 , 208u8 , 80u8 , 59u8 , 115u8 , 168u8 , 19u8 , 84u8 , 100u8 , 234u8 , 21u8 , 52u8 , 48u8 , 87u8 , 226u8 , 158u8 , 211u8 , 215u8 , 177u8 , 207u8 , 202u8 , 69u8 ,]) } pub fn last_commitment_iter1 (& self , _0 : types :: last_commitment :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_commitment :: Param0 > , types :: last_commitment :: LastCommitment , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "LastCommitment" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [139u8 , 18u8 , 67u8 , 3u8 , 183u8 , 236u8 , 230u8 , 168u8 , 162u8 , 27u8 , 124u8 , 208u8 , 80u8 , 59u8 , 115u8 , 168u8 , 19u8 , 84u8 , 100u8 , 234u8 , 21u8 , 52u8 , 48u8 , 87u8 , 226u8 , 158u8 , 211u8 , 215u8 , 177u8 , 207u8 , 202u8 , 69u8 ,]) } pub fn last_commitment (& self , _0 : types :: last_commitment :: Param0 , _1 : types :: last_commitment :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_commitment :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_commitment :: Param1 > ,) , types :: last_commitment :: LastCommitment , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "LastCommitment" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [139u8 , 18u8 , 67u8 , 3u8 , 183u8 , 236u8 , 230u8 , 168u8 , 162u8 , 27u8 , 124u8 , 208u8 , 80u8 , 59u8 , 115u8 , 168u8 , 19u8 , 84u8 , 100u8 , 234u8 , 21u8 , 52u8 , 48u8 , 87u8 , 226u8 , 158u8 , 211u8 , 215u8 , 177u8 , 207u8 , 202u8 , 69u8 ,]) } pub fn last_bonds_reset_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_bonds_reset :: LastBondsReset , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "LastBondsReset" , () , [230u8 , 104u8 , 27u8 , 159u8 , 209u8 , 43u8 , 222u8 , 155u8 , 59u8 , 17u8 , 42u8 , 47u8 , 125u8 , 70u8 , 253u8 , 179u8 , 223u8 , 11u8 , 194u8 , 47u8 , 241u8 , 26u8 , 34u8 , 5u8 , 121u8 , 155u8 , 20u8 , 5u8 , 168u8 , 127u8 , 146u8 , 197u8 ,]) } pub fn last_bonds_reset_iter1 (& self , _0 : types :: last_bonds_reset :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_bonds_reset :: Param0 > , types :: last_bonds_reset :: LastBondsReset , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "LastBondsReset" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [230u8 , 104u8 , 27u8 , 159u8 , 209u8 , 43u8 , 222u8 , 155u8 , 59u8 , 17u8 , 42u8 , 47u8 , 125u8 , 70u8 , 253u8 , 179u8 , 223u8 , 11u8 , 194u8 , 47u8 , 241u8 , 26u8 , 34u8 , 5u8 , 121u8 , 155u8 , 20u8 , 5u8 , 168u8 , 127u8 , 146u8 , 197u8 ,]) } pub fn last_bonds_reset (& self , _0 : types :: last_bonds_reset :: Param0 , _1 : types :: last_bonds_reset :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_bonds_reset :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: last_bonds_reset :: Param1 > ,) , types :: last_bonds_reset :: LastBondsReset , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "LastBondsReset" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [230u8 , 104u8 , 27u8 , 159u8 , 209u8 , 43u8 , 222u8 , 155u8 , 59u8 , 17u8 , 42u8 , 47u8 , 125u8 , 70u8 , 253u8 , 179u8 , 223u8 , 11u8 , 194u8 , 47u8 , 241u8 , 26u8 , 34u8 , 5u8 , 121u8 , 155u8 , 20u8 , 5u8 , 168u8 , 127u8 , 146u8 , 197u8 ,]) } pub fn revealed_commitments_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: revealed_commitments :: RevealedCommitments , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "RevealedCommitments" , () , [42u8 , 255u8 , 184u8 , 105u8 , 204u8 , 126u8 , 154u8 , 137u8 , 139u8 , 244u8 , 34u8 , 242u8 , 35u8 , 207u8 , 184u8 , 108u8 , 246u8 , 85u8 , 35u8 , 126u8 , 93u8 , 74u8 , 57u8 , 19u8 , 162u8 , 121u8 , 129u8 , 161u8 , 222u8 , 44u8 , 68u8 , 216u8 ,]) } pub fn revealed_commitments_iter1 (& self , _0 : types :: revealed_commitments :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: revealed_commitments :: Param0 > , types :: revealed_commitments :: RevealedCommitments , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "RevealedCommitments" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [42u8 , 255u8 , 184u8 , 105u8 , 204u8 , 126u8 , 154u8 , 137u8 , 139u8 , 244u8 , 34u8 , 242u8 , 35u8 , 207u8 , 184u8 , 108u8 , 246u8 , 85u8 , 35u8 , 126u8 , 93u8 , 74u8 , 57u8 , 19u8 , 162u8 , 121u8 , 129u8 , 161u8 , 222u8 , 44u8 , 68u8 , 216u8 ,]) } pub fn revealed_commitments (& self , _0 : types :: revealed_commitments :: Param0 , _1 : types :: revealed_commitments :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: revealed_commitments :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: revealed_commitments :: Param1 > ,) , types :: revealed_commitments :: RevealedCommitments , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "RevealedCommitments" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [42u8 , 255u8 , 184u8 , 105u8 , 204u8 , 126u8 , 154u8 , 137u8 , 139u8 , 244u8 , 34u8 , 242u8 , 35u8 , 207u8 , 184u8 , 108u8 , 246u8 , 85u8 , 35u8 , 126u8 , 93u8 , 74u8 , 57u8 , 19u8 , 162u8 , 121u8 , 129u8 , 161u8 , 222u8 , 44u8 , 68u8 , 216u8 ,]) } # [doc = " Maps (netuid, who) -> usage (how many “bytes” they've committed)"] # [doc = " in the RateLimit window"] pub fn used_space_of_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: used_space_of :: UsedSpaceOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "UsedSpaceOf" , () , [100u8 , 116u8 , 27u8 , 191u8 , 62u8 , 105u8 , 40u8 , 216u8 , 36u8 , 105u8 , 78u8 , 189u8 , 22u8 , 31u8 , 100u8 , 1u8 , 54u8 , 124u8 , 110u8 , 233u8 , 6u8 , 6u8 , 52u8 , 2u8 , 204u8 , 236u8 , 92u8 , 255u8 , 219u8 , 132u8 , 186u8 , 128u8 ,]) } # [doc = " Maps (netuid, who) -> usage (how many “bytes” they've committed)"] # [doc = " in the RateLimit window"] pub fn used_space_of_iter1 (& self , _0 : types :: used_space_of :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: used_space_of :: Param0 > , types :: used_space_of :: UsedSpaceOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "UsedSpaceOf" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [100u8 , 116u8 , 27u8 , 191u8 , 62u8 , 105u8 , 40u8 , 216u8 , 36u8 , 105u8 , 78u8 , 189u8 , 22u8 , 31u8 , 100u8 , 1u8 , 54u8 , 124u8 , 110u8 , 233u8 , 6u8 , 6u8 , 52u8 , 2u8 , 204u8 , 236u8 , 92u8 , 255u8 , 219u8 , 132u8 , 186u8 , 128u8 ,]) } # [doc = " Maps (netuid, who) -> usage (how many “bytes” they've committed)"] # [doc = " in the RateLimit window"] pub fn used_space_of (& self , _0 : types :: used_space_of :: Param0 , _1 : types :: used_space_of :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: used_space_of :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: used_space_of :: Param1 > ,) , types :: used_space_of :: UsedSpaceOf , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "UsedSpaceOf" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [100u8 , 116u8 , 27u8 , 191u8 , 62u8 , 105u8 , 40u8 , 216u8 , 36u8 , 105u8 , 78u8 , 189u8 , 22u8 , 31u8 , 100u8 , 1u8 , 54u8 , 124u8 , 110u8 , 233u8 , 6u8 , 6u8 , 52u8 , 2u8 , 204u8 , 236u8 , 92u8 , 255u8 , 219u8 , 132u8 , 186u8 , 128u8 ,]) } pub fn max_space (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: max_space :: MaxSpace , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Commitments" , "MaxSpace" , () , [153u8 , 157u8 , 81u8 , 225u8 , 81u8 , 180u8 , 65u8 , 209u8 , 198u8 , 34u8 , 33u8 , 195u8 , 131u8 , 124u8 , 137u8 , 204u8 , 135u8 , 133u8 , 130u8 , 171u8 , 241u8 , 244u8 , 101u8 , 235u8 , 247u8 , 212u8 , 181u8 , 219u8 , 95u8 , 230u8 , 145u8 , 135u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The maximum number of additional fields that can be added to a commitment"] pub fn max_fields (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Commitments" , "MaxFields" , [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 ,]) } # [doc = " The amount held on deposit for a registered identity"] pub fn initial_deposit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Commitments" , "InitialDeposit" , [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 ,]) } # [doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Commitments" , "FieldDeposit" , [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 admin_utils { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_admin_utils :: pallet :: Error ; # [doc = "Dispatchable functions allows users to interact with the pallet and invoke state changes."] pub type Call = runtime_types :: pallet_admin_utils :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the new authorities for Aura consensus."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Aura pallet to change the authorities."] pub struct SwapAuthorities { pub new_authorities : swap_authorities :: NewAuthorities , } pub mod swap_authorities { use super :: runtime_types ; pub type NewAuthorities = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SwapAuthorities { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "swap_authorities" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the default take for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the default take."] pub struct SudoSetDefaultTake { pub default_take : sudo_set_default_take :: DefaultTake , } pub mod sudo_set_default_take { use super :: runtime_types ; pub type DefaultTake = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetDefaultTake { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_default_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the transaction rate limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the transaction rate limit."] pub struct SudoSetTxRateLimit { pub tx_rate_limit : sudo_set_tx_rate_limit :: TxRateLimit , } pub mod sudo_set_tx_rate_limit { use super :: runtime_types ; pub type TxRateLimit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTxRateLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_tx_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the serving rate limit for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the serving rate limit."] pub struct SudoSetServingRateLimit { pub netuid : sudo_set_serving_rate_limit :: Netuid , pub serving_rate_limit : sudo_set_serving_rate_limit :: ServingRateLimit , } pub mod sudo_set_serving_rate_limit { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type ServingRateLimit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetServingRateLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_serving_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the minimum difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum difficulty."] pub struct SudoSetMinDifficulty { pub netuid : sudo_set_min_difficulty :: Netuid , pub min_difficulty : sudo_set_min_difficulty :: MinDifficulty , } pub mod sudo_set_min_difficulty { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MinDifficulty = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinDifficulty { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_min_difficulty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the maximum difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum difficulty."] pub struct SudoSetMaxDifficulty { pub netuid : sudo_set_max_difficulty :: Netuid , pub max_difficulty : sudo_set_max_difficulty :: MaxDifficulty , } pub mod sudo_set_max_difficulty { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaxDifficulty = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMaxDifficulty { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_max_difficulty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the weights version key for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights version key."] pub struct SudoSetWeightsVersionKey { pub netuid : sudo_set_weights_version_key :: Netuid , pub weights_version_key : sudo_set_weights_version_key :: WeightsVersionKey , } pub mod sudo_set_weights_version_key { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type WeightsVersionKey = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetWeightsVersionKey { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_weights_version_key" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the weights set rate limit for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights set rate limit."] pub struct SudoSetWeightsSetRateLimit { pub netuid : sudo_set_weights_set_rate_limit :: Netuid , pub weights_set_rate_limit : sudo_set_weights_set_rate_limit :: WeightsSetRateLimit , } pub mod sudo_set_weights_set_rate_limit { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type WeightsSetRateLimit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetWeightsSetRateLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_weights_set_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the adjustment interval for a subnet."] # [doc = "It is only callable by the root account, not changeable by the subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the adjustment interval."] pub struct SudoSetAdjustmentInterval { pub netuid : sudo_set_adjustment_interval :: Netuid , pub adjustment_interval : sudo_set_adjustment_interval :: AdjustmentInterval , } pub mod sudo_set_adjustment_interval { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type AdjustmentInterval = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetAdjustmentInterval { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_adjustment_interval" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the adjustment alpha for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the adjustment alpha."] pub struct SudoSetAdjustmentAlpha { pub netuid : sudo_set_adjustment_alpha :: Netuid , pub adjustment_alpha : sudo_set_adjustment_alpha :: AdjustmentAlpha , } pub mod sudo_set_adjustment_alpha { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type AdjustmentAlpha = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetAdjustmentAlpha { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_adjustment_alpha" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the immunity period for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the immunity period."] pub struct SudoSetImmunityPeriod { pub netuid : sudo_set_immunity_period :: Netuid , pub immunity_period : sudo_set_immunity_period :: ImmunityPeriod , } pub mod sudo_set_immunity_period { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type ImmunityPeriod = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetImmunityPeriod { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_immunity_period" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the minimum allowed weights for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum allowed weights."] pub struct SudoSetMinAllowedWeights { pub netuid : sudo_set_min_allowed_weights :: Netuid , pub min_allowed_weights : sudo_set_min_allowed_weights :: MinAllowedWeights , } pub mod sudo_set_min_allowed_weights { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MinAllowedWeights = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinAllowedWeights { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_min_allowed_weights" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the maximum allowed UIDs for a subnet."] # [doc = "It is only callable by the root account and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum allowed UIDs for a subnet."] pub struct SudoSetMaxAllowedUids { pub netuid : sudo_set_max_allowed_uids :: Netuid , pub max_allowed_uids : sudo_set_max_allowed_uids :: MaxAllowedUids , } pub mod sudo_set_max_allowed_uids { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaxAllowedUids = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMaxAllowedUids { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_max_allowed_uids" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the kappa for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the kappa."] pub struct SudoSetKappa { pub netuid : sudo_set_kappa :: Netuid , pub kappa : sudo_set_kappa :: Kappa , } pub mod sudo_set_kappa { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Kappa = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetKappa { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_kappa" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the rho for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the rho."] pub struct SudoSetRho { pub netuid : sudo_set_rho :: Netuid , pub rho : sudo_set_rho :: Rho , } pub mod sudo_set_rho { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Rho = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetRho { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_rho" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the activity cutoff for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the activity cutoff."] pub struct SudoSetActivityCutoff { pub netuid : sudo_set_activity_cutoff :: Netuid , pub activity_cutoff : sudo_set_activity_cutoff :: ActivityCutoff , } pub mod sudo_set_activity_cutoff { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type ActivityCutoff = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetActivityCutoff { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_activity_cutoff" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the network registration allowed for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the network registration allowed."] pub struct SudoSetNetworkRegistrationAllowed { pub netuid : sudo_set_network_registration_allowed :: Netuid , pub registration_allowed : sudo_set_network_registration_allowed :: RegistrationAllowed , } pub mod sudo_set_network_registration_allowed { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type RegistrationAllowed = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNetworkRegistrationAllowed { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_network_registration_allowed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the network PoW registration allowed for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the network PoW registration allowed."] pub struct SudoSetNetworkPowRegistrationAllowed { pub netuid : sudo_set_network_pow_registration_allowed :: Netuid , pub registration_allowed : sudo_set_network_pow_registration_allowed :: RegistrationAllowed , } pub mod sudo_set_network_pow_registration_allowed { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type RegistrationAllowed = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNetworkPowRegistrationAllowed { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_network_pow_registration_allowed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the target registrations per interval for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the target registrations per interval."] pub struct SudoSetTargetRegistrationsPerInterval { pub netuid : sudo_set_target_registrations_per_interval :: Netuid , pub target_registrations_per_interval : sudo_set_target_registrations_per_interval :: TargetRegistrationsPerInterval , } pub mod sudo_set_target_registrations_per_interval { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type TargetRegistrationsPerInterval = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTargetRegistrationsPerInterval { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_target_registrations_per_interval" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the minimum burn for a subnet."] # [doc = "It is only callable by root and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum burn."] pub struct SudoSetMinBurn { pub netuid : sudo_set_min_burn :: Netuid , pub min_burn : sudo_set_min_burn :: MinBurn , } pub mod sudo_set_min_burn { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MinBurn = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinBurn { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_min_burn" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the maximum burn for a subnet."] # [doc = "It is only callable by root and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum burn."] pub struct SudoSetMaxBurn { pub netuid : sudo_set_max_burn :: Netuid , pub max_burn : sudo_set_max_burn :: MaxBurn , } pub mod sudo_set_max_burn { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaxBurn = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMaxBurn { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_max_burn" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the difficulty."] pub struct SudoSetDifficulty { pub netuid : sudo_set_difficulty :: Netuid , pub difficulty : sudo_set_difficulty :: Difficulty , } pub mod sudo_set_difficulty { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Difficulty = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetDifficulty { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_difficulty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the maximum allowed validators for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum allowed validators."] pub struct SudoSetMaxAllowedValidators { pub netuid : sudo_set_max_allowed_validators :: Netuid , pub max_allowed_validators : sudo_set_max_allowed_validators :: MaxAllowedValidators , } pub mod sudo_set_max_allowed_validators { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaxAllowedValidators = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMaxAllowedValidators { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_max_allowed_validators" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the bonds moving average for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the bonds moving average."] pub struct SudoSetBondsMovingAverage { pub netuid : sudo_set_bonds_moving_average :: Netuid , pub bonds_moving_average : sudo_set_bonds_moving_average :: BondsMovingAverage , } pub mod sudo_set_bonds_moving_average { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type BondsMovingAverage = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetBondsMovingAverage { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_bonds_moving_average" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the bonds penalty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the bonds penalty."] pub struct SudoSetBondsPenalty { pub netuid : sudo_set_bonds_penalty :: Netuid , pub bonds_penalty : sudo_set_bonds_penalty :: BondsPenalty , } pub mod sudo_set_bonds_penalty { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type BondsPenalty = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetBondsPenalty { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_bonds_penalty" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the maximum registrations per block for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum registrations per block."] pub struct SudoSetMaxRegistrationsPerBlock { pub netuid : sudo_set_max_registrations_per_block :: Netuid , pub max_registrations_per_block : sudo_set_max_registrations_per_block :: MaxRegistrationsPerBlock , } pub mod sudo_set_max_registrations_per_block { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaxRegistrationsPerBlock = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMaxRegistrationsPerBlock { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_max_registrations_per_block" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the subnet owner cut for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the subnet owner cut."] pub struct SudoSetSubnetOwnerCut { pub subnet_owner_cut : sudo_set_subnet_owner_cut :: SubnetOwnerCut , } pub mod sudo_set_subnet_owner_cut { use super :: runtime_types ; pub type SubnetOwnerCut = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetSubnetOwnerCut { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_subnet_owner_cut" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the network rate limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the network rate limit."] pub struct SudoSetNetworkRateLimit { pub rate_limit : sudo_set_network_rate_limit :: RateLimit , } pub mod sudo_set_network_rate_limit { use super :: runtime_types ; pub type RateLimit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNetworkRateLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_network_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the tempo for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the tempo."] pub struct SudoSetTempo { pub netuid : sudo_set_tempo :: Netuid , pub tempo : sudo_set_tempo :: Tempo , } pub mod sudo_set_tempo { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Tempo = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTempo { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_tempo" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the total issuance for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the issuance for the network."] pub struct SudoSetTotalIssuance { pub total_issuance : sudo_set_total_issuance :: TotalIssuance , } pub mod sudo_set_total_issuance { use super :: runtime_types ; pub type TotalIssuance = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTotalIssuance { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_total_issuance" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the immunity period for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the immunity period for the network."] pub struct SudoSetNetworkImmunityPeriod { pub immunity_period : sudo_set_network_immunity_period :: ImmunityPeriod , } pub mod sudo_set_network_immunity_period { use super :: runtime_types ; pub type ImmunityPeriod = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNetworkImmunityPeriod { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_network_immunity_period" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the min lock cost for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the min lock cost for the network."] pub struct SudoSetNetworkMinLockCost { pub lock_cost : sudo_set_network_min_lock_cost :: LockCost , } pub mod sudo_set_network_min_lock_cost { use super :: runtime_types ; pub type LockCost = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNetworkMinLockCost { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_network_min_lock_cost" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the subnet limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the subnet limit."] pub struct SudoSetSubnetLimit { pub max_subnets : sudo_set_subnet_limit :: MaxSubnets , } pub mod sudo_set_subnet_limit { use super :: runtime_types ; pub type MaxSubnets = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetSubnetLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_subnet_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the lock reduction interval for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the lock reduction interval."] pub struct SudoSetLockReductionInterval { pub interval : sudo_set_lock_reduction_interval :: Interval , } pub mod sudo_set_lock_reduction_interval { use super :: runtime_types ; pub type Interval = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetLockReductionInterval { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_lock_reduction_interval" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the recycled RAO for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the recycled RAO."] pub struct SudoSetRaoRecycled { pub netuid : sudo_set_rao_recycled :: Netuid , pub rao_recycled : sudo_set_rao_recycled :: RaoRecycled , } pub mod sudo_set_rao_recycled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type RaoRecycled = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetRaoRecycled { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_rao_recycled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the weights min stake."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights min stake."] pub struct SudoSetStakeThreshold { pub min_stake : sudo_set_stake_threshold :: MinStake , } pub mod sudo_set_stake_threshold { use super :: runtime_types ; pub type MinStake = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetStakeThreshold { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_stake_threshold" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the minimum stake required for nominators."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum stake required for nominators."] pub struct SudoSetNominatorMinRequiredStake { pub min_stake : sudo_set_nominator_min_required_stake :: MinStake , } pub mod sudo_set_nominator_min_required_stake { use super :: runtime_types ; pub type MinStake = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetNominatorMinRequiredStake { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_nominator_min_required_stake" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the rate limit for delegate take transactions."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the rate limit for delegate take transactions."] pub struct SudoSetTxDelegateTakeRateLimit { pub tx_rate_limit : sudo_set_tx_delegate_take_rate_limit :: TxRateLimit , } pub mod sudo_set_tx_delegate_take_rate_limit { use super :: runtime_types ; pub type TxRateLimit = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTxDelegateTakeRateLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_tx_delegate_take_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the minimum delegate take."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum delegate take."] pub struct SudoSetMinDelegateTake { pub take : sudo_set_min_delegate_take :: Take , } pub mod sudo_set_min_delegate_take { use super :: runtime_types ; pub type Take = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinDelegateTake { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_min_delegate_take" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic enabled/disables commit/reaveal for a given subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the value."] pub struct SudoSetCommitRevealWeightsEnabled { pub netuid : sudo_set_commit_reveal_weights_enabled :: Netuid , pub enabled : sudo_set_commit_reveal_weights_enabled :: Enabled , } pub mod sudo_set_commit_reveal_weights_enabled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetCommitRevealWeightsEnabled { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_commit_reveal_weights_enabled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enables or disables Liquid Alpha for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Liquid Alpha."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub struct SudoSetLiquidAlphaEnabled { pub netuid : sudo_set_liquid_alpha_enabled :: Netuid , pub enabled : sudo_set_liquid_alpha_enabled :: Enabled , } pub mod sudo_set_liquid_alpha_enabled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetLiquidAlphaEnabled { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_liquid_alpha_enabled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets values for liquid alpha"] pub struct SudoSetAlphaValues { pub netuid : sudo_set_alpha_values :: Netuid , pub alpha_low : sudo_set_alpha_values :: AlphaLow , pub alpha_high : sudo_set_alpha_values :: AlphaHigh , } pub mod sudo_set_alpha_values { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type AlphaLow = :: core :: primitive :: u16 ; pub type AlphaHigh = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetAlphaValues { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_alpha_values" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the duration of the coldkey swap schedule."] # [doc = ""] # [doc = "This extrinsic allows the root account to set the duration for the coldkey swap schedule."] # [doc = "The coldkey swap schedule determines how long it takes for a coldkey swap operation to complete."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `duration` - The new duration for the coldkey swap schedule, in number of blocks."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetColdkeySwapScheduleDuration { pub duration : sudo_set_coldkey_swap_schedule_duration :: Duration , } pub mod sudo_set_coldkey_swap_schedule_duration { use super :: runtime_types ; pub type Duration = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetColdkeySwapScheduleDuration { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_coldkey_swap_schedule_duration" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the duration of the dissolve network schedule."] # [doc = ""] # [doc = "This extrinsic allows the root account to set the duration for the dissolve network schedule."] # [doc = "The dissolve network schedule determines how long it takes for a network dissolution operation to complete."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `duration` - The new duration for the dissolve network schedule, in number of blocks."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetDissolveNetworkScheduleDuration { pub duration : sudo_set_dissolve_network_schedule_duration :: Duration , } pub mod sudo_set_dissolve_network_schedule_duration { use super :: runtime_types ; pub type Duration = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetDissolveNetworkScheduleDuration { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_dissolve_network_schedule_duration" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the commit-reveal weights periods for a specific subnet."] # [doc = ""] # [doc = "This extrinsic allows the subnet owner or root account to set the duration (in epochs) during which committed weights must be revealed."] # [doc = "The commit-reveal mechanism ensures that users commit weights in advance and reveal them only within a specified period."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or the root account."] # [doc = "* `netuid` - The unique identifier of the subnet for which the periods are being set."] # [doc = "* `periods` - The number of epochs that define the commit-reveal period."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is neither the subnet owner nor the root account."] # [doc = "* `SubnetDoesNotExist` - If the specified subnet does not exist."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetCommitRevealWeightsInterval { pub netuid : sudo_set_commit_reveal_weights_interval :: Netuid , pub interval : sudo_set_commit_reveal_weights_interval :: Interval , } pub mod sudo_set_commit_reveal_weights_interval { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Interval = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetCommitRevealWeightsInterval { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_commit_reveal_weights_interval" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the EVM ChainID."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or the root account."] # [doc = "* `chainId` - The u64 chain ID"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is neither the subnet owner nor the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetEvmChainId { pub chain_id : sudo_set_evm_chain_id :: ChainId , } pub mod sudo_set_evm_chain_id { use super :: runtime_types ; pub type ChainId = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetEvmChainId { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_evm_chain_id" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A public interface for `pallet_grandpa::Pallet::schedule_grandpa_change`."] # [doc = ""] # [doc = "Schedule a change in the authorities."] # [doc = ""] # [doc = "The change will be applied at the end of execution of the block `in_blocks` after the"] # [doc = "current block. This value may be 0, in which case the change is applied at the end of"] # [doc = "the current block."] # [doc = ""] # [doc = "If the `forced` parameter is defined, this indicates that the current set has been"] # [doc = "synchronously determined to be offline and that after `in_blocks` the given change"] # [doc = "should be applied. The given block number indicates the median last finalized block"] # [doc = "number and it should be used as the canon block when starting the new grandpa voter."] # [doc = ""] # [doc = "No change should be signaled while any change is pending. Returns an error if a change"] # [doc = "is already pending."] pub struct ScheduleGrandpaChange { pub next_authorities : schedule_grandpa_change :: NextAuthorities , pub in_blocks : schedule_grandpa_change :: InBlocks , pub forced : schedule_grandpa_change :: Forced , } pub mod schedule_grandpa_change { use super :: runtime_types ; pub type NextAuthorities = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > ; pub type InBlocks = :: core :: primitive :: u32 ; pub type Forced = :: core :: option :: Option < :: core :: primitive :: u32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ScheduleGrandpaChange { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "schedule_grandpa_change" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enable or disable atomic alpha transfers for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Liquid Alpha."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub struct SudoSetToggleTransfer { pub netuid : sudo_set_toggle_transfer :: Netuid , pub toggle : sudo_set_toggle_transfer :: Toggle , } pub mod sudo_set_toggle_transfer { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Toggle = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetToggleTransfer { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_toggle_transfer" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the behaviour of the \"burn\" UID(s) for a given subnet."] # [doc = "If set to `Burn`, the miner emission sent to the burn UID(s) will be burned."] # [doc = "If set to `Recycle`, the miner emission sent to the burn UID(s) will be recycled."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `recycle_or_burn`: The desired behaviour of the \"burn\" UID(s) for the subnet."] # [doc = ""] pub struct SudoSetRecycleOrBurn { pub netuid : sudo_set_recycle_or_burn :: Netuid , pub recycle_or_burn : sudo_set_recycle_or_burn :: RecycleOrBurn , } pub mod sudo_set_recycle_or_burn { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type RecycleOrBurn = runtime_types :: pallet_subtensor :: pallet :: RecycleOrBurnEnum ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetRecycleOrBurn { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_recycle_or_burn" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Toggles the enablement of an EVM precompile."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `precompile_id` - The identifier of the EVM precompile to toggle."] # [doc = "* `enabled` - The new enablement state of the precompile."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoToggleEvmPrecompile { pub precompile_id : sudo_toggle_evm_precompile :: PrecompileId , pub enabled : sudo_toggle_evm_precompile :: Enabled , } pub mod sudo_toggle_evm_precompile { use super :: runtime_types ; pub type PrecompileId = runtime_types :: pallet_admin_utils :: pallet :: PrecompileEnum ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoToggleEvmPrecompile { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_toggle_evm_precompile" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `alpha` - The new moving alpha value for the SubnetMovingAlpha."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetSubnetMovingAlpha { pub alpha : sudo_set_subnet_moving_alpha :: Alpha , } pub mod sudo_set_subnet_moving_alpha { use super :: runtime_types ; pub type Alpha = runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetSubnetMovingAlpha { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_subnet_moving_alpha" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Change the SubnetOwnerHotkey for a given subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner."] # [doc = "* `netuid` - The unique identifier for the subnet."] # [doc = "* `hotkey` - The new hotkey for the subnet owner."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the subnet owner or root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetSubnetOwnerHotkey { pub netuid : sudo_set_subnet_owner_hotkey :: Netuid , pub hotkey : sudo_set_subnet_owner_hotkey :: Hotkey , } pub mod sudo_set_subnet_owner_hotkey { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetSubnetOwnerHotkey { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_subnet_owner_hotkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `ema_alpha_period` - Number of blocks for EMA price to halve"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetEmaPriceHalvingPeriod { pub netuid : sudo_set_ema_price_halving_period :: Netuid , pub ema_halving : sudo_set_ema_price_halving_period :: EmaHalving , } pub mod sudo_set_ema_price_halving_period { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type EmaHalving = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetEmaPriceHalvingPeriod { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_ema_price_halving_period" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `netuid` - The unique identifier for the subnet."] # [doc = "* `steepness` - The Steepness for the alpha sigmoid function. (range is 0-int16::MAX,"] # [doc = "negative values are reserved for future use)"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = "* `SubnetDoesNotExist` - If the specified subnet does not exist."] # [doc = "* `NegativeSigmoidSteepness` - If the steepness is negative and the caller is"] # [doc = "root."] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetAlphaSigmoidSteepness { pub netuid : sudo_set_alpha_sigmoid_steepness :: Netuid , pub steepness : sudo_set_alpha_sigmoid_steepness :: Steepness , } pub mod sudo_set_alpha_sigmoid_steepness { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Steepness = :: core :: primitive :: i16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetAlphaSigmoidSteepness { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_alpha_sigmoid_steepness" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enables or disables Yuma3 for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Yuma3."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub struct SudoSetYuma3Enabled { pub netuid : sudo_set_yuma3_enabled :: Netuid , pub enabled : sudo_set_yuma3_enabled :: Enabled , } pub mod sudo_set_yuma3_enabled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetYuma3Enabled { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_yuma3_enabled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enables or disables Bonds Reset for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Bonds Reset."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub struct SudoSetBondsResetEnabled { pub netuid : sudo_set_bonds_reset_enabled :: Netuid , pub enabled : sudo_set_bonds_reset_enabled :: Enabled , } pub mod sudo_set_bonds_reset_enabled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetBondsResetEnabled { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_bonds_reset_enabled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets or updates the hotkey account associated with the owner of a specific subnet."] # [doc = ""] # [doc = "This function allows either the root origin or the current subnet owner to set or update"] # [doc = "the hotkey for a given subnet. The subnet must already exist. To prevent abuse, the call is"] # [doc = "rate-limited to once per configured interval (default: one week) per subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The dispatch origin of the call. Must be either root or the current owner of the subnet."] # [doc = "- `netuid`: The unique identifier of the subnet whose owner hotkey is being set."] # [doc = "- `hotkey`: The new hotkey account to associate with the subnet owner."] # [doc = ""] # [doc = "# Returns"] # [doc = "- `DispatchResult`: Returns `Ok(())` if the hotkey was successfully set, or an appropriate error otherwise."] # [doc = ""] # [doc = "# Errors"] # [doc = "- `Error::SubnetNotExists`: If the specified subnet does not exist."] # [doc = "- `Error::TxRateLimitExceeded`: If the function is called more frequently than the allowed rate limit."] # [doc = ""] # [doc = "# Access Control"] # [doc = "Only callable by:"] # [doc = "- Root origin, or"] # [doc = "- The coldkey account that owns the subnet."] # [doc = ""] # [doc = "# Storage"] # [doc = "- Updates [`SubnetOwnerHotkey`] for the given `netuid`."] # [doc = "- Reads and updates [`LastRateLimitedBlock`] for rate-limiting."] # [doc = "- Reads [`DefaultSetSNOwnerHotkeyRateLimit`] to determine the interval between allowed updates."] # [doc = ""] # [doc = "# Rate Limiting"] # [doc = "This function is rate-limited to one call per subnet per interval (e.g., one week)."] pub struct SudoSetSnOwnerHotkey { pub netuid : sudo_set_sn_owner_hotkey :: Netuid , pub hotkey : sudo_set_sn_owner_hotkey :: Hotkey , } pub mod sudo_set_sn_owner_hotkey { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetSnOwnerHotkey { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_sn_owner_hotkey" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enables or disables subtoken trading for a given subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `netuid` - The unique identifier of the subnet."] # [doc = "* `subtoken_enabled` - A boolean indicating whether subtoken trading should be enabled or disabled."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub struct SudoSetSubtokenEnabled { pub netuid : sudo_set_subtoken_enabled :: Netuid , pub subtoken_enabled : sudo_set_subtoken_enabled :: SubtokenEnabled , } pub mod sudo_set_subtoken_enabled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type SubtokenEnabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetSubtokenEnabled { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_subtoken_enabled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the commit-reveal weights version for all subnets"] pub struct SudoSetCommitRevealVersion { pub version : sudo_set_commit_reveal_version :: Version , } pub mod sudo_set_commit_reveal_version { use super :: runtime_types ; pub type Version = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetCommitRevealVersion { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_commit_reveal_version" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the number of immune owner neurons"] pub struct SudoSetOwnerImmuneNeuronLimit { pub netuid : sudo_set_owner_immune_neuron_limit :: Netuid , pub immune_neurons : sudo_set_owner_immune_neuron_limit :: ImmuneNeurons , } pub mod sudo_set_owner_immune_neuron_limit { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type ImmuneNeurons = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetOwnerImmuneNeuronLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_owner_immune_neuron_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the childkey burn for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the childkey burn."] pub struct SudoSetCkBurn { pub burn : sudo_set_ck_burn :: Burn , } pub mod sudo_set_ck_burn { use super :: runtime_types ; pub type Burn = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetCkBurn { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_ck_burn" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the admin freeze window length (in blocks) at the end of a tempo."] # [doc = "Only callable by root."] pub struct SudoSetAdminFreezeWindow { pub window : sudo_set_admin_freeze_window :: Window , } pub mod sudo_set_admin_freeze_window { use super :: runtime_types ; pub type Window = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetAdminFreezeWindow { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_admin_freeze_window" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the owner hyperparameter rate limit in epochs (global multiplier)."] # [doc = "Only callable by root."] pub struct SudoSetOwnerHparamRateLimit { pub epochs : sudo_set_owner_hparam_rate_limit :: Epochs , } pub mod sudo_set_owner_hparam_rate_limit { use super :: runtime_types ; pub type Epochs = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetOwnerHparamRateLimit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_owner_hparam_rate_limit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the desired number of mechanisms in a subnet"] pub struct SudoSetMechanismCount { pub netuid : sudo_set_mechanism_count :: Netuid , pub mechanism_count : sudo_set_mechanism_count :: MechanismCount , } pub mod sudo_set_mechanism_count { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MechanismCount = :: core :: primitive :: u8 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMechanismCount { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_mechanism_count" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the emission split between mechanisms in a subnet"] pub struct SudoSetMechanismEmissionSplit { pub netuid : sudo_set_mechanism_emission_split :: Netuid , pub maybe_split : sudo_set_mechanism_emission_split :: MaybeSplit , } pub mod sudo_set_mechanism_emission_split { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaybeSplit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMechanismEmissionSplit { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_mechanism_emission_split" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Trims the maximum number of UIDs for a subnet."] # [doc = ""] # [doc = "The trimming is done by sorting the UIDs by emission descending and then trimming"] # [doc = "the lowest emitters while preserving temporally and owner immune UIDs. The UIDs are"] # [doc = "then compressed to the left and storage is migrated to the new compressed UIDs."] pub struct SudoTrimToMaxAllowedUids { pub netuid : sudo_trim_to_max_allowed_uids :: Netuid , pub max_n : sudo_trim_to_max_allowed_uids :: MaxN , } pub mod sudo_trim_to_max_allowed_uids { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MaxN = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoTrimToMaxAllowedUids { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_trim_to_max_allowed_uids" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The extrinsic sets the minimum allowed UIDs for a subnet."] # [doc = "It is only callable by the root account."] pub struct SudoSetMinAllowedUids { pub netuid : sudo_set_min_allowed_uids :: Netuid , pub min_allowed_uids : sudo_set_min_allowed_uids :: MinAllowedUids , } pub mod sudo_set_min_allowed_uids { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type MinAllowedUids = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinAllowedUids { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_min_allowed_uids" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets TAO flow cutoff value (A)"] pub struct SudoSetTaoFlowCutoff { pub flow_cutoff : sudo_set_tao_flow_cutoff :: FlowCutoff , } pub mod sudo_set_tao_flow_cutoff { use super :: runtime_types ; pub type FlowCutoff = runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTaoFlowCutoff { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_tao_flow_cutoff" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets TAO flow normalization exponent (p)"] pub struct SudoSetTaoFlowNormalizationExponent { pub exponent : sudo_set_tao_flow_normalization_exponent :: Exponent , } pub mod sudo_set_tao_flow_normalization_exponent { use super :: runtime_types ; pub type Exponent = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTaoFlowNormalizationExponent { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_tao_flow_normalization_exponent" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets TAO flow smoothing factor (alpha)"] pub struct SudoSetTaoFlowSmoothingFactor { pub smoothing_factor : sudo_set_tao_flow_smoothing_factor :: SmoothingFactor , } pub mod sudo_set_tao_flow_smoothing_factor { use super :: runtime_types ; pub type SmoothingFactor = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetTaoFlowSmoothingFactor { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_tao_flow_smoothing_factor" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Sets the minimum number of non-immortal & non-immune UIDs that must remain in a subnet"] pub struct SudoSetMinNonImmuneUids { pub netuid : sudo_set_min_non_immune_uids :: Netuid , pub min : sudo_set_min_non_immune_uids :: Min , } pub mod sudo_set_min_non_immune_uids { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Min = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SudoSetMinNonImmuneUids { const PALLET : & 'static str = "AdminUtils" ; const CALL : & 'static str = "sudo_set_min_non_immune_uids" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "The extrinsic sets the new authorities for Aura consensus."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Aura pallet to change the authorities."] pub fn swap_authorities (& self , new_authorities : types :: swap_authorities :: NewAuthorities ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SwapAuthorities > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "swap_authorities" , types :: SwapAuthorities { new_authorities , } , [209u8 , 171u8 , 135u8 , 198u8 , 103u8 , 209u8 , 217u8 , 32u8 , 125u8 , 109u8 , 206u8 , 190u8 , 252u8 , 34u8 , 107u8 , 31u8 , 127u8 , 174u8 , 86u8 , 139u8 , 78u8 , 100u8 , 198u8 , 247u8 , 176u8 , 163u8 , 14u8 , 21u8 , 222u8 , 21u8 , 184u8 , 145u8 ,]) } # [doc = "The extrinsic sets the default take for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the default take."] pub fn sudo_set_default_take (& self , default_take : types :: sudo_set_default_take :: DefaultTake ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetDefaultTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_default_take" , types :: SudoSetDefaultTake { default_take , } , [20u8 , 46u8 , 121u8 , 192u8 , 232u8 , 72u8 , 1u8 , 150u8 , 114u8 , 185u8 , 165u8 , 156u8 , 92u8 , 214u8 , 142u8 , 98u8 , 119u8 , 133u8 , 26u8 , 226u8 , 76u8 , 209u8 , 95u8 , 186u8 , 147u8 , 191u8 , 164u8 , 248u8 , 6u8 , 65u8 , 64u8 , 191u8 ,]) } # [doc = "The extrinsic sets the transaction rate limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the transaction rate limit."] pub fn sudo_set_tx_rate_limit (& self , tx_rate_limit : types :: sudo_set_tx_rate_limit :: TxRateLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTxRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_tx_rate_limit" , types :: SudoSetTxRateLimit { tx_rate_limit , } , [199u8 , 37u8 , 33u8 , 84u8 , 249u8 , 149u8 , 136u8 , 131u8 , 137u8 , 100u8 , 230u8 , 52u8 , 9u8 , 112u8 , 245u8 , 250u8 , 51u8 , 181u8 , 76u8 , 192u8 , 150u8 , 249u8 , 128u8 , 232u8 , 52u8 , 41u8 , 177u8 , 114u8 , 8u8 , 44u8 , 255u8 , 119u8 ,]) } # [doc = "The extrinsic sets the serving rate limit for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the serving rate limit."] pub fn sudo_set_serving_rate_limit (& self , netuid : types :: sudo_set_serving_rate_limit :: Netuid , serving_rate_limit : types :: sudo_set_serving_rate_limit :: ServingRateLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetServingRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_serving_rate_limit" , types :: SudoSetServingRateLimit { netuid , serving_rate_limit , } , [29u8 , 43u8 , 79u8 , 187u8 , 65u8 , 190u8 , 80u8 , 41u8 , 51u8 , 255u8 , 205u8 , 47u8 , 189u8 , 13u8 , 45u8 , 255u8 , 79u8 , 95u8 , 48u8 , 153u8 , 218u8 , 18u8 , 241u8 , 248u8 , 37u8 , 94u8 , 29u8 , 229u8 , 130u8 , 34u8 , 253u8 , 125u8 ,]) } # [doc = "The extrinsic sets the minimum difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum difficulty."] pub fn sudo_set_min_difficulty (& self , netuid : types :: sudo_set_min_difficulty :: Netuid , min_difficulty : types :: sudo_set_min_difficulty :: MinDifficulty ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinDifficulty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_min_difficulty" , types :: SudoSetMinDifficulty { netuid , min_difficulty , } , [36u8 , 75u8 , 246u8 , 131u8 , 174u8 , 93u8 , 25u8 , 154u8 , 144u8 , 125u8 , 6u8 , 202u8 , 103u8 , 77u8 , 88u8 , 189u8 , 148u8 , 125u8 , 184u8 , 103u8 , 96u8 , 147u8 , 96u8 , 203u8 , 109u8 , 122u8 , 21u8 , 164u8 , 46u8 , 51u8 , 234u8 , 3u8 ,]) } # [doc = "The extrinsic sets the maximum difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum difficulty."] pub fn sudo_set_max_difficulty (& self , netuid : types :: sudo_set_max_difficulty :: Netuid , max_difficulty : types :: sudo_set_max_difficulty :: MaxDifficulty ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMaxDifficulty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_max_difficulty" , types :: SudoSetMaxDifficulty { netuid , max_difficulty , } , [247u8 , 167u8 , 239u8 , 82u8 , 41u8 , 50u8 , 244u8 , 3u8 , 94u8 , 66u8 , 187u8 , 44u8 , 6u8 , 115u8 , 161u8 , 197u8 , 185u8 , 146u8 , 196u8 , 175u8 , 232u8 , 42u8 , 231u8 , 226u8 , 9u8 , 40u8 , 115u8 , 35u8 , 40u8 , 59u8 , 227u8 , 159u8 ,]) } # [doc = "The extrinsic sets the weights version key for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights version key."] pub fn sudo_set_weights_version_key (& self , netuid : types :: sudo_set_weights_version_key :: Netuid , weights_version_key : types :: sudo_set_weights_version_key :: WeightsVersionKey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetWeightsVersionKey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_weights_version_key" , types :: SudoSetWeightsVersionKey { netuid , weights_version_key , } , [111u8 , 223u8 , 231u8 , 18u8 , 142u8 , 144u8 , 186u8 , 87u8 , 183u8 , 92u8 , 12u8 , 151u8 , 204u8 , 11u8 , 53u8 , 135u8 , 9u8 , 167u8 , 135u8 , 172u8 , 232u8 , 136u8 , 103u8 , 248u8 , 178u8 , 207u8 , 40u8 , 169u8 , 191u8 , 22u8 , 177u8 , 193u8 ,]) } # [doc = "The extrinsic sets the weights set rate limit for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights set rate limit."] pub fn sudo_set_weights_set_rate_limit (& self , netuid : types :: sudo_set_weights_set_rate_limit :: Netuid , weights_set_rate_limit : types :: sudo_set_weights_set_rate_limit :: WeightsSetRateLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetWeightsSetRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_weights_set_rate_limit" , types :: SudoSetWeightsSetRateLimit { netuid , weights_set_rate_limit , } , [208u8 , 189u8 , 207u8 , 207u8 , 173u8 , 44u8 , 136u8 , 125u8 , 108u8 , 147u8 , 240u8 , 45u8 , 159u8 , 129u8 , 162u8 , 87u8 , 204u8 , 248u8 , 79u8 , 14u8 , 34u8 , 193u8 , 72u8 , 119u8 , 154u8 , 32u8 , 63u8 , 123u8 , 48u8 , 10u8 , 107u8 , 16u8 ,]) } # [doc = "The extrinsic sets the adjustment interval for a subnet."] # [doc = "It is only callable by the root account, not changeable by the subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the adjustment interval."] pub fn sudo_set_adjustment_interval (& self , netuid : types :: sudo_set_adjustment_interval :: Netuid , adjustment_interval : types :: sudo_set_adjustment_interval :: AdjustmentInterval ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetAdjustmentInterval > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_adjustment_interval" , types :: SudoSetAdjustmentInterval { netuid , adjustment_interval , } , [167u8 , 14u8 , 61u8 , 114u8 , 173u8 , 242u8 , 209u8 , 221u8 , 233u8 , 144u8 , 106u8 , 175u8 , 105u8 , 46u8 , 242u8 , 178u8 , 48u8 , 55u8 , 136u8 , 173u8 , 161u8 , 115u8 , 6u8 , 87u8 , 124u8 , 213u8 , 101u8 , 112u8 , 233u8 , 120u8 , 130u8 , 47u8 ,]) } # [doc = "The extrinsic sets the adjustment alpha for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the adjustment alpha."] pub fn sudo_set_adjustment_alpha (& self , netuid : types :: sudo_set_adjustment_alpha :: Netuid , adjustment_alpha : types :: sudo_set_adjustment_alpha :: AdjustmentAlpha ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetAdjustmentAlpha > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_adjustment_alpha" , types :: SudoSetAdjustmentAlpha { netuid , adjustment_alpha , } , [84u8 , 151u8 , 85u8 , 94u8 , 49u8 , 2u8 , 238u8 , 226u8 , 27u8 , 139u8 , 122u8 , 25u8 , 175u8 , 162u8 , 163u8 , 251u8 , 17u8 , 50u8 , 117u8 , 85u8 , 201u8 , 174u8 , 235u8 , 135u8 , 174u8 , 106u8 , 239u8 , 209u8 , 120u8 , 114u8 , 217u8 , 214u8 ,]) } # [doc = "The extrinsic sets the immunity period for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the immunity period."] pub fn sudo_set_immunity_period (& self , netuid : types :: sudo_set_immunity_period :: Netuid , immunity_period : types :: sudo_set_immunity_period :: ImmunityPeriod ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetImmunityPeriod > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_immunity_period" , types :: SudoSetImmunityPeriod { netuid , immunity_period , } , [128u8 , 74u8 , 247u8 , 44u8 , 254u8 , 25u8 , 45u8 , 123u8 , 171u8 , 72u8 , 81u8 , 82u8 , 174u8 , 105u8 , 181u8 , 91u8 , 175u8 , 51u8 , 107u8 , 222u8 , 11u8 , 25u8 , 9u8 , 226u8 , 4u8 , 32u8 , 49u8 , 63u8 , 59u8 , 32u8 , 9u8 , 189u8 ,]) } # [doc = "The extrinsic sets the minimum allowed weights for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum allowed weights."] pub fn sudo_set_min_allowed_weights (& self , netuid : types :: sudo_set_min_allowed_weights :: Netuid , min_allowed_weights : types :: sudo_set_min_allowed_weights :: MinAllowedWeights ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinAllowedWeights > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_min_allowed_weights" , types :: SudoSetMinAllowedWeights { netuid , min_allowed_weights , } , [27u8 , 73u8 , 15u8 , 199u8 , 177u8 , 128u8 , 254u8 , 102u8 , 28u8 , 132u8 , 47u8 , 244u8 , 20u8 , 57u8 , 7u8 , 7u8 , 209u8 , 19u8 , 130u8 , 178u8 , 40u8 , 130u8 , 65u8 , 5u8 , 107u8 , 78u8 , 216u8 , 54u8 , 163u8 , 49u8 , 35u8 , 78u8 ,]) } # [doc = "The extrinsic sets the maximum allowed UIDs for a subnet."] # [doc = "It is only callable by the root account and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum allowed UIDs for a subnet."] pub fn sudo_set_max_allowed_uids (& self , netuid : types :: sudo_set_max_allowed_uids :: Netuid , max_allowed_uids : types :: sudo_set_max_allowed_uids :: MaxAllowedUids ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMaxAllowedUids > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_max_allowed_uids" , types :: SudoSetMaxAllowedUids { netuid , max_allowed_uids , } , [231u8 , 110u8 , 75u8 , 66u8 , 160u8 , 211u8 , 212u8 , 120u8 , 24u8 , 204u8 , 147u8 , 44u8 , 230u8 , 135u8 , 143u8 , 231u8 , 142u8 , 22u8 , 220u8 , 107u8 , 12u8 , 224u8 , 206u8 , 117u8 , 203u8 , 36u8 , 233u8 , 159u8 , 60u8 , 126u8 , 0u8 , 148u8 ,]) } # [doc = "The extrinsic sets the kappa for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the kappa."] pub fn sudo_set_kappa (& self , netuid : types :: sudo_set_kappa :: Netuid , kappa : types :: sudo_set_kappa :: Kappa ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetKappa > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_kappa" , types :: SudoSetKappa { netuid , kappa , } , [38u8 , 246u8 , 140u8 , 183u8 , 207u8 , 121u8 , 74u8 , 45u8 , 74u8 , 208u8 , 89u8 , 136u8 , 65u8 , 164u8 , 132u8 , 211u8 , 225u8 , 188u8 , 219u8 , 3u8 , 68u8 , 68u8 , 208u8 , 224u8 , 135u8 , 105u8 , 39u8 , 181u8 , 84u8 , 78u8 , 255u8 , 187u8 ,]) } # [doc = "The extrinsic sets the rho for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the rho."] pub fn sudo_set_rho (& self , netuid : types :: sudo_set_rho :: Netuid , rho : types :: sudo_set_rho :: Rho ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetRho > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_rho" , types :: SudoSetRho { netuid , rho , } , [247u8 , 201u8 , 129u8 , 7u8 , 140u8 , 8u8 , 44u8 , 187u8 , 145u8 , 159u8 , 173u8 , 106u8 , 243u8 , 66u8 , 226u8 , 229u8 , 119u8 , 59u8 , 102u8 , 130u8 , 226u8 , 228u8 , 76u8 , 160u8 , 0u8 , 118u8 , 217u8 , 103u8 , 36u8 , 73u8 , 72u8 , 25u8 ,]) } # [doc = "The extrinsic sets the activity cutoff for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the activity cutoff."] pub fn sudo_set_activity_cutoff (& self , netuid : types :: sudo_set_activity_cutoff :: Netuid , activity_cutoff : types :: sudo_set_activity_cutoff :: ActivityCutoff ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetActivityCutoff > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_activity_cutoff" , types :: SudoSetActivityCutoff { netuid , activity_cutoff , } , [104u8 , 183u8 , 86u8 , 79u8 , 165u8 , 85u8 , 250u8 , 180u8 , 34u8 , 235u8 , 64u8 , 160u8 , 192u8 , 143u8 , 218u8 , 84u8 , 65u8 , 8u8 , 102u8 , 183u8 , 250u8 , 1u8 , 171u8 , 190u8 , 131u8 , 210u8 , 136u8 , 157u8 , 115u8 , 144u8 , 41u8 , 252u8 ,]) } # [doc = "The extrinsic sets the network registration allowed for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the network registration allowed."] pub fn sudo_set_network_registration_allowed (& self , netuid : types :: sudo_set_network_registration_allowed :: Netuid , registration_allowed : types :: sudo_set_network_registration_allowed :: RegistrationAllowed ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNetworkRegistrationAllowed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_network_registration_allowed" , types :: SudoSetNetworkRegistrationAllowed { netuid , registration_allowed , } , [21u8 , 19u8 , 90u8 , 214u8 , 44u8 , 12u8 , 34u8 , 154u8 , 195u8 , 31u8 , 158u8 , 78u8 , 86u8 , 6u8 , 195u8 , 72u8 , 203u8 , 151u8 , 35u8 , 137u8 , 211u8 , 134u8 , 36u8 , 19u8 , 54u8 , 29u8 , 198u8 , 63u8 , 244u8 , 143u8 , 23u8 , 49u8 ,]) } # [doc = "The extrinsic sets the network PoW registration allowed for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the network PoW registration allowed."] pub fn sudo_set_network_pow_registration_allowed (& self , netuid : types :: sudo_set_network_pow_registration_allowed :: Netuid , registration_allowed : types :: sudo_set_network_pow_registration_allowed :: RegistrationAllowed ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNetworkPowRegistrationAllowed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_network_pow_registration_allowed" , types :: SudoSetNetworkPowRegistrationAllowed { netuid , registration_allowed , } , [6u8 , 22u8 , 194u8 , 96u8 , 105u8 , 253u8 , 75u8 , 119u8 , 84u8 , 113u8 , 20u8 , 156u8 , 206u8 , 1u8 , 185u8 , 181u8 , 50u8 , 177u8 , 144u8 , 72u8 , 88u8 , 179u8 , 139u8 , 82u8 , 127u8 , 146u8 , 37u8 , 209u8 , 85u8 , 45u8 , 6u8 , 110u8 ,]) } # [doc = "The extrinsic sets the target registrations per interval for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the target registrations per interval."] pub fn sudo_set_target_registrations_per_interval (& self , netuid : types :: sudo_set_target_registrations_per_interval :: Netuid , target_registrations_per_interval : types :: sudo_set_target_registrations_per_interval :: TargetRegistrationsPerInterval ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTargetRegistrationsPerInterval > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_target_registrations_per_interval" , types :: SudoSetTargetRegistrationsPerInterval { netuid , target_registrations_per_interval , } , [10u8 , 181u8 , 63u8 , 81u8 , 249u8 , 102u8 , 123u8 , 158u8 , 153u8 , 17u8 , 103u8 , 169u8 , 67u8 , 218u8 , 209u8 , 100u8 , 35u8 , 128u8 , 199u8 , 192u8 , 33u8 , 132u8 , 246u8 , 45u8 , 26u8 , 93u8 , 217u8 , 44u8 , 229u8 , 99u8 , 115u8 , 163u8 ,]) } # [doc = "The extrinsic sets the minimum burn for a subnet."] # [doc = "It is only callable by root and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum burn."] pub fn sudo_set_min_burn (& self , netuid : types :: sudo_set_min_burn :: Netuid , min_burn : types :: sudo_set_min_burn :: MinBurn ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinBurn > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_min_burn" , types :: SudoSetMinBurn { netuid , min_burn , } , [39u8 , 205u8 , 135u8 , 231u8 , 239u8 , 14u8 , 206u8 , 154u8 , 11u8 , 23u8 , 136u8 , 38u8 , 231u8 , 204u8 , 93u8 , 14u8 , 135u8 , 177u8 , 230u8 , 85u8 , 229u8 , 132u8 , 47u8 , 161u8 , 2u8 , 44u8 , 234u8 , 67u8 , 7u8 , 186u8 , 26u8 , 194u8 ,]) } # [doc = "The extrinsic sets the maximum burn for a subnet."] # [doc = "It is only callable by root and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum burn."] pub fn sudo_set_max_burn (& self , netuid : types :: sudo_set_max_burn :: Netuid , max_burn : types :: sudo_set_max_burn :: MaxBurn ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMaxBurn > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_max_burn" , types :: SudoSetMaxBurn { netuid , max_burn , } , [148u8 , 250u8 , 58u8 , 11u8 , 129u8 , 254u8 , 179u8 , 252u8 , 145u8 , 7u8 , 188u8 , 191u8 , 240u8 , 62u8 , 82u8 , 187u8 , 208u8 , 165u8 , 17u8 , 60u8 , 78u8 , 44u8 , 92u8 , 116u8 , 182u8 , 115u8 , 6u8 , 248u8 , 156u8 , 12u8 , 36u8 , 233u8 ,]) } # [doc = "The extrinsic sets the difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the difficulty."] pub fn sudo_set_difficulty (& self , netuid : types :: sudo_set_difficulty :: Netuid , difficulty : types :: sudo_set_difficulty :: Difficulty ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetDifficulty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_difficulty" , types :: SudoSetDifficulty { netuid , difficulty , } , [170u8 , 244u8 , 171u8 , 250u8 , 20u8 , 230u8 , 59u8 , 184u8 , 1u8 , 145u8 , 114u8 , 127u8 , 244u8 , 54u8 , 53u8 , 208u8 , 128u8 , 168u8 , 168u8 , 73u8 , 144u8 , 5u8 , 125u8 , 128u8 , 165u8 , 245u8 , 77u8 , 51u8 , 132u8 , 72u8 , 177u8 , 67u8 ,]) } # [doc = "The extrinsic sets the maximum allowed validators for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum allowed validators."] pub fn sudo_set_max_allowed_validators (& self , netuid : types :: sudo_set_max_allowed_validators :: Netuid , max_allowed_validators : types :: sudo_set_max_allowed_validators :: MaxAllowedValidators ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMaxAllowedValidators > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_max_allowed_validators" , types :: SudoSetMaxAllowedValidators { netuid , max_allowed_validators , } , [168u8 , 63u8 , 121u8 , 5u8 , 59u8 , 103u8 , 224u8 , 178u8 , 73u8 , 5u8 , 41u8 , 18u8 , 91u8 , 161u8 , 167u8 , 98u8 , 197u8 , 94u8 , 115u8 , 232u8 , 124u8 , 40u8 , 149u8 , 130u8 , 219u8 , 133u8 , 163u8 , 90u8 , 127u8 , 36u8 , 116u8 , 56u8 ,]) } # [doc = "The extrinsic sets the bonds moving average for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the bonds moving average."] pub fn sudo_set_bonds_moving_average (& self , netuid : types :: sudo_set_bonds_moving_average :: Netuid , bonds_moving_average : types :: sudo_set_bonds_moving_average :: BondsMovingAverage ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetBondsMovingAverage > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_bonds_moving_average" , types :: SudoSetBondsMovingAverage { netuid , bonds_moving_average , } , [197u8 , 228u8 , 187u8 , 217u8 , 129u8 , 241u8 , 28u8 , 86u8 , 3u8 , 118u8 , 108u8 , 85u8 , 27u8 , 210u8 , 96u8 , 62u8 , 112u8 , 36u8 , 120u8 , 18u8 , 5u8 , 21u8 , 177u8 , 202u8 , 237u8 , 156u8 , 15u8 , 239u8 , 135u8 , 128u8 , 123u8 , 80u8 ,]) } # [doc = "The extrinsic sets the bonds penalty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the bonds penalty."] pub fn sudo_set_bonds_penalty (& self , netuid : types :: sudo_set_bonds_penalty :: Netuid , bonds_penalty : types :: sudo_set_bonds_penalty :: BondsPenalty ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetBondsPenalty > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_bonds_penalty" , types :: SudoSetBondsPenalty { netuid , bonds_penalty , } , [186u8 , 56u8 , 76u8 , 34u8 , 122u8 , 0u8 , 89u8 , 231u8 , 122u8 , 154u8 , 243u8 , 20u8 , 225u8 , 139u8 , 174u8 , 222u8 , 130u8 , 254u8 , 139u8 , 119u8 , 148u8 , 233u8 , 142u8 , 246u8 , 106u8 , 155u8 , 148u8 , 186u8 , 11u8 , 219u8 , 248u8 , 2u8 ,]) } # [doc = "The extrinsic sets the maximum registrations per block for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum registrations per block."] pub fn sudo_set_max_registrations_per_block (& self , netuid : types :: sudo_set_max_registrations_per_block :: Netuid , max_registrations_per_block : types :: sudo_set_max_registrations_per_block :: MaxRegistrationsPerBlock ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMaxRegistrationsPerBlock > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_max_registrations_per_block" , types :: SudoSetMaxRegistrationsPerBlock { netuid , max_registrations_per_block , } , [27u8 , 218u8 , 137u8 , 67u8 , 16u8 , 49u8 , 10u8 , 209u8 , 94u8 , 73u8 , 20u8 , 154u8 , 251u8 , 241u8 , 75u8 , 157u8 , 29u8 , 56u8 , 47u8 , 104u8 , 105u8 , 13u8 , 190u8 , 83u8 , 197u8 , 206u8 , 81u8 , 205u8 , 149u8 , 157u8 , 68u8 , 214u8 ,]) } # [doc = "The extrinsic sets the subnet owner cut for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the subnet owner cut."] pub fn sudo_set_subnet_owner_cut (& self , subnet_owner_cut : types :: sudo_set_subnet_owner_cut :: SubnetOwnerCut ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetSubnetOwnerCut > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_subnet_owner_cut" , types :: SudoSetSubnetOwnerCut { subnet_owner_cut , } , [132u8 , 55u8 , 182u8 , 19u8 , 106u8 , 89u8 , 17u8 , 245u8 , 176u8 , 85u8 , 108u8 , 251u8 , 178u8 , 248u8 , 58u8 , 149u8 , 239u8 , 181u8 , 123u8 , 10u8 , 133u8 , 163u8 , 162u8 , 41u8 , 111u8 , 136u8 , 175u8 , 214u8 , 224u8 , 246u8 , 49u8 , 182u8 ,]) } # [doc = "The extrinsic sets the network rate limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the network rate limit."] pub fn sudo_set_network_rate_limit (& self , rate_limit : types :: sudo_set_network_rate_limit :: RateLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNetworkRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_network_rate_limit" , types :: SudoSetNetworkRateLimit { rate_limit , } , [80u8 , 205u8 , 15u8 , 103u8 , 120u8 , 112u8 , 59u8 , 176u8 , 98u8 , 107u8 , 133u8 , 117u8 , 120u8 , 30u8 , 177u8 , 32u8 , 30u8 , 34u8 , 165u8 , 160u8 , 26u8 , 54u8 , 16u8 , 16u8 , 163u8 , 0u8 , 2u8 , 162u8 , 101u8 , 243u8 , 139u8 , 229u8 ,]) } # [doc = "The extrinsic sets the tempo for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the tempo."] pub fn sudo_set_tempo (& self , netuid : types :: sudo_set_tempo :: Netuid , tempo : types :: sudo_set_tempo :: Tempo ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTempo > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_tempo" , types :: SudoSetTempo { netuid , tempo , } , [247u8 , 138u8 , 12u8 , 190u8 , 212u8 , 116u8 , 202u8 , 23u8 , 211u8 , 97u8 , 119u8 , 181u8 , 146u8 , 75u8 , 46u8 , 220u8 , 22u8 , 204u8 , 141u8 , 52u8 , 88u8 , 214u8 , 135u8 , 182u8 , 164u8 , 193u8 , 45u8 , 15u8 , 241u8 , 66u8 , 54u8 , 228u8 ,]) } # [doc = "The extrinsic sets the total issuance for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the issuance for the network."] pub fn sudo_set_total_issuance (& self , total_issuance : types :: sudo_set_total_issuance :: TotalIssuance ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTotalIssuance > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_total_issuance" , types :: SudoSetTotalIssuance { total_issuance , } , [162u8 , 217u8 , 167u8 , 184u8 , 244u8 , 145u8 , 154u8 , 111u8 , 124u8 , 51u8 , 153u8 , 120u8 , 116u8 , 138u8 , 202u8 , 230u8 , 217u8 , 194u8 , 159u8 , 73u8 , 219u8 , 147u8 , 240u8 , 85u8 , 20u8 , 72u8 , 48u8 , 190u8 , 120u8 , 4u8 , 132u8 , 189u8 ,]) } # [doc = "The extrinsic sets the immunity period for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the immunity period for the network."] pub fn sudo_set_network_immunity_period (& self , immunity_period : types :: sudo_set_network_immunity_period :: ImmunityPeriod ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNetworkImmunityPeriod > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_network_immunity_period" , types :: SudoSetNetworkImmunityPeriod { immunity_period , } , [197u8 , 175u8 , 164u8 , 18u8 , 236u8 , 31u8 , 34u8 , 133u8 , 149u8 , 203u8 , 9u8 , 43u8 , 172u8 , 248u8 , 165u8 , 68u8 , 77u8 , 243u8 , 60u8 , 88u8 , 124u8 , 67u8 , 165u8 , 231u8 , 47u8 , 26u8 , 92u8 , 32u8 , 242u8 , 13u8 , 150u8 , 230u8 ,]) } # [doc = "The extrinsic sets the min lock cost for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the min lock cost for the network."] pub fn sudo_set_network_min_lock_cost (& self , lock_cost : types :: sudo_set_network_min_lock_cost :: LockCost ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNetworkMinLockCost > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_network_min_lock_cost" , types :: SudoSetNetworkMinLockCost { lock_cost , } , [189u8 , 57u8 , 157u8 , 251u8 , 196u8 , 232u8 , 67u8 , 90u8 , 55u8 , 145u8 , 212u8 , 174u8 , 101u8 , 242u8 , 233u8 , 222u8 , 64u8 , 194u8 , 61u8 , 159u8 , 110u8 , 244u8 , 170u8 , 227u8 , 26u8 , 183u8 , 126u8 , 206u8 , 149u8 , 47u8 , 103u8 , 54u8 ,]) } # [doc = "The extrinsic sets the subnet limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the subnet limit."] pub fn sudo_set_subnet_limit (& self , max_subnets : types :: sudo_set_subnet_limit :: MaxSubnets ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetSubnetLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_subnet_limit" , types :: SudoSetSubnetLimit { max_subnets , } , [25u8 , 217u8 , 173u8 , 189u8 , 91u8 , 60u8 , 174u8 , 105u8 , 65u8 , 140u8 , 218u8 , 197u8 , 188u8 , 203u8 , 41u8 , 4u8 , 140u8 , 16u8 , 9u8 , 20u8 , 199u8 , 17u8 , 45u8 , 38u8 , 179u8 , 254u8 , 105u8 , 187u8 , 76u8 , 139u8 , 50u8 , 166u8 ,]) } # [doc = "The extrinsic sets the lock reduction interval for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the lock reduction interval."] pub fn sudo_set_lock_reduction_interval (& self , interval : types :: sudo_set_lock_reduction_interval :: Interval ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetLockReductionInterval > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_lock_reduction_interval" , types :: SudoSetLockReductionInterval { interval , } , [221u8 , 171u8 , 225u8 , 229u8 , 131u8 , 163u8 , 89u8 , 4u8 , 118u8 , 105u8 , 118u8 , 208u8 , 70u8 , 30u8 , 56u8 , 43u8 , 254u8 , 99u8 , 219u8 , 252u8 , 185u8 , 104u8 , 248u8 , 199u8 , 101u8 , 97u8 , 65u8 , 203u8 , 25u8 , 137u8 , 34u8 , 11u8 ,]) } # [doc = "The extrinsic sets the recycled RAO for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the recycled RAO."] pub fn sudo_set_rao_recycled (& self , netuid : types :: sudo_set_rao_recycled :: Netuid , rao_recycled : types :: sudo_set_rao_recycled :: RaoRecycled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetRaoRecycled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_rao_recycled" , types :: SudoSetRaoRecycled { netuid , rao_recycled , } , [207u8 , 226u8 , 150u8 , 214u8 , 192u8 , 206u8 , 215u8 , 101u8 , 222u8 , 190u8 , 18u8 , 204u8 , 21u8 , 137u8 , 102u8 , 155u8 , 247u8 , 19u8 , 46u8 , 142u8 , 113u8 , 226u8 , 102u8 , 110u8 , 186u8 , 35u8 , 5u8 , 18u8 , 182u8 , 144u8 , 7u8 , 198u8 ,]) } # [doc = "The extrinsic sets the weights min stake."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights min stake."] pub fn sudo_set_stake_threshold (& self , min_stake : types :: sudo_set_stake_threshold :: MinStake ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetStakeThreshold > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_stake_threshold" , types :: SudoSetStakeThreshold { min_stake , } , [69u8 , 119u8 , 240u8 , 23u8 , 87u8 , 113u8 , 130u8 , 163u8 , 253u8 , 94u8 , 112u8 , 191u8 , 36u8 , 245u8 , 172u8 , 215u8 , 26u8 , 119u8 , 71u8 , 24u8 , 70u8 , 84u8 , 173u8 , 107u8 , 245u8 , 251u8 , 69u8 , 130u8 , 200u8 , 218u8 , 135u8 , 248u8 ,]) } # [doc = "The extrinsic sets the minimum stake required for nominators."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum stake required for nominators."] pub fn sudo_set_nominator_min_required_stake (& self , min_stake : types :: sudo_set_nominator_min_required_stake :: MinStake ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetNominatorMinRequiredStake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_nominator_min_required_stake" , types :: SudoSetNominatorMinRequiredStake { min_stake , } , [52u8 , 138u8 , 94u8 , 243u8 , 75u8 , 152u8 , 41u8 , 87u8 , 240u8 , 38u8 , 95u8 , 95u8 , 195u8 , 26u8 , 194u8 , 2u8 , 61u8 , 66u8 , 215u8 , 188u8 , 102u8 , 124u8 , 81u8 , 138u8 , 108u8 , 241u8 , 152u8 , 54u8 , 148u8 , 204u8 , 33u8 , 193u8 ,]) } # [doc = "The extrinsic sets the rate limit for delegate take transactions."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the rate limit for delegate take transactions."] pub fn sudo_set_tx_delegate_take_rate_limit (& self , tx_rate_limit : types :: sudo_set_tx_delegate_take_rate_limit :: TxRateLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTxDelegateTakeRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_tx_delegate_take_rate_limit" , types :: SudoSetTxDelegateTakeRateLimit { tx_rate_limit , } , [125u8 , 86u8 , 21u8 , 0u8 , 119u8 , 226u8 , 173u8 , 244u8 , 139u8 , 192u8 , 238u8 , 238u8 , 36u8 , 45u8 , 63u8 , 40u8 , 222u8 , 209u8 , 96u8 , 74u8 , 155u8 , 180u8 , 128u8 , 160u8 , 154u8 , 147u8 , 119u8 , 178u8 , 133u8 , 65u8 , 6u8 , 251u8 ,]) } # [doc = "The extrinsic sets the minimum delegate take."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum delegate take."] pub fn sudo_set_min_delegate_take (& self , take : types :: sudo_set_min_delegate_take :: Take ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinDelegateTake > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_min_delegate_take" , types :: SudoSetMinDelegateTake { take , } , [32u8 , 246u8 , 17u8 , 76u8 , 122u8 , 253u8 , 253u8 , 35u8 , 170u8 , 237u8 , 51u8 , 106u8 , 51u8 , 184u8 , 137u8 , 227u8 , 101u8 , 227u8 , 224u8 , 112u8 , 28u8 , 60u8 , 62u8 , 165u8 , 14u8 , 209u8 , 74u8 , 157u8 , 52u8 , 166u8 , 52u8 , 238u8 ,]) } # [doc = "The extrinsic enabled/disables commit/reaveal for a given subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the value."] pub fn sudo_set_commit_reveal_weights_enabled (& self , netuid : types :: sudo_set_commit_reveal_weights_enabled :: Netuid , enabled : types :: sudo_set_commit_reveal_weights_enabled :: Enabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetCommitRevealWeightsEnabled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_commit_reveal_weights_enabled" , types :: SudoSetCommitRevealWeightsEnabled { netuid , enabled , } , [100u8 , 156u8 , 214u8 , 108u8 , 188u8 , 232u8 , 181u8 , 31u8 , 116u8 , 58u8 , 182u8 , 165u8 , 116u8 , 253u8 , 112u8 , 89u8 , 50u8 , 80u8 , 234u8 , 230u8 , 194u8 , 38u8 , 191u8 , 56u8 , 122u8 , 183u8 , 196u8 , 246u8 , 197u8 , 234u8 , 157u8 , 58u8 ,]) } # [doc = "Enables or disables Liquid Alpha for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Liquid Alpha."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub fn sudo_set_liquid_alpha_enabled (& self , netuid : types :: sudo_set_liquid_alpha_enabled :: Netuid , enabled : types :: sudo_set_liquid_alpha_enabled :: Enabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetLiquidAlphaEnabled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_liquid_alpha_enabled" , types :: SudoSetLiquidAlphaEnabled { netuid , enabled , } , [242u8 , 8u8 , 226u8 , 26u8 , 57u8 , 134u8 , 135u8 , 70u8 , 116u8 , 96u8 , 123u8 , 109u8 , 177u8 , 0u8 , 154u8 , 52u8 , 66u8 , 33u8 , 239u8 , 8u8 , 70u8 , 30u8 , 183u8 , 55u8 , 193u8 , 89u8 , 44u8 , 193u8 , 149u8 , 225u8 , 17u8 , 58u8 ,]) } # [doc = "Sets values for liquid alpha"] pub fn sudo_set_alpha_values (& self , netuid : types :: sudo_set_alpha_values :: Netuid , alpha_low : types :: sudo_set_alpha_values :: AlphaLow , alpha_high : types :: sudo_set_alpha_values :: AlphaHigh ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetAlphaValues > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_alpha_values" , types :: SudoSetAlphaValues { netuid , alpha_low , alpha_high , } , [80u8 , 38u8 , 69u8 , 27u8 , 24u8 , 45u8 , 140u8 , 4u8 , 25u8 , 106u8 , 202u8 , 185u8 , 137u8 , 142u8 , 91u8 , 102u8 , 173u8 , 48u8 , 168u8 , 66u8 , 51u8 , 99u8 , 104u8 , 192u8 , 56u8 , 11u8 , 94u8 , 60u8 , 72u8 , 58u8 , 132u8 , 66u8 ,]) } # [doc = "Sets the duration of the coldkey swap schedule."] # [doc = ""] # [doc = "This extrinsic allows the root account to set the duration for the coldkey swap schedule."] # [doc = "The coldkey swap schedule determines how long it takes for a coldkey swap operation to complete."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `duration` - The new duration for the coldkey swap schedule, in number of blocks."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_coldkey_swap_schedule_duration (& self , duration : types :: sudo_set_coldkey_swap_schedule_duration :: Duration ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetColdkeySwapScheduleDuration > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_coldkey_swap_schedule_duration" , types :: SudoSetColdkeySwapScheduleDuration { duration , } , [199u8 , 201u8 , 247u8 , 19u8 , 96u8 , 161u8 , 154u8 , 250u8 , 35u8 , 223u8 , 124u8 , 42u8 , 248u8 , 27u8 , 33u8 , 92u8 , 156u8 , 4u8 , 124u8 , 167u8 , 119u8 , 192u8 , 3u8 , 185u8 , 2u8 , 128u8 , 216u8 , 52u8 , 203u8 , 168u8 , 16u8 , 15u8 ,]) } # [doc = "Sets the duration of the dissolve network schedule."] # [doc = ""] # [doc = "This extrinsic allows the root account to set the duration for the dissolve network schedule."] # [doc = "The dissolve network schedule determines how long it takes for a network dissolution operation to complete."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `duration` - The new duration for the dissolve network schedule, in number of blocks."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_dissolve_network_schedule_duration (& self , duration : types :: sudo_set_dissolve_network_schedule_duration :: Duration ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetDissolveNetworkScheduleDuration > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_dissolve_network_schedule_duration" , types :: SudoSetDissolveNetworkScheduleDuration { duration , } , [149u8 , 251u8 , 253u8 , 178u8 , 31u8 , 46u8 , 195u8 , 105u8 , 168u8 , 36u8 , 24u8 , 10u8 , 184u8 , 27u8 , 101u8 , 94u8 , 14u8 , 204u8 , 207u8 , 236u8 , 84u8 , 171u8 , 34u8 , 39u8 , 103u8 , 150u8 , 25u8 , 76u8 , 141u8 , 152u8 , 56u8 , 142u8 ,]) } # [doc = "Sets the commit-reveal weights periods for a specific subnet."] # [doc = ""] # [doc = "This extrinsic allows the subnet owner or root account to set the duration (in epochs) during which committed weights must be revealed."] # [doc = "The commit-reveal mechanism ensures that users commit weights in advance and reveal them only within a specified period."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or the root account."] # [doc = "* `netuid` - The unique identifier of the subnet for which the periods are being set."] # [doc = "* `periods` - The number of epochs that define the commit-reveal period."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is neither the subnet owner nor the root account."] # [doc = "* `SubnetDoesNotExist` - If the specified subnet does not exist."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_commit_reveal_weights_interval (& self , netuid : types :: sudo_set_commit_reveal_weights_interval :: Netuid , interval : types :: sudo_set_commit_reveal_weights_interval :: Interval ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetCommitRevealWeightsInterval > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_commit_reveal_weights_interval" , types :: SudoSetCommitRevealWeightsInterval { netuid , interval , } , [210u8 , 74u8 , 26u8 , 27u8 , 184u8 , 236u8 , 169u8 , 182u8 , 228u8 , 184u8 , 30u8 , 170u8 , 224u8 , 240u8 , 251u8 , 220u8 , 147u8 , 188u8 , 160u8 , 149u8 , 137u8 , 146u8 , 58u8 , 166u8 , 165u8 , 105u8 , 112u8 , 133u8 , 74u8 , 142u8 , 100u8 , 109u8 ,]) } # [doc = "Sets the EVM ChainID."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or the root account."] # [doc = "* `chainId` - The u64 chain ID"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is neither the subnet owner nor the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_evm_chain_id (& self , chain_id : types :: sudo_set_evm_chain_id :: ChainId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetEvmChainId > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_evm_chain_id" , types :: SudoSetEvmChainId { chain_id , } , [201u8 , 122u8 , 210u8 , 110u8 , 225u8 , 31u8 , 21u8 , 156u8 , 74u8 , 162u8 , 33u8 , 37u8 , 221u8 , 114u8 , 58u8 , 211u8 , 172u8 , 15u8 , 204u8 , 126u8 , 71u8 , 203u8 , 215u8 , 43u8 , 81u8 , 181u8 , 201u8 , 97u8 , 200u8 , 72u8 , 168u8 , 193u8 ,]) } # [doc = "A public interface for `pallet_grandpa::Pallet::schedule_grandpa_change`."] # [doc = ""] # [doc = "Schedule a change in the authorities."] # [doc = ""] # [doc = "The change will be applied at the end of execution of the block `in_blocks` after the"] # [doc = "current block. This value may be 0, in which case the change is applied at the end of"] # [doc = "the current block."] # [doc = ""] # [doc = "If the `forced` parameter is defined, this indicates that the current set has been"] # [doc = "synchronously determined to be offline and that after `in_blocks` the given change"] # [doc = "should be applied. The given block number indicates the median last finalized block"] # [doc = "number and it should be used as the canon block when starting the new grandpa voter."] # [doc = ""] # [doc = "No change should be signaled while any change is pending. Returns an error if a change"] # [doc = "is already pending."] pub fn schedule_grandpa_change (& self , next_authorities : types :: schedule_grandpa_change :: NextAuthorities , in_blocks : types :: schedule_grandpa_change :: InBlocks , forced : types :: schedule_grandpa_change :: Forced ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ScheduleGrandpaChange > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "schedule_grandpa_change" , types :: ScheduleGrandpaChange { next_authorities , in_blocks , forced , } , [91u8 , 167u8 , 149u8 , 184u8 , 159u8 , 154u8 , 123u8 , 132u8 , 126u8 , 50u8 , 105u8 , 45u8 , 29u8 , 163u8 , 18u8 , 235u8 , 25u8 , 5u8 , 226u8 , 68u8 , 168u8 , 3u8 , 23u8 , 243u8 , 252u8 , 83u8 , 232u8 , 170u8 , 183u8 , 172u8 , 174u8 , 228u8 ,]) } # [doc = "Enable or disable atomic alpha transfers for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Liquid Alpha."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub fn sudo_set_toggle_transfer (& self , netuid : types :: sudo_set_toggle_transfer :: Netuid , toggle : types :: sudo_set_toggle_transfer :: Toggle ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetToggleTransfer > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_toggle_transfer" , types :: SudoSetToggleTransfer { netuid , toggle , } , [233u8 , 177u8 , 124u8 , 3u8 , 229u8 , 180u8 , 214u8 , 161u8 , 228u8 , 42u8 , 47u8 , 119u8 , 49u8 , 170u8 , 148u8 , 167u8 , 191u8 , 60u8 , 66u8 , 177u8 , 137u8 , 156u8 , 92u8 , 27u8 , 187u8 , 193u8 , 241u8 , 32u8 , 90u8 , 124u8 , 230u8 , 251u8 ,]) } # [doc = "Set the behaviour of the \"burn\" UID(s) for a given subnet."] # [doc = "If set to `Burn`, the miner emission sent to the burn UID(s) will be burned."] # [doc = "If set to `Recycle`, the miner emission sent to the burn UID(s) will be recycled."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `recycle_or_burn`: The desired behaviour of the \"burn\" UID(s) for the subnet."] # [doc = ""] pub fn sudo_set_recycle_or_burn (& self , netuid : types :: sudo_set_recycle_or_burn :: Netuid , recycle_or_burn : types :: sudo_set_recycle_or_burn :: RecycleOrBurn ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetRecycleOrBurn > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_recycle_or_burn" , types :: SudoSetRecycleOrBurn { netuid , recycle_or_burn , } , [181u8 , 198u8 , 235u8 , 143u8 , 146u8 , 204u8 , 199u8 , 27u8 , 235u8 , 80u8 , 24u8 , 60u8 , 50u8 , 181u8 , 76u8 , 155u8 , 21u8 , 235u8 , 30u8 , 194u8 , 117u8 , 194u8 , 99u8 , 225u8 , 77u8 , 43u8 , 254u8 , 234u8 , 12u8 , 137u8 , 218u8 , 1u8 ,]) } # [doc = "Toggles the enablement of an EVM precompile."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `precompile_id` - The identifier of the EVM precompile to toggle."] # [doc = "* `enabled` - The new enablement state of the precompile."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_toggle_evm_precompile (& self , precompile_id : types :: sudo_toggle_evm_precompile :: PrecompileId , enabled : types :: sudo_toggle_evm_precompile :: Enabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoToggleEvmPrecompile > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_toggle_evm_precompile" , types :: SudoToggleEvmPrecompile { precompile_id , enabled , } , [163u8 , 129u8 , 166u8 , 54u8 , 35u8 , 33u8 , 70u8 , 161u8 , 90u8 , 87u8 , 32u8 , 36u8 , 92u8 , 89u8 , 170u8 , 237u8 , 12u8 , 173u8 , 182u8 , 99u8 , 21u8 , 41u8 , 137u8 , 240u8 , 232u8 , 131u8 , 68u8 , 33u8 , 12u8 , 128u8 , 140u8 , 117u8 ,]) } # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `alpha` - The new moving alpha value for the SubnetMovingAlpha."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_subnet_moving_alpha (& self , alpha : types :: sudo_set_subnet_moving_alpha :: Alpha ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetSubnetMovingAlpha > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_subnet_moving_alpha" , types :: SudoSetSubnetMovingAlpha { alpha , } , [239u8 , 32u8 , 0u8 , 8u8 , 176u8 , 138u8 , 71u8 , 142u8 , 7u8 , 5u8 , 161u8 , 50u8 , 67u8 , 88u8 , 18u8 , 137u8 , 185u8 , 208u8 , 51u8 , 215u8 , 15u8 , 149u8 , 52u8 , 182u8 , 227u8 , 250u8 , 157u8 , 8u8 , 225u8 , 113u8 , 224u8 , 219u8 ,]) } # [doc = "Change the SubnetOwnerHotkey for a given subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner."] # [doc = "* `netuid` - The unique identifier for the subnet."] # [doc = "* `hotkey` - The new hotkey for the subnet owner."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the subnet owner or root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_subnet_owner_hotkey (& self , netuid : types :: sudo_set_subnet_owner_hotkey :: Netuid , hotkey : types :: sudo_set_subnet_owner_hotkey :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetSubnetOwnerHotkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_subnet_owner_hotkey" , types :: SudoSetSubnetOwnerHotkey { netuid , hotkey , } , [21u8 , 33u8 , 250u8 , 9u8 , 25u8 , 221u8 , 16u8 , 19u8 , 205u8 , 42u8 , 42u8 , 9u8 , 142u8 , 170u8 , 173u8 , 80u8 , 163u8 , 5u8 , 39u8 , 252u8 , 125u8 , 209u8 , 179u8 , 177u8 , 214u8 , 30u8 , 57u8 , 174u8 , 86u8 , 170u8 , 126u8 , 146u8 ,]) } # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `ema_alpha_period` - Number of blocks for EMA price to halve"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_ema_price_halving_period (& self , netuid : types :: sudo_set_ema_price_halving_period :: Netuid , ema_halving : types :: sudo_set_ema_price_halving_period :: EmaHalving ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetEmaPriceHalvingPeriod > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_ema_price_halving_period" , types :: SudoSetEmaPriceHalvingPeriod { netuid , ema_halving , } , [168u8 , 129u8 , 185u8 , 44u8 , 156u8 , 79u8 , 21u8 , 184u8 , 112u8 , 125u8 , 39u8 , 79u8 , 246u8 , 77u8 , 136u8 , 29u8 , 74u8 , 110u8 , 91u8 , 161u8 , 209u8 , 234u8 , 118u8 , 46u8 , 139u8 , 229u8 , 110u8 , 118u8 , 150u8 , 225u8 , 165u8 , 178u8 ,]) } # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `netuid` - The unique identifier for the subnet."] # [doc = "* `steepness` - The Steepness for the alpha sigmoid function. (range is 0-int16::MAX,"] # [doc = "negative values are reserved for future use)"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = "* `SubnetDoesNotExist` - If the specified subnet does not exist."] # [doc = "* `NegativeSigmoidSteepness` - If the steepness is negative and the caller is"] # [doc = "root."] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_alpha_sigmoid_steepness (& self , netuid : types :: sudo_set_alpha_sigmoid_steepness :: Netuid , steepness : types :: sudo_set_alpha_sigmoid_steepness :: Steepness ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetAlphaSigmoidSteepness > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_alpha_sigmoid_steepness" , types :: SudoSetAlphaSigmoidSteepness { netuid , steepness , } , [182u8 , 116u8 , 175u8 , 159u8 , 15u8 , 26u8 , 180u8 , 138u8 , 252u8 , 92u8 , 185u8 , 101u8 , 13u8 , 141u8 , 152u8 , 81u8 , 129u8 , 75u8 , 88u8 , 124u8 , 108u8 , 17u8 , 104u8 , 118u8 , 252u8 , 35u8 , 173u8 , 121u8 , 38u8 , 170u8 , 139u8 , 249u8 ,]) } # [doc = "Enables or disables Yuma3 for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Yuma3."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub fn sudo_set_yuma3_enabled (& self , netuid : types :: sudo_set_yuma3_enabled :: Netuid , enabled : types :: sudo_set_yuma3_enabled :: Enabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetYuma3Enabled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_yuma3_enabled" , types :: SudoSetYuma3Enabled { netuid , enabled , } , [195u8 , 239u8 , 112u8 , 24u8 , 144u8 , 206u8 , 123u8 , 143u8 , 147u8 , 177u8 , 119u8 , 123u8 , 229u8 , 20u8 , 67u8 , 28u8 , 60u8 , 204u8 , 249u8 , 35u8 , 188u8 , 120u8 , 94u8 , 90u8 , 86u8 , 226u8 , 119u8 , 255u8 , 241u8 , 72u8 , 45u8 , 142u8 ,]) } # [doc = "Enables or disables Bonds Reset for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Bonds Reset."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] pub fn sudo_set_bonds_reset_enabled (& self , netuid : types :: sudo_set_bonds_reset_enabled :: Netuid , enabled : types :: sudo_set_bonds_reset_enabled :: Enabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetBondsResetEnabled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_bonds_reset_enabled" , types :: SudoSetBondsResetEnabled { netuid , enabled , } , [51u8 , 130u8 , 27u8 , 114u8 , 16u8 , 13u8 , 14u8 , 206u8 , 132u8 , 241u8 , 42u8 , 120u8 , 47u8 , 174u8 , 200u8 , 166u8 , 189u8 , 235u8 , 210u8 , 91u8 , 216u8 , 69u8 , 10u8 , 48u8 , 186u8 , 110u8 , 175u8 , 201u8 , 10u8 , 28u8 , 221u8 , 146u8 ,]) } # [doc = "Sets or updates the hotkey account associated with the owner of a specific subnet."] # [doc = ""] # [doc = "This function allows either the root origin or the current subnet owner to set or update"] # [doc = "the hotkey for a given subnet. The subnet must already exist. To prevent abuse, the call is"] # [doc = "rate-limited to once per configured interval (default: one week) per subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The dispatch origin of the call. Must be either root or the current owner of the subnet."] # [doc = "- `netuid`: The unique identifier of the subnet whose owner hotkey is being set."] # [doc = "- `hotkey`: The new hotkey account to associate with the subnet owner."] # [doc = ""] # [doc = "# Returns"] # [doc = "- `DispatchResult`: Returns `Ok(())` if the hotkey was successfully set, or an appropriate error otherwise."] # [doc = ""] # [doc = "# Errors"] # [doc = "- `Error::SubnetNotExists`: If the specified subnet does not exist."] # [doc = "- `Error::TxRateLimitExceeded`: If the function is called more frequently than the allowed rate limit."] # [doc = ""] # [doc = "# Access Control"] # [doc = "Only callable by:"] # [doc = "- Root origin, or"] # [doc = "- The coldkey account that owns the subnet."] # [doc = ""] # [doc = "# Storage"] # [doc = "- Updates [`SubnetOwnerHotkey`] for the given `netuid`."] # [doc = "- Reads and updates [`LastRateLimitedBlock`] for rate-limiting."] # [doc = "- Reads [`DefaultSetSNOwnerHotkeyRateLimit`] to determine the interval between allowed updates."] # [doc = ""] # [doc = "# Rate Limiting"] # [doc = "This function is rate-limited to one call per subnet per interval (e.g., one week)."] pub fn sudo_set_sn_owner_hotkey (& self , netuid : types :: sudo_set_sn_owner_hotkey :: Netuid , hotkey : types :: sudo_set_sn_owner_hotkey :: Hotkey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetSnOwnerHotkey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_sn_owner_hotkey" , types :: SudoSetSnOwnerHotkey { netuid , hotkey , } , [208u8 , 143u8 , 227u8 , 92u8 , 240u8 , 253u8 , 27u8 , 173u8 , 186u8 , 206u8 , 4u8 , 172u8 , 197u8 , 112u8 , 18u8 , 123u8 , 134u8 , 11u8 , 58u8 , 86u8 , 149u8 , 55u8 , 153u8 , 39u8 , 140u8 , 153u8 , 92u8 , 13u8 , 201u8 , 147u8 , 196u8 , 128u8 ,]) } # [doc = "Enables or disables subtoken trading for a given subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `netuid` - The unique identifier of the subnet."] # [doc = "* `subtoken_enabled` - A boolean indicating whether subtoken trading should be enabled or disabled."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] pub fn sudo_set_subtoken_enabled (& self , netuid : types :: sudo_set_subtoken_enabled :: Netuid , subtoken_enabled : types :: sudo_set_subtoken_enabled :: SubtokenEnabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetSubtokenEnabled > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_subtoken_enabled" , types :: SudoSetSubtokenEnabled { netuid , subtoken_enabled , } , [28u8 , 5u8 , 69u8 , 22u8 , 123u8 , 202u8 , 47u8 , 127u8 , 52u8 , 171u8 , 41u8 , 97u8 , 48u8 , 190u8 , 43u8 , 248u8 , 70u8 , 54u8 , 194u8 , 173u8 , 34u8 , 26u8 , 18u8 , 47u8 , 207u8 , 68u8 , 36u8 , 250u8 , 242u8 , 102u8 , 92u8 , 6u8 ,]) } # [doc = "Sets the commit-reveal weights version for all subnets"] pub fn sudo_set_commit_reveal_version (& self , version : types :: sudo_set_commit_reveal_version :: Version ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetCommitRevealVersion > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_commit_reveal_version" , types :: SudoSetCommitRevealVersion { version , } , [253u8 , 215u8 , 2u8 , 66u8 , 243u8 , 69u8 , 118u8 , 66u8 , 239u8 , 161u8 , 75u8 , 209u8 , 162u8 , 157u8 , 79u8 , 8u8 , 42u8 , 45u8 , 20u8 , 32u8 , 156u8 , 107u8 , 168u8 , 15u8 , 182u8 , 178u8 , 42u8 , 228u8 , 88u8 , 64u8 , 61u8 , 168u8 ,]) } # [doc = "Sets the number of immune owner neurons"] pub fn sudo_set_owner_immune_neuron_limit (& self , netuid : types :: sudo_set_owner_immune_neuron_limit :: Netuid , immune_neurons : types :: sudo_set_owner_immune_neuron_limit :: ImmuneNeurons ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetOwnerImmuneNeuronLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_owner_immune_neuron_limit" , types :: SudoSetOwnerImmuneNeuronLimit { netuid , immune_neurons , } , [80u8 , 212u8 , 242u8 , 91u8 , 142u8 , 99u8 , 27u8 , 55u8 , 13u8 , 204u8 , 149u8 , 7u8 , 26u8 , 106u8 , 69u8 , 166u8 , 186u8 , 238u8 , 45u8 , 26u8 , 244u8 , 87u8 , 123u8 , 136u8 , 35u8 , 197u8 , 63u8 , 9u8 , 232u8 , 102u8 , 22u8 , 230u8 ,]) } # [doc = "Sets the childkey burn for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the childkey burn."] pub fn sudo_set_ck_burn (& self , burn : types :: sudo_set_ck_burn :: Burn ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetCkBurn > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_ck_burn" , types :: SudoSetCkBurn { burn , } , [73u8 , 95u8 , 96u8 , 80u8 , 79u8 , 198u8 , 82u8 , 121u8 , 87u8 , 150u8 , 229u8 , 34u8 , 163u8 , 144u8 , 71u8 , 42u8 , 154u8 , 162u8 , 111u8 , 180u8 , 251u8 , 230u8 , 48u8 , 104u8 , 81u8 , 195u8 , 164u8 , 70u8 , 146u8 , 212u8 , 24u8 , 127u8 ,]) } # [doc = "Sets the admin freeze window length (in blocks) at the end of a tempo."] # [doc = "Only callable by root."] pub fn sudo_set_admin_freeze_window (& self , window : types :: sudo_set_admin_freeze_window :: Window ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetAdminFreezeWindow > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_admin_freeze_window" , types :: SudoSetAdminFreezeWindow { window , } , [165u8 , 212u8 , 248u8 , 14u8 , 47u8 , 198u8 , 127u8 , 115u8 , 149u8 , 126u8 , 222u8 , 34u8 , 100u8 , 182u8 , 170u8 , 96u8 , 243u8 , 106u8 , 89u8 , 8u8 , 206u8 , 149u8 , 104u8 , 60u8 , 122u8 , 165u8 , 66u8 , 254u8 , 140u8 , 75u8 , 121u8 , 47u8 ,]) } # [doc = "Sets the owner hyperparameter rate limit in epochs (global multiplier)."] # [doc = "Only callable by root."] pub fn sudo_set_owner_hparam_rate_limit (& self , epochs : types :: sudo_set_owner_hparam_rate_limit :: Epochs ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetOwnerHparamRateLimit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_owner_hparam_rate_limit" , types :: SudoSetOwnerHparamRateLimit { epochs , } , [7u8 , 216u8 , 14u8 , 222u8 , 157u8 , 84u8 , 234u8 , 157u8 , 207u8 , 216u8 , 212u8 , 42u8 , 207u8 , 146u8 , 192u8 , 10u8 , 252u8 , 198u8 , 180u8 , 231u8 , 43u8 , 149u8 , 78u8 , 215u8 , 202u8 , 102u8 , 113u8 , 130u8 , 53u8 , 254u8 , 59u8 , 18u8 ,]) } # [doc = "Sets the desired number of mechanisms in a subnet"] pub fn sudo_set_mechanism_count (& self , netuid : types :: sudo_set_mechanism_count :: Netuid , mechanism_count : types :: sudo_set_mechanism_count :: MechanismCount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMechanismCount > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_mechanism_count" , types :: SudoSetMechanismCount { netuid , mechanism_count , } , [109u8 , 216u8 , 122u8 , 67u8 , 128u8 , 190u8 , 10u8 , 86u8 , 47u8 , 149u8 , 19u8 , 210u8 , 16u8 , 68u8 , 193u8 , 217u8 , 215u8 , 239u8 , 160u8 , 121u8 , 254u8 , 18u8 , 193u8 , 110u8 , 143u8 , 34u8 , 35u8 , 57u8 , 119u8 , 114u8 , 46u8 , 79u8 ,]) } # [doc = "Sets the emission split between mechanisms in a subnet"] pub fn sudo_set_mechanism_emission_split (& self , netuid : types :: sudo_set_mechanism_emission_split :: Netuid , maybe_split : types :: sudo_set_mechanism_emission_split :: MaybeSplit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMechanismEmissionSplit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_mechanism_emission_split" , types :: SudoSetMechanismEmissionSplit { netuid , maybe_split , } , [87u8 , 172u8 , 168u8 , 64u8 , 28u8 , 2u8 , 77u8 , 92u8 , 155u8 , 6u8 , 116u8 , 121u8 , 13u8 , 114u8 , 242u8 , 19u8 , 231u8 , 132u8 , 17u8 , 68u8 , 32u8 , 7u8 , 41u8 , 60u8 , 147u8 , 23u8 , 212u8 , 86u8 , 189u8 , 154u8 , 64u8 , 36u8 ,]) } # [doc = "Trims the maximum number of UIDs for a subnet."] # [doc = ""] # [doc = "The trimming is done by sorting the UIDs by emission descending and then trimming"] # [doc = "the lowest emitters while preserving temporally and owner immune UIDs. The UIDs are"] # [doc = "then compressed to the left and storage is migrated to the new compressed UIDs."] pub fn sudo_trim_to_max_allowed_uids (& self , netuid : types :: sudo_trim_to_max_allowed_uids :: Netuid , max_n : types :: sudo_trim_to_max_allowed_uids :: MaxN ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoTrimToMaxAllowedUids > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_trim_to_max_allowed_uids" , types :: SudoTrimToMaxAllowedUids { netuid , max_n , } , [28u8 , 159u8 , 47u8 , 204u8 , 21u8 , 11u8 , 131u8 , 126u8 , 200u8 , 93u8 , 29u8 , 207u8 , 194u8 , 174u8 , 105u8 , 224u8 , 84u8 , 206u8 , 85u8 , 168u8 , 216u8 , 195u8 , 130u8 , 52u8 , 155u8 , 12u8 , 151u8 , 149u8 , 6u8 , 174u8 , 6u8 , 130u8 ,]) } # [doc = "The extrinsic sets the minimum allowed UIDs for a subnet."] # [doc = "It is only callable by the root account."] pub fn sudo_set_min_allowed_uids (& self , netuid : types :: sudo_set_min_allowed_uids :: Netuid , min_allowed_uids : types :: sudo_set_min_allowed_uids :: MinAllowedUids ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinAllowedUids > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_min_allowed_uids" , types :: SudoSetMinAllowedUids { netuid , min_allowed_uids , } , [224u8 , 172u8 , 89u8 , 28u8 , 135u8 , 86u8 , 244u8 , 53u8 , 240u8 , 56u8 , 111u8 , 201u8 , 150u8 , 65u8 , 185u8 , 79u8 , 32u8 , 188u8 , 179u8 , 39u8 , 79u8 , 98u8 , 21u8 , 60u8 , 134u8 , 191u8 , 75u8 , 164u8 , 25u8 , 159u8 , 75u8 , 20u8 ,]) } # [doc = "Sets TAO flow cutoff value (A)"] pub fn sudo_set_tao_flow_cutoff (& self , flow_cutoff : types :: sudo_set_tao_flow_cutoff :: FlowCutoff ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTaoFlowCutoff > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_tao_flow_cutoff" , types :: SudoSetTaoFlowCutoff { flow_cutoff , } , [27u8 , 207u8 , 122u8 , 195u8 , 219u8 , 169u8 , 110u8 , 183u8 , 120u8 , 132u8 , 75u8 , 158u8 , 147u8 , 5u8 , 126u8 , 216u8 , 149u8 , 164u8 , 8u8 , 1u8 , 192u8 , 171u8 , 50u8 , 91u8 , 123u8 , 109u8 , 5u8 , 189u8 , 132u8 , 120u8 , 114u8 , 12u8 ,]) } # [doc = "Sets TAO flow normalization exponent (p)"] pub fn sudo_set_tao_flow_normalization_exponent (& self , exponent : types :: sudo_set_tao_flow_normalization_exponent :: Exponent ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTaoFlowNormalizationExponent > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_tao_flow_normalization_exponent" , types :: SudoSetTaoFlowNormalizationExponent { exponent , } , [64u8 , 30u8 , 143u8 , 136u8 , 85u8 , 184u8 , 98u8 , 62u8 , 151u8 , 231u8 , 94u8 , 222u8 , 15u8 , 232u8 , 85u8 , 24u8 , 213u8 , 26u8 , 66u8 , 174u8 , 137u8 , 169u8 , 166u8 , 108u8 , 46u8 , 37u8 , 75u8 , 41u8 , 105u8 , 155u8 , 128u8 , 216u8 ,]) } # [doc = "Sets TAO flow smoothing factor (alpha)"] pub fn sudo_set_tao_flow_smoothing_factor (& self , smoothing_factor : types :: sudo_set_tao_flow_smoothing_factor :: SmoothingFactor ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetTaoFlowSmoothingFactor > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_tao_flow_smoothing_factor" , types :: SudoSetTaoFlowSmoothingFactor { smoothing_factor , } , [146u8 , 232u8 , 174u8 , 146u8 , 68u8 , 145u8 , 173u8 , 91u8 , 20u8 , 102u8 , 57u8 , 98u8 , 89u8 , 201u8 , 212u8 , 183u8 , 54u8 , 118u8 , 232u8 , 32u8 , 63u8 , 183u8 , 143u8 , 161u8 , 28u8 , 236u8 , 27u8 , 186u8 , 51u8 , 104u8 , 168u8 , 28u8 ,]) } # [doc = "Sets the minimum number of non-immortal & non-immune UIDs that must remain in a subnet"] pub fn sudo_set_min_non_immune_uids (& self , netuid : types :: sudo_set_min_non_immune_uids :: Netuid , min : types :: sudo_set_min_non_immune_uids :: Min ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SudoSetMinNonImmuneUids > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("AdminUtils" , "sudo_set_min_non_immune_uids" , types :: SudoSetMinNonImmuneUids { netuid , min , } , [168u8 , 59u8 , 235u8 , 98u8 , 249u8 , 193u8 , 91u8 , 255u8 , 45u8 , 106u8 , 238u8 , 129u8 , 97u8 , 249u8 , 1u8 , 77u8 , 98u8 , 239u8 , 155u8 , 139u8 , 127u8 , 65u8 , 51u8 , 226u8 , 248u8 , 215u8 , 167u8 , 155u8 , 3u8 , 229u8 , 202u8 , 165u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_admin_utils :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when a precompile operation is updated."] pub struct PrecompileUpdated { pub precompile_id : precompile_updated :: PrecompileId , pub enabled : precompile_updated :: Enabled , } pub mod precompile_updated { use super :: runtime_types ; pub type PrecompileId = runtime_types :: pallet_admin_utils :: pallet :: PrecompileEnum ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PrecompileUpdated { const PALLET : & 'static str = "AdminUtils" ; const EVENT : & 'static str = "PrecompileUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when the Yuma3 enable is toggled."] pub struct Yuma3EnableToggled { pub netuid : yuma3_enable_toggled :: Netuid , pub enabled : yuma3_enable_toggled :: Enabled , } pub mod yuma3_enable_toggled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Yuma3EnableToggled { const PALLET : & 'static str = "AdminUtils" ; const EVENT : & 'static str = "Yuma3EnableToggled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when Bonds Reset is toggled."] pub struct BondsResetToggled { pub netuid : bonds_reset_toggled :: Netuid , pub enabled : bonds_reset_toggled :: Enabled , } pub mod bonds_reset_toggled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BondsResetToggled { const PALLET : & 'static str = "AdminUtils" ; const EVENT : & 'static str = "BondsResetToggled" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod precompile_enable { use super :: runtime_types ; pub type PrecompileEnable = :: core :: primitive :: bool ; pub type Param0 = runtime_types :: pallet_admin_utils :: pallet :: PrecompileEnum ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Map PrecompileEnum --> enabled"] pub fn precompile_enable_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: precompile_enable :: PrecompileEnable , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("AdminUtils" , "PrecompileEnable" , () , [15u8 , 74u8 , 117u8 , 63u8 , 191u8 , 179u8 , 224u8 , 157u8 , 197u8 , 72u8 , 86u8 , 15u8 , 216u8 , 158u8 , 140u8 , 25u8 , 211u8 , 157u8 , 21u8 , 217u8 , 100u8 , 120u8 , 133u8 , 139u8 , 84u8 , 33u8 , 104u8 , 130u8 , 6u8 , 70u8 , 90u8 , 35u8 ,]) } # [doc = " Map PrecompileEnum --> enabled"] pub fn precompile_enable (& self , _0 : types :: precompile_enable :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: precompile_enable :: Param0 > , types :: precompile_enable :: PrecompileEnable , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("AdminUtils" , "PrecompileEnable" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [15u8 , 74u8 , 117u8 , 63u8 , 191u8 , 179u8 , 224u8 , 157u8 , 197u8 , 72u8 , 86u8 , 15u8 , 216u8 , 158u8 , 140u8 , 25u8 , 211u8 , 157u8 , 21u8 , 217u8 , 100u8 , 120u8 , 133u8 , 139u8 , 84u8 , 33u8 , 104u8 , 130u8 , 6u8 , 70u8 , 90u8 , 35u8 ,]) } } } } pub mod safe_mode { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_safe_mode :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_safe_mode :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enter safe-mode permissionlessly for [`Config::EnterDuration`] blocks."] # [doc = ""] # [doc = "Reserves [`Config::EnterDepositAmount`] from the caller's account."] # [doc = "Emits an [`Event::Entered`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is already entered."] # [doc = "Errors with [`Error::NotConfigured`] if the deposit amount is `None`."] pub struct Enter ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Enter { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "enter" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enter safe-mode by force for a per-origin configured number of blocks."] # [doc = ""] # [doc = "Emits an [`Event::Entered`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is already entered."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceEnterOrigin`] origin."] pub struct ForceEnter ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceEnter { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "force_enter" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Extend the safe-mode permissionlessly for [`Config::ExtendDuration`] blocks."] # [doc = ""] # [doc = "This accumulates on top of the current remaining duration."] # [doc = "Reserves [`Config::ExtendDepositAmount`] from the caller's account."] # [doc = "Emits an [`Event::Extended`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is entered."] # [doc = "Errors with [`Error::NotConfigured`] if the deposit amount is `None`."] # [doc = ""] # [doc = "This may be called by any signed origin with [`Config::ExtendDepositAmount`] free"] # [doc = "currency to reserve. This call can be disabled for all origins by configuring"] # [doc = "[`Config::ExtendDepositAmount`] to `None`."] pub struct Extend ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Extend { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "extend" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Extend the safe-mode by force for a per-origin configured number of blocks."] # [doc = ""] # [doc = "Emits an [`Event::Extended`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is inactive."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceExtendOrigin`] origin."] pub struct ForceExtend ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceExtend { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "force_extend" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Exit safe-mode by force."] # [doc = ""] # [doc = "Emits an [`Event::Exited`] with [`ExitReason::Force`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is inactive."] # [doc = ""] # [doc = "Note: `safe-mode` will be automatically deactivated by [`Pallet::on_initialize`] hook"] # [doc = "after the block height is greater than the [`EnteredUntil`] storage item."] # [doc = "Emits an [`Event::Exited`] with [`ExitReason::Timeout`] event when deactivated in the"] # [doc = "hook."] pub struct ForceExit ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceExit { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "force_exit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Slash a deposit for an account that entered or extended safe-mode at a given"] # [doc = "historical block."] # [doc = ""] # [doc = "This can only be called while safe-mode is entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositSlashed`] event on success."] # [doc = "Errors with [`Error::Entered`] if safe-mode is entered."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceDepositOrigin`] origin."] pub struct ForceSlashDeposit { pub account : force_slash_deposit :: Account , pub block : force_slash_deposit :: Block , } pub mod force_slash_deposit { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Block = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceSlashDeposit { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "force_slash_deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Permissionlessly release a deposit for an account that entered safe-mode at a"] # [doc = "given historical block."] # [doc = ""] # [doc = "The call can be completely disabled by setting [`Config::ReleaseDelay`] to `None`."] # [doc = "This cannot be called while safe-mode is entered and not until"] # [doc = "[`Config::ReleaseDelay`] blocks have passed since safe-mode was entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositReleased`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is entered."] # [doc = "Errors with [`Error::CannotReleaseYet`] if [`Config::ReleaseDelay`] block have not"] # [doc = "passed since safe-mode was entered. Errors with [`Error::NoDeposit`] if the payee has no"] # [doc = "reserved currency at the block specified."] pub struct ReleaseDeposit { pub account : release_deposit :: Account , pub block : release_deposit :: Block , } pub mod release_deposit { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Block = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ReleaseDeposit { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "release_deposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Force to release a deposit for an account that entered safe-mode at a given"] # [doc = "historical block."] # [doc = ""] # [doc = "This can be called while safe-mode is still entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositReleased`] event on success."] # [doc = "Errors with [`Error::Entered`] if safe-mode is entered."] # [doc = "Errors with [`Error::NoDeposit`] if the payee has no reserved currency at the"] # [doc = "specified block."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceDepositOrigin`] origin."] pub struct ForceReleaseDeposit { pub account : force_release_deposit :: Account , pub block : force_release_deposit :: Block , } pub mod force_release_deposit { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Block = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ForceReleaseDeposit { const PALLET : & 'static str = "SafeMode" ; const CALL : & 'static str = "force_release_deposit" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Enter safe-mode permissionlessly for [`Config::EnterDuration`] blocks."] # [doc = ""] # [doc = "Reserves [`Config::EnterDepositAmount`] from the caller's account."] # [doc = "Emits an [`Event::Entered`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is already entered."] # [doc = "Errors with [`Error::NotConfigured`] if the deposit amount is `None`."] pub fn enter (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Enter > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "enter" , types :: Enter { } , [143u8 , 123u8 , 102u8 , 22u8 , 143u8 , 240u8 , 102u8 , 20u8 , 99u8 , 56u8 , 137u8 , 160u8 , 145u8 , 237u8 , 239u8 , 13u8 , 116u8 , 150u8 , 190u8 , 85u8 , 39u8 , 235u8 , 252u8 , 175u8 , 118u8 , 60u8 , 231u8 , 161u8 , 61u8 , 100u8 , 140u8 , 15u8 ,]) } # [doc = "Enter safe-mode by force for a per-origin configured number of blocks."] # [doc = ""] # [doc = "Emits an [`Event::Entered`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is already entered."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceEnterOrigin`] origin."] pub fn force_enter (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceEnter > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "force_enter" , types :: ForceEnter { } , [226u8 , 76u8 , 165u8 , 0u8 , 74u8 , 155u8 , 226u8 , 0u8 , 184u8 , 63u8 , 229u8 , 216u8 , 13u8 , 44u8 , 211u8 , 141u8 , 82u8 , 33u8 , 38u8 , 220u8 , 228u8 , 13u8 , 105u8 , 40u8 , 3u8 , 101u8 , 98u8 , 149u8 , 169u8 , 196u8 , 135u8 , 108u8 ,]) } # [doc = "Extend the safe-mode permissionlessly for [`Config::ExtendDuration`] blocks."] # [doc = ""] # [doc = "This accumulates on top of the current remaining duration."] # [doc = "Reserves [`Config::ExtendDepositAmount`] from the caller's account."] # [doc = "Emits an [`Event::Extended`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is entered."] # [doc = "Errors with [`Error::NotConfigured`] if the deposit amount is `None`."] # [doc = ""] # [doc = "This may be called by any signed origin with [`Config::ExtendDepositAmount`] free"] # [doc = "currency to reserve. This call can be disabled for all origins by configuring"] # [doc = "[`Config::ExtendDepositAmount`] to `None`."] pub fn extend (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Extend > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "extend" , types :: Extend { } , [197u8 , 120u8 , 159u8 , 140u8 , 252u8 , 237u8 , 41u8 , 35u8 , 158u8 , 68u8 , 143u8 , 99u8 , 156u8 , 153u8 , 190u8 , 6u8 , 220u8 , 153u8 , 207u8 , 98u8 , 126u8 , 27u8 , 29u8 , 118u8 , 77u8 , 69u8 , 135u8 , 20u8 , 66u8 , 170u8 , 240u8 , 129u8 ,]) } # [doc = "Extend the safe-mode by force for a per-origin configured number of blocks."] # [doc = ""] # [doc = "Emits an [`Event::Extended`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is inactive."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceExtendOrigin`] origin."] pub fn force_extend (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceExtend > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "force_extend" , types :: ForceExtend { } , [117u8 , 88u8 , 218u8 , 135u8 , 217u8 , 109u8 , 142u8 , 56u8 , 165u8 , 247u8 , 37u8 , 236u8 , 158u8 , 153u8 , 199u8 , 154u8 , 70u8 , 17u8 , 19u8 , 225u8 , 184u8 , 126u8 , 169u8 , 246u8 , 187u8 , 96u8 , 124u8 , 117u8 , 3u8 , 122u8 , 185u8 , 255u8 ,]) } # [doc = "Exit safe-mode by force."] # [doc = ""] # [doc = "Emits an [`Event::Exited`] with [`ExitReason::Force`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is inactive."] # [doc = ""] # [doc = "Note: `safe-mode` will be automatically deactivated by [`Pallet::on_initialize`] hook"] # [doc = "after the block height is greater than the [`EnteredUntil`] storage item."] # [doc = "Emits an [`Event::Exited`] with [`ExitReason::Timeout`] event when deactivated in the"] # [doc = "hook."] pub fn force_exit (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceExit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "force_exit" , types :: ForceExit { } , [150u8 , 4u8 , 38u8 , 204u8 , 101u8 , 158u8 , 83u8 , 108u8 , 144u8 , 146u8 , 91u8 , 227u8 , 118u8 , 59u8 , 39u8 , 160u8 , 157u8 , 68u8 , 241u8 , 12u8 , 42u8 , 108u8 , 196u8 , 221u8 , 241u8 , 61u8 , 142u8 , 140u8 , 174u8 , 224u8 , 33u8 , 213u8 ,]) } # [doc = "Slash a deposit for an account that entered or extended safe-mode at a given"] # [doc = "historical block."] # [doc = ""] # [doc = "This can only be called while safe-mode is entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositSlashed`] event on success."] # [doc = "Errors with [`Error::Entered`] if safe-mode is entered."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceDepositOrigin`] origin."] pub fn force_slash_deposit (& self , account : types :: force_slash_deposit :: Account , block : types :: force_slash_deposit :: Block ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceSlashDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "force_slash_deposit" , types :: ForceSlashDeposit { account , block , } , [185u8 , 154u8 , 173u8 , 77u8 , 150u8 , 104u8 , 220u8 , 14u8 , 65u8 , 197u8 , 253u8 , 145u8 , 112u8 , 189u8 , 99u8 , 45u8 , 138u8 , 120u8 , 94u8 , 112u8 , 183u8 , 205u8 , 206u8 , 14u8 , 74u8 , 9u8 , 156u8 , 76u8 , 159u8 , 37u8 , 88u8 , 96u8 ,]) } # [doc = "Permissionlessly release a deposit for an account that entered safe-mode at a"] # [doc = "given historical block."] # [doc = ""] # [doc = "The call can be completely disabled by setting [`Config::ReleaseDelay`] to `None`."] # [doc = "This cannot be called while safe-mode is entered and not until"] # [doc = "[`Config::ReleaseDelay`] blocks have passed since safe-mode was entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositReleased`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is entered."] # [doc = "Errors with [`Error::CannotReleaseYet`] if [`Config::ReleaseDelay`] block have not"] # [doc = "passed since safe-mode was entered. Errors with [`Error::NoDeposit`] if the payee has no"] # [doc = "reserved currency at the block specified."] pub fn release_deposit (& self , account : types :: release_deposit :: Account , block : types :: release_deposit :: Block ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ReleaseDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "release_deposit" , types :: ReleaseDeposit { account , block , } , [79u8 , 18u8 , 165u8 , 136u8 , 30u8 , 45u8 , 169u8 , 102u8 , 195u8 , 112u8 , 252u8 , 42u8 , 52u8 , 65u8 , 93u8 , 168u8 , 40u8 , 180u8 , 234u8 , 248u8 , 20u8 , 157u8 , 147u8 , 84u8 , 89u8 , 168u8 , 219u8 , 160u8 , 193u8 , 170u8 , 95u8 , 20u8 ,]) } # [doc = "Force to release a deposit for an account that entered safe-mode at a given"] # [doc = "historical block."] # [doc = ""] # [doc = "This can be called while safe-mode is still entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositReleased`] event on success."] # [doc = "Errors with [`Error::Entered`] if safe-mode is entered."] # [doc = "Errors with [`Error::NoDeposit`] if the payee has no reserved currency at the"] # [doc = "specified block."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceDepositOrigin`] origin."] pub fn force_release_deposit (& self , account : types :: force_release_deposit :: Account , block : types :: force_release_deposit :: Block ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ForceReleaseDeposit > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("SafeMode" , "force_release_deposit" , types :: ForceReleaseDeposit { account , block , } , [32u8 , 21u8 , 194u8 , 117u8 , 164u8 , 105u8 , 175u8 , 6u8 , 77u8 , 183u8 , 153u8 , 93u8 , 76u8 , 102u8 , 49u8 , 232u8 , 124u8 , 27u8 , 90u8 , 189u8 , 75u8 , 76u8 , 6u8 , 144u8 , 232u8 , 51u8 , 152u8 , 207u8 , 122u8 , 162u8 , 232u8 , 236u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_safe_mode :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The safe-mode was entered until inclusively this block."] pub struct Entered { pub until : entered :: Until , } pub mod entered { use super :: runtime_types ; pub type Until = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Entered { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "Entered" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The safe-mode was extended until inclusively this block."] pub struct Extended { pub until : extended :: Until , } pub mod extended { use super :: runtime_types ; pub type Until = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Extended { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "Extended" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Exited the safe-mode for a specific reason."] pub struct Exited { pub reason : exited :: Reason , } pub mod exited { use super :: runtime_types ; pub type Reason = runtime_types :: pallet_safe_mode :: pallet :: ExitReason ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Exited { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "Exited" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account reserved funds for either entering or extending the safe-mode."] pub struct DepositPlaced { pub account : deposit_placed :: Account , pub amount : deposit_placed :: Amount , } pub mod deposit_placed { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DepositPlaced { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "DepositPlaced" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account had a reserve released that was reserved."] pub struct DepositReleased { pub account : deposit_released :: Account , pub amount : deposit_released :: Amount , } pub mod deposit_released { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DepositReleased { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "DepositReleased" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An account had reserve slashed that was reserved."] pub struct DepositSlashed { pub account : deposit_slashed :: Account , pub amount : deposit_slashed :: Amount , } pub mod deposit_slashed { use super :: runtime_types ; pub type Account = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DepositSlashed { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "DepositSlashed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Could not hold funds for entering or extending the safe-mode."] # [doc = ""] # [doc = "This error comes from the underlying `Currency`."] pub struct CannotDeposit ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CannotDeposit { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "CannotDeposit" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Could not release funds for entering or extending the safe-mode."] # [doc = ""] # [doc = "This error comes from the underlying `Currency`."] pub struct CannotRelease ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CannotRelease { const PALLET : & 'static str = "SafeMode" ; const EVENT : & 'static str = "CannotRelease" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod entered_until { use super :: runtime_types ; pub type EnteredUntil = :: core :: primitive :: u32 ; } pub mod deposits { use super :: runtime_types ; pub type Deposits = :: core :: primitive :: u64 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param1 = :: core :: primitive :: u32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Contains the last block number that the safe-mode will remain entered in."] # [doc = ""] # [doc = "  Set to `None` when safe-mode is exited."] # [doc = ""] # [doc = " Safe-mode is automatically exited when the current block number exceeds this value."] pub fn entered_until (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: entered_until :: EnteredUntil , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SafeMode" , "EnteredUntil" , () , [149u8 , 83u8 , 42u8 , 40u8 , 74u8 , 142u8 , 60u8 , 30u8 , 84u8 , 16u8 , 188u8 , 31u8 , 142u8 , 15u8 , 123u8 , 243u8 , 224u8 , 219u8 , 21u8 , 109u8 , 199u8 , 124u8 , 169u8 , 154u8 , 35u8 , 198u8 , 136u8 , 36u8 , 202u8 , 218u8 , 15u8 , 107u8 ,]) } # [doc = " Holds the reserve that was taken from an account at a specific block number."] # [doc = ""] # [doc = " This helps governance to have an overview of outstanding deposits that should be returned or"] # [doc = " slashed."] pub fn deposits_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: deposits :: Deposits , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SafeMode" , "Deposits" , () , [176u8 , 188u8 , 87u8 , 205u8 , 141u8 , 232u8 , 186u8 , 203u8 , 180u8 , 156u8 , 184u8 , 200u8 , 6u8 , 114u8 , 214u8 , 126u8 , 136u8 , 106u8 , 101u8 , 42u8 , 25u8 , 127u8 , 61u8 , 171u8 , 50u8 , 143u8 , 221u8 , 176u8 , 245u8 , 232u8 , 30u8 , 3u8 ,]) } # [doc = " Holds the reserve that was taken from an account at a specific block number."] # [doc = ""] # [doc = " This helps governance to have an overview of outstanding deposits that should be returned or"] # [doc = " slashed."] pub fn deposits_iter1 (& self , _0 : types :: deposits :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: deposits :: Param0 > , types :: deposits :: Deposits , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SafeMode" , "Deposits" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [176u8 , 188u8 , 87u8 , 205u8 , 141u8 , 232u8 , 186u8 , 203u8 , 180u8 , 156u8 , 184u8 , 200u8 , 6u8 , 114u8 , 214u8 , 126u8 , 136u8 , 106u8 , 101u8 , 42u8 , 25u8 , 127u8 , 61u8 , 171u8 , 50u8 , 143u8 , 221u8 , 176u8 , 245u8 , 232u8 , 30u8 , 3u8 ,]) } # [doc = " Holds the reserve that was taken from an account at a specific block number."] # [doc = ""] # [doc = " This helps governance to have an overview of outstanding deposits that should be returned or"] # [doc = " slashed."] pub fn deposits (& self , _0 : types :: deposits :: Param0 , _1 : types :: deposits :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: deposits :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: deposits :: Param1 > ,) , types :: deposits :: Deposits , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("SafeMode" , "Deposits" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [176u8 , 188u8 , 87u8 , 205u8 , 141u8 , 232u8 , 186u8 , 203u8 , 180u8 , 156u8 , 184u8 , 200u8 , 6u8 , 114u8 , 214u8 , 126u8 , 136u8 , 106u8 , 101u8 , 42u8 , 25u8 , 127u8 , 61u8 , 171u8 , 50u8 , 143u8 , 221u8 , 176u8 , 245u8 , 232u8 , 30u8 , 3u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " For how many blocks the safe-mode will be entered by [`Pallet::enter`]."] pub fn enter_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SafeMode" , "EnterDuration" , [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 ,]) } # [doc = " For how many blocks the safe-mode can be extended by each [`Pallet::extend`] call."] # [doc = ""] # [doc = " This does not impose a hard limit as the safe-mode can be extended multiple times."] pub fn extend_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SafeMode" , "ExtendDuration" , [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 ,]) } # [doc = " The amount that will be reserved upon calling [`Pallet::enter`]."] # [doc = ""] # [doc = " `None` disallows permissionlessly enabling the safe-mode and is a sane default."] pub fn enter_deposit_amount (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: option :: Option < :: core :: primitive :: u64 > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SafeMode" , "EnterDepositAmount" , [168u8 , 195u8 , 60u8 , 101u8 , 150u8 , 188u8 , 3u8 , 22u8 , 134u8 , 165u8 , 250u8 , 47u8 , 9u8 , 0u8 , 181u8 , 183u8 , 7u8 , 152u8 , 106u8 , 159u8 , 190u8 , 186u8 , 130u8 , 13u8 , 63u8 , 147u8 , 58u8 , 206u8 , 19u8 , 64u8 , 206u8 , 233u8 ,]) } # [doc = " The amount that will be reserved upon calling [`Pallet::extend`]."] # [doc = ""] # [doc = " `None` disallows permissionlessly extending the safe-mode and is a sane default."] pub fn extend_deposit_amount (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: option :: Option < :: core :: primitive :: u64 > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SafeMode" , "ExtendDepositAmount" , [168u8 , 195u8 , 60u8 , 101u8 , 150u8 , 188u8 , 3u8 , 22u8 , 134u8 , 165u8 , 250u8 , 47u8 , 9u8 , 0u8 , 181u8 , 183u8 , 7u8 , 152u8 , 106u8 , 159u8 , 190u8 , 186u8 , 130u8 , 13u8 , 63u8 , 147u8 , 58u8 , 206u8 , 19u8 , 64u8 , 206u8 , 233u8 ,]) } # [doc = " The minimal duration a deposit will remain reserved after safe-mode is entered or"] # [doc = " extended, unless [`Pallet::force_release_deposit`] is successfully called sooner."] # [doc = ""] # [doc = " Every deposit is tied to a specific activation or extension, thus each deposit can be"] # [doc = " released independently after the delay for it has passed."] # [doc = ""] # [doc = " `None` disallows permissionlessly releasing the safe-mode deposits and is a sane"] # [doc = " default."] pub fn release_delay (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: option :: Option < :: core :: primitive :: u32 > > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("SafeMode" , "ReleaseDelay" , [111u8 , 234u8 , 140u8 , 193u8 , 117u8 , 12u8 , 156u8 , 42u8 , 108u8 , 165u8 , 55u8 , 45u8 , 64u8 , 14u8 , 126u8 , 168u8 , 240u8 , 34u8 , 185u8 , 106u8 , 152u8 , 134u8 , 255u8 , 67u8 , 57u8 , 132u8 , 69u8 , 70u8 , 8u8 , 41u8 , 19u8 , 90u8 ,]) } } } } pub mod ethereum { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_ethereum :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Transact an Ethereum transaction."] pub struct Transact { pub transaction : transact :: Transaction , } pub mod transact { use super :: runtime_types ; pub type Transaction = runtime_types :: ethereum :: transaction :: TransactionV3 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Transact { const PALLET : & 'static str = "Ethereum" ; const CALL : & 'static str = "transact" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Transact an Ethereum transaction."] pub fn transact (& self , transaction : types :: transact :: Transaction ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Transact > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Ethereum" , "transact" , types :: Transact { transaction , } , [90u8 , 251u8 , 70u8 , 140u8 , 135u8 , 174u8 , 223u8 , 121u8 , 39u8 , 14u8 , 77u8 , 28u8 , 187u8 , 16u8 , 239u8 , 238u8 , 81u8 , 208u8 , 192u8 , 169u8 , 205u8 , 33u8 , 197u8 , 32u8 , 242u8 , 164u8 , 154u8 , 87u8 , 29u8 , 138u8 , 211u8 , 62u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "An ethereum transaction was successfully executed."] pub struct Executed { pub from : executed :: From , pub to : executed :: To , pub transaction_hash : executed :: TransactionHash , pub exit_reason : executed :: ExitReason , pub extra_data : executed :: ExtraData , } pub mod executed { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type TransactionHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type ExitReason = runtime_types :: evm_core :: error :: ExitReason ; pub type ExtraData = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Executed { const PALLET : & 'static str = "Ethereum" ; const EVENT : & 'static str = "Executed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod pending { use super :: runtime_types ; pub type Pending = (runtime_types :: ethereum :: transaction :: TransactionV3 , runtime_types :: fp_rpc :: TransactionStatus , runtime_types :: ethereum :: receipt :: ReceiptV4 ,) ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod counter_for_pending { use super :: runtime_types ; pub type CounterForPending = :: core :: primitive :: u32 ; } pub mod current_block { use super :: runtime_types ; pub type CurrentBlock = runtime_types :: ethereum :: block :: Block < runtime_types :: ethereum :: transaction :: TransactionV3 > ; } pub mod current_receipts { use super :: runtime_types ; pub type CurrentReceipts = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: receipt :: ReceiptV4 > ; } pub mod current_transaction_statuses { use super :: runtime_types ; pub type CurrentTransactionStatuses = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: fp_rpc :: TransactionStatus > ; } pub mod block_hash { use super :: runtime_types ; pub type BlockHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Param0 = runtime_types :: primitive_types :: U256 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Mapping from transaction index to transaction in the current building block."] pub fn pending_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pending :: Pending , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "Pending" , () , [7u8 , 49u8 , 119u8 , 102u8 , 113u8 , 21u8 , 253u8 , 154u8 , 28u8 , 25u8 , 195u8 , 86u8 , 116u8 , 122u8 , 98u8 , 39u8 , 27u8 , 206u8 , 250u8 , 209u8 , 110u8 , 215u8 , 215u8 , 103u8 , 215u8 , 92u8 , 89u8 , 50u8 , 57u8 , 221u8 , 248u8 , 53u8 ,]) } # [doc = " Mapping from transaction index to transaction in the current building block."] pub fn pending (& self , _0 : types :: pending :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pending :: Param0 > , types :: pending :: Pending , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "Pending" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [7u8 , 49u8 , 119u8 , 102u8 , 113u8 , 21u8 , 253u8 , 154u8 , 28u8 , 25u8 , 195u8 , 86u8 , 116u8 , 122u8 , 98u8 , 39u8 , 27u8 , 206u8 , 250u8 , 209u8 , 110u8 , 215u8 , 215u8 , 103u8 , 215u8 , 92u8 , 89u8 , 50u8 , 57u8 , 221u8 , 248u8 , 53u8 ,]) } # [doc = "Counter for the related counted storage map"] pub fn counter_for_pending (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: counter_for_pending :: CounterForPending , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "CounterForPending" , () , [21u8 , 138u8 , 134u8 , 198u8 , 67u8 , 16u8 , 47u8 , 160u8 , 231u8 , 19u8 , 255u8 , 186u8 , 23u8 , 87u8 , 65u8 , 182u8 , 16u8 , 205u8 , 35u8 , 19u8 , 129u8 , 18u8 , 14u8 , 212u8 , 25u8 , 86u8 , 204u8 , 196u8 , 38u8 , 196u8 , 28u8 , 217u8 ,]) } # [doc = " The current Ethereum block."] pub fn current_block (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_block :: CurrentBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "CurrentBlock" , () , [160u8 , 19u8 , 50u8 , 50u8 , 170u8 , 88u8 , 115u8 , 164u8 , 233u8 , 186u8 , 195u8 , 140u8 , 176u8 , 51u8 , 20u8 , 164u8 , 16u8 , 180u8 , 147u8 , 208u8 , 125u8 , 150u8 , 125u8 , 28u8 , 36u8 , 5u8 , 139u8 , 5u8 , 31u8 , 164u8 , 224u8 , 4u8 ,]) } # [doc = " The current Ethereum receipts."] pub fn current_receipts (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_receipts :: CurrentReceipts , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "CurrentReceipts" , () , [103u8 , 116u8 , 205u8 , 150u8 , 92u8 , 7u8 , 161u8 , 160u8 , 139u8 , 111u8 , 22u8 , 50u8 , 136u8 , 109u8 , 249u8 , 9u8 , 133u8 , 47u8 , 84u8 , 129u8 , 168u8 , 195u8 , 122u8 , 132u8 , 92u8 , 38u8 , 166u8 , 129u8 , 118u8 , 51u8 , 89u8 , 27u8 ,]) } # [doc = " The current transaction statuses."] pub fn current_transaction_statuses (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_transaction_statuses :: CurrentTransactionStatuses , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "CurrentTransactionStatuses" , () , [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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: block_hash :: BlockHash , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "BlockHash" , () , [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 (& self , _0 : types :: block_hash :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: block_hash :: Param0 > , types :: block_hash :: BlockHash , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Ethereum" , "BlockHash" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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 ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_evm :: pallet :: Error ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Withdraw balance from EVM into currency/balances pallet."] pub struct Withdraw { pub address : withdraw :: Address , pub value : withdraw :: Value , } pub mod withdraw { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Value = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Withdraw { const PALLET : & 'static str = "EVM" ; const CALL : & 'static str = "withdraw" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Issue an EVM call operation. This is similar to a message call transaction in Ethereum."] pub struct Call { pub source : call :: Source , pub target : call :: Target , pub input : call :: Input , pub value : call :: Value , pub gas_limit : call :: GasLimit , pub max_fee_per_gas : call :: MaxFeePerGas , pub max_priority_fee_per_gas : call :: MaxPriorityFeePerGas , pub nonce : call :: Nonce , pub access_list : call :: AccessList , pub authorization_list : call :: AuthorizationList , } pub mod call { use super :: runtime_types ; pub type Source = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Target = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Input = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Value = runtime_types :: primitive_types :: U256 ; pub type GasLimit = :: core :: primitive :: u64 ; pub type MaxFeePerGas = runtime_types :: primitive_types :: U256 ; pub type MaxPriorityFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Nonce = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type AccessList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > ; pub type AuthorizationList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Call { const PALLET : & 'static str = "EVM" ; const CALL : & 'static str = "call" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Issue an EVM create operation. This is similar to a contract creation transaction in"] # [doc = "Ethereum."] pub struct Create { pub source : create :: Source , pub init : create :: Init , pub value : create :: Value , pub gas_limit : create :: GasLimit , pub max_fee_per_gas : create :: MaxFeePerGas , pub max_priority_fee_per_gas : create :: MaxPriorityFeePerGas , pub nonce : create :: Nonce , pub access_list : create :: AccessList , pub authorization_list : create :: AuthorizationList , } pub mod create { use super :: runtime_types ; pub type Source = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Init = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Value = runtime_types :: primitive_types :: U256 ; pub type GasLimit = :: core :: primitive :: u64 ; pub type MaxFeePerGas = runtime_types :: primitive_types :: U256 ; pub type MaxPriorityFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Nonce = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type AccessList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > ; pub type AuthorizationList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Create { const PALLET : & 'static str = "EVM" ; const CALL : & 'static str = "create" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Issue an EVM create2 operation."] pub struct Create2 { pub source : create2 :: Source , pub init : create2 :: Init , pub salt : create2 :: Salt , pub value : create2 :: Value , pub gas_limit : create2 :: GasLimit , pub max_fee_per_gas : create2 :: MaxFeePerGas , pub max_priority_fee_per_gas : create2 :: MaxPriorityFeePerGas , pub nonce : create2 :: Nonce , pub access_list : create2 :: AccessList , pub authorization_list : create2 :: AuthorizationList , } pub mod create2 { use super :: runtime_types ; pub type Source = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Init = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Salt = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Value = runtime_types :: primitive_types :: U256 ; pub type GasLimit = :: core :: primitive :: u64 ; pub type MaxFeePerGas = runtime_types :: primitive_types :: U256 ; pub type MaxPriorityFeePerGas = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type Nonce = :: core :: option :: Option < runtime_types :: primitive_types :: U256 > ; pub type AccessList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > ; pub type AuthorizationList = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Create2 { const PALLET : & 'static str = "EVM" ; const CALL : & 'static str = "create2" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SetWhitelist { pub new : set_whitelist :: New , } pub mod set_whitelist { use super :: runtime_types ; pub type New = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H160 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetWhitelist { const PALLET : & 'static str = "EVM" ; const CALL : & 'static str = "set_whitelist" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DisableWhitelist { pub disabled : disable_whitelist :: Disabled , } pub mod disable_whitelist { use super :: runtime_types ; pub type Disabled = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DisableWhitelist { const PALLET : & 'static str = "EVM" ; const CALL : & 'static str = "disable_whitelist" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Withdraw balance from EVM into currency/balances pallet."] pub fn withdraw (& self , address : types :: withdraw :: Address , value : types :: withdraw :: Value ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Withdraw > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("EVM" , "withdraw" , types :: Withdraw { address , value , } , [135u8 , 188u8 , 45u8 , 31u8 , 97u8 , 13u8 , 204u8 , 72u8 , 188u8 , 45u8 , 61u8 , 246u8 , 4u8 , 165u8 , 30u8 , 1u8 , 30u8 , 109u8 , 117u8 , 205u8 , 148u8 , 196u8 , 131u8 , 216u8 , 23u8 , 152u8 , 18u8 , 165u8 , 133u8 , 20u8 , 65u8 , 210u8 ,]) } # [doc = "Issue an EVM call operation. This is similar to a message call transaction in Ethereum."] pub fn call (& self , source : types :: call :: Source , target : types :: call :: Target , input : types :: call :: Input , value : types :: call :: Value , gas_limit : types :: call :: GasLimit , max_fee_per_gas : types :: call :: MaxFeePerGas , max_priority_fee_per_gas : types :: call :: MaxPriorityFeePerGas , nonce : types :: call :: Nonce , access_list : types :: call :: AccessList , authorization_list : types :: call :: AuthorizationList ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Call > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("EVM" , "call" , types :: Call { source , target , input , value , gas_limit , max_fee_per_gas , max_priority_fee_per_gas , nonce , access_list , authorization_list , } , [43u8 , 131u8 , 117u8 , 176u8 , 189u8 , 205u8 , 125u8 , 21u8 , 100u8 , 175u8 , 63u8 , 241u8 , 179u8 , 22u8 , 13u8 , 85u8 , 130u8 , 42u8 , 240u8 , 181u8 , 202u8 , 150u8 , 223u8 , 57u8 , 189u8 , 144u8 , 211u8 , 173u8 , 4u8 , 189u8 , 139u8 , 229u8 ,]) } # [doc = "Issue an EVM create operation. This is similar to a contract creation transaction in"] # [doc = "Ethereum."] pub fn create (& self , source : types :: create :: Source , init : types :: create :: Init , value : types :: create :: Value , gas_limit : types :: create :: GasLimit , max_fee_per_gas : types :: create :: MaxFeePerGas , max_priority_fee_per_gas : types :: create :: MaxPriorityFeePerGas , nonce : types :: create :: Nonce , access_list : types :: create :: AccessList , authorization_list : types :: create :: AuthorizationList ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Create > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("EVM" , "create" , types :: Create { source , init , value , gas_limit , max_fee_per_gas , max_priority_fee_per_gas , nonce , access_list , authorization_list , } , [120u8 , 184u8 , 37u8 , 18u8 , 60u8 , 104u8 , 189u8 , 103u8 , 78u8 , 22u8 , 240u8 , 50u8 , 170u8 , 55u8 , 5u8 , 22u8 , 90u8 , 191u8 , 122u8 , 38u8 , 162u8 , 148u8 , 23u8 , 115u8 , 52u8 , 163u8 , 115u8 , 162u8 , 56u8 , 101u8 , 49u8 , 134u8 ,]) } # [doc = "Issue an EVM create2 operation."] pub fn create2 (& self , source : types :: create2 :: Source , init : types :: create2 :: Init , salt : types :: create2 :: Salt , value : types :: create2 :: Value , gas_limit : types :: create2 :: GasLimit , max_fee_per_gas : types :: create2 :: MaxFeePerGas , max_priority_fee_per_gas : types :: create2 :: MaxPriorityFeePerGas , nonce : types :: create2 :: Nonce , access_list : types :: create2 :: AccessList , authorization_list : types :: create2 :: AuthorizationList ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Create2 > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("EVM" , "create2" , types :: Create2 { source , init , salt , value , gas_limit , max_fee_per_gas , max_priority_fee_per_gas , nonce , access_list , authorization_list , } , [11u8 , 127u8 , 157u8 , 129u8 , 171u8 , 22u8 , 111u8 , 73u8 , 191u8 , 68u8 , 92u8 , 190u8 , 208u8 , 231u8 , 106u8 , 145u8 , 23u8 , 148u8 , 120u8 , 62u8 , 170u8 , 194u8 , 29u8 , 206u8 , 236u8 , 249u8 , 227u8 , 144u8 , 29u8 , 16u8 , 192u8 , 188u8 ,]) } pub fn set_whitelist (& self , new : types :: set_whitelist :: New ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetWhitelist > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("EVM" , "set_whitelist" , types :: SetWhitelist { new , } , [185u8 , 172u8 , 14u8 , 148u8 , 66u8 , 98u8 , 55u8 , 22u8 , 81u8 , 114u8 , 181u8 , 143u8 , 110u8 , 100u8 , 136u8 , 249u8 , 179u8 , 232u8 , 55u8 , 168u8 , 49u8 , 129u8 , 95u8 , 180u8 , 213u8 , 247u8 , 160u8 , 230u8 , 83u8 , 83u8 , 166u8 , 62u8 ,]) } pub fn disable_whitelist (& self , disabled : types :: disable_whitelist :: Disabled ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DisableWhitelist > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("EVM" , "disable_whitelist" , types :: DisableWhitelist { disabled , } , [240u8 , 162u8 , 95u8 , 199u8 , 83u8 , 82u8 , 108u8 , 184u8 , 80u8 , 181u8 , 189u8 , 165u8 , 188u8 , 160u8 , 187u8 , 224u8 , 110u8 , 184u8 , 156u8 , 134u8 , 124u8 , 210u8 , 214u8 , 129u8 , 213u8 , 76u8 , 188u8 , 31u8 , 11u8 , 13u8 , 128u8 , 217u8 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Ethereum events from contracts."] pub struct Log { pub log : log :: Log , } pub mod log { use super :: runtime_types ; pub type Log = runtime_types :: ethereum :: log :: Log ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Log { const PALLET : & 'static str = "EVM" ; const EVENT : & 'static str = "Log" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract has been created at given address."] pub struct Created { pub address : created :: Address , } pub mod created { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Created { const PALLET : & 'static str = "EVM" ; const EVENT : & 'static str = "Created" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract was attempted to be created, but the execution failed."] pub struct CreatedFailed { pub address : created_failed :: Address , } pub mod created_failed { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CreatedFailed { const PALLET : & 'static str = "EVM" ; const EVENT : & 'static str = "CreatedFailed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract has been executed successfully with states applied."] pub struct Executed { pub address : executed :: Address , } pub mod executed { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Executed { const PALLET : & 'static str = "EVM" ; const EVENT : & 'static str = "Executed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract has been executed with errors. States are reverted with only gas fees applied."] pub struct ExecutedFailed { pub address : executed_failed :: Address , } pub mod executed_failed { use super :: runtime_types ; pub type Address = :: subxt :: ext :: subxt_core :: utils :: H160 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ExecutedFailed { const PALLET : & 'static str = "EVM" ; const EVENT : & 'static str = "ExecutedFailed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod account_codes { use super :: runtime_types ; pub type AccountCodes = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H160 ; } pub mod account_codes_metadata { use super :: runtime_types ; pub type AccountCodesMetadata = runtime_types :: pallet_evm :: CodeMetadata ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H160 ; } pub mod account_storages { use super :: runtime_types ; pub type AccountStorages = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H160 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod whitelisted_creators { use super :: runtime_types ; pub type WhitelistedCreators = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H160 > ; } pub mod disable_whitelist_check { use super :: runtime_types ; pub type DisableWhitelistCheck = :: core :: primitive :: bool ; } } pub struct StorageApi ; impl StorageApi { pub fn account_codes_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account_codes :: AccountCodes , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountCodes" , () , [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 (& self , _0 : types :: account_codes :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account_codes :: Param0 > , types :: account_codes :: AccountCodes , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountCodes" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account_codes_metadata :: AccountCodesMetadata , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountCodesMetadata" , () , [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 (& self , _0 : types :: account_codes_metadata :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account_codes_metadata :: Param0 > , types :: account_codes_metadata :: AccountCodesMetadata , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountCodesMetadata" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: account_storages :: AccountStorages , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountStorages" , () , [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_iter1 (& self , _0 : types :: account_storages :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account_storages :: Param0 > , types :: account_storages :: AccountStorages , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountStorages" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [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 (& self , _0 : types :: account_storages :: Param0 , _1 : types :: account_storages :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account_storages :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: account_storages :: Param1 > ,) , types :: account_storages :: AccountStorages , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "AccountStorages" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [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 whitelisted_creators (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: whitelisted_creators :: WhitelistedCreators , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "WhitelistedCreators" , () , [32u8 , 0u8 , 241u8 , 215u8 , 20u8 , 25u8 , 60u8 , 48u8 , 117u8 , 249u8 , 187u8 , 27u8 , 115u8 , 127u8 , 173u8 , 7u8 , 222u8 , 56u8 , 102u8 , 254u8 , 253u8 , 177u8 , 166u8 , 9u8 , 78u8 , 167u8 , 173u8 , 84u8 , 181u8 , 162u8 , 153u8 , 151u8 ,]) } pub fn disable_whitelist_check (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: disable_whitelist_check :: DisableWhitelistCheck , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVM" , "DisableWhitelistCheck" , () , [95u8 , 63u8 , 29u8 , 211u8 , 247u8 , 16u8 , 115u8 , 86u8 , 99u8 , 56u8 , 237u8 , 138u8 , 220u8 , 162u8 , 86u8 , 46u8 , 101u8 , 167u8 , 148u8 , 132u8 , 218u8 , 40u8 , 157u8 , 134u8 , 13u8 , 103u8 , 160u8 , 23u8 , 110u8 , 230u8 , 226u8 , 27u8 ,]) } } } } pub mod evm_chain_id { use super :: root_mod ; use super :: runtime_types ; pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod chain_id { use super :: runtime_types ; pub type ChainId = :: core :: primitive :: u64 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The EVM chain ID."] pub fn chain_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: chain_id :: ChainId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("EVMChainId" , "ChainId" , () , [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 base_fee { use super :: root_mod ; use super :: runtime_types ; # [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 ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SetBaseFeePerGas { pub fee : set_base_fee_per_gas :: Fee , } pub mod set_base_fee_per_gas { use super :: runtime_types ; pub type Fee = runtime_types :: primitive_types :: U256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetBaseFeePerGas { const PALLET : & 'static str = "BaseFee" ; const CALL : & 'static str = "set_base_fee_per_gas" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SetElasticity { pub elasticity : set_elasticity :: Elasticity , } pub mod set_elasticity { use super :: runtime_types ; pub type Elasticity = runtime_types :: sp_arithmetic :: per_things :: Permill ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetElasticity { const PALLET : & 'static str = "BaseFee" ; const CALL : & 'static str = "set_elasticity" ; } } pub struct TransactionApi ; impl TransactionApi { pub fn set_base_fee_per_gas (& self , fee : types :: set_base_fee_per_gas :: Fee ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetBaseFeePerGas > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } pub fn set_elasticity (& self , elasticity : types :: set_elasticity :: Elasticity ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetElasticity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: 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 ,]) } } } # [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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NewBaseFeePerGas { pub fee : new_base_fee_per_gas :: Fee , } pub mod new_base_fee_per_gas { use super :: runtime_types ; pub type Fee = runtime_types :: primitive_types :: U256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewBaseFeePerGas { const PALLET : & 'static str = "BaseFee" ; const EVENT : & 'static str = "NewBaseFeePerGas" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BaseFeeOverflow ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BaseFeeOverflow { const PALLET : & 'static str = "BaseFee" ; const EVENT : & 'static str = "BaseFeeOverflow" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NewElasticity { pub elasticity : new_elasticity :: Elasticity , } pub mod new_elasticity { use super :: runtime_types ; pub type Elasticity = runtime_types :: sp_arithmetic :: per_things :: Permill ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewElasticity { const PALLET : & 'static str = "BaseFee" ; const EVENT : & 'static str = "NewElasticity" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod base_fee_per_gas { use super :: runtime_types ; pub type BaseFeePerGas = runtime_types :: primitive_types :: U256 ; } pub mod elasticity { use super :: runtime_types ; pub type Elasticity = runtime_types :: sp_arithmetic :: per_things :: Permill ; } } pub struct StorageApi ; impl StorageApi { pub fn base_fee_per_gas (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: base_fee_per_gas :: BaseFeePerGas , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("BaseFee" , "BaseFeePerGas" , () , [163u8 , 83u8 , 190u8 , 204u8 , 112u8 , 186u8 , 110u8 , 189u8 , 86u8 , 226u8 , 192u8 , 127u8 , 139u8 , 72u8 , 96u8 , 204u8 , 173u8 , 174u8 , 158u8 , 163u8 , 140u8 , 168u8 , 159u8 , 186u8 , 140u8 , 110u8 , 61u8 , 151u8 , 201u8 , 172u8 , 233u8 , 199u8 ,]) } pub fn elasticity (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: elasticity :: Elasticity , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("BaseFee" , "Elasticity" , () , [196u8 , 184u8 , 245u8 , 90u8 , 25u8 , 50u8 , 66u8 , 69u8 , 140u8 , 128u8 , 179u8 , 63u8 , 197u8 , 133u8 , 135u8 , 141u8 , 56u8 , 0u8 , 143u8 , 241u8 , 200u8 , 114u8 , 73u8 , 157u8 , 85u8 , 190u8 , 1u8 , 2u8 , 208u8 , 235u8 , 62u8 , 16u8 ,]) } } } } pub mod drand { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_drand :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_drand :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Verify and write a pulse from the beacon into the runtime"] pub struct WritePulse { pub pulses_payload : write_pulse :: PulsesPayload , pub signature : write_pulse :: Signature , } pub mod write_pulse { use super :: runtime_types ; pub type PulsesPayload = runtime_types :: pallet_drand :: types :: PulsesPayload < runtime_types :: sp_runtime :: MultiSigner , :: core :: primitive :: u32 > ; pub type Signature = :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSignature > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for WritePulse { const PALLET : & 'static str = "Drand" ; const CALL : & 'static str = "write_pulse" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "allows the root user to set the beacon configuration"] # [doc = "generally this would be called from an offchain worker context."] # [doc = "there is no verification of configurations, so be careful with this."] # [doc = ""] # [doc = "* `origin`: the root user"] # [doc = "* `config`: the beacon configuration"] pub struct SetBeaconConfig { pub config_payload : set_beacon_config :: ConfigPayload , pub signature : set_beacon_config :: Signature , } pub mod set_beacon_config { use super :: runtime_types ; pub type ConfigPayload = runtime_types :: pallet_drand :: types :: BeaconConfigurationPayload < runtime_types :: sp_runtime :: MultiSigner , :: core :: primitive :: u32 > ; pub type Signature = :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSignature > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetBeaconConfig { const PALLET : & 'static str = "Drand" ; const CALL : & 'static str = "set_beacon_config" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "allows the root user to set the oldest stored round"] pub struct SetOldestStoredRound { pub oldest_round : set_oldest_stored_round :: OldestRound , } pub mod set_oldest_stored_round { use super :: runtime_types ; pub type OldestRound = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetOldestStoredRound { const PALLET : & 'static str = "Drand" ; const CALL : & 'static str = "set_oldest_stored_round" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Verify and write a pulse from the beacon into the runtime"] pub fn write_pulse (& self , pulses_payload : types :: write_pulse :: PulsesPayload , signature : types :: write_pulse :: Signature ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: WritePulse > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Drand" , "write_pulse" , types :: WritePulse { pulses_payload , signature , } , [221u8 , 164u8 , 46u8 , 186u8 , 141u8 , 92u8 , 200u8 , 194u8 , 198u8 , 147u8 , 243u8 , 155u8 , 161u8 , 220u8 , 28u8 , 118u8 , 185u8 , 79u8 , 32u8 , 221u8 , 220u8 , 59u8 , 231u8 , 236u8 , 147u8 , 48u8 , 148u8 , 2u8 , 134u8 , 128u8 , 79u8 , 227u8 ,]) } # [doc = "allows the root user to set the beacon configuration"] # [doc = "generally this would be called from an offchain worker context."] # [doc = "there is no verification of configurations, so be careful with this."] # [doc = ""] # [doc = "* `origin`: the root user"] # [doc = "* `config`: the beacon configuration"] pub fn set_beacon_config (& self , config_payload : types :: set_beacon_config :: ConfigPayload , signature : types :: set_beacon_config :: Signature ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetBeaconConfig > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Drand" , "set_beacon_config" , types :: SetBeaconConfig { config_payload , signature , } , [243u8 , 253u8 , 178u8 , 170u8 , 110u8 , 204u8 , 66u8 , 210u8 , 95u8 , 111u8 , 220u8 , 214u8 , 34u8 , 141u8 , 17u8 , 216u8 , 111u8 , 65u8 , 32u8 , 236u8 , 210u8 , 169u8 , 240u8 , 45u8 , 117u8 , 133u8 , 235u8 , 240u8 , 166u8 , 246u8 , 20u8 , 63u8 ,]) } # [doc = "allows the root user to set the oldest stored round"] pub fn set_oldest_stored_round (& self , oldest_round : types :: set_oldest_stored_round :: OldestRound ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetOldestStoredRound > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Drand" , "set_oldest_stored_round" , types :: SetOldestStoredRound { oldest_round , } , [73u8 , 193u8 , 136u8 , 48u8 , 145u8 , 157u8 , 215u8 , 8u8 , 246u8 , 115u8 , 44u8 , 66u8 , 104u8 , 79u8 , 62u8 , 12u8 , 92u8 , 192u8 , 202u8 , 69u8 , 42u8 , 219u8 , 57u8 , 173u8 , 112u8 , 174u8 , 249u8 , 29u8 , 171u8 , 251u8 , 36u8 , 84u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_drand :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Beacon Configuration has changed."] pub struct BeaconConfigChanged ; impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for BeaconConfigChanged { const PALLET : & 'static str = "Drand" ; const EVENT : & 'static str = "BeaconConfigChanged" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Successfully set a new pulse(s)."] pub struct NewPulse { pub rounds : new_pulse :: Rounds , } pub mod new_pulse { use super :: runtime_types ; pub type Rounds = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for NewPulse { const PALLET : & 'static str = "Drand" ; const EVENT : & 'static str = "NewPulse" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Oldest Stored Round has been set."] pub struct SetOldestStoredRound (pub set_oldest_stored_round :: Field0 ,) ; pub mod set_oldest_stored_round { use super :: runtime_types ; pub type Field0 = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for SetOldestStoredRound { const PALLET : & 'static str = "Drand" ; const EVENT : & 'static str = "SetOldestStoredRound" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod beacon_config { use super :: runtime_types ; pub type BeaconConfig = runtime_types :: pallet_drand :: types :: BeaconConfiguration ; } pub mod has_migration_run { use super :: runtime_types ; pub type HasMigrationRun = :: core :: primitive :: bool ; pub type Param0 = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } pub mod pulses { use super :: runtime_types ; pub type Pulses = runtime_types :: pallet_drand :: types :: Pulse ; pub type Param0 = :: core :: primitive :: u64 ; } pub mod last_stored_round { use super :: runtime_types ; pub type LastStoredRound = :: core :: primitive :: u64 ; } pub mod oldest_stored_round { use super :: runtime_types ; pub type OldestStoredRound = :: core :: primitive :: u64 ; } pub mod next_unsigned_at { use super :: runtime_types ; pub type NextUnsignedAt = :: core :: primitive :: u32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " the drand beacon configuration"] pub fn beacon_config (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: beacon_config :: BeaconConfig , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "BeaconConfig" , () , [18u8 , 47u8 , 206u8 , 15u8 , 177u8 , 6u8 , 99u8 , 97u8 , 203u8 , 190u8 , 194u8 , 210u8 , 188u8 , 82u8 , 149u8 , 252u8 , 130u8 , 250u8 , 99u8 , 79u8 , 144u8 , 65u8 , 9u8 , 3u8 , 12u8 , 14u8 , 236u8 , 109u8 , 114u8 , 240u8 , 215u8 , 231u8 ,]) } # [doc = " Storage for migration run status"] pub fn has_migration_run_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: has_migration_run :: HasMigrationRun , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "HasMigrationRun" , () , [136u8 , 249u8 , 238u8 , 25u8 , 98u8 , 133u8 , 200u8 , 15u8 , 17u8 , 89u8 , 154u8 , 4u8 , 233u8 , 103u8 , 58u8 , 217u8 , 175u8 , 118u8 , 195u8 , 242u8 , 84u8 , 56u8 , 128u8 , 198u8 , 252u8 , 160u8 , 185u8 , 22u8 , 19u8 , 240u8 , 98u8 , 7u8 ,]) } # [doc = " Storage for migration run status"] pub fn has_migration_run (& self , _0 : types :: has_migration_run :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: has_migration_run :: Param0 > , types :: has_migration_run :: HasMigrationRun , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "HasMigrationRun" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [136u8 , 249u8 , 238u8 , 25u8 , 98u8 , 133u8 , 200u8 , 15u8 , 17u8 , 89u8 , 154u8 , 4u8 , 233u8 , 103u8 , 58u8 , 217u8 , 175u8 , 118u8 , 195u8 , 242u8 , 84u8 , 56u8 , 128u8 , 198u8 , 252u8 , 160u8 , 185u8 , 22u8 , 19u8 , 240u8 , 98u8 , 7u8 ,]) } # [doc = " map round number to pulse"] pub fn pulses_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pulses :: Pulses , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "Pulses" , () , [111u8 , 101u8 , 109u8 , 228u8 , 55u8 , 75u8 , 231u8 , 111u8 , 247u8 , 135u8 , 218u8 , 133u8 , 238u8 , 209u8 , 208u8 , 135u8 , 211u8 , 166u8 , 70u8 , 31u8 , 116u8 , 110u8 , 182u8 , 254u8 , 128u8 , 28u8 , 152u8 , 59u8 , 71u8 , 130u8 , 40u8 , 73u8 ,]) } # [doc = " map round number to pulse"] pub fn pulses (& self , _0 : types :: pulses :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pulses :: Param0 > , types :: pulses :: Pulses , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "Pulses" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [111u8 , 101u8 , 109u8 , 228u8 , 55u8 , 75u8 , 231u8 , 111u8 , 247u8 , 135u8 , 218u8 , 133u8 , 238u8 , 209u8 , 208u8 , 135u8 , 211u8 , 166u8 , 70u8 , 31u8 , 116u8 , 110u8 , 182u8 , 254u8 , 128u8 , 28u8 , 152u8 , 59u8 , 71u8 , 130u8 , 40u8 , 73u8 ,]) } pub fn last_stored_round (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_stored_round :: LastStoredRound , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "LastStoredRound" , () , [42u8 , 140u8 , 235u8 , 188u8 , 84u8 , 128u8 , 25u8 , 244u8 , 36u8 , 165u8 , 34u8 , 179u8 , 116u8 , 206u8 , 208u8 , 187u8 , 14u8 , 228u8 , 163u8 , 29u8 , 187u8 , 145u8 , 151u8 , 25u8 , 209u8 , 148u8 , 30u8 , 248u8 , 251u8 , 238u8 , 206u8 , 249u8 ,]) } # [doc = " oldest stored round"] pub fn oldest_stored_round (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: oldest_stored_round :: OldestStoredRound , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "OldestStoredRound" , () , [213u8 , 254u8 , 95u8 , 243u8 , 105u8 , 135u8 , 206u8 , 169u8 , 141u8 , 95u8 , 34u8 , 61u8 , 195u8 , 8u8 , 177u8 , 127u8 , 172u8 , 12u8 , 82u8 , 54u8 , 10u8 , 40u8 , 44u8 , 173u8 , 24u8 , 30u8 , 43u8 , 94u8 , 114u8 , 63u8 , 156u8 , 68u8 ,]) } # [doc = " Defines the block when next unsigned transaction will be accepted."] # [doc = ""] # [doc = " To prevent spam of unsigned (and unpaid!) transactions on the network,"] # [doc = " we only allow one transaction per block."] # [doc = " This storage entry defines when new transaction is going to be accepted."] pub fn next_unsigned_at (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_unsigned_at :: NextUnsignedAt , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Drand" , "NextUnsignedAt" , () , [128u8 , 69u8 , 217u8 , 175u8 , 94u8 , 131u8 , 228u8 , 97u8 , 2u8 , 91u8 , 12u8 , 95u8 , 35u8 , 105u8 , 136u8 , 55u8 , 49u8 , 3u8 , 224u8 , 213u8 , 96u8 , 45u8 , 19u8 , 217u8 , 5u8 , 6u8 , 20u8 , 51u8 , 219u8 , 66u8 , 143u8 , 50u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [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 :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Drand" , "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 ,]) } # [doc = " The maximum number of milliseconds we are willing to wait for the HTTP request to"] # [doc = " complete."] pub fn http_fetch_timeout (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Drand" , "HttpFetchTimeout" , [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 crowdloan { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_crowdloan :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_crowdloan :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Create a crowdloan that will raise funds up to a maximum cap and if successful,"] # [doc = "will transfer funds to the target address if provided and dispatch the call"] # [doc = "(using creator origin)."] # [doc = ""] # [doc = "The initial deposit will be transfered to the crowdloan account and will be refunded"] # [doc = "in case the crowdloan fails to raise the cap. Additionally, the creator will pay for"] # [doc = "the execution of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `deposit`: The initial deposit from the creator."] # [doc = "- `min_contribution`: The minimum contribution required to contribute to the crowdloan."] # [doc = "- `cap`: The maximum amount of funds that can be raised."] # [doc = "- `end`: The block number at which the crowdloan will end."] # [doc = "- `call`: The call to dispatch when the crowdloan is finalized."] # [doc = "- `target_address`: The address to transfer the raised funds to if provided."] pub struct Create { # [codec (compact)] pub deposit : create :: Deposit , # [codec (compact)] pub min_contribution : create :: MinContribution , # [codec (compact)] pub cap : create :: Cap , # [codec (compact)] pub end : create :: End , pub call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < create :: Call > , pub target_address : create :: TargetAddress , } pub mod create { use super :: runtime_types ; pub type Deposit = :: core :: primitive :: u64 ; pub type MinContribution = :: core :: primitive :: u64 ; pub type Cap = :: core :: primitive :: u64 ; pub type End = :: core :: primitive :: u32 ; pub type Call = :: core :: option :: Option < runtime_types :: node_subtensor_runtime :: RuntimeCall > ; pub type TargetAddress = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Create { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "create" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contribute to an active crowdloan."] # [doc = ""] # [doc = "The contribution will be transfered to the crowdloan account and will be refunded"] # [doc = "if the crowdloan fails to raise the cap. If the contribution would raise the amount above the cap,"] # [doc = "the contribution will be set to the amount that is left to be raised."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to contribute to."] # [doc = "- `amount`: The amount to contribute."] pub struct Contribute { # [codec (compact)] pub crowdloan_id : contribute :: CrowdloanId , # [codec (compact)] pub amount : contribute :: Amount , } pub mod contribute { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Contribute { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "contribute" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Withdraw a contribution from an active (not yet finalized or dissolved) crowdloan."] # [doc = ""] # [doc = "Only contributions over the deposit can be withdrawn by the creator."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to withdraw from."] pub struct Withdraw { # [codec (compact)] pub crowdloan_id : withdraw :: CrowdloanId , } pub mod withdraw { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Withdraw { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "withdraw" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Finalize crowdloan that has reached the cap."] # [doc = ""] # [doc = "The call will transfer the raised amount to the target address if it was provided when the crowdloan was created"] # [doc = "and dispatch the call that was provided using the creator origin. The CurrentCrowdloanId will be set to the"] # [doc = "crowdloan id being finalized so the dispatched call can access it temporarily by accessing"] # [doc = "the `CurrentCrowdloanId` storage item."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to finalize."] pub struct Finalize { # [codec (compact)] pub crowdloan_id : finalize :: CrowdloanId , } pub mod finalize { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Finalize { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "finalize" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Refund contributors of a non-finalized crowdloan."] # [doc = ""] # [doc = "The call will try to refund all contributors (excluding the creator) up to the limit defined by the `RefundContributorsLimit`."] # [doc = "If the limit is reached, the call will stop and the crowdloan will be marked as partially refunded."] # [doc = "It may be needed to dispatch this call multiple times to refund all contributors."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and doesn't need to be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to refund."] pub struct Refund { # [codec (compact)] pub crowdloan_id : refund :: CrowdloanId , } pub mod refund { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Refund { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "refund" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dissolve a crowdloan."] # [doc = ""] # [doc = "The crowdloan will be removed from the storage."] # [doc = "All contributions must have been refunded before the crowdloan can be dissolved (except the creator's one)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to dissolve."] pub struct Dissolve { # [codec (compact)] pub crowdloan_id : dissolve :: CrowdloanId , } pub mod dissolve { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Dissolve { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "dissolve" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Update the minimum contribution of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the minimum contribution of."] # [doc = "- `new_min_contribution`: The new minimum contribution."] pub struct UpdateMinContribution { # [codec (compact)] pub crowdloan_id : update_min_contribution :: CrowdloanId , # [codec (compact)] pub new_min_contribution : update_min_contribution :: NewMinContribution , } pub mod update_min_contribution { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type NewMinContribution = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpdateMinContribution { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "update_min_contribution" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Update the end block of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the end block of."] # [doc = "- `new_end`: The new end block."] pub struct UpdateEnd { # [codec (compact)] pub crowdloan_id : update_end :: CrowdloanId , # [codec (compact)] pub new_end : update_end :: NewEnd , } pub mod update_end { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type NewEnd = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpdateEnd { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "update_end" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Update the cap of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the cap of."] # [doc = "- `new_cap`: The new cap."] pub struct UpdateCap { # [codec (compact)] pub crowdloan_id : update_cap :: CrowdloanId , # [codec (compact)] pub new_cap : update_cap :: NewCap , } pub mod update_cap { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type NewCap = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UpdateCap { const PALLET : & 'static str = "Crowdloan" ; const CALL : & 'static str = "update_cap" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Create a crowdloan that will raise funds up to a maximum cap and if successful,"] # [doc = "will transfer funds to the target address if provided and dispatch the call"] # [doc = "(using creator origin)."] # [doc = ""] # [doc = "The initial deposit will be transfered to the crowdloan account and will be refunded"] # [doc = "in case the crowdloan fails to raise the cap. Additionally, the creator will pay for"] # [doc = "the execution of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `deposit`: The initial deposit from the creator."] # [doc = "- `min_contribution`: The minimum contribution required to contribute to the crowdloan."] # [doc = "- `cap`: The maximum amount of funds that can be raised."] # [doc = "- `end`: The block number at which the crowdloan will end."] # [doc = "- `call`: The call to dispatch when the crowdloan is finalized."] # [doc = "- `target_address`: The address to transfer the raised funds to if provided."] pub fn create (& self , deposit : types :: create :: Deposit , min_contribution : types :: create :: MinContribution , cap : types :: create :: Cap , end : types :: create :: End , call : types :: create :: Call , target_address : types :: create :: TargetAddress ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Create > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "create" , types :: Create { deposit , min_contribution , cap , end , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box :: new (call) , target_address , } , [7u8 , 67u8 , 145u8 , 25u8 , 103u8 , 53u8 , 144u8 , 252u8 , 121u8 , 253u8 , 158u8 , 2u8 , 247u8 , 10u8 , 130u8 , 30u8 , 64u8 , 20u8 , 144u8 , 142u8 , 95u8 , 119u8 , 129u8 , 236u8 , 237u8 , 222u8 , 24u8 , 212u8 , 13u8 , 208u8 , 90u8 , 112u8 ,]) } # [doc = "Contribute to an active crowdloan."] # [doc = ""] # [doc = "The contribution will be transfered to the crowdloan account and will be refunded"] # [doc = "if the crowdloan fails to raise the cap. If the contribution would raise the amount above the cap,"] # [doc = "the contribution will be set to the amount that is left to be raised."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to contribute to."] # [doc = "- `amount`: The amount to contribute."] pub fn contribute (& self , crowdloan_id : types :: contribute :: CrowdloanId , amount : types :: contribute :: Amount ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Contribute > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "contribute" , types :: Contribute { crowdloan_id , amount , } , [234u8 , 63u8 , 92u8 , 222u8 , 178u8 , 253u8 , 250u8 , 52u8 , 198u8 , 176u8 , 86u8 , 72u8 , 191u8 , 5u8 , 19u8 , 80u8 , 106u8 , 228u8 , 51u8 , 208u8 , 221u8 , 130u8 , 30u8 , 10u8 , 32u8 , 241u8 , 88u8 , 230u8 , 30u8 , 152u8 , 240u8 , 36u8 ,]) } # [doc = "Withdraw a contribution from an active (not yet finalized or dissolved) crowdloan."] # [doc = ""] # [doc = "Only contributions over the deposit can be withdrawn by the creator."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to withdraw from."] pub fn withdraw (& self , crowdloan_id : types :: withdraw :: CrowdloanId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Withdraw > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "withdraw" , types :: Withdraw { crowdloan_id , } , [20u8 , 54u8 , 243u8 , 253u8 , 51u8 , 189u8 , 108u8 , 142u8 , 179u8 , 51u8 , 210u8 , 120u8 , 63u8 , 46u8 , 85u8 , 169u8 , 142u8 , 119u8 , 217u8 , 2u8 , 146u8 , 187u8 , 167u8 , 208u8 , 239u8 , 165u8 , 78u8 , 79u8 , 242u8 , 219u8 , 102u8 , 126u8 ,]) } # [doc = "Finalize crowdloan that has reached the cap."] # [doc = ""] # [doc = "The call will transfer the raised amount to the target address if it was provided when the crowdloan was created"] # [doc = "and dispatch the call that was provided using the creator origin. The CurrentCrowdloanId will be set to the"] # [doc = "crowdloan id being finalized so the dispatched call can access it temporarily by accessing"] # [doc = "the `CurrentCrowdloanId` storage item."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to finalize."] pub fn finalize (& self , crowdloan_id : types :: finalize :: CrowdloanId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Finalize > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "finalize" , types :: Finalize { crowdloan_id , } , [111u8 , 193u8 , 246u8 , 10u8 , 133u8 , 89u8 , 252u8 , 36u8 , 248u8 , 130u8 , 77u8 , 192u8 , 151u8 , 153u8 , 206u8 , 50u8 , 17u8 , 237u8 , 74u8 , 98u8 , 57u8 , 141u8 , 213u8 , 42u8 , 230u8 , 221u8 , 130u8 , 112u8 , 147u8 , 51u8 , 193u8 , 128u8 ,]) } # [doc = "Refund contributors of a non-finalized crowdloan."] # [doc = ""] # [doc = "The call will try to refund all contributors (excluding the creator) up to the limit defined by the `RefundContributorsLimit`."] # [doc = "If the limit is reached, the call will stop and the crowdloan will be marked as partially refunded."] # [doc = "It may be needed to dispatch this call multiple times to refund all contributors."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and doesn't need to be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to refund."] pub fn refund (& self , crowdloan_id : types :: refund :: CrowdloanId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Refund > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "refund" , types :: Refund { crowdloan_id , } , [232u8 , 16u8 , 227u8 , 7u8 , 99u8 , 209u8 , 14u8 , 91u8 , 125u8 , 93u8 , 74u8 , 14u8 , 247u8 , 174u8 , 51u8 , 190u8 , 244u8 , 13u8 , 44u8 , 120u8 , 130u8 , 45u8 , 122u8 , 235u8 , 142u8 , 172u8 , 190u8 , 175u8 , 172u8 , 41u8 , 166u8 , 149u8 ,]) } # [doc = "Dissolve a crowdloan."] # [doc = ""] # [doc = "The crowdloan will be removed from the storage."] # [doc = "All contributions must have been refunded before the crowdloan can be dissolved (except the creator's one)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to dissolve."] pub fn dissolve (& self , crowdloan_id : types :: dissolve :: CrowdloanId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Dissolve > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "dissolve" , types :: Dissolve { crowdloan_id , } , [174u8 , 199u8 , 12u8 , 18u8 , 27u8 , 243u8 , 126u8 , 217u8 , 136u8 , 5u8 , 189u8 , 100u8 , 242u8 , 224u8 , 160u8 , 25u8 , 30u8 , 11u8 , 133u8 , 104u8 , 82u8 , 90u8 , 75u8 , 141u8 , 28u8 , 247u8 , 115u8 , 178u8 , 128u8 , 151u8 , 136u8 , 6u8 ,]) } # [doc = "Update the minimum contribution of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the minimum contribution of."] # [doc = "- `new_min_contribution`: The new minimum contribution."] pub fn update_min_contribution (& self , crowdloan_id : types :: update_min_contribution :: CrowdloanId , new_min_contribution : types :: update_min_contribution :: NewMinContribution ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpdateMinContribution > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "update_min_contribution" , types :: UpdateMinContribution { crowdloan_id , new_min_contribution , } , [171u8 , 52u8 , 147u8 , 112u8 , 17u8 , 193u8 , 79u8 , 81u8 , 236u8 , 223u8 , 214u8 , 140u8 , 184u8 , 56u8 , 33u8 , 82u8 , 58u8 , 235u8 , 124u8 , 165u8 , 125u8 , 9u8 , 130u8 , 110u8 , 255u8 , 2u8 , 226u8 , 95u8 , 243u8 , 137u8 , 178u8 , 5u8 ,]) } # [doc = "Update the end block of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the end block of."] # [doc = "- `new_end`: The new end block."] pub fn update_end (& self , crowdloan_id : types :: update_end :: CrowdloanId , new_end : types :: update_end :: NewEnd ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpdateEnd > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "update_end" , types :: UpdateEnd { crowdloan_id , new_end , } , [223u8 , 255u8 , 185u8 , 16u8 , 227u8 , 74u8 , 137u8 , 34u8 , 71u8 , 221u8 , 139u8 , 159u8 , 6u8 , 123u8 , 204u8 , 45u8 , 23u8 , 30u8 , 138u8 , 209u8 , 234u8 , 78u8 , 137u8 , 231u8 , 88u8 , 59u8 , 163u8 , 169u8 , 39u8 , 232u8 , 57u8 , 50u8 ,]) } # [doc = "Update the cap of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the cap of."] # [doc = "- `new_cap`: The new cap."] pub fn update_cap (& self , crowdloan_id : types :: update_cap :: CrowdloanId , new_cap : types :: update_cap :: NewCap ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UpdateCap > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Crowdloan" , "update_cap" , types :: UpdateCap { crowdloan_id , new_cap , } , [214u8 , 212u8 , 218u8 , 183u8 , 239u8 , 110u8 , 162u8 , 121u8 , 243u8 , 126u8 , 95u8 , 144u8 , 203u8 , 192u8 , 82u8 , 103u8 , 227u8 , 22u8 , 199u8 , 215u8 , 154u8 , 25u8 , 52u8 , 90u8 , 238u8 , 93u8 , 238u8 , 62u8 , 60u8 , 91u8 , 65u8 , 136u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_crowdloan :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A crowdloan was created."] pub struct Created { pub crowdloan_id : created :: CrowdloanId , pub creator : created :: Creator , pub end : created :: End , pub cap : created :: Cap , } pub mod created { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type Creator = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type End = :: core :: primitive :: u32 ; pub type Cap = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Created { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Created" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contribution was made to an active crowdloan."] pub struct Contributed { pub crowdloan_id : contributed :: CrowdloanId , pub contributor : contributed :: Contributor , pub amount : contributed :: Amount , } pub mod contributed { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type Contributor = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Contributed { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Contributed" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contribution was withdrawn from a failed crowdloan."] pub struct Withdrew { pub crowdloan_id : withdrew :: CrowdloanId , pub contributor : withdrew :: Contributor , pub amount : withdrew :: Amount , } pub mod withdrew { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type Contributor = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Withdrew { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Withdrew" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A refund was partially processed for a failed crowdloan."] pub struct PartiallyRefunded { pub crowdloan_id : partially_refunded :: CrowdloanId , } pub mod partially_refunded { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for PartiallyRefunded { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "PartiallyRefunded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A refund was fully processed for a failed crowdloan."] pub struct AllRefunded { pub crowdloan_id : all_refunded :: CrowdloanId , } pub mod all_refunded { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for AllRefunded { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "AllRefunded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A crowdloan was finalized, funds were transferred and the call was dispatched."] pub struct Finalized { pub crowdloan_id : finalized :: CrowdloanId , } pub mod finalized { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Finalized { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Finalized" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A crowdloan was dissolved."] pub struct Dissolved { pub crowdloan_id : dissolved :: CrowdloanId , } pub mod dissolved { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Dissolved { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "Dissolved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The minimum contribution was updated."] pub struct MinContributionUpdated { pub crowdloan_id : min_contribution_updated :: CrowdloanId , pub new_min_contribution : min_contribution_updated :: NewMinContribution , } pub mod min_contribution_updated { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type NewMinContribution = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for MinContributionUpdated { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "MinContributionUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The end was updated."] pub struct EndUpdated { pub crowdloan_id : end_updated :: CrowdloanId , pub new_end : end_updated :: NewEnd , } pub mod end_updated { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type NewEnd = :: core :: primitive :: u32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for EndUpdated { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "EndUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The cap was updated."] pub struct CapUpdated { pub crowdloan_id : cap_updated :: CrowdloanId , pub new_cap : cap_updated :: NewCap , } pub mod cap_updated { use super :: runtime_types ; pub type CrowdloanId = :: core :: primitive :: u32 ; pub type NewCap = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CapUpdated { const PALLET : & 'static str = "Crowdloan" ; const EVENT : & 'static str = "CapUpdated" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod crowdloans { use super :: runtime_types ; pub type Crowdloans = runtime_types :: pallet_crowdloan :: CrowdloanInfo < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u32 , runtime_types :: frame_support :: traits :: preimages :: Bounded < runtime_types :: node_subtensor_runtime :: RuntimeCall , runtime_types :: sp_runtime :: traits :: BlakeTwo256 > > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod next_crowdloan_id { use super :: runtime_types ; pub type NextCrowdloanId = :: core :: primitive :: u32 ; } pub mod contributions { use super :: runtime_types ; pub type Contributions = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u32 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod current_crowdloan_id { use super :: runtime_types ; pub type CurrentCrowdloanId = :: core :: primitive :: u32 ; } pub mod has_migration_run { use super :: runtime_types ; pub type HasMigrationRun = :: core :: primitive :: bool ; pub type Param0 = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } } pub struct StorageApi ; impl StorageApi { # [doc = " A map of crowdloan ids to their information."] pub fn crowdloans_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: crowdloans :: Crowdloans , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "Crowdloans" , () , [241u8 , 93u8 , 160u8 , 120u8 , 207u8 , 125u8 , 104u8 , 216u8 , 205u8 , 91u8 , 209u8 , 77u8 , 97u8 , 118u8 , 217u8 , 134u8 , 48u8 , 110u8 , 238u8 , 12u8 , 24u8 , 3u8 , 197u8 , 164u8 , 30u8 , 80u8 , 13u8 , 137u8 , 186u8 , 233u8 , 70u8 , 41u8 ,]) } # [doc = " A map of crowdloan ids to their information."] pub fn crowdloans (& self , _0 : types :: crowdloans :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: crowdloans :: Param0 > , types :: crowdloans :: Crowdloans , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "Crowdloans" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [241u8 , 93u8 , 160u8 , 120u8 , 207u8 , 125u8 , 104u8 , 216u8 , 205u8 , 91u8 , 209u8 , 77u8 , 97u8 , 118u8 , 217u8 , 134u8 , 48u8 , 110u8 , 238u8 , 12u8 , 24u8 , 3u8 , 197u8 , 164u8 , 30u8 , 80u8 , 13u8 , 137u8 , 186u8 , 233u8 , 70u8 , 41u8 ,]) } # [doc = " The next incrementing crowdloan id."] pub fn next_crowdloan_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_crowdloan_id :: NextCrowdloanId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "NextCrowdloanId" , () , [114u8 , 79u8 , 85u8 , 84u8 , 219u8 , 14u8 , 110u8 , 60u8 , 27u8 , 220u8 , 77u8 , 200u8 , 95u8 , 61u8 , 235u8 , 39u8 , 205u8 , 251u8 , 5u8 , 91u8 , 141u8 , 56u8 , 129u8 , 11u8 , 61u8 , 40u8 , 30u8 , 127u8 , 214u8 , 28u8 , 192u8 , 137u8 ,]) } # [doc = " A map of crowdloan ids to their contributors and their contributions."] pub fn contributions_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: contributions :: Contributions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "Contributions" , () , [207u8 , 153u8 , 221u8 , 202u8 , 77u8 , 19u8 , 105u8 , 186u8 , 18u8 , 243u8 , 187u8 , 191u8 , 178u8 , 129u8 , 98u8 , 207u8 , 208u8 , 82u8 , 51u8 , 156u8 , 72u8 , 188u8 , 95u8 , 167u8 , 146u8 , 192u8 , 33u8 , 125u8 , 115u8 , 51u8 , 248u8 , 194u8 ,]) } # [doc = " A map of crowdloan ids to their contributors and their contributions."] pub fn contributions_iter1 (& self , _0 : types :: contributions :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: contributions :: Param0 > , types :: contributions :: Contributions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "Contributions" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [207u8 , 153u8 , 221u8 , 202u8 , 77u8 , 19u8 , 105u8 , 186u8 , 18u8 , 243u8 , 187u8 , 191u8 , 178u8 , 129u8 , 98u8 , 207u8 , 208u8 , 82u8 , 51u8 , 156u8 , 72u8 , 188u8 , 95u8 , 167u8 , 146u8 , 192u8 , 33u8 , 125u8 , 115u8 , 51u8 , 248u8 , 194u8 ,]) } # [doc = " A map of crowdloan ids to their contributors and their contributions."] pub fn contributions (& self , _0 : types :: contributions :: Param0 , _1 : types :: contributions :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: contributions :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: contributions :: Param1 > ,) , types :: contributions :: Contributions , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "Contributions" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [207u8 , 153u8 , 221u8 , 202u8 , 77u8 , 19u8 , 105u8 , 186u8 , 18u8 , 243u8 , 187u8 , 191u8 , 178u8 , 129u8 , 98u8 , 207u8 , 208u8 , 82u8 , 51u8 , 156u8 , 72u8 , 188u8 , 95u8 , 167u8 , 146u8 , 192u8 , 33u8 , 125u8 , 115u8 , 51u8 , 248u8 , 194u8 ,]) } # [doc = " The current crowdloan id that will be set during the finalize call, making it"] # [doc = " temporarily accessible to the dispatched call."] pub fn current_crowdloan_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_crowdloan_id :: CurrentCrowdloanId , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "CurrentCrowdloanId" , () , [95u8 , 134u8 , 212u8 , 25u8 , 243u8 , 101u8 , 152u8 , 192u8 , 1u8 , 208u8 , 230u8 , 72u8 , 127u8 , 232u8 , 179u8 , 82u8 , 49u8 , 239u8 , 201u8 , 207u8 , 83u8 , 0u8 , 70u8 , 54u8 , 249u8 , 119u8 , 225u8 , 25u8 , 238u8 , 245u8 , 120u8 , 219u8 ,]) } # [doc = " Storage for the migration run status."] pub fn has_migration_run_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: has_migration_run :: HasMigrationRun , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "HasMigrationRun" , () , [136u8 , 249u8 , 238u8 , 25u8 , 98u8 , 133u8 , 200u8 , 15u8 , 17u8 , 89u8 , 154u8 , 4u8 , 233u8 , 103u8 , 58u8 , 217u8 , 175u8 , 118u8 , 195u8 , 242u8 , 84u8 , 56u8 , 128u8 , 198u8 , 252u8 , 160u8 , 185u8 , 22u8 , 19u8 , 240u8 , 98u8 , 7u8 ,]) } # [doc = " Storage for the migration run status."] pub fn has_migration_run (& self , _0 : types :: has_migration_run :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: has_migration_run :: Param0 > , types :: has_migration_run :: HasMigrationRun , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Crowdloan" , "HasMigrationRun" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [136u8 , 249u8 , 238u8 , 25u8 , 98u8 , 133u8 , 200u8 , 15u8 , 17u8 , 89u8 , 154u8 , 4u8 , 233u8 , 103u8 , 58u8 , 217u8 , 175u8 , 118u8 , 195u8 , 242u8 , 84u8 , 56u8 , 128u8 , 198u8 , 252u8 , 160u8 , 185u8 , 22u8 , 19u8 , 240u8 , 98u8 , 7u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " The pallet id that will be used to derive crowdloan account ids."] pub fn pallet_id (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_support :: PalletId > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "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 ,]) } # [doc = " The minimum deposit required to create a crowdloan."] pub fn minimum_deposit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "MinimumDeposit" , [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 ,]) } # [doc = " The absolute minimum contribution required to contribute to a crowdloan."] pub fn absolute_minimum_contribution (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "AbsoluteMinimumContribution" , [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 ,]) } # [doc = " The minimum block duration for a crowdloan."] pub fn minimum_block_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "MinimumBlockDuration" , [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 ,]) } # [doc = " The maximum block duration for a crowdloan."] pub fn maximum_block_duration (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "MaximumBlockDuration" , [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 ,]) } # [doc = " The maximum number of contributors that can be refunded in a single refund."] pub fn refund_contributors_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "RefundContributorsLimit" , [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 max_contributors (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Crowdloan" , "MaxContributors" , [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 swap { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_subtensor_swap :: pallet :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_subtensor_swap :: pallet :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Set the fee rate for swaps on a specific subnet (normalized value)."] # [doc = "For example, 0.3% is approximately 196."] # [doc = ""] # [doc = "Only callable by the admin origin"] pub struct SetFeeRate { pub netuid : set_fee_rate :: Netuid , pub rate : set_fee_rate :: Rate , } pub mod set_fee_rate { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Rate = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetFeeRate { const PALLET : & 'static str = "Swap" ; const CALL : & 'static str = "set_fee_rate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Enable user liquidity operations for a specific subnet. This switches the"] # [doc = "subnet from V2 to V3 swap mode. Thereafter, adding new user liquidity can be disabled"] # [doc = "by toggling this flag to false, but the swap mode will remain V3 because of existing"] # [doc = "user liquidity until all users withdraw their liquidity."] # [doc = ""] # [doc = "Only sudo or subnet owner can enable user liquidity."] # [doc = "Only sudo can disable user liquidity."] pub struct ToggleUserLiquidity { pub netuid : toggle_user_liquidity :: Netuid , pub enable : toggle_user_liquidity :: Enable , } pub mod toggle_user_liquidity { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enable = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ToggleUserLiquidity { const PALLET : & 'static str = "Swap" ; const CALL : & 'static str = "toggle_user_liquidity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Add liquidity to a specific price range for a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- tick_low: Lower bound of the price range"] # [doc = "- tick_high: Upper bound of the price range"] # [doc = "- liquidity: Amount of liquidity to add"] # [doc = ""] # [doc = "Emits `Event::LiquidityAdded` on success"] pub struct AddLiquidity { pub hotkey : add_liquidity :: Hotkey , pub netuid : add_liquidity :: Netuid , pub tick_low : add_liquidity :: TickLow , pub tick_high : add_liquidity :: TickHigh , pub liquidity : add_liquidity :: Liquidity , } pub mod add_liquidity { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type TickLow = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; pub type TickHigh = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; pub type Liquidity = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AddLiquidity { const PALLET : & 'static str = "Swap" ; const CALL : & 'static str = "add_liquidity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove liquidity from a specific position."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- position_id: ID of the position to remove"] # [doc = ""] # [doc = "Emits `Event::LiquidityRemoved` on success"] pub struct RemoveLiquidity { pub hotkey : remove_liquidity :: Hotkey , pub netuid : remove_liquidity :: Netuid , pub position_id : remove_liquidity :: PositionId , } pub mod remove_liquidity { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type PositionId = runtime_types :: pallet_subtensor_swap :: position :: PositionId ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveLiquidity { const PALLET : & 'static str = "Swap" ; const CALL : & 'static str = "remove_liquidity" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Modify a liquidity position."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- position_id: ID of the position to remove"] # [doc = "- liquidity_delta: Liquidity to add (if positive) or remove (if negative)"] # [doc = ""] # [doc = "Emits `Event::LiquidityRemoved` on success"] pub struct ModifyPosition { pub hotkey : modify_position :: Hotkey , pub netuid : modify_position :: Netuid , pub position_id : modify_position :: PositionId , pub liquidity_delta : modify_position :: LiquidityDelta , } pub mod modify_position { use super :: runtime_types ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type PositionId = runtime_types :: pallet_subtensor_swap :: position :: PositionId ; pub type LiquidityDelta = :: core :: primitive :: i64 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for ModifyPosition { const PALLET : & 'static str = "Swap" ; const CALL : & 'static str = "modify_position" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Disable user liquidity in all subnets."] # [doc = ""] # [doc = "Emits `Event::UserLiquidityToggled` on success"] pub struct DisableLp ; impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for DisableLp { const PALLET : & 'static str = "Swap" ; const CALL : & 'static str = "disable_lp" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Set the fee rate for swaps on a specific subnet (normalized value)."] # [doc = "For example, 0.3% is approximately 196."] # [doc = ""] # [doc = "Only callable by the admin origin"] pub fn set_fee_rate (& self , netuid : types :: set_fee_rate :: Netuid , rate : types :: set_fee_rate :: Rate ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetFeeRate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Swap" , "set_fee_rate" , types :: SetFeeRate { netuid , rate , } , [114u8 , 2u8 , 211u8 , 244u8 , 114u8 , 7u8 , 154u8 , 160u8 , 232u8 , 195u8 , 62u8 , 134u8 , 172u8 , 203u8 , 61u8 , 75u8 , 66u8 , 239u8 , 173u8 , 120u8 , 53u8 , 123u8 , 209u8 , 124u8 , 236u8 , 145u8 , 114u8 , 88u8 , 59u8 , 43u8 , 172u8 , 84u8 ,]) } # [doc = "Enable user liquidity operations for a specific subnet. This switches the"] # [doc = "subnet from V2 to V3 swap mode. Thereafter, adding new user liquidity can be disabled"] # [doc = "by toggling this flag to false, but the swap mode will remain V3 because of existing"] # [doc = "user liquidity until all users withdraw their liquidity."] # [doc = ""] # [doc = "Only sudo or subnet owner can enable user liquidity."] # [doc = "Only sudo can disable user liquidity."] pub fn toggle_user_liquidity (& self , netuid : types :: toggle_user_liquidity :: Netuid , enable : types :: toggle_user_liquidity :: Enable ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ToggleUserLiquidity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Swap" , "toggle_user_liquidity" , types :: ToggleUserLiquidity { netuid , enable , } , [98u8 , 255u8 , 204u8 , 12u8 , 227u8 , 127u8 , 193u8 , 82u8 , 188u8 , 132u8 , 91u8 , 246u8 , 25u8 , 154u8 , 24u8 , 127u8 , 67u8 , 112u8 , 10u8 , 250u8 , 5u8 , 65u8 , 196u8 , 37u8 , 165u8 , 50u8 , 255u8 , 115u8 , 75u8 , 243u8 , 216u8 , 182u8 ,]) } # [doc = "Add liquidity to a specific price range for a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- tick_low: Lower bound of the price range"] # [doc = "- tick_high: Upper bound of the price range"] # [doc = "- liquidity: Amount of liquidity to add"] # [doc = ""] # [doc = "Emits `Event::LiquidityAdded` on success"] pub fn add_liquidity (& self , hotkey : types :: add_liquidity :: Hotkey , netuid : types :: add_liquidity :: Netuid , tick_low : types :: add_liquidity :: TickLow , tick_high : types :: add_liquidity :: TickHigh , liquidity : types :: add_liquidity :: Liquidity ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AddLiquidity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Swap" , "add_liquidity" , types :: AddLiquidity { hotkey , netuid , tick_low , tick_high , liquidity , } , [196u8 , 170u8 , 187u8 , 214u8 , 108u8 , 36u8 , 21u8 , 25u8 , 228u8 , 168u8 , 122u8 , 86u8 , 71u8 , 92u8 , 112u8 , 206u8 , 35u8 , 31u8 , 144u8 , 21u8 , 143u8 , 244u8 , 231u8 , 208u8 , 133u8 , 166u8 , 177u8 , 43u8 , 209u8 , 187u8 , 33u8 , 147u8 ,]) } # [doc = "Remove liquidity from a specific position."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- position_id: ID of the position to remove"] # [doc = ""] # [doc = "Emits `Event::LiquidityRemoved` on success"] pub fn remove_liquidity (& self , hotkey : types :: remove_liquidity :: Hotkey , netuid : types :: remove_liquidity :: Netuid , position_id : types :: remove_liquidity :: PositionId ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveLiquidity > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Swap" , "remove_liquidity" , types :: RemoveLiquidity { hotkey , netuid , position_id , } , [98u8 , 161u8 , 37u8 , 21u8 , 227u8 , 203u8 , 31u8 , 56u8 , 38u8 , 5u8 , 121u8 , 194u8 , 36u8 , 235u8 , 98u8 , 160u8 , 232u8 , 239u8 , 227u8 , 102u8 , 68u8 , 39u8 , 65u8 , 134u8 , 90u8 , 172u8 , 195u8 , 207u8 , 57u8 , 102u8 , 186u8 , 126u8 ,]) } # [doc = "Modify a liquidity position."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- position_id: ID of the position to remove"] # [doc = "- liquidity_delta: Liquidity to add (if positive) or remove (if negative)"] # [doc = ""] # [doc = "Emits `Event::LiquidityRemoved` on success"] pub fn modify_position (& self , hotkey : types :: modify_position :: Hotkey , netuid : types :: modify_position :: Netuid , position_id : types :: modify_position :: PositionId , liquidity_delta : types :: modify_position :: LiquidityDelta ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: ModifyPosition > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Swap" , "modify_position" , types :: ModifyPosition { hotkey , netuid , position_id , liquidity_delta , } , [124u8 , 80u8 , 81u8 , 93u8 , 160u8 , 15u8 , 34u8 , 150u8 , 245u8 , 103u8 , 153u8 , 122u8 , 32u8 , 158u8 , 15u8 , 20u8 , 6u8 , 111u8 , 202u8 , 17u8 , 235u8 , 72u8 , 85u8 , 110u8 , 49u8 , 162u8 , 163u8 , 145u8 , 241u8 , 9u8 , 59u8 , 129u8 ,]) } # [doc = "Disable user liquidity in all subnets."] # [doc = ""] # [doc = "Emits `Event::UserLiquidityToggled` on success"] pub fn disable_lp (& self ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: DisableLp > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Swap" , "disable_lp" , types :: DisableLp { } , [174u8 , 189u8 , 147u8 , 29u8 , 29u8 , 151u8 , 235u8 , 92u8 , 115u8 , 75u8 , 45u8 , 238u8 , 30u8 , 81u8 , 53u8 , 136u8 , 31u8 , 30u8 , 61u8 , 135u8 , 238u8 , 122u8 , 58u8 , 246u8 , 89u8 , 79u8 , 96u8 , 118u8 , 184u8 , 161u8 , 95u8 , 118u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_subtensor_swap :: pallet :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when the fee rate has been updated for a subnet"] pub struct FeeRateSet { pub netuid : fee_rate_set :: Netuid , pub rate : fee_rate_set :: Rate , } pub mod fee_rate_set { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Rate = :: core :: primitive :: u16 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for FeeRateSet { const PALLET : & 'static str = "Swap" ; const EVENT : & 'static str = "FeeRateSet" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when user liquidity operations are enabled for a subnet."] # [doc = "First enable even indicates a switch from V2 to V3 swap."] pub struct UserLiquidityToggled { pub netuid : user_liquidity_toggled :: Netuid , pub enable : user_liquidity_toggled :: Enable , } pub mod user_liquidity_toggled { use super :: runtime_types ; pub type Netuid = :: core :: primitive :: u16 ; pub type Enable = :: core :: primitive :: bool ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for UserLiquidityToggled { const PALLET : & 'static str = "Swap" ; const EVENT : & 'static str = "UserLiquidityToggled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when a liquidity position is added to a subnet's liquidity pool."] pub struct LiquidityAdded { pub coldkey : liquidity_added :: Coldkey , pub hotkey : liquidity_added :: Hotkey , pub netuid : liquidity_added :: Netuid , pub position_id : liquidity_added :: PositionId , pub liquidity : liquidity_added :: Liquidity , pub tao : liquidity_added :: Tao , pub alpha : liquidity_added :: Alpha , pub tick_low : liquidity_added :: TickLow , pub tick_high : liquidity_added :: TickHigh , } pub mod liquidity_added { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type PositionId = runtime_types :: pallet_subtensor_swap :: position :: PositionId ; pub type Liquidity = :: core :: primitive :: u64 ; pub type Tao = :: core :: primitive :: u64 ; pub type Alpha = :: core :: primitive :: u64 ; pub type TickLow = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; pub type TickHigh = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for LiquidityAdded { const PALLET : & 'static str = "Swap" ; const EVENT : & 'static str = "LiquidityAdded" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when a liquidity position is removed from a subnet's liquidity pool."] pub struct LiquidityRemoved { pub coldkey : liquidity_removed :: Coldkey , pub hotkey : liquidity_removed :: Hotkey , pub netuid : liquidity_removed :: Netuid , pub position_id : liquidity_removed :: PositionId , pub liquidity : liquidity_removed :: Liquidity , pub tao : liquidity_removed :: Tao , pub alpha : liquidity_removed :: Alpha , pub fee_tao : liquidity_removed :: FeeTao , pub fee_alpha : liquidity_removed :: FeeAlpha , pub tick_low : liquidity_removed :: TickLow , pub tick_high : liquidity_removed :: TickHigh , } pub mod liquidity_removed { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type PositionId = runtime_types :: pallet_subtensor_swap :: position :: PositionId ; pub type Liquidity = :: core :: primitive :: u64 ; pub type Tao = :: core :: primitive :: u64 ; pub type Alpha = :: core :: primitive :: u64 ; pub type FeeTao = :: core :: primitive :: u64 ; pub type FeeAlpha = :: core :: primitive :: u64 ; pub type TickLow = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; pub type TickHigh = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for LiquidityRemoved { const PALLET : & 'static str = "Swap" ; const EVENT : & 'static str = "LiquidityRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event emitted when a liquidity position is modified in a subnet's liquidity pool."] # [doc = "Modifying causes the fees to be claimed."] pub struct LiquidityModified { pub coldkey : liquidity_modified :: Coldkey , pub hotkey : liquidity_modified :: Hotkey , pub netuid : liquidity_modified :: Netuid , pub position_id : liquidity_modified :: PositionId , pub liquidity : liquidity_modified :: Liquidity , pub tao : liquidity_modified :: Tao , pub alpha : liquidity_modified :: Alpha , pub fee_tao : liquidity_modified :: FeeTao , pub fee_alpha : liquidity_modified :: FeeAlpha , pub tick_low : liquidity_modified :: TickLow , pub tick_high : liquidity_modified :: TickHigh , } pub mod liquidity_modified { use super :: runtime_types ; pub type Coldkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Hotkey = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Netuid = :: core :: primitive :: u16 ; pub type PositionId = runtime_types :: pallet_subtensor_swap :: position :: PositionId ; pub type Liquidity = :: core :: primitive :: i64 ; pub type Tao = :: core :: primitive :: i64 ; pub type Alpha = :: core :: primitive :: i64 ; pub type FeeTao = :: core :: primitive :: u64 ; pub type FeeAlpha = :: core :: primitive :: u64 ; pub type TickLow = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; pub type TickHigh = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for LiquidityModified { const PALLET : & 'static str = "Swap" ; const EVENT : & 'static str = "LiquidityModified" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod fee_rate { use super :: runtime_types ; pub type FeeRate = :: core :: primitive :: u16 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod fee_global_tao { use super :: runtime_types ; pub type FeeGlobalTao = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod fee_global_alpha { use super :: runtime_types ; pub type FeeGlobalAlpha = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod ticks { use super :: runtime_types ; pub type Ticks = runtime_types :: pallet_subtensor_swap :: tick :: Tick ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; } pub mod swap_v3_initialized { use super :: runtime_types ; pub type SwapV3Initialized = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod alpha_sqrt_price { use super :: runtime_types ; pub type AlphaSqrtPrice = runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod current_tick { use super :: runtime_types ; pub type CurrentTick = runtime_types :: pallet_subtensor_swap :: tick :: TickIndex ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod current_liquidity { use super :: runtime_types ; pub type CurrentLiquidity = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod enabled_user_liquidity { use super :: runtime_types ; pub type EnabledUserLiquidity = :: core :: primitive :: bool ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod positions { use super :: runtime_types ; pub type Positions = runtime_types :: pallet_subtensor_swap :: position :: Position ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Param2 = runtime_types :: pallet_subtensor_swap :: position :: PositionId ; } pub mod last_position_id { use super :: runtime_types ; pub type LastPositionId = :: core :: primitive :: u128 ; } pub mod tick_index_bitmap_words { use super :: runtime_types ; pub type TickIndexBitmapWords = :: core :: primitive :: u128 ; pub type Param0 = :: core :: primitive :: u16 ; pub type Param1 = runtime_types :: pallet_subtensor_swap :: tick :: LayerLevel ; pub type Param2 = :: core :: primitive :: u32 ; } pub mod scrap_reservoir_tao { use super :: runtime_types ; pub type ScrapReservoirTao = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } pub mod scrap_reservoir_alpha { use super :: runtime_types ; pub type ScrapReservoirAlpha = :: core :: primitive :: u64 ; pub type Param0 = :: core :: primitive :: u16 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " The fee rate applied to swaps per subnet, normalized value between 0 and u16::MAX"] pub fn fee_rate_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: fee_rate :: FeeRate , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "FeeRate" , () , [93u8 , 14u8 , 74u8 , 135u8 , 73u8 , 123u8 , 94u8 , 47u8 , 217u8 , 66u8 , 181u8 , 9u8 , 8u8 , 75u8 , 236u8 , 92u8 , 62u8 , 233u8 , 11u8 , 42u8 , 77u8 , 96u8 , 3u8 , 49u8 , 82u8 , 168u8 , 229u8 , 228u8 , 7u8 , 23u8 , 27u8 , 125u8 ,]) } # [doc = " The fee rate applied to swaps per subnet, normalized value between 0 and u16::MAX"] pub fn fee_rate (& self , _0 : types :: fee_rate :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: fee_rate :: Param0 > , types :: fee_rate :: FeeRate , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "FeeRate" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [93u8 , 14u8 , 74u8 , 135u8 , 73u8 , 123u8 , 94u8 , 47u8 , 217u8 , 66u8 , 181u8 , 9u8 , 8u8 , 75u8 , 236u8 , 92u8 , 62u8 , 233u8 , 11u8 , 42u8 , 77u8 , 96u8 , 3u8 , 49u8 , 82u8 , 168u8 , 229u8 , 228u8 , 7u8 , 23u8 , 27u8 , 125u8 ,]) } pub fn fee_global_tao_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: fee_global_tao :: FeeGlobalTao , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "FeeGlobalTao" , () , [48u8 , 88u8 , 203u8 , 227u8 , 251u8 , 177u8 , 241u8 , 159u8 , 80u8 , 252u8 , 87u8 , 16u8 , 85u8 , 244u8 , 152u8 , 124u8 , 7u8 , 77u8 , 47u8 , 3u8 , 205u8 , 134u8 , 230u8 , 215u8 , 9u8 , 223u8 , 45u8 , 7u8 , 171u8 , 149u8 , 159u8 , 30u8 ,]) } pub fn fee_global_tao (& self , _0 : types :: fee_global_tao :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: fee_global_tao :: Param0 > , types :: fee_global_tao :: FeeGlobalTao , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "FeeGlobalTao" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [48u8 , 88u8 , 203u8 , 227u8 , 251u8 , 177u8 , 241u8 , 159u8 , 80u8 , 252u8 , 87u8 , 16u8 , 85u8 , 244u8 , 152u8 , 124u8 , 7u8 , 77u8 , 47u8 , 3u8 , 205u8 , 134u8 , 230u8 , 215u8 , 9u8 , 223u8 , 45u8 , 7u8 , 171u8 , 149u8 , 159u8 , 30u8 ,]) } pub fn fee_global_alpha_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: fee_global_alpha :: FeeGlobalAlpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "FeeGlobalAlpha" , () , [66u8 , 104u8 , 213u8 , 219u8 , 156u8 , 224u8 , 221u8 , 133u8 , 167u8 , 191u8 , 69u8 , 42u8 , 38u8 , 150u8 , 23u8 , 162u8 , 249u8 , 212u8 , 51u8 , 53u8 , 243u8 , 238u8 , 227u8 , 161u8 , 34u8 , 231u8 , 54u8 , 230u8 , 252u8 , 159u8 , 55u8 , 191u8 ,]) } pub fn fee_global_alpha (& self , _0 : types :: fee_global_alpha :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: fee_global_alpha :: Param0 > , types :: fee_global_alpha :: FeeGlobalAlpha , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "FeeGlobalAlpha" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [66u8 , 104u8 , 213u8 , 219u8 , 156u8 , 224u8 , 221u8 , 133u8 , 167u8 , 191u8 , 69u8 , 42u8 , 38u8 , 150u8 , 23u8 , 162u8 , 249u8 , 212u8 , 51u8 , 53u8 , 243u8 , 238u8 , 227u8 , 161u8 , 34u8 , 231u8 , 54u8 , 230u8 , 252u8 , 159u8 , 55u8 , 191u8 ,]) } # [doc = " Storage for all ticks, using subnet ID as the primary key and tick index as the secondary key"] pub fn ticks_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: ticks :: Ticks , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Ticks" , () , [141u8 , 200u8 , 176u8 , 30u8 , 58u8 , 206u8 , 80u8 , 88u8 , 201u8 , 166u8 , 248u8 , 50u8 , 86u8 , 156u8 , 112u8 , 167u8 , 93u8 , 34u8 , 178u8 , 102u8 , 234u8 , 214u8 , 227u8 , 111u8 , 68u8 , 146u8 , 1u8 , 74u8 , 83u8 , 50u8 , 52u8 , 5u8 ,]) } # [doc = " Storage for all ticks, using subnet ID as the primary key and tick index as the secondary key"] pub fn ticks_iter1 (& self , _0 : types :: ticks :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: ticks :: Param0 > , types :: ticks :: Ticks , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Ticks" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [141u8 , 200u8 , 176u8 , 30u8 , 58u8 , 206u8 , 80u8 , 88u8 , 201u8 , 166u8 , 248u8 , 50u8 , 86u8 , 156u8 , 112u8 , 167u8 , 93u8 , 34u8 , 178u8 , 102u8 , 234u8 , 214u8 , 227u8 , 111u8 , 68u8 , 146u8 , 1u8 , 74u8 , 83u8 , 50u8 , 52u8 , 5u8 ,]) } # [doc = " Storage for all ticks, using subnet ID as the primary key and tick index as the secondary key"] pub fn ticks (& self , _0 : types :: ticks :: Param0 , _1 : types :: ticks :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: ticks :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: ticks :: Param1 > ,) , types :: ticks :: Ticks , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Ticks" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [141u8 , 200u8 , 176u8 , 30u8 , 58u8 , 206u8 , 80u8 , 88u8 , 201u8 , 166u8 , 248u8 , 50u8 , 86u8 , 156u8 , 112u8 , 167u8 , 93u8 , 34u8 , 178u8 , 102u8 , 234u8 , 214u8 , 227u8 , 111u8 , 68u8 , 146u8 , 1u8 , 74u8 , 83u8 , 50u8 , 52u8 , 5u8 ,]) } # [doc = " Storage to determine whether swap V3 was initialized for a specific subnet."] pub fn swap_v3_initialized_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: swap_v3_initialized :: SwapV3Initialized , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "SwapV3Initialized" , () , [191u8 , 192u8 , 152u8 , 99u8 , 54u8 , 166u8 , 77u8 , 45u8 , 106u8 , 182u8 , 228u8 , 22u8 , 228u8 , 179u8 , 193u8 , 21u8 , 74u8 , 155u8 , 234u8 , 254u8 , 239u8 , 110u8 , 57u8 , 97u8 , 223u8 , 131u8 , 19u8 , 112u8 , 78u8 , 239u8 , 113u8 , 239u8 ,]) } # [doc = " Storage to determine whether swap V3 was initialized for a specific subnet."] pub fn swap_v3_initialized (& self , _0 : types :: swap_v3_initialized :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: swap_v3_initialized :: Param0 > , types :: swap_v3_initialized :: SwapV3Initialized , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "SwapV3Initialized" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [191u8 , 192u8 , 152u8 , 99u8 , 54u8 , 166u8 , 77u8 , 45u8 , 106u8 , 182u8 , 228u8 , 22u8 , 228u8 , 179u8 , 193u8 , 21u8 , 74u8 , 155u8 , 234u8 , 254u8 , 239u8 , 110u8 , 57u8 , 97u8 , 223u8 , 131u8 , 19u8 , 112u8 , 78u8 , 239u8 , 113u8 , 239u8 ,]) } # [doc = " Storage for the square root price of Alpha token for each subnet."] pub fn alpha_sqrt_price_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: alpha_sqrt_price :: AlphaSqrtPrice , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "AlphaSqrtPrice" , () , [108u8 , 171u8 , 84u8 , 105u8 , 121u8 , 211u8 , 180u8 , 214u8 , 58u8 , 76u8 , 224u8 , 185u8 , 212u8 , 17u8 , 160u8 , 31u8 , 87u8 , 86u8 , 88u8 , 0u8 , 16u8 , 58u8 , 0u8 , 94u8 , 12u8 , 110u8 , 65u8 , 139u8 , 209u8 , 118u8 , 229u8 , 70u8 ,]) } # [doc = " Storage for the square root price of Alpha token for each subnet."] pub fn alpha_sqrt_price (& self , _0 : types :: alpha_sqrt_price :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: alpha_sqrt_price :: Param0 > , types :: alpha_sqrt_price :: AlphaSqrtPrice , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "AlphaSqrtPrice" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [108u8 , 171u8 , 84u8 , 105u8 , 121u8 , 211u8 , 180u8 , 214u8 , 58u8 , 76u8 , 224u8 , 185u8 , 212u8 , 17u8 , 160u8 , 31u8 , 87u8 , 86u8 , 88u8 , 0u8 , 16u8 , 58u8 , 0u8 , 94u8 , 12u8 , 110u8 , 65u8 , 139u8 , 209u8 , 118u8 , 229u8 , 70u8 ,]) } # [doc = " Storage for the current price tick."] pub fn current_tick_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_tick :: CurrentTick , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "CurrentTick" , () , [141u8 , 29u8 , 59u8 , 103u8 , 27u8 , 25u8 , 5u8 , 204u8 , 251u8 , 61u8 , 173u8 , 215u8 , 46u8 , 38u8 , 103u8 , 193u8 , 38u8 , 51u8 , 67u8 , 183u8 , 165u8 , 89u8 , 199u8 , 102u8 , 158u8 , 14u8 , 39u8 , 182u8 , 137u8 , 226u8 , 164u8 , 76u8 ,]) } # [doc = " Storage for the current price tick."] pub fn current_tick (& self , _0 : types :: current_tick :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: current_tick :: Param0 > , types :: current_tick :: CurrentTick , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "CurrentTick" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [141u8 , 29u8 , 59u8 , 103u8 , 27u8 , 25u8 , 5u8 , 204u8 , 251u8 , 61u8 , 173u8 , 215u8 , 46u8 , 38u8 , 103u8 , 193u8 , 38u8 , 51u8 , 67u8 , 183u8 , 165u8 , 89u8 , 199u8 , 102u8 , 158u8 , 14u8 , 39u8 , 182u8 , 137u8 , 226u8 , 164u8 , 76u8 ,]) } # [doc = " Storage for the current liquidity amount for each subnet."] pub fn current_liquidity_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_liquidity :: CurrentLiquidity , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "CurrentLiquidity" , () , [135u8 , 151u8 , 124u8 , 190u8 , 152u8 , 255u8 , 44u8 , 196u8 , 136u8 , 171u8 , 105u8 , 223u8 , 83u8 , 68u8 , 5u8 , 24u8 , 22u8 , 30u8 , 208u8 , 4u8 , 215u8 , 229u8 , 233u8 , 33u8 , 130u8 , 99u8 , 136u8 , 39u8 , 224u8 , 42u8 , 52u8 , 20u8 ,]) } # [doc = " Storage for the current liquidity amount for each subnet."] pub fn current_liquidity (& self , _0 : types :: current_liquidity :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: current_liquidity :: Param0 > , types :: current_liquidity :: CurrentLiquidity , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "CurrentLiquidity" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [135u8 , 151u8 , 124u8 , 190u8 , 152u8 , 255u8 , 44u8 , 196u8 , 136u8 , 171u8 , 105u8 , 223u8 , 83u8 , 68u8 , 5u8 , 24u8 , 22u8 , 30u8 , 208u8 , 4u8 , 215u8 , 229u8 , 233u8 , 33u8 , 130u8 , 99u8 , 136u8 , 39u8 , 224u8 , 42u8 , 52u8 , 20u8 ,]) } # [doc = " Indicates whether a subnet has been switched to V3 swap from V2."] # [doc = " If `true`, the subnet is permanently on V3 swap mode allowing add/remove liquidity"] # [doc = " operations. Once set to `true` for a subnet, it cannot be changed back to `false`."] pub fn enabled_user_liquidity_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: enabled_user_liquidity :: EnabledUserLiquidity , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "EnabledUserLiquidity" , () , [167u8 , 225u8 , 152u8 , 219u8 , 169u8 , 231u8 , 121u8 , 233u8 , 192u8 , 157u8 , 122u8 , 178u8 , 36u8 , 169u8 , 234u8 , 48u8 , 213u8 , 42u8 , 33u8 , 191u8 , 230u8 , 152u8 , 199u8 , 175u8 , 118u8 , 124u8 , 136u8 , 141u8 , 122u8 , 112u8 , 22u8 , 64u8 ,]) } # [doc = " Indicates whether a subnet has been switched to V3 swap from V2."] # [doc = " If `true`, the subnet is permanently on V3 swap mode allowing add/remove liquidity"] # [doc = " operations. Once set to `true` for a subnet, it cannot be changed back to `false`."] pub fn enabled_user_liquidity (& self , _0 : types :: enabled_user_liquidity :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: enabled_user_liquidity :: Param0 > , types :: enabled_user_liquidity :: EnabledUserLiquidity , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "EnabledUserLiquidity" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [167u8 , 225u8 , 152u8 , 219u8 , 169u8 , 231u8 , 121u8 , 233u8 , 192u8 , 157u8 , 122u8 , 178u8 , 36u8 , 169u8 , 234u8 , 48u8 , 213u8 , 42u8 , 33u8 , 191u8 , 230u8 , 152u8 , 199u8 , 175u8 , 118u8 , 124u8 , 136u8 , 141u8 , 122u8 , 112u8 , 22u8 , 64u8 ,]) } # [doc = " Storage for user positions, using subnet ID and account ID as keys"] # [doc = " The value is a bounded vector of Position structs with details about the liquidity positions"] pub fn positions_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: positions :: Positions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Positions" , () , [118u8 , 48u8 , 243u8 , 123u8 , 22u8 , 49u8 , 159u8 , 124u8 , 26u8 , 183u8 , 249u8 , 129u8 , 193u8 , 249u8 , 85u8 , 14u8 , 180u8 , 218u8 , 212u8 , 184u8 , 3u8 , 12u8 , 101u8 , 186u8 , 149u8 , 100u8 , 114u8 , 170u8 , 40u8 , 29u8 , 76u8 , 54u8 ,]) } # [doc = " Storage for user positions, using subnet ID and account ID as keys"] # [doc = " The value is a bounded vector of Position structs with details about the liquidity positions"] pub fn positions_iter1 (& self , _0 : types :: positions :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: positions :: Param0 > , types :: positions :: Positions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Positions" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [118u8 , 48u8 , 243u8 , 123u8 , 22u8 , 49u8 , 159u8 , 124u8 , 26u8 , 183u8 , 249u8 , 129u8 , 193u8 , 249u8 , 85u8 , 14u8 , 180u8 , 218u8 , 212u8 , 184u8 , 3u8 , 12u8 , 101u8 , 186u8 , 149u8 , 100u8 , 114u8 , 170u8 , 40u8 , 29u8 , 76u8 , 54u8 ,]) } # [doc = " Storage for user positions, using subnet ID and account ID as keys"] # [doc = " The value is a bounded vector of Position structs with details about the liquidity positions"] pub fn positions_iter2 (& self , _0 : types :: positions :: Param0 , _1 : types :: positions :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: positions :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: positions :: Param1 > ,) , types :: positions :: Positions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Positions" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [118u8 , 48u8 , 243u8 , 123u8 , 22u8 , 49u8 , 159u8 , 124u8 , 26u8 , 183u8 , 249u8 , 129u8 , 193u8 , 249u8 , 85u8 , 14u8 , 180u8 , 218u8 , 212u8 , 184u8 , 3u8 , 12u8 , 101u8 , 186u8 , 149u8 , 100u8 , 114u8 , 170u8 , 40u8 , 29u8 , 76u8 , 54u8 ,]) } # [doc = " Storage for user positions, using subnet ID and account ID as keys"] # [doc = " The value is a bounded vector of Position structs with details about the liquidity positions"] pub fn positions (& self , _0 : types :: positions :: Param0 , _1 : types :: positions :: Param1 , _2 : types :: positions :: Param2 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: positions :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: positions :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: positions :: Param2 > ,) , types :: positions :: Positions , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "Positions" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2) ,) , [118u8 , 48u8 , 243u8 , 123u8 , 22u8 , 49u8 , 159u8 , 124u8 , 26u8 , 183u8 , 249u8 , 129u8 , 193u8 , 249u8 , 85u8 , 14u8 , 180u8 , 218u8 , 212u8 , 184u8 , 3u8 , 12u8 , 101u8 , 186u8 , 149u8 , 100u8 , 114u8 , 170u8 , 40u8 , 29u8 , 76u8 , 54u8 ,]) } # [doc = " Position ID counter."] pub fn last_position_id (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: last_position_id :: LastPositionId , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "LastPositionId" , () , [30u8 , 117u8 , 176u8 , 55u8 , 133u8 , 255u8 , 73u8 , 217u8 , 167u8 , 236u8 , 75u8 , 120u8 , 23u8 , 245u8 , 154u8 , 211u8 , 251u8 , 179u8 , 93u8 , 237u8 , 227u8 , 59u8 , 223u8 , 45u8 , 239u8 , 183u8 , 204u8 , 55u8 , 87u8 , 33u8 , 163u8 , 18u8 ,]) } # [doc = " Tick index bitmap words storage"] pub fn tick_index_bitmap_words_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: tick_index_bitmap_words :: TickIndexBitmapWords , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "TickIndexBitmapWords" , () , [167u8 , 203u8 , 251u8 , 1u8 , 28u8 , 105u8 , 60u8 , 211u8 , 117u8 , 221u8 , 11u8 , 239u8 , 185u8 , 202u8 , 252u8 , 192u8 , 94u8 , 20u8 , 195u8 , 27u8 , 61u8 , 75u8 , 127u8 , 111u8 , 143u8 , 61u8 , 67u8 , 218u8 , 81u8 , 223u8 , 5u8 , 84u8 ,]) } # [doc = " Tick index bitmap words storage"] pub fn tick_index_bitmap_words_iter1 (& self , _0 : types :: tick_index_bitmap_words :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tick_index_bitmap_words :: Param0 > , types :: tick_index_bitmap_words :: TickIndexBitmapWords , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "TickIndexBitmapWords" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [167u8 , 203u8 , 251u8 , 1u8 , 28u8 , 105u8 , 60u8 , 211u8 , 117u8 , 221u8 , 11u8 , 239u8 , 185u8 , 202u8 , 252u8 , 192u8 , 94u8 , 20u8 , 195u8 , 27u8 , 61u8 , 75u8 , 127u8 , 111u8 , 143u8 , 61u8 , 67u8 , 218u8 , 81u8 , 223u8 , 5u8 , 84u8 ,]) } # [doc = " Tick index bitmap words storage"] pub fn tick_index_bitmap_words_iter2 (& self , _0 : types :: tick_index_bitmap_words :: Param0 , _1 : types :: tick_index_bitmap_words :: Param1 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tick_index_bitmap_words :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tick_index_bitmap_words :: Param1 > ,) , types :: tick_index_bitmap_words :: TickIndexBitmapWords , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "TickIndexBitmapWords" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) ,) , [167u8 , 203u8 , 251u8 , 1u8 , 28u8 , 105u8 , 60u8 , 211u8 , 117u8 , 221u8 , 11u8 , 239u8 , 185u8 , 202u8 , 252u8 , 192u8 , 94u8 , 20u8 , 195u8 , 27u8 , 61u8 , 75u8 , 127u8 , 111u8 , 143u8 , 61u8 , 67u8 , 218u8 , 81u8 , 223u8 , 5u8 , 84u8 ,]) } # [doc = " Tick index bitmap words storage"] pub fn tick_index_bitmap_words (& self , _0 : types :: tick_index_bitmap_words :: Param0 , _1 : types :: tick_index_bitmap_words :: Param1 , _2 : types :: tick_index_bitmap_words :: Param2 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tick_index_bitmap_words :: Param0 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tick_index_bitmap_words :: Param1 > , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: tick_index_bitmap_words :: Param2 > ,) , types :: tick_index_bitmap_words :: TickIndexBitmapWords , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "TickIndexBitmapWords" , (:: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_1) , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_2) ,) , [167u8 , 203u8 , 251u8 , 1u8 , 28u8 , 105u8 , 60u8 , 211u8 , 117u8 , 221u8 , 11u8 , 239u8 , 185u8 , 202u8 , 252u8 , 192u8 , 94u8 , 20u8 , 195u8 , 27u8 , 61u8 , 75u8 , 127u8 , 111u8 , 143u8 , 61u8 , 67u8 , 218u8 , 81u8 , 223u8 , 5u8 , 84u8 ,]) } # [doc = " TAO reservoir for scraps of protocol claimed fees."] pub fn scrap_reservoir_tao_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: scrap_reservoir_tao :: ScrapReservoirTao , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "ScrapReservoirTao" , () , [108u8 , 221u8 , 52u8 , 25u8 , 187u8 , 250u8 , 131u8 , 95u8 , 144u8 , 82u8 , 154u8 , 195u8 , 108u8 , 109u8 , 105u8 , 69u8 , 218u8 , 183u8 , 79u8 , 237u8 , 16u8 , 216u8 , 212u8 , 63u8 , 157u8 , 187u8 , 106u8 , 88u8 , 174u8 , 199u8 , 106u8 , 206u8 ,]) } # [doc = " TAO reservoir for scraps of protocol claimed fees."] pub fn scrap_reservoir_tao (& self , _0 : types :: scrap_reservoir_tao :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: scrap_reservoir_tao :: Param0 > , types :: scrap_reservoir_tao :: ScrapReservoirTao , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "ScrapReservoirTao" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [108u8 , 221u8 , 52u8 , 25u8 , 187u8 , 250u8 , 131u8 , 95u8 , 144u8 , 82u8 , 154u8 , 195u8 , 108u8 , 109u8 , 105u8 , 69u8 , 218u8 , 183u8 , 79u8 , 237u8 , 16u8 , 216u8 , 212u8 , 63u8 , 157u8 , 187u8 , 106u8 , 88u8 , 174u8 , 199u8 , 106u8 , 206u8 ,]) } # [doc = " Alpha reservoir for scraps of protocol claimed fees."] pub fn scrap_reservoir_alpha_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: scrap_reservoir_alpha :: ScrapReservoirAlpha , () , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "ScrapReservoirAlpha" , () , [168u8 , 156u8 , 78u8 , 46u8 , 187u8 , 4u8 , 104u8 , 48u8 , 131u8 , 126u8 , 78u8 , 107u8 , 210u8 , 96u8 , 22u8 , 161u8 , 94u8 , 9u8 , 220u8 , 158u8 , 214u8 , 176u8 , 141u8 , 13u8 , 112u8 , 196u8 , 139u8 , 238u8 , 65u8 , 120u8 , 120u8 , 226u8 ,]) } # [doc = " Alpha reservoir for scraps of protocol claimed fees."] pub fn scrap_reservoir_alpha (& self , _0 : types :: scrap_reservoir_alpha :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: scrap_reservoir_alpha :: Param0 > , types :: scrap_reservoir_alpha :: ScrapReservoirAlpha , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Swap" , "ScrapReservoirAlpha" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [168u8 , 156u8 , 78u8 , 46u8 , 187u8 , 4u8 , 104u8 , 48u8 , 131u8 , 126u8 , 78u8 , 107u8 , 210u8 , 96u8 , 22u8 , 161u8 , 94u8 , 9u8 , 220u8 , 158u8 , 214u8 , 176u8 , 141u8 , 13u8 , 112u8 , 196u8 , 139u8 , 238u8 , 65u8 , 120u8 , 120u8 , 226u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " This type is used to derive protocol accoun ID."] pub fn protocol_id (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: frame_support :: PalletId > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Swap" , "ProtocolId" , [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 ,]) } # [doc = " The maximum fee rate that can be set"] pub fn max_fee_rate (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u16 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Swap" , "MaxFeeRate" , [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 ,]) } # [doc = " The maximum number of positions a user can have"] pub fn max_positions (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Swap" , "MaxPositions" , [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 ,]) } # [doc = " Minimum liquidity that is safe for rounding and integer math."] pub fn minimum_liquidity (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Swap" , "MinimumLiquidity" , [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 ,]) } # [doc = " Minimum reserve for tao and alpha"] pub fn minimum_reserve (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: num :: NonZeroU64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Swap" , "MinimumReserve" , [184u8 , 78u8 , 161u8 , 6u8 , 214u8 , 205u8 , 82u8 , 205u8 , 126u8 , 46u8 , 7u8 , 198u8 , 186u8 , 10u8 , 66u8 , 116u8 , 191u8 , 223u8 , 17u8 , 246u8 , 196u8 , 190u8 , 222u8 , 226u8 , 62u8 , 35u8 , 191u8 , 127u8 , 60u8 , 171u8 , 85u8 , 201u8 ,]) } } } } pub mod contracts { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_contracts :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_contracts :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Deprecated version if [`Self::call`] for use in an in-storage `Call`."] pub struct CallOldWeight { pub dest : call_old_weight :: Dest , # [codec (compact)] pub value : call_old_weight :: Value , # [codec (compact)] pub gas_limit : call_old_weight :: GasLimit , pub storage_deposit_limit : call_old_weight :: StorageDepositLimit , pub data : call_old_weight :: Data , } pub mod call_old_weight { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = :: core :: primitive :: u64 ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for CallOldWeight { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "call_old_weight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`."] pub struct InstantiateWithCodeOldWeight { # [codec (compact)] pub value : instantiate_with_code_old_weight :: Value , # [codec (compact)] pub gas_limit : instantiate_with_code_old_weight :: GasLimit , pub storage_deposit_limit : instantiate_with_code_old_weight :: StorageDepositLimit , pub code : instantiate_with_code_old_weight :: Code , pub data : instantiate_with_code_old_weight :: Data , pub salt : instantiate_with_code_old_weight :: Salt , } pub mod instantiate_with_code_old_weight { use super :: runtime_types ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = :: core :: primitive :: u64 ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for InstantiateWithCodeOldWeight { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "instantiate_with_code_old_weight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`."] pub struct InstantiateOldWeight { # [codec (compact)] pub value : instantiate_old_weight :: Value , # [codec (compact)] pub gas_limit : instantiate_old_weight :: GasLimit , pub storage_deposit_limit : instantiate_old_weight :: StorageDepositLimit , pub code_hash : instantiate_old_weight :: CodeHash , pub data : instantiate_old_weight :: Data , pub salt : instantiate_old_weight :: Salt , } pub mod instantiate_old_weight { use super :: runtime_types ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = :: core :: primitive :: u64 ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for InstantiateOldWeight { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "instantiate_old_weight" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Upload new `code` without instantiating a contract from it."] # [doc = ""] # [doc = "If the code does not already exist a deposit is reserved from the caller"] # [doc = "and unreserved only when [`Self::remove_code`] is called. The size of the reserve"] # [doc = "depends on the size of the supplied `code`."] # [doc = ""] # [doc = "If the code already exists in storage it will still return `Ok` and upgrades"] # [doc = "the in storage version to the current"] # [doc = "[`InstructionWeights::version`](InstructionWeights)."] # [doc = ""] # [doc = "- `determinism`: If this is set to any other value but [`Determinism::Enforced`] then"] # [doc = "  the only way to use this code is to delegate call into it from an offchain execution."] # [doc = "  Set to [`Determinism::Enforced`] if in doubt."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Anyone can instantiate a contract from any uploaded code and thus prevent its removal."] # [doc = "To avoid this situation a constructor could employ access control so that it can"] # [doc = "only be instantiated by permissioned entities. The same is true when uploading"] # [doc = "through [`Self::instantiate_with_code`]."] # [doc = ""] # [doc = "Use [`Determinism::Relaxed`] exclusively for non-deterministic code. If the uploaded"] # [doc = "code is deterministic, specifying [`Determinism::Relaxed`] will be disregarded and"] # [doc = "result in higher gas costs."] pub struct UploadCode { pub code : upload_code :: Code , pub storage_deposit_limit : upload_code :: StorageDepositLimit , pub determinism : upload_code :: Determinism , } pub mod upload_code { use super :: runtime_types ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type Determinism = runtime_types :: pallet_contracts :: wasm :: Determinism ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for UploadCode { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "upload_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Remove the code stored under `code_hash` and refund the deposit to its owner."] # [doc = ""] # [doc = "A code can only be removed by its original uploader (its owner) and only if it is"] # [doc = "not used by any contract."] pub struct RemoveCode { pub code_hash : remove_code :: CodeHash , } pub mod remove_code { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for RemoveCode { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "remove_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Privileged function that changes the code of an existing contract."] # [doc = ""] # [doc = "This takes care of updating refcounts and all other necessary operations. Returns"] # [doc = "an error if either the `code_hash` or `dest` do not exist."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "This does **not** change the address of the contract in question. This means"] # [doc = "that the contract address is no longer derived from its code hash after calling"] # [doc = "this dispatchable."] pub struct SetCode { pub dest : set_code :: Dest , pub code_hash : set_code :: CodeHash , } pub mod set_code { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SetCode { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "set_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Makes a call to an account, optionally transferring some balance."] # [doc = ""] # [doc = "# Parameters"] # [doc = ""] # [doc = "* `dest`: Address of the contract to call."] # [doc = "* `value`: The balance to transfer from the `origin` to `dest`."] # [doc = "* `gas_limit`: The gas limit enforced when executing the constructor."] # [doc = "* `storage_deposit_limit`: The maximum amount of balance that can be charged from the"] # [doc = "  caller to pay for the storage consumed."] # [doc = "* `data`: The input data to pass to the contract."] # [doc = ""] # [doc = "* If the account is a smart-contract account, the associated code will be"] # [doc = "executed and any value will be transferred."] # [doc = "* If the account is a regular account, any value will be transferred."] # [doc = "* If no account exists and the call value is not less than `existential_deposit`,"] # [doc = "a regular account will be created and any value will be transferred."] pub struct Call { pub dest : call :: Dest , # [codec (compact)] pub value : call :: Value , pub gas_limit : call :: GasLimit , pub storage_deposit_limit : call :: StorageDepositLimit , pub data : call :: Data , } pub mod call { use super :: runtime_types ; pub type Dest = :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = runtime_types :: sp_weights :: weight_v2 :: Weight ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Call { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "call" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Instantiates a new contract from the supplied `code` optionally transferring"] # [doc = "some balance."] # [doc = ""] # [doc = "This dispatchable has the same effect as calling [`Self::upload_code`] +"] # [doc = "[`Self::instantiate`]. Bundling them together provides efficiency gains. Please"] # [doc = "also check the documentation of [`Self::upload_code`]."] # [doc = ""] # [doc = "# Parameters"] # [doc = ""] # [doc = "* `value`: The balance to transfer from the `origin` to the newly created contract."] # [doc = "* `gas_limit`: The gas limit enforced when executing the constructor."] # [doc = "* `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved"] # [doc = "  from the caller to pay for the storage consumed."] # [doc = "* `code`: The contract code to deploy in raw bytes."] # [doc = "* `data`: The input data to pass to the contract constructor."] # [doc = "* `salt`: Used for the address derivation. See [`Pallet::contract_address`]."] # [doc = ""] # [doc = "Instantiation is executed as follows:"] # [doc = ""] # [doc = "- The supplied `code` is deployed, and a `code_hash` is created for that code."] # [doc = "- If the `code_hash` already exists on the chain the underlying `code` will be shared."] # [doc = "- The destination address is computed based on the sender, code_hash and the salt."] # [doc = "- The smart-contract account is created at the computed address."] # [doc = "- The `value` is transferred to the new account."] # [doc = "- The `deploy` function is executed in the context of the newly-created account."] pub struct InstantiateWithCode { # [codec (compact)] pub value : instantiate_with_code :: Value , pub gas_limit : instantiate_with_code :: GasLimit , pub storage_deposit_limit : instantiate_with_code :: StorageDepositLimit , pub code : instantiate_with_code :: Code , pub data : instantiate_with_code :: Data , pub salt : instantiate_with_code :: Salt , } pub mod instantiate_with_code { use super :: runtime_types ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = runtime_types :: sp_weights :: weight_v2 :: Weight ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type Code = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for InstantiateWithCode { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "instantiate_with_code" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Instantiates a contract from a previously deployed wasm binary."] # [doc = ""] # [doc = "This function is identical to [`Self::instantiate_with_code`] but without the"] # [doc = "code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary"] # [doc = "must be supplied."] pub struct Instantiate { # [codec (compact)] pub value : instantiate :: Value , pub gas_limit : instantiate :: GasLimit , pub storage_deposit_limit : instantiate :: StorageDepositLimit , pub code_hash : instantiate :: CodeHash , pub data : instantiate :: Data , pub salt : instantiate :: Salt , } pub mod instantiate { use super :: runtime_types ; pub type Value = :: core :: primitive :: u64 ; pub type GasLimit = runtime_types :: sp_weights :: weight_v2 :: Weight ; pub type StorageDepositLimit = :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; pub type Salt = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Instantiate { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "instantiate" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "When a migration is in progress, this dispatchable can be used to run migration steps."] # [doc = "Calls that contribute to advancing the migration have their fees waived, as it's helpful"] # [doc = "for the chain. Note that while the migration is in progress, the pallet will also"] # [doc = "leverage the `on_idle` hooks to run migration steps."] pub struct Migrate { pub weight_limit : migrate :: WeightLimit , } pub mod migrate { use super :: runtime_types ; pub type WeightLimit = runtime_types :: sp_weights :: weight_v2 :: Weight ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for Migrate { const PALLET : & 'static str = "Contracts" ; const CALL : & 'static str = "migrate" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Deprecated version if [`Self::call`] for use in an in-storage `Call`."] pub fn call_old_weight (& self , dest : types :: call_old_weight :: Dest , value : types :: call_old_weight :: Value , gas_limit : types :: call_old_weight :: GasLimit , storage_deposit_limit : types :: call_old_weight :: StorageDepositLimit , data : types :: call_old_weight :: Data ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: CallOldWeight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "call_old_weight" , types :: CallOldWeight { dest , value , gas_limit , storage_deposit_limit , data , } , [148u8 , 106u8 , 213u8 , 44u8 , 58u8 , 37u8 , 251u8 , 3u8 , 136u8 , 237u8 , 105u8 , 167u8 , 46u8 , 243u8 , 76u8 , 75u8 , 48u8 , 37u8 , 251u8 , 204u8 , 81u8 , 246u8 , 4u8 , 117u8 , 255u8 , 156u8 , 71u8 , 98u8 , 247u8 , 111u8 , 76u8 , 4u8 ,]) } # [doc = "Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`."] pub fn instantiate_with_code_old_weight (& self , value : types :: instantiate_with_code_old_weight :: Value , gas_limit : types :: instantiate_with_code_old_weight :: GasLimit , storage_deposit_limit : types :: instantiate_with_code_old_weight :: StorageDepositLimit , code : types :: instantiate_with_code_old_weight :: Code , data : types :: instantiate_with_code_old_weight :: Data , salt : types :: instantiate_with_code_old_weight :: Salt ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: InstantiateWithCodeOldWeight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "instantiate_with_code_old_weight" , types :: InstantiateWithCodeOldWeight { value , gas_limit , storage_deposit_limit , code , data , salt , } , [46u8 , 127u8 , 20u8 , 23u8 , 178u8 , 182u8 , 99u8 , 239u8 , 171u8 , 254u8 , 193u8 , 195u8 , 97u8 , 253u8 , 11u8 , 81u8 , 125u8 , 77u8 , 211u8 , 218u8 , 103u8 , 86u8 , 132u8 , 143u8 , 24u8 , 159u8 , 105u8 , 35u8 , 190u8 , 14u8 , 62u8 , 27u8 ,]) } # [doc = "Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`."] pub fn instantiate_old_weight (& self , value : types :: instantiate_old_weight :: Value , gas_limit : types :: instantiate_old_weight :: GasLimit , storage_deposit_limit : types :: instantiate_old_weight :: StorageDepositLimit , code_hash : types :: instantiate_old_weight :: CodeHash , data : types :: instantiate_old_weight :: Data , salt : types :: instantiate_old_weight :: Salt ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: InstantiateOldWeight > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "instantiate_old_weight" , types :: InstantiateOldWeight { value , gas_limit , storage_deposit_limit , code_hash , data , salt , } , [85u8 , 199u8 , 252u8 , 33u8 , 44u8 , 236u8 , 6u8 , 91u8 , 47u8 , 239u8 , 169u8 , 171u8 , 155u8 , 139u8 , 34u8 , 136u8 , 107u8 , 110u8 , 21u8 , 142u8 , 129u8 , 58u8 , 34u8 , 177u8 , 12u8 , 214u8 , 92u8 , 100u8 , 217u8 , 175u8 , 31u8 , 208u8 ,]) } # [doc = "Upload new `code` without instantiating a contract from it."] # [doc = ""] # [doc = "If the code does not already exist a deposit is reserved from the caller"] # [doc = "and unreserved only when [`Self::remove_code`] is called. The size of the reserve"] # [doc = "depends on the size of the supplied `code`."] # [doc = ""] # [doc = "If the code already exists in storage it will still return `Ok` and upgrades"] # [doc = "the in storage version to the current"] # [doc = "[`InstructionWeights::version`](InstructionWeights)."] # [doc = ""] # [doc = "- `determinism`: If this is set to any other value but [`Determinism::Enforced`] then"] # [doc = "  the only way to use this code is to delegate call into it from an offchain execution."] # [doc = "  Set to [`Determinism::Enforced`] if in doubt."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Anyone can instantiate a contract from any uploaded code and thus prevent its removal."] # [doc = "To avoid this situation a constructor could employ access control so that it can"] # [doc = "only be instantiated by permissioned entities. The same is true when uploading"] # [doc = "through [`Self::instantiate_with_code`]."] # [doc = ""] # [doc = "Use [`Determinism::Relaxed`] exclusively for non-deterministic code. If the uploaded"] # [doc = "code is deterministic, specifying [`Determinism::Relaxed`] will be disregarded and"] # [doc = "result in higher gas costs."] pub fn upload_code (& self , code : types :: upload_code :: Code , storage_deposit_limit : types :: upload_code :: StorageDepositLimit , determinism : types :: upload_code :: Determinism ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: UploadCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "upload_code" , types :: UploadCode { code , storage_deposit_limit , determinism , } , [128u8 , 24u8 , 229u8 , 82u8 , 63u8 , 198u8 , 242u8 , 111u8 , 187u8 , 38u8 , 110u8 , 113u8 , 23u8 , 7u8 , 115u8 , 62u8 , 223u8 , 200u8 , 75u8 , 67u8 , 23u8 , 198u8 , 193u8 , 107u8 , 30u8 , 12u8 , 198u8 , 162u8 , 155u8 , 225u8 , 12u8 , 9u8 ,]) } # [doc = "Remove the code stored under `code_hash` and refund the deposit to its owner."] # [doc = ""] # [doc = "A code can only be removed by its original uploader (its owner) and only if it is"] # [doc = "not used by any contract."] pub fn remove_code (& self , code_hash : types :: remove_code :: CodeHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: RemoveCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "remove_code" , types :: RemoveCode { code_hash , } , [99u8 , 184u8 , 12u8 , 208u8 , 123u8 , 158u8 , 140u8 , 21u8 , 190u8 , 152u8 , 95u8 , 79u8 , 217u8 , 131u8 , 161u8 , 160u8 , 21u8 , 56u8 , 167u8 , 27u8 , 90u8 , 255u8 , 75u8 , 0u8 , 133u8 , 111u8 , 119u8 , 217u8 , 157u8 , 67u8 , 238u8 , 69u8 ,]) } # [doc = "Privileged function that changes the code of an existing contract."] # [doc = ""] # [doc = "This takes care of updating refcounts and all other necessary operations. Returns"] # [doc = "an error if either the `code_hash` or `dest` do not exist."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "This does **not** change the address of the contract in question. This means"] # [doc = "that the contract address is no longer derived from its code hash after calling"] # [doc = "this dispatchable."] pub fn set_code (& self , dest : types :: set_code :: Dest , code_hash : types :: set_code :: CodeHash ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SetCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "set_code" , types :: SetCode { dest , code_hash , } , [66u8 , 53u8 , 180u8 , 182u8 , 167u8 , 134u8 , 212u8 , 45u8 , 162u8 , 121u8 , 89u8 , 105u8 , 7u8 , 166u8 , 112u8 , 13u8 , 250u8 , 115u8 , 128u8 , 235u8 , 124u8 , 55u8 , 166u8 , 5u8 , 158u8 , 163u8 , 159u8 , 113u8 , 243u8 , 103u8 , 214u8 , 108u8 ,]) } # [doc = "Makes a call to an account, optionally transferring some balance."] # [doc = ""] # [doc = "# Parameters"] # [doc = ""] # [doc = "* `dest`: Address of the contract to call."] # [doc = "* `value`: The balance to transfer from the `origin` to `dest`."] # [doc = "* `gas_limit`: The gas limit enforced when executing the constructor."] # [doc = "* `storage_deposit_limit`: The maximum amount of balance that can be charged from the"] # [doc = "  caller to pay for the storage consumed."] # [doc = "* `data`: The input data to pass to the contract."] # [doc = ""] # [doc = "* If the account is a smart-contract account, the associated code will be"] # [doc = "executed and any value will be transferred."] # [doc = "* If the account is a regular account, any value will be transferred."] # [doc = "* If no account exists and the call value is not less than `existential_deposit`,"] # [doc = "a regular account will be created and any value will be transferred."] pub fn call (& self , dest : types :: call :: Dest , value : types :: call :: Value , gas_limit : types :: call :: GasLimit , storage_deposit_limit : types :: call :: StorageDepositLimit , data : types :: call :: Data ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Call > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "call" , types :: Call { dest , value , gas_limit , storage_deposit_limit , data , } , [180u8 , 56u8 , 177u8 , 183u8 , 133u8 , 124u8 , 128u8 , 240u8 , 5u8 , 12u8 , 214u8 , 188u8 , 94u8 , 4u8 , 27u8 , 64u8 , 182u8 , 244u8 , 83u8 , 66u8 , 180u8 , 214u8 , 21u8 , 233u8 , 66u8 , 93u8 , 225u8 , 160u8 , 141u8 , 218u8 , 17u8 , 112u8 ,]) } # [doc = "Instantiates a new contract from the supplied `code` optionally transferring"] # [doc = "some balance."] # [doc = ""] # [doc = "This dispatchable has the same effect as calling [`Self::upload_code`] +"] # [doc = "[`Self::instantiate`]. Bundling them together provides efficiency gains. Please"] # [doc = "also check the documentation of [`Self::upload_code`]."] # [doc = ""] # [doc = "# Parameters"] # [doc = ""] # [doc = "* `value`: The balance to transfer from the `origin` to the newly created contract."] # [doc = "* `gas_limit`: The gas limit enforced when executing the constructor."] # [doc = "* `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved"] # [doc = "  from the caller to pay for the storage consumed."] # [doc = "* `code`: The contract code to deploy in raw bytes."] # [doc = "* `data`: The input data to pass to the contract constructor."] # [doc = "* `salt`: Used for the address derivation. See [`Pallet::contract_address`]."] # [doc = ""] # [doc = "Instantiation is executed as follows:"] # [doc = ""] # [doc = "- The supplied `code` is deployed, and a `code_hash` is created for that code."] # [doc = "- If the `code_hash` already exists on the chain the underlying `code` will be shared."] # [doc = "- The destination address is computed based on the sender, code_hash and the salt."] # [doc = "- The smart-contract account is created at the computed address."] # [doc = "- The `value` is transferred to the new account."] # [doc = "- The `deploy` function is executed in the context of the newly-created account."] pub fn instantiate_with_code (& self , value : types :: instantiate_with_code :: Value , gas_limit : types :: instantiate_with_code :: GasLimit , storage_deposit_limit : types :: instantiate_with_code :: StorageDepositLimit , code : types :: instantiate_with_code :: Code , data : types :: instantiate_with_code :: Data , salt : types :: instantiate_with_code :: Salt ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: InstantiateWithCode > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "instantiate_with_code" , types :: InstantiateWithCode { value , gas_limit , storage_deposit_limit , code , data , salt , } , [5u8 , 254u8 , 87u8 , 219u8 , 186u8 , 152u8 , 7u8 , 171u8 , 139u8 , 154u8 , 156u8 , 71u8 , 6u8 , 141u8 , 142u8 , 13u8 , 159u8 , 141u8 , 17u8 , 86u8 , 101u8 , 255u8 , 198u8 , 24u8 , 22u8 , 202u8 , 0u8 , 93u8 , 167u8 , 24u8 , 33u8 , 233u8 ,]) } # [doc = "Instantiates a contract from a previously deployed wasm binary."] # [doc = ""] # [doc = "This function is identical to [`Self::instantiate_with_code`] but without the"] # [doc = "code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary"] # [doc = "must be supplied."] pub fn instantiate (& self , value : types :: instantiate :: Value , gas_limit : types :: instantiate :: GasLimit , storage_deposit_limit : types :: instantiate :: StorageDepositLimit , code_hash : types :: instantiate :: CodeHash , data : types :: instantiate :: Data , salt : types :: instantiate :: Salt ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Instantiate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "instantiate" , types :: Instantiate { value , gas_limit , storage_deposit_limit , code_hash , data , salt , } , [76u8 , 45u8 , 179u8 , 227u8 , 69u8 , 190u8 , 6u8 , 142u8 , 101u8 , 42u8 , 62u8 , 96u8 , 121u8 , 106u8 , 70u8 , 180u8 , 38u8 , 214u8 , 129u8 , 5u8 , 22u8 , 170u8 , 131u8 , 201u8 , 105u8 , 167u8 , 105u8 , 24u8 , 118u8 , 58u8 , 63u8 , 65u8 ,]) } # [doc = "When a migration is in progress, this dispatchable can be used to run migration steps."] # [doc = "Calls that contribute to advancing the migration have their fees waived, as it's helpful"] # [doc = "for the chain. Note that while the migration is in progress, the pallet will also"] # [doc = "leverage the `on_idle` hooks to run migration steps."] pub fn migrate (& self , weight_limit : types :: migrate :: WeightLimit ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: Migrate > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("Contracts" , "migrate" , types :: Migrate { weight_limit , } , [11u8 , 183u8 , 183u8 , 30u8 , 18u8 , 17u8 , 58u8 , 145u8 , 254u8 , 126u8 , 21u8 , 155u8 , 27u8 , 218u8 , 95u8 , 35u8 , 38u8 , 102u8 , 234u8 , 241u8 , 67u8 , 99u8 , 183u8 , 164u8 , 5u8 , 66u8 , 186u8 , 77u8 , 234u8 , 76u8 , 206u8 , 248u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_contracts :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contract deployed by address at the specified address."] pub struct Instantiated { pub deployer : instantiated :: Deployer , pub contract : instantiated :: Contract , } pub mod instantiated { use super :: runtime_types ; pub type Deployer = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Contract = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Instantiated { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "Instantiated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contract has been removed."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "The only way for a contract to be removed and emitting this event is by calling"] # [doc = "`seal_terminate`."] pub struct Terminated { pub contract : terminated :: Contract , pub beneficiary : terminated :: Beneficiary , } pub mod terminated { use super :: runtime_types ; pub type Contract = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Beneficiary = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Terminated { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "Terminated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Code with the specified hash has been stored."] pub struct CodeStored { pub code_hash : code_stored :: CodeHash , pub deposit_held : code_stored :: DepositHeld , pub uploader : code_stored :: Uploader , } pub mod code_stored { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type DepositHeld = :: core :: primitive :: u64 ; pub type Uploader = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CodeStored { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "CodeStored" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A custom event emitted by the contract."] pub struct ContractEmitted { pub contract : contract_emitted :: Contract , pub data : contract_emitted :: Data , } pub mod contract_emitted { use super :: runtime_types ; pub type Contract = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Data = :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ContractEmitted { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "ContractEmitted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A code with the specified hash was removed."] pub struct CodeRemoved { pub code_hash : code_removed :: CodeHash , pub deposit_released : code_removed :: DepositReleased , pub remover : code_removed :: Remover , } pub mod code_removed { use super :: runtime_types ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type DepositReleased = :: core :: primitive :: u64 ; pub type Remover = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for CodeRemoved { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "CodeRemoved" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract's code was updated."] pub struct ContractCodeUpdated { pub contract : contract_code_updated :: Contract , pub new_code_hash : contract_code_updated :: NewCodeHash , pub old_code_hash : contract_code_updated :: OldCodeHash , } pub mod contract_code_updated { use super :: runtime_types ; pub type Contract = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type NewCodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type OldCodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for ContractCodeUpdated { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "ContractCodeUpdated" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract was called either by a plain account or another contract."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Please keep in mind that like all events this is only emitted for successful"] # [doc = "calls. This is because on failure all storage changes including events are"] # [doc = "rolled back."] pub struct Called { pub caller : called :: Caller , pub contract : called :: Contract , } pub mod called { use super :: runtime_types ; pub type Caller = runtime_types :: pallet_contracts :: Origin < runtime_types :: node_subtensor_runtime :: Runtime > ; pub type Contract = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for Called { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "Called" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "A contract delegate called a code hash."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Please keep in mind that like all events this is only emitted for successful"] # [doc = "calls. This is because on failure all storage changes including events are"] # [doc = "rolled back."] pub struct DelegateCalled { pub contract : delegate_called :: Contract , pub code_hash : delegate_called :: CodeHash , } pub mod delegate_called { use super :: runtime_types ; pub type Contract = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type CodeHash = :: subxt :: ext :: subxt_core :: utils :: H256 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DelegateCalled { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "DelegateCalled" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some funds have been transferred and held as storage deposit."] pub struct StorageDepositTransferredAndHeld { pub from : storage_deposit_transferred_and_held :: From , pub to : storage_deposit_transferred_and_held :: To , pub amount : storage_deposit_transferred_and_held :: Amount , } pub mod storage_deposit_transferred_and_held { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StorageDepositTransferredAndHeld { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "StorageDepositTransferredAndHeld" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Some storage deposit funds have been transferred and released."] pub struct StorageDepositTransferredAndReleased { pub from : storage_deposit_transferred_and_released :: From , pub to : storage_deposit_transferred_and_released :: To , pub amount : storage_deposit_transferred_and_released :: Amount , } pub mod storage_deposit_transferred_and_released { use super :: runtime_types ; pub type From = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type To = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; pub type Amount = :: core :: primitive :: u64 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for StorageDepositTransferredAndReleased { const PALLET : & 'static str = "Contracts" ; const EVENT : & 'static str = "StorageDepositTransferredAndReleased" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod pristine_code { use super :: runtime_types ; pub type PristineCode = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod code_info_of { use super :: runtime_types ; pub type CodeInfoOf = runtime_types :: pallet_contracts :: wasm :: CodeInfo ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod nonce { use super :: runtime_types ; pub type Nonce = :: core :: primitive :: u64 ; } pub mod contract_info_of { use super :: runtime_types ; pub type ContractInfoOf = runtime_types :: pallet_contracts :: storage :: ContractInfo ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } pub mod deletion_queue { use super :: runtime_types ; pub type DeletionQueue = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; pub type Param0 = :: core :: primitive :: u32 ; } pub mod deletion_queue_counter { use super :: runtime_types ; pub type DeletionQueueCounter = runtime_types :: pallet_contracts :: storage :: DeletionQueueManager ; } pub mod migration_in_progress { use super :: runtime_types ; pub type MigrationInProgress = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } } pub struct StorageApi ; impl StorageApi { # [doc = " A mapping from a contract's code hash to its code."] pub fn pristine_code_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: pristine_code :: PristineCode , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "PristineCode" , () , [6u8 , 31u8 , 218u8 , 40u8 , 203u8 , 188u8 , 155u8 , 242u8 , 11u8 , 64u8 , 196u8 , 23u8 , 70u8 , 117u8 , 21u8 , 42u8 , 68u8 , 254u8 , 90u8 , 190u8 , 155u8 , 117u8 , 153u8 , 198u8 , 119u8 , 35u8 , 52u8 , 217u8 , 209u8 , 144u8 , 1u8 , 66u8 ,]) } # [doc = " A mapping from a contract's code hash to its code."] pub fn pristine_code (& self , _0 : types :: pristine_code :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: pristine_code :: Param0 > , types :: pristine_code :: PristineCode , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "PristineCode" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [6u8 , 31u8 , 218u8 , 40u8 , 203u8 , 188u8 , 155u8 , 242u8 , 11u8 , 64u8 , 196u8 , 23u8 , 70u8 , 117u8 , 21u8 , 42u8 , 68u8 , 254u8 , 90u8 , 190u8 , 155u8 , 117u8 , 153u8 , 198u8 , 119u8 , 35u8 , 52u8 , 217u8 , 209u8 , 144u8 , 1u8 , 66u8 ,]) } # [doc = " A mapping from a contract's code hash to its code info."] pub fn code_info_of_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: code_info_of :: CodeInfoOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "CodeInfoOf" , () , [54u8 , 3u8 , 214u8 , 243u8 , 144u8 , 238u8 , 139u8 , 69u8 , 14u8 , 157u8 , 240u8 , 254u8 , 62u8 , 120u8 , 63u8 , 9u8 , 42u8 , 104u8 , 243u8 , 56u8 , 9u8 , 18u8 , 95u8 , 214u8 , 90u8 , 147u8 , 127u8 , 206u8 , 131u8 , 220u8 , 244u8 , 64u8 ,]) } # [doc = " A mapping from a contract's code hash to its code info."] pub fn code_info_of (& self , _0 : types :: code_info_of :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: code_info_of :: Param0 > , types :: code_info_of :: CodeInfoOf , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "CodeInfoOf" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [54u8 , 3u8 , 214u8 , 243u8 , 144u8 , 238u8 , 139u8 , 69u8 , 14u8 , 157u8 , 240u8 , 254u8 , 62u8 , 120u8 , 63u8 , 9u8 , 42u8 , 104u8 , 243u8 , 56u8 , 9u8 , 18u8 , 95u8 , 214u8 , 90u8 , 147u8 , 127u8 , 206u8 , 131u8 , 220u8 , 244u8 , 64u8 ,]) } # [doc = " This is a **monotonic** counter incremented on contract instantiation."] # [doc = ""] # [doc = " This is used in order to generate unique trie ids for contracts."] # [doc = " The trie id of a new contract is calculated from hash(account_id, nonce)."] # [doc = " The nonce is required because otherwise the following sequence would lead to"] # [doc = " a possible collision of storage:"] # [doc = ""] # [doc = " 1. Create a new contract."] # [doc = " 2. Terminate the contract."] # [doc = " 3. Immediately recreate the contract with the same account_id."] # [doc = ""] # [doc = " This is bad because the contents of a trie are deleted lazily and there might be"] # [doc = " storage of the old instantiation still in it when the new contract is created. Please"] # [doc = " note that we can't replace the counter by the block number because the sequence above"] # [doc = " can happen in the same block. We also can't keep the account counter in memory only"] # [doc = " because storage is the only way to communicate across different extrinsics in the"] # [doc = " same block."] # [doc = ""] # [doc = " # Note"] # [doc = ""] # [doc = " Do not use it to determine the number of contracts. It won't be decremented if"] # [doc = " a contract is destroyed."] pub fn nonce (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: nonce :: Nonce , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "Nonce" , () , [47u8 , 101u8 , 89u8 , 252u8 , 98u8 , 25u8 , 178u8 , 154u8 , 17u8 , 57u8 , 185u8 , 10u8 , 133u8 , 94u8 , 73u8 , 160u8 , 137u8 , 150u8 , 97u8 , 119u8 , 8u8 , 146u8 , 149u8 , 146u8 , 212u8 , 60u8 , 141u8 , 24u8 , 124u8 , 28u8 , 57u8 , 19u8 ,]) } # [doc = " The code associated with a given account."] # [doc = ""] # [doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn contract_info_of_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: contract_info_of :: ContractInfoOf , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "ContractInfoOf" , () , [213u8 , 45u8 , 40u8 , 56u8 , 252u8 , 26u8 , 98u8 , 210u8 , 66u8 , 76u8 , 79u8 , 220u8 , 190u8 , 219u8 , 139u8 , 85u8 , 59u8 , 13u8 , 111u8 , 48u8 , 2u8 , 53u8 , 31u8 , 241u8 , 80u8 , 58u8 , 239u8 , 62u8 , 85u8 , 25u8 , 3u8 , 75u8 ,]) } # [doc = " The code associated with a given account."] # [doc = ""] # [doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] pub fn contract_info_of (& self , _0 : types :: contract_info_of :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: contract_info_of :: Param0 > , types :: contract_info_of :: ContractInfoOf , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "ContractInfoOf" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [213u8 , 45u8 , 40u8 , 56u8 , 252u8 , 26u8 , 98u8 , 210u8 , 66u8 , 76u8 , 79u8 , 220u8 , 190u8 , 219u8 , 139u8 , 85u8 , 59u8 , 13u8 , 111u8 , 48u8 , 2u8 , 53u8 , 31u8 , 241u8 , 80u8 , 58u8 , 239u8 , 62u8 , 85u8 , 25u8 , 3u8 , 75u8 ,]) } # [doc = " Evicted contracts that await child trie deletion."] # [doc = ""] # [doc = " Child trie deletion is a heavy operation depending on the amount of storage items"] # [doc = " stored in said trie. Therefore this operation is performed lazily in `on_idle`."] pub fn deletion_queue_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: deletion_queue :: DeletionQueue , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "DeletionQueue" , () , [233u8 , 193u8 , 191u8 , 44u8 , 151u8 , 46u8 , 124u8 , 188u8 , 132u8 , 227u8 , 107u8 , 210u8 , 37u8 , 110u8 , 172u8 , 95u8 , 12u8 , 114u8 , 63u8 , 83u8 , 60u8 , 163u8 , 58u8 , 174u8 , 160u8 , 47u8 , 198u8 , 156u8 , 216u8 , 182u8 , 65u8 , 229u8 ,]) } # [doc = " Evicted contracts that await child trie deletion."] # [doc = ""] # [doc = " Child trie deletion is a heavy operation depending on the amount of storage items"] # [doc = " stored in said trie. Therefore this operation is performed lazily in `on_idle`."] pub fn deletion_queue (& self , _0 : types :: deletion_queue :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: deletion_queue :: Param0 > , types :: deletion_queue :: DeletionQueue , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "DeletionQueue" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [233u8 , 193u8 , 191u8 , 44u8 , 151u8 , 46u8 , 124u8 , 188u8 , 132u8 , 227u8 , 107u8 , 210u8 , 37u8 , 110u8 , 172u8 , 95u8 , 12u8 , 114u8 , 63u8 , 83u8 , 60u8 , 163u8 , 58u8 , 174u8 , 160u8 , 47u8 , 198u8 , 156u8 , 216u8 , 182u8 , 65u8 , 229u8 ,]) } # [doc = " A pair of monotonic counters used to track the latest contract marked for deletion"] # [doc = " and the latest deleted contract in queue."] pub fn deletion_queue_counter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: deletion_queue_counter :: DeletionQueueCounter , :: subxt :: ext :: subxt_core :: utils :: Yes , :: subxt :: ext :: subxt_core :: utils :: Yes , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "DeletionQueueCounter" , () , [124u8 , 63u8 , 32u8 , 109u8 , 8u8 , 113u8 , 105u8 , 172u8 , 87u8 , 88u8 , 244u8 , 191u8 , 252u8 , 196u8 , 10u8 , 137u8 , 101u8 , 87u8 , 124u8 , 220u8 , 178u8 , 155u8 , 163u8 , 214u8 , 116u8 , 121u8 , 129u8 , 129u8 , 173u8 , 76u8 , 188u8 , 41u8 ,]) } # [doc = " A migration can span across multiple blocks. This storage defines a cursor to track the"] # [doc = " progress of the migration, enabling us to resume from the last completed position."] pub fn migration_in_progress (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: migration_in_progress :: MigrationInProgress , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("Contracts" , "MigrationInProgress" , () , [238u8 , 96u8 , 248u8 , 141u8 , 247u8 , 233u8 , 27u8 , 21u8 , 187u8 , 56u8 , 195u8 , 67u8 , 21u8 , 215u8 , 30u8 , 236u8 , 151u8 , 163u8 , 115u8 , 117u8 , 154u8 , 54u8 , 37u8 , 240u8 , 136u8 , 240u8 , 35u8 , 192u8 , 168u8 , 250u8 , 132u8 , 63u8 ,]) } } } pub mod constants { use super :: runtime_types ; pub struct ConstantsApi ; impl ConstantsApi { # [doc = " Cost schedule and limits."] pub fn schedule (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: pallet_contracts :: schedule :: Schedule > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "Schedule" , [201u8 , 121u8 , 129u8 , 219u8 , 126u8 , 12u8 , 30u8 , 252u8 , 210u8 , 182u8 , 68u8 , 232u8 , 66u8 , 38u8 , 235u8 , 239u8 , 196u8 , 213u8 , 7u8 , 56u8 , 86u8 , 147u8 , 255u8 , 139u8 , 65u8 , 91u8 , 154u8 , 159u8 , 140u8 , 184u8 , 219u8 , 142u8 ,]) } # [doc = " The amount of balance a caller has to pay for each byte of storage."] # [doc = ""] # [doc = " # Note"] # [doc = ""] # [doc = " Changing this value for an existing chain might need a storage migration."] pub fn deposit_per_byte (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "DepositPerByte" , [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 ,]) } # [doc = " Fallback value to limit the storage deposit if it's not being set by the caller."] pub fn default_deposit_limit (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "DefaultDepositLimit" , [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 ,]) } # [doc = " The amount of balance a caller has to pay for each storage item."] # [doc = ""] # [doc = " # Note"] # [doc = ""] # [doc = " Changing this value for an existing chain might need a storage migration."] pub fn deposit_per_item (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u64 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "DepositPerItem" , [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 ,]) } # [doc = " The percentage of the storage deposit that should be held for using a code hash."] # [doc = " Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]"] # [doc = " protects the code from being removed. In order to prevent abuse these actions are"] # [doc = " protected with a percentage of the code deposit."] pub fn code_hash_lockup_deposit_percent (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: sp_arithmetic :: per_things :: Perbill > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "CodeHashLockupDepositPercent" , [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 ,]) } # [doc = " The maximum length of a contract code in bytes."] # [doc = ""] # [doc = " The value should be chosen carefully taking into the account the overall memory limit"] # [doc = " your runtime has, as well as the [maximum allowed callstack"] # [doc = " depth](#associatedtype.CallStack). Look into the `integrity_test()` for some insights."] pub fn max_code_len (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "MaxCodeLen" , [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 ,]) } # [doc = " The maximum allowable length in bytes for storage keys."] pub fn max_storage_key_len (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "MaxStorageKeyLen" , [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 ,]) } # [doc = " The maximum size of the transient storage in bytes."] # [doc = " This includes keys, values, and previous entries used for storage rollback."] pub fn max_transient_storage_size (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "MaxTransientStorageSize" , [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 ,]) } # [doc = " The maximum number of delegate_dependencies that a contract can lock with"] # [doc = " [`chain_extension::Ext::lock_delegate_dependency`]."] pub fn max_delegate_dependencies (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "MaxDelegateDependencies" , [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 ,]) } # [doc = " Make contract callable functions marked as `#[unstable]` available."] # [doc = ""] # [doc = " Contracts that use `#[unstable]` functions won't be able to be uploaded unless"] # [doc = " this is set to `true`. This is only meant for testnets and dev nodes in order to"] # [doc = " experiment with new features."] # [doc = ""] # [doc = " # Warning"] # [doc = ""] # [doc = " Do **not** set to `true` on productions chains."] pub fn unsafe_unstable_interface (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: bool > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "UnsafeUnstableInterface" , [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 ,]) } # [doc = " The maximum length of the debug buffer in bytes."] pub fn max_debug_buffer_len (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < :: core :: primitive :: u32 > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "MaxDebugBufferLen" , [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 ,]) } # [doc = " Type that bundles together all the runtime configurable interface types."] # [doc = ""] # [doc = " This is not a real config. We just mention the type here as constant so that"] # [doc = " its type appears in the metadata. Only valid value is `()`."] pub fn environment (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: pallet_contracts :: Environment > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "Environment" , [182u8 , 82u8 , 245u8 , 21u8 , 180u8 , 187u8 , 81u8 , 79u8 , 86u8 , 189u8 , 26u8 , 84u8 , 118u8 , 253u8 , 81u8 , 12u8 , 20u8 , 85u8 , 197u8 , 131u8 , 60u8 , 37u8 , 85u8 , 26u8 , 249u8 , 76u8 , 8u8 , 40u8 , 67u8 , 30u8 , 105u8 , 1u8 ,]) } # [doc = " The version of the HostFn APIs that are available in the runtime."] # [doc = ""] # [doc = " Only valid value is `()`."] pub fn api_version (& self) -> :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress < runtime_types :: pallet_contracts :: ApiVersion > { :: subxt :: ext :: subxt_core :: constants :: address :: StaticAddress :: new_static ("Contracts" , "ApiVersion" , [68u8 , 240u8 , 8u8 , 124u8 , 194u8 , 179u8 , 162u8 , 203u8 , 5u8 , 230u8 , 72u8 , 173u8 , 165u8 , 230u8 , 234u8 , 96u8 , 225u8 , 71u8 , 224u8 , 92u8 , 120u8 , 110u8 , 207u8 , 208u8 , 119u8 , 254u8 , 196u8 , 192u8 , 152u8 , 253u8 , 164u8 , 117u8 ,]) } } } } pub mod mev_shield { use super :: root_mod ; use super :: runtime_types ; # [doc = "The `Error` enum of this pallet."] pub type Error = runtime_types :: pallet_shield :: pallet :: Error ; # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types :: pallet_shield :: pallet :: Call ; pub mod calls { use super :: root_mod ; use super :: runtime_types ; type DispatchError = runtime_types :: sp_runtime :: DispatchError ; pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Announce the ML‑KEM public key that will become `CurrentKey` in"] # [doc = "the following block."] pub struct AnnounceNextKey { pub public_key : announce_next_key :: PublicKey , } pub mod announce_next_key { use super :: runtime_types ; pub type PublicKey = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for AnnounceNextKey { const PALLET : & 'static str = "MevShield" ; const CALL : & 'static str = "announce_next_key" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Users submit an encrypted wrapper."] # [doc = ""] # [doc = "Client‑side:"] # [doc = ""] # [doc = "  1. Read `NextKey` (ML‑KEM public key bytes) from storage."] # [doc = "  2. Sign your extrinsic so that it can be executed when added to the pool,"] # [doc = "       i.e. you may need to increment the nonce if you submit using the same account."] # [doc = "  3. `commitment = Hashing::hash(signed_extrinsic)`."] # [doc = "  4. Encrypt:"] # [doc = ""] # [doc = "       plaintext = signed_extrinsic"] # [doc = ""] # [doc = "     with ML‑KEM‑768 + XChaCha20‑Poly1305, producing"] # [doc = ""] # [doc = "       ciphertext = [u16 kem_len] || kem_ct || nonce24 || aead_ct"] # [doc = ""] pub struct SubmitEncrypted { pub commitment : submit_encrypted :: Commitment , pub ciphertext : submit_encrypted :: Ciphertext , } pub mod submit_encrypted { use super :: runtime_types ; pub type Commitment = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Ciphertext = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for SubmitEncrypted { const PALLET : & 'static str = "MevShield" ; const CALL : & 'static str = "submit_encrypted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Marks a submission as failed to decrypt and removes it from storage."] # [doc = ""] # [doc = "Called by the block author when decryption fails at any stage (e.g., ML-KEM decapsulate"] # [doc = "failed, AEAD decrypt failed, invalid ciphertext format, etc.). This allows clients to be"] # [doc = "notified of decryption failures through on-chain events."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `id` - The wrapper id (hash of (author, commitment, ciphertext))"] # [doc = "* `reason` - Human-readable reason for the decryption failure (e.g., \"ML-KEM decapsulate failed\")"] pub struct MarkDecryptionFailed { pub id : mark_decryption_failed :: Id , pub reason : mark_decryption_failed :: Reason , } pub mod mark_decryption_failed { use super :: runtime_types ; pub type Id = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Reason = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: blocks :: StaticExtrinsic for MarkDecryptionFailed { const PALLET : & 'static str = "MevShield" ; const CALL : & 'static str = "mark_decryption_failed" ; } } pub struct TransactionApi ; impl TransactionApi { # [doc = "Announce the ML‑KEM public key that will become `CurrentKey` in"] # [doc = "the following block."] pub fn announce_next_key (& self , public_key : types :: announce_next_key :: PublicKey ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: AnnounceNextKey > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("MevShield" , "announce_next_key" , types :: AnnounceNextKey { public_key , } , [134u8 , 11u8 , 157u8 , 45u8 , 166u8 , 233u8 , 110u8 , 151u8 , 207u8 , 166u8 , 70u8 , 202u8 , 116u8 , 223u8 , 206u8 , 133u8 , 152u8 , 187u8 , 225u8 , 137u8 , 65u8 , 197u8 , 76u8 , 41u8 , 73u8 , 10u8 , 224u8 , 175u8 , 200u8 , 203u8 , 161u8 , 175u8 ,]) } # [doc = "Users submit an encrypted wrapper."] # [doc = ""] # [doc = "Client‑side:"] # [doc = ""] # [doc = "  1. Read `NextKey` (ML‑KEM public key bytes) from storage."] # [doc = "  2. Sign your extrinsic so that it can be executed when added to the pool,"] # [doc = "       i.e. you may need to increment the nonce if you submit using the same account."] # [doc = "  3. `commitment = Hashing::hash(signed_extrinsic)`."] # [doc = "  4. Encrypt:"] # [doc = ""] # [doc = "       plaintext = signed_extrinsic"] # [doc = ""] # [doc = "     with ML‑KEM‑768 + XChaCha20‑Poly1305, producing"] # [doc = ""] # [doc = "       ciphertext = [u16 kem_len] || kem_ct || nonce24 || aead_ct"] # [doc = ""] pub fn submit_encrypted (& self , commitment : types :: submit_encrypted :: Commitment , ciphertext : types :: submit_encrypted :: Ciphertext ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: SubmitEncrypted > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("MevShield" , "submit_encrypted" , types :: SubmitEncrypted { commitment , ciphertext , } , [194u8 , 236u8 , 22u8 , 23u8 , 183u8 , 202u8 , 66u8 , 158u8 , 45u8 , 240u8 , 122u8 , 245u8 , 1u8 , 159u8 , 127u8 , 3u8 , 130u8 , 194u8 , 114u8 , 238u8 , 5u8 , 73u8 , 51u8 , 178u8 , 246u8 , 122u8 , 191u8 , 83u8 , 57u8 , 234u8 , 217u8 , 174u8 ,]) } # [doc = "Marks a submission as failed to decrypt and removes it from storage."] # [doc = ""] # [doc = "Called by the block author when decryption fails at any stage (e.g., ML-KEM decapsulate"] # [doc = "failed, AEAD decrypt failed, invalid ciphertext format, etc.). This allows clients to be"] # [doc = "notified of decryption failures through on-chain events."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `id` - The wrapper id (hash of (author, commitment, ciphertext))"] # [doc = "* `reason` - Human-readable reason for the decryption failure (e.g., \"ML-KEM decapsulate failed\")"] pub fn mark_decryption_failed (& self , id : types :: mark_decryption_failed :: Id , reason : types :: mark_decryption_failed :: Reason ,) -> :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload < types :: MarkDecryptionFailed > { :: subxt :: ext :: subxt_core :: tx :: payload :: StaticPayload :: new_static ("MevShield" , "mark_decryption_failed" , types :: MarkDecryptionFailed { id , reason , } , [202u8 , 45u8 , 211u8 , 56u8 , 1u8 , 52u8 , 167u8 , 197u8 , 135u8 , 231u8 , 230u8 , 112u8 , 54u8 , 23u8 , 76u8 , 132u8 , 244u8 , 197u8 , 102u8 , 94u8 , 66u8 , 241u8 , 131u8 , 116u8 , 232u8 , 202u8 , 252u8 , 97u8 , 236u8 , 70u8 , 129u8 , 69u8 ,]) } } } # [doc = "The `Event` enum of this pallet"] pub type Event = runtime_types :: pallet_shield :: pallet :: Event ; pub mod events { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Encrypted wrapper accepted."] pub struct EncryptedSubmitted { pub id : encrypted_submitted :: Id , pub who : encrypted_submitted :: Who , } pub mod encrypted_submitted { use super :: runtime_types ; pub type Id = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Who = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for EncryptedSubmitted { const PALLET : & 'static str = "MevShield" ; const EVENT : & 'static str = "EncryptedSubmitted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Decrypted call executed."] pub struct DecryptedExecuted { pub id : decrypted_executed :: Id , pub signer : decrypted_executed :: Signer , } pub mod decrypted_executed { use super :: runtime_types ; pub type Id = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Signer = :: subxt :: ext :: subxt_core :: utils :: AccountId32 ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DecryptedExecuted { const PALLET : & 'static str = "MevShield" ; const EVENT : & 'static str = "DecryptedExecuted" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Decrypted execution rejected."] pub struct DecryptedRejected { pub id : decrypted_rejected :: Id , pub reason : decrypted_rejected :: Reason , } pub mod decrypted_rejected { use super :: runtime_types ; pub type Id = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Reason = runtime_types :: sp_runtime :: DispatchErrorWithPostInfo < runtime_types :: frame_support :: dispatch :: PostDispatchInfo > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DecryptedRejected { const PALLET : & 'static str = "MevShield" ; const EVENT : & 'static str = "DecryptedRejected" ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Decryption failed - validator could not decrypt the submission."] pub struct DecryptionFailed { pub id : decryption_failed :: Id , pub reason : decryption_failed :: Reason , } pub mod decryption_failed { use super :: runtime_types ; pub type Id = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Reason = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } impl :: subxt :: ext :: subxt_core :: events :: StaticEvent for DecryptionFailed { const PALLET : & 'static str = "MevShield" ; const EVENT : & 'static str = "DecryptionFailed" ; } } pub mod storage { use super :: runtime_types ; pub mod types { use super :: runtime_types ; pub mod current_key { use super :: runtime_types ; pub type CurrentKey = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } pub mod next_key { use super :: runtime_types ; pub type NextKey = runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ; } pub mod submissions { use super :: runtime_types ; pub type Submissions = runtime_types :: pallet_shield :: pallet :: Submission < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u32 , :: subxt :: ext :: subxt_core :: utils :: H256 > ; pub type Param0 = :: subxt :: ext :: subxt_core :: utils :: H256 ; } pub mod key_hash_by_block { use super :: runtime_types ; pub type KeyHashByBlock = :: subxt :: ext :: subxt_core :: utils :: H256 ; pub type Param0 = :: core :: primitive :: u32 ; } } pub struct StorageApi ; impl StorageApi { # [doc = " Current ML‑KEM‑768 public key bytes (encoded form)."] pub fn current_key (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: current_key :: CurrentKey , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MevShield" , "CurrentKey" , () , [18u8 , 245u8 , 225u8 , 10u8 , 17u8 , 28u8 , 28u8 , 132u8 , 207u8 , 126u8 , 206u8 , 129u8 , 243u8 , 170u8 , 131u8 , 45u8 , 150u8 , 134u8 , 168u8 , 181u8 , 135u8 , 246u8 , 164u8 , 42u8 , 206u8 , 55u8 , 190u8 , 241u8 , 158u8 , 8u8 , 116u8 , 195u8 ,]) } # [doc = " Next ML‑KEM‑768 public key bytes, announced by the block author."] pub fn next_key (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: next_key :: NextKey , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MevShield" , "NextKey" , () , [252u8 , 82u8 , 81u8 , 34u8 , 50u8 , 135u8 , 121u8 , 134u8 , 173u8 , 201u8 , 162u8 , 7u8 , 47u8 , 206u8 , 5u8 , 230u8 , 246u8 , 160u8 , 199u8 , 222u8 , 245u8 , 219u8 , 244u8 , 39u8 , 234u8 , 235u8 , 217u8 , 97u8 , 30u8 , 5u8 , 75u8 , 79u8 ,]) } # [doc = " Buffered encrypted submissions, indexed by wrapper id."] pub fn submissions_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: submissions :: Submissions , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MevShield" , "Submissions" , () , [91u8 , 204u8 , 241u8 , 159u8 , 157u8 , 145u8 , 87u8 , 61u8 , 114u8 , 134u8 , 210u8 , 40u8 , 145u8 , 118u8 , 182u8 , 156u8 , 19u8 , 75u8 , 15u8 , 181u8 , 105u8 , 81u8 , 230u8 , 250u8 , 161u8 , 179u8 , 58u8 , 201u8 , 67u8 , 162u8 , 44u8 , 14u8 ,]) } # [doc = " Buffered encrypted submissions, indexed by wrapper id."] pub fn submissions (& self , _0 : types :: submissions :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: submissions :: Param0 > , types :: submissions :: Submissions , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MevShield" , "Submissions" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [91u8 , 204u8 , 241u8 , 159u8 , 157u8 , 145u8 , 87u8 , 61u8 , 114u8 , 134u8 , 210u8 , 40u8 , 145u8 , 118u8 , 182u8 , 156u8 , 19u8 , 75u8 , 15u8 , 181u8 , 105u8 , 81u8 , 230u8 , 250u8 , 161u8 , 179u8 , 58u8 , 201u8 , 67u8 , 162u8 , 44u8 , 14u8 ,]) } # [doc = " Hash(CurrentKey) per block, used to bind `key_hash` to the epoch at submit time."] pub fn key_hash_by_block_iter (& self ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < () , types :: key_hash_by_block :: KeyHashByBlock , () , () , :: subxt :: ext :: subxt_core :: utils :: Yes > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MevShield" , "KeyHashByBlock" , () , [189u8 , 213u8 , 146u8 , 133u8 , 4u8 , 213u8 , 135u8 , 96u8 , 137u8 , 142u8 , 146u8 , 136u8 , 61u8 , 113u8 , 73u8 , 46u8 , 191u8 , 88u8 , 136u8 , 160u8 , 69u8 , 135u8 , 171u8 , 119u8 , 56u8 , 192u8 , 152u8 , 233u8 , 30u8 , 181u8 , 14u8 , 18u8 ,]) } # [doc = " Hash(CurrentKey) per block, used to bind `key_hash` to the epoch at submit time."] pub fn key_hash_by_block (& self , _0 : types :: key_hash_by_block :: Param0 ,) -> :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: < :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey < types :: key_hash_by_block :: Param0 > , types :: key_hash_by_block :: KeyHashByBlock , :: subxt :: ext :: subxt_core :: utils :: Yes , () , () > { :: subxt :: ext :: subxt_core :: storage :: address :: StaticAddress :: new_static ("MevShield" , "KeyHashByBlock" , :: subxt :: ext :: subxt_core :: storage :: address :: StaticStorageKey :: new (_0) , [189u8 , 213u8 , 146u8 , 133u8 , 4u8 , 213u8 , 135u8 , 96u8 , 137u8 , 142u8 , 146u8 , 136u8 , 61u8 , 113u8 , 73u8 , 46u8 , 191u8 , 88u8 , 136u8 , 160u8 , 69u8 , 135u8 , 171u8 , 119u8 , 56u8 , 192u8 , 152u8 , 233u8 , 30u8 , 181u8 , 14u8 , 18u8 ,]) } } } } 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BoundedBTreeMap < _0 , _1 > (pub :: subxt :: ext :: subxt_core :: utils :: KeyedVec < _0 , _1 > ,) ; } pub mod bounded_vec { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BoundedVec < _0 > (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > ,) ; } pub mod weak_bounded_vec { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct WeakBoundedVec < _0 > (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > ,) ; } } pub mod ethbloom { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Block < _0 > { pub header : runtime_types :: ethereum :: header :: Header , pub transactions : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub ommers : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: header :: Header > , } } pub mod header { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Header { pub parent_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub ommers_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub beneficiary : :: subxt :: ext :: subxt_core :: utils :: H160 , pub state_root : :: subxt :: ext :: subxt_core :: utils :: H256 , pub transactions_root : :: subxt :: ext :: subxt_core :: utils :: H256 , pub receipts_root : :: subxt :: ext :: subxt_core :: 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 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub mix_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub nonce : runtime_types :: ethereum_types :: hash :: H64 , } } pub mod log { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Log { pub address : :: subxt :: ext :: subxt_core :: utils :: H160 , pub topics : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > , pub data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } } pub mod receipt { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: log :: Log > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ReceiptV4 { # [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 ,) , # [codec (index = 3)] EIP7702 (runtime_types :: ethereum :: receipt :: EIP658ReceiptData ,) , } } pub mod transaction { use super :: runtime_types ; pub mod eip1559 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: legacy :: TransactionAction , pub value : runtime_types :: primitive_types :: U256 , pub input : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub access_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip2930 :: AccessListItem > , pub signature : runtime_types :: ethereum :: transaction :: eip2930 :: TransactionSignature , } } pub mod eip2930 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AccessListItem { pub address : :: subxt :: ext :: subxt_core :: utils :: H160 , pub storage_keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: legacy :: TransactionAction , pub value : runtime_types :: primitive_types :: U256 , pub input : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub access_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip2930 :: AccessListItem > , pub signature : runtime_types :: ethereum :: transaction :: eip2930 :: TransactionSignature , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct MalleableTransactionSignature { pub odd_y_parity : :: core :: primitive :: bool , pub r : :: subxt :: ext :: subxt_core :: utils :: H256 , pub s : :: subxt :: ext :: subxt_core :: utils :: H256 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct TransactionSignature { pub odd_y_parity : :: core :: primitive :: bool , pub r : :: subxt :: ext :: subxt_core :: utils :: H256 , pub s : :: subxt :: ext :: subxt_core :: utils :: H256 , } } pub mod eip7702 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AuthorizationListItem { pub chain_id : :: core :: primitive :: u64 , pub address : :: subxt :: ext :: subxt_core :: utils :: H160 , pub nonce : runtime_types :: primitive_types :: U256 , pub signature : runtime_types :: ethereum :: transaction :: eip2930 :: MalleableTransactionSignature , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EIP7702Transaction { 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 destination : runtime_types :: ethereum :: transaction :: legacy :: TransactionAction , pub value : runtime_types :: primitive_types :: U256 , pub data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub access_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip2930 :: AccessListItem > , pub authorization_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > , pub signature : runtime_types :: ethereum :: transaction :: eip2930 :: TransactionSignature , } } pub mod legacy { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: legacy :: TransactionAction , pub value : runtime_types :: primitive_types :: U256 , pub input : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub signature : runtime_types :: ethereum :: transaction :: legacy :: TransactionSignature , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TransactionAction { # [codec (index = 0)] Call (:: subxt :: ext :: subxt_core :: utils :: H160 ,) , # [codec (index = 1)] Create , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct TransactionRecoveryId (pub :: core :: primitive :: u64 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct TransactionSignature { pub v : runtime_types :: ethereum :: transaction :: legacy :: TransactionRecoveryId , pub r : :: subxt :: ext :: subxt_core :: utils :: H256 , pub s : :: subxt :: ext :: subxt_core :: utils :: H256 , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TransactionV3 { # [codec (index = 0)] Legacy (runtime_types :: ethereum :: transaction :: legacy :: LegacyTransaction ,) , # [codec (index = 1)] EIP2930 (runtime_types :: ethereum :: transaction :: eip2930 :: EIP2930Transaction ,) , # [codec (index = 2)] EIP1559 (runtime_types :: ethereum :: transaction :: eip1559 :: EIP1559Transaction ,) , # [codec (index = 3)] EIP7702 (runtime_types :: ethereum :: transaction :: eip7702 :: EIP7702Transaction ,) , } } } pub mod ethereum_types { use super :: runtime_types ; pub mod hash { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 (:: subxt :: ext :: subxt_core :: alloc :: string :: String ,) , # [codec (index = 14)] MaxNonce , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 (:: subxt :: ext :: subxt_core :: alloc :: string :: String ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ExitRevert { # [codec (index = 0)] Reverted , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Opcode (pub :: core :: primitive :: u8 ,) ; } } pub mod finality_grandpa { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Precommit < _0 , _1 > { pub target_hash : _0 , pub target_number : _1 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 < runtime_types :: fp_evm :: WeightInfo > , pub logs : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: log :: Log > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UsedGas { pub standard : runtime_types :: primitive_types :: U256 , pub effective : runtime_types :: primitive_types :: U256 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct TransactionStatus { pub transaction_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub transaction_index : :: core :: primitive :: u32 , pub from : :: subxt :: ext :: subxt_core :: utils :: H160 , pub to : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: H160 > , pub contract_address : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: H160 > , pub logs : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: log :: Log > , 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UncheckedExtrinsic < _0 , _1 , _2 , _3 > (pub :: subxt :: ext :: subxt_core :: utils :: UncheckedExtrinsic < _0 , _1 , _2 , _3 > ,) ; } } pub mod frame_metadata_hash_extension { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckMetadataHash { pub mode : runtime_types :: frame_metadata_hash_extension :: Mode , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Mode { # [codec (index = 0)] Disabled , # [codec (index = 1)] Enabled , } } pub mod frame_support { use super :: runtime_types ; pub mod dispatch { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum DispatchClass { # [codec (index = 0)] Normal , # [codec (index = 1)] Operational , # [codec (index = 2)] Mandatory , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Pays { # [codec (index = 0)] Yes , # [codec (index = 1)] No , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PerDispatchClass < _0 > { pub normal : _0 , pub operational : _0 , pub mandatory : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PostDispatchInfo { pub actual_weight : :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > , pub pays_fee : runtime_types :: frame_support :: dispatch :: Pays , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RawOrigin < _0 > { # [codec (index = 0)] Root , # [codec (index = 1)] Signed (_0 ,) , # [codec (index = 2)] None , # [codec (index = 3)] Authorized , } } pub mod traits { use super :: runtime_types ; pub mod preimages { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Bounded < _0 , _1 > { # [codec (index = 0)] Legacy { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 1)] Inline (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , # [codec (index = 2)] Lookup { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , len : :: core :: primitive :: u32 , } , __Ignore (:: core :: marker :: PhantomData < (_0 , _1) >) , } } pub mod tokens { use super :: runtime_types ; pub mod fungible { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct HoldConsideration (pub :: core :: primitive :: u64 ,) ; } pub mod misc { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum BalanceStatus { # [codec (index = 0)] Free , # [codec (index = 1)] Reserved , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct IdAmount < _0 , _1 > { pub id : _0 , pub amount : _1 , } } } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckGenesis ; } pub mod check_mortality { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckNonZeroSender ; } pub mod check_spec_version { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckSpecVersion ; } pub mod check_tx_version { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckTxVersion ; } pub mod check_weight { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckWeight ; } } pub mod limits { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BlockLength { pub max : runtime_types :: frame_support :: dispatch :: PerDispatchClass < :: core :: primitive :: u32 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct WeightsPerClass { pub base_extrinsic : runtime_types :: sp_weights :: weight_v2 :: Weight , pub max_extrinsic : :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > , pub max_total : :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > , pub reserved : :: core :: option :: Option < runtime_types :: sp_weights :: weight_v2 :: Weight > , } } pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Make some on-chain remark."] # [doc = ""] # [doc = "Can be executed by every `origin`."] remark { remark : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Set the number of pages in the WebAssembly environment's heap."] set_heap_pages { pages : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Set the new runtime code."] set_code { code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 3)] # [doc = "Set the new runtime code without doing any checks of the given `code`."] # [doc = ""] # [doc = "Note that runtime upgrades will not run if this is called with a not-increasing spec"] # [doc = "version!"] set_code_without_checks { code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 4)] # [doc = "Set some items of storage."] set_storage { items : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) > , } , # [codec (index = 5)] # [doc = "Kill some items from storage."] kill_storage { keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , } , # [codec (index = 6)] # [doc = "Kill all storage items with a key that starts with the given prefix."] # [doc = ""] # [doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] # [doc = "the prefix we are removing to accurately calculate the weight of this function."] kill_prefix { prefix : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , subkeys : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Make some on-chain remark and emit event."] remark_with_event { remark : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 9)] # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "This call requires Root origin."] authorize_upgrade { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 10)] # [doc = "Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied"] # [doc = "later."] # [doc = ""] # [doc = "WARNING: This authorizes an upgrade that will take place without any safety checks, for"] # [doc = "example that the spec name remains the same and that the version number increases. Not"] # [doc = "recommended for normal use. Use `authorize_upgrade` instead."] # [doc = ""] # [doc = "This call requires Root origin."] authorize_upgrade_without_checks { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 11)] # [doc = "Provide the preimage (runtime binary) `code` for an upgrade that has been authorized."] # [doc = ""] # [doc = "If the authorization required a version check, this call will ensure the spec name"] # [doc = "remains unchanged and that the spec version has increased."] # [doc = ""] # [doc = "Depending on the runtime's `OnSetCode` configuration, this function may directly apply"] # [doc = "the new `code` in the same block or attempt to schedule the upgrade."] # [doc = ""] # [doc = "All origins are allowed."] apply_authorized_upgrade { code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Error for the System pallet"] pub enum Error { # [codec (index = 0)] # [doc = "The name of specification does not match between the current runtime"] # [doc = "and the new runtime."] InvalidSpecName , # [codec (index = 1)] # [doc = "The specification version is not allowed to decrease between the current runtime"] # [doc = "and the new runtime."] SpecVersionNeedsToIncrease , # [codec (index = 2)] # [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)] # [doc = "Suicide called when the account has non-default composite data."] NonDefaultComposite , # [codec (index = 4)] # [doc = "There is a non-zero reference count preventing the account from being purged."] NonZeroRefCount , # [codec (index = 5)] # [doc = "The origin filter prevent the call to be dispatched."] CallFiltered , # [codec (index = 6)] # [doc = "A multi-block migration is ongoing and prevents the current code from being replaced."] MultiBlockMigrationsOngoing , # [codec (index = 7)] # [doc = "No upgrade authorized."] NothingAuthorized , # [codec (index = 8)] # [doc = "The submitted code is not authorized."] Unauthorized , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Event for the System pallet."] pub enum Event { # [codec (index = 0)] # [doc = "An extrinsic completed successfully."] ExtrinsicSuccess { dispatch_info : runtime_types :: frame_system :: DispatchEventInfo , } , # [codec (index = 1)] # [doc = "An extrinsic failed."] ExtrinsicFailed { dispatch_error : runtime_types :: sp_runtime :: DispatchError , dispatch_info : runtime_types :: frame_system :: DispatchEventInfo , } , # [codec (index = 2)] # [doc = "`:code` was updated."] CodeUpdated , # [codec (index = 3)] # [doc = "A new account was created."] NewAccount { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 4)] # [doc = "An account was reaped."] KilledAccount { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "On on-chain remark happened."] Remarked { sender : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 6)] # [doc = "An upgrade was authorized."] UpgradeAuthorized { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , check_version : :: core :: primitive :: bool , } , # [codec (index = 7)] # [doc = "An invalid authorized upgrade was rejected while trying to apply it."] RejectedInvalidAuthorizedUpgrade { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , error : runtime_types :: sp_runtime :: DispatchError , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CodeUpgradeAuthorization { pub code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub check_version : :: core :: primitive :: bool , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DispatchEventInfo { 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EventRecord < _0 , _1 > { pub phase : runtime_types :: frame_system :: Phase , pub event : _0 , pub topics : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _1 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct LastRuntimeUpgradeInfo { # [codec (compact)] pub spec_version : :: core :: primitive :: u32 , pub spec_name : :: subxt :: ext :: subxt_core :: alloc :: string :: String , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Phase { # [codec (index = 0)] ApplyExtrinsic (:: core :: primitive :: u32 ,) , # [codec (index = 1)] Finalization , # [codec (index = 2)] Initialization , } } pub mod node_subtensor_runtime { use super :: runtime_types ; pub mod check_nonce { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CheckNonce (# [codec (compact)] pub :: core :: primitive :: u32 ,) ; } pub mod sudo_wrapper { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SudoTransactionExtension < _0 > (pub :: core :: marker :: PhantomData < _0 >) ; } pub mod transaction_payment_wrapper { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ChargeTransactionPaymentWrapper { pub charge_transaction_payment : runtime_types :: pallet_transaction_payment :: ChargeTransactionPayment , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum OriginCaller { # [codec (index = 0)] system (runtime_types :: frame_support :: dispatch :: RawOrigin < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > ,) , # [codec (index = 21)] Ethereum (runtime_types :: pallet_ethereum :: RawOrigin ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Runtime ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeCall { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Call ,) , # [codec (index = 2)] Timestamp (runtime_types :: pallet_timestamp :: pallet :: Call ,) , # [codec (index = 4)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Call ,) , # [codec (index = 5)] Balances (runtime_types :: pallet_balances :: pallet :: Call ,) , # [codec (index = 7)] SubtensorModule (runtime_types :: pallet_subtensor :: pallet :: Call ,) , # [codec (index = 11)] Utility (runtime_types :: pallet_subtensor_utility :: pallet :: Call ,) , # [codec (index = 12)] Sudo (runtime_types :: pallet_sudo :: pallet :: Call ,) , # [codec (index = 13)] Multisig (runtime_types :: pallet_multisig :: pallet :: Call ,) , # [codec (index = 14)] Preimage (runtime_types :: pallet_preimage :: pallet :: Call ,) , # [codec (index = 15)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Call ,) , # [codec (index = 16)] Proxy (runtime_types :: pallet_subtensor_proxy :: pallet :: Call ,) , # [codec (index = 17)] Registry (runtime_types :: pallet_registry :: pallet :: Call ,) , # [codec (index = 18)] Commitments (runtime_types :: pallet_commitments :: pallet :: Call ,) , # [codec (index = 19)] AdminUtils (runtime_types :: pallet_admin_utils :: pallet :: Call ,) , # [codec (index = 20)] SafeMode (runtime_types :: pallet_safe_mode :: pallet :: Call ,) , # [codec (index = 21)] Ethereum (runtime_types :: pallet_ethereum :: pallet :: Call ,) , # [codec (index = 22)] EVM (runtime_types :: pallet_evm :: pallet :: Call ,) , # [codec (index = 25)] BaseFee (runtime_types :: pallet_base_fee :: pallet :: Call ,) , # [codec (index = 26)] Drand (runtime_types :: pallet_drand :: pallet :: Call ,) , # [codec (index = 27)] Crowdloan (runtime_types :: pallet_crowdloan :: pallet :: Call ,) , # [codec (index = 28)] Swap (runtime_types :: pallet_subtensor_swap :: pallet :: pallet :: Call ,) , # [codec (index = 29)] Contracts (runtime_types :: pallet_contracts :: pallet :: Call ,) , # [codec (index = 30)] MevShield (runtime_types :: pallet_shield :: pallet :: Call ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeError { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Error ,) , # [codec (index = 4)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Error ,) , # [codec (index = 5)] Balances (runtime_types :: pallet_balances :: pallet :: Error ,) , # [codec (index = 7)] SubtensorModule (runtime_types :: pallet_subtensor :: pallet :: Error ,) , # [codec (index = 11)] Utility (runtime_types :: pallet_subtensor_utility :: pallet :: Error ,) , # [codec (index = 12)] Sudo (runtime_types :: pallet_sudo :: pallet :: Error ,) , # [codec (index = 13)] Multisig (runtime_types :: pallet_multisig :: pallet :: Error ,) , # [codec (index = 14)] Preimage (runtime_types :: pallet_preimage :: pallet :: Error ,) , # [codec (index = 15)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Error ,) , # [codec (index = 16)] Proxy (runtime_types :: pallet_subtensor_proxy :: pallet :: Error ,) , # [codec (index = 17)] Registry (runtime_types :: pallet_registry :: pallet :: Error ,) , # [codec (index = 18)] Commitments (runtime_types :: pallet_commitments :: pallet :: Error ,) , # [codec (index = 19)] AdminUtils (runtime_types :: pallet_admin_utils :: pallet :: Error ,) , # [codec (index = 20)] SafeMode (runtime_types :: pallet_safe_mode :: pallet :: Error ,) , # [codec (index = 21)] Ethereum (runtime_types :: pallet_ethereum :: pallet :: Error ,) , # [codec (index = 22)] EVM (runtime_types :: pallet_evm :: pallet :: Error ,) , # [codec (index = 26)] Drand (runtime_types :: pallet_drand :: pallet :: Error ,) , # [codec (index = 27)] Crowdloan (runtime_types :: pallet_crowdloan :: pallet :: Error ,) , # [codec (index = 28)] Swap (runtime_types :: pallet_subtensor_swap :: pallet :: pallet :: Error ,) , # [codec (index = 29)] Contracts (runtime_types :: pallet_contracts :: pallet :: Error ,) , # [codec (index = 30)] MevShield (runtime_types :: pallet_shield :: pallet :: Error ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeEvent { # [codec (index = 0)] System (runtime_types :: frame_system :: pallet :: Event ,) , # [codec (index = 4)] Grandpa (runtime_types :: pallet_grandpa :: pallet :: Event ,) , # [codec (index = 5)] Balances (runtime_types :: pallet_balances :: pallet :: Event ,) , # [codec (index = 6)] TransactionPayment (runtime_types :: pallet_transaction_payment :: pallet :: Event ,) , # [codec (index = 7)] SubtensorModule (runtime_types :: pallet_subtensor :: pallet :: Event ,) , # [codec (index = 11)] Utility (runtime_types :: pallet_subtensor_utility :: pallet :: Event ,) , # [codec (index = 12)] Sudo (runtime_types :: pallet_sudo :: pallet :: Event ,) , # [codec (index = 13)] Multisig (runtime_types :: pallet_multisig :: pallet :: Event ,) , # [codec (index = 14)] Preimage (runtime_types :: pallet_preimage :: pallet :: Event ,) , # [codec (index = 15)] Scheduler (runtime_types :: pallet_scheduler :: pallet :: Event ,) , # [codec (index = 16)] Proxy (runtime_types :: pallet_subtensor_proxy :: pallet :: Event ,) , # [codec (index = 17)] Registry (runtime_types :: pallet_registry :: pallet :: Event ,) , # [codec (index = 18)] Commitments (runtime_types :: pallet_commitments :: pallet :: Event ,) , # [codec (index = 19)] AdminUtils (runtime_types :: pallet_admin_utils :: pallet :: Event ,) , # [codec (index = 20)] SafeMode (runtime_types :: pallet_safe_mode :: pallet :: Event ,) , # [codec (index = 21)] Ethereum (runtime_types :: pallet_ethereum :: pallet :: Event ,) , # [codec (index = 22)] EVM (runtime_types :: pallet_evm :: pallet :: Event ,) , # [codec (index = 25)] BaseFee (runtime_types :: pallet_base_fee :: pallet :: Event ,) , # [codec (index = 26)] Drand (runtime_types :: pallet_drand :: pallet :: Event ,) , # [codec (index = 27)] Crowdloan (runtime_types :: pallet_crowdloan :: pallet :: Event ,) , # [codec (index = 28)] Swap (runtime_types :: pallet_subtensor_swap :: pallet :: pallet :: Event ,) , # [codec (index = 29)] Contracts (runtime_types :: pallet_contracts :: pallet :: Event ,) , # [codec (index = 30)] MevShield (runtime_types :: pallet_shield :: pallet :: Event ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeFreezeReason { } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RuntimeHoldReason { # [codec (index = 14)] Preimage (runtime_types :: pallet_preimage :: pallet :: HoldReason ,) , # [codec (index = 17)] Registry (runtime_types :: pallet_registry :: pallet :: HoldReason ,) , # [codec (index = 20)] SafeMode (runtime_types :: pallet_safe_mode :: pallet :: HoldReason ,) , # [codec (index = 29)] Contracts (runtime_types :: pallet_contracts :: pallet :: HoldReason ,) , } } pub mod pallet_admin_utils { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatchable functions allows users to interact with the pallet and invoke state changes."] pub enum Call { # [codec (index = 0)] # [doc = "The extrinsic sets the new authorities for Aura consensus."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Aura pallet to change the authorities."] swap_authorities { new_authorities : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: sp_consensus_aura :: sr25519 :: app_sr25519 :: Public > , } , # [codec (index = 1)] # [doc = "The extrinsic sets the default take for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the default take."] sudo_set_default_take { default_take : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "The extrinsic sets the transaction rate limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the transaction rate limit."] sudo_set_tx_rate_limit { tx_rate_limit : :: core :: primitive :: u64 , } , # [codec (index = 3)] # [doc = "The extrinsic sets the serving rate limit for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the serving rate limit."] sudo_set_serving_rate_limit { netuid : :: core :: primitive :: u16 , serving_rate_limit : :: core :: primitive :: u64 , } , # [codec (index = 4)] # [doc = "The extrinsic sets the minimum difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum difficulty."] sudo_set_min_difficulty { netuid : :: core :: primitive :: u16 , min_difficulty : :: core :: primitive :: u64 , } , # [codec (index = 5)] # [doc = "The extrinsic sets the maximum difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum difficulty."] sudo_set_max_difficulty { netuid : :: core :: primitive :: u16 , max_difficulty : :: core :: primitive :: u64 , } , # [codec (index = 6)] # [doc = "The extrinsic sets the weights version key for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights version key."] sudo_set_weights_version_key { netuid : :: core :: primitive :: u16 , weights_version_key : :: core :: primitive :: u64 , } , # [codec (index = 7)] # [doc = "The extrinsic sets the weights set rate limit for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights set rate limit."] sudo_set_weights_set_rate_limit { netuid : :: core :: primitive :: u16 , weights_set_rate_limit : :: core :: primitive :: u64 , } , # [codec (index = 8)] # [doc = "The extrinsic sets the adjustment interval for a subnet."] # [doc = "It is only callable by the root account, not changeable by the subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the adjustment interval."] sudo_set_adjustment_interval { netuid : :: core :: primitive :: u16 , adjustment_interval : :: core :: primitive :: u16 , } , # [codec (index = 9)] # [doc = "The extrinsic sets the adjustment alpha for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the adjustment alpha."] sudo_set_adjustment_alpha { netuid : :: core :: primitive :: u16 , adjustment_alpha : :: core :: primitive :: u64 , } , # [codec (index = 13)] # [doc = "The extrinsic sets the immunity period for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the immunity period."] sudo_set_immunity_period { netuid : :: core :: primitive :: u16 , immunity_period : :: core :: primitive :: u16 , } , # [codec (index = 14)] # [doc = "The extrinsic sets the minimum allowed weights for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum allowed weights."] sudo_set_min_allowed_weights { netuid : :: core :: primitive :: u16 , min_allowed_weights : :: core :: primitive :: u16 , } , # [codec (index = 15)] # [doc = "The extrinsic sets the maximum allowed UIDs for a subnet."] # [doc = "It is only callable by the root account and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum allowed UIDs for a subnet."] sudo_set_max_allowed_uids { netuid : :: core :: primitive :: u16 , max_allowed_uids : :: core :: primitive :: u16 , } , # [codec (index = 16)] # [doc = "The extrinsic sets the kappa for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the kappa."] sudo_set_kappa { netuid : :: core :: primitive :: u16 , kappa : :: core :: primitive :: u16 , } , # [codec (index = 17)] # [doc = "The extrinsic sets the rho for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the rho."] sudo_set_rho { netuid : :: core :: primitive :: u16 , rho : :: core :: primitive :: u16 , } , # [codec (index = 18)] # [doc = "The extrinsic sets the activity cutoff for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the activity cutoff."] sudo_set_activity_cutoff { netuid : :: core :: primitive :: u16 , activity_cutoff : :: core :: primitive :: u16 , } , # [codec (index = 19)] # [doc = "The extrinsic sets the network registration allowed for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the network registration allowed."] sudo_set_network_registration_allowed { netuid : :: core :: primitive :: u16 , registration_allowed : :: core :: primitive :: bool , } , # [codec (index = 20)] # [doc = "The extrinsic sets the network PoW registration allowed for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the network PoW registration allowed."] sudo_set_network_pow_registration_allowed { netuid : :: core :: primitive :: u16 , registration_allowed : :: core :: primitive :: bool , } , # [codec (index = 21)] # [doc = "The extrinsic sets the target registrations per interval for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the target registrations per interval."] sudo_set_target_registrations_per_interval { netuid : :: core :: primitive :: u16 , target_registrations_per_interval : :: core :: primitive :: u16 , } , # [codec (index = 22)] # [doc = "The extrinsic sets the minimum burn for a subnet."] # [doc = "It is only callable by root and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum burn."] sudo_set_min_burn { netuid : :: core :: primitive :: u16 , min_burn : :: core :: primitive :: u64 , } , # [codec (index = 23)] # [doc = "The extrinsic sets the maximum burn for a subnet."] # [doc = "It is only callable by root and subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum burn."] sudo_set_max_burn { netuid : :: core :: primitive :: u16 , max_burn : :: core :: primitive :: u64 , } , # [codec (index = 24)] # [doc = "The extrinsic sets the difficulty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the difficulty."] sudo_set_difficulty { netuid : :: core :: primitive :: u16 , difficulty : :: core :: primitive :: u64 , } , # [codec (index = 25)] # [doc = "The extrinsic sets the maximum allowed validators for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum allowed validators."] sudo_set_max_allowed_validators { netuid : :: core :: primitive :: u16 , max_allowed_validators : :: core :: primitive :: u16 , } , # [codec (index = 26)] # [doc = "The extrinsic sets the bonds moving average for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the bonds moving average."] sudo_set_bonds_moving_average { netuid : :: core :: primitive :: u16 , bonds_moving_average : :: core :: primitive :: u64 , } , # [codec (index = 60)] # [doc = "The extrinsic sets the bonds penalty for a subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the bonds penalty."] sudo_set_bonds_penalty { netuid : :: core :: primitive :: u16 , bonds_penalty : :: core :: primitive :: u16 , } , # [codec (index = 27)] # [doc = "The extrinsic sets the maximum registrations per block for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the maximum registrations per block."] sudo_set_max_registrations_per_block { netuid : :: core :: primitive :: u16 , max_registrations_per_block : :: core :: primitive :: u16 , } , # [codec (index = 28)] # [doc = "The extrinsic sets the subnet owner cut for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the subnet owner cut."] sudo_set_subnet_owner_cut { subnet_owner_cut : :: core :: primitive :: u16 , } , # [codec (index = 29)] # [doc = "The extrinsic sets the network rate limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the network rate limit."] sudo_set_network_rate_limit { rate_limit : :: core :: primitive :: u64 , } , # [codec (index = 30)] # [doc = "The extrinsic sets the tempo for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the tempo."] sudo_set_tempo { netuid : :: core :: primitive :: u16 , tempo : :: core :: primitive :: u16 , } , # [codec (index = 33)] # [doc = "The extrinsic sets the total issuance for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the issuance for the network."] sudo_set_total_issuance { total_issuance : :: core :: primitive :: u64 , } , # [codec (index = 35)] # [doc = "The extrinsic sets the immunity period for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the immunity period for the network."] sudo_set_network_immunity_period { immunity_period : :: core :: primitive :: u64 , } , # [codec (index = 36)] # [doc = "The extrinsic sets the min lock cost for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the min lock cost for the network."] sudo_set_network_min_lock_cost { lock_cost : :: core :: primitive :: u64 , } , # [codec (index = 37)] # [doc = "The extrinsic sets the subnet limit for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the subnet limit."] sudo_set_subnet_limit { max_subnets : :: core :: primitive :: u16 , } , # [codec (index = 38)] # [doc = "The extrinsic sets the lock reduction interval for the network."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the lock reduction interval."] sudo_set_lock_reduction_interval { interval : :: core :: primitive :: u64 , } , # [codec (index = 39)] # [doc = "The extrinsic sets the recycled RAO for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the recycled RAO."] sudo_set_rao_recycled { netuid : :: core :: primitive :: u16 , rao_recycled : :: core :: primitive :: u64 , } , # [codec (index = 42)] # [doc = "The extrinsic sets the weights min stake."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the weights min stake."] sudo_set_stake_threshold { min_stake : :: core :: primitive :: u64 , } , # [codec (index = 43)] # [doc = "The extrinsic sets the minimum stake required for nominators."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum stake required for nominators."] sudo_set_nominator_min_required_stake { min_stake : :: core :: primitive :: u64 , } , # [codec (index = 45)] # [doc = "The extrinsic sets the rate limit for delegate take transactions."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the rate limit for delegate take transactions."] sudo_set_tx_delegate_take_rate_limit { tx_rate_limit : :: core :: primitive :: u64 , } , # [codec (index = 46)] # [doc = "The extrinsic sets the minimum delegate take."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the minimum delegate take."] sudo_set_min_delegate_take { take : :: core :: primitive :: u16 , } , # [codec (index = 49)] # [doc = "The extrinsic enabled/disables commit/reaveal for a given subnet."] # [doc = "It is only callable by the root account or subnet owner."] # [doc = "The extrinsic will call the Subtensor pallet to set the value."] sudo_set_commit_reveal_weights_enabled { netuid : :: core :: primitive :: u16 , enabled : :: core :: primitive :: bool , } , # [codec (index = 50)] # [doc = "Enables or disables Liquid Alpha for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Liquid Alpha."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] sudo_set_liquid_alpha_enabled { netuid : :: core :: primitive :: u16 , enabled : :: core :: primitive :: bool , } , # [codec (index = 51)] # [doc = "Sets values for liquid alpha"] sudo_set_alpha_values { netuid : :: core :: primitive :: u16 , alpha_low : :: core :: primitive :: u16 , alpha_high : :: core :: primitive :: u16 , } , # [codec (index = 54)] # [doc = "Sets the duration of the coldkey swap schedule."] # [doc = ""] # [doc = "This extrinsic allows the root account to set the duration for the coldkey swap schedule."] # [doc = "The coldkey swap schedule determines how long it takes for a coldkey swap operation to complete."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `duration` - The new duration for the coldkey swap schedule, in number of blocks."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_coldkey_swap_schedule_duration { duration : :: core :: primitive :: u32 , } , # [codec (index = 55)] # [doc = "Sets the duration of the dissolve network schedule."] # [doc = ""] # [doc = "This extrinsic allows the root account to set the duration for the dissolve network schedule."] # [doc = "The dissolve network schedule determines how long it takes for a network dissolution operation to complete."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `duration` - The new duration for the dissolve network schedule, in number of blocks."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_dissolve_network_schedule_duration { duration : :: core :: primitive :: u32 , } , # [codec (index = 57)] # [doc = "Sets the commit-reveal weights periods for a specific subnet."] # [doc = ""] # [doc = "This extrinsic allows the subnet owner or root account to set the duration (in epochs) during which committed weights must be revealed."] # [doc = "The commit-reveal mechanism ensures that users commit weights in advance and reveal them only within a specified period."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or the root account."] # [doc = "* `netuid` - The unique identifier of the subnet for which the periods are being set."] # [doc = "* `periods` - The number of epochs that define the commit-reveal period."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is neither the subnet owner nor the root account."] # [doc = "* `SubnetDoesNotExist` - If the specified subnet does not exist."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_commit_reveal_weights_interval { netuid : :: core :: primitive :: u16 , interval : :: core :: primitive :: u64 , } , # [codec (index = 58)] # [doc = "Sets the EVM ChainID."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or the root account."] # [doc = "* `chainId` - The u64 chain ID"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is neither the subnet owner nor the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_evm_chain_id { chain_id : :: core :: primitive :: u64 , } , # [codec (index = 59)] # [doc = "A public interface for `pallet_grandpa::Pallet::schedule_grandpa_change`."] # [doc = ""] # [doc = "Schedule a change in the authorities."] # [doc = ""] # [doc = "The change will be applied at the end of execution of the block `in_blocks` after the"] # [doc = "current block. This value may be 0, in which case the change is applied at the end of"] # [doc = "the current block."] # [doc = ""] # [doc = "If the `forced` parameter is defined, this indicates that the current set has been"] # [doc = "synchronously determined to be offline and that after `in_blocks` the given change"] # [doc = "should be applied. The given block number indicates the median last finalized block"] # [doc = "number and it should be used as the canon block when starting the new grandpa voter."] # [doc = ""] # [doc = "No change should be signaled while any change is pending. Returns an error if a change"] # [doc = "is already pending."] schedule_grandpa_change { next_authorities : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , in_blocks : :: core :: primitive :: u32 , forced : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 61)] # [doc = "Enable or disable atomic alpha transfers for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Liquid Alpha."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] sudo_set_toggle_transfer { netuid : :: core :: primitive :: u16 , toggle : :: core :: primitive :: bool , } , # [codec (index = 80)] # [doc = "Set the behaviour of the \"burn\" UID(s) for a given subnet."] # [doc = "If set to `Burn`, the miner emission sent to the burn UID(s) will be burned."] # [doc = "If set to `Recycle`, the miner emission sent to the burn UID(s) will be recycled."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `recycle_or_burn`: The desired behaviour of the \"burn\" UID(s) for the subnet."] # [doc = ""] sudo_set_recycle_or_burn { netuid : :: core :: primitive :: u16 , recycle_or_burn : runtime_types :: pallet_subtensor :: pallet :: RecycleOrBurnEnum , } , # [codec (index = 62)] # [doc = "Toggles the enablement of an EVM precompile."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `precompile_id` - The identifier of the EVM precompile to toggle."] # [doc = "* `enabled` - The new enablement state of the precompile."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_toggle_evm_precompile { precompile_id : runtime_types :: pallet_admin_utils :: pallet :: PrecompileEnum , enabled : :: core :: primitive :: bool , } , # [codec (index = 63)] # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `alpha` - The new moving alpha value for the SubnetMovingAlpha."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_subnet_moving_alpha { alpha : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , } , # [codec (index = 64)] # [doc = "Change the SubnetOwnerHotkey for a given subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner."] # [doc = "* `netuid` - The unique identifier for the subnet."] # [doc = "* `hotkey` - The new hotkey for the subnet owner."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the subnet owner or root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_subnet_owner_hotkey { netuid : :: core :: primitive :: u16 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 65)] # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `ema_alpha_period` - Number of blocks for EMA price to halve"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_ema_price_halving_period { netuid : :: core :: primitive :: u16 , ema_halving : :: core :: primitive :: u64 , } , # [codec (index = 68)] # [doc = ""] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `netuid` - The unique identifier for the subnet."] # [doc = "* `steepness` - The Steepness for the alpha sigmoid function. (range is 0-int16::MAX,"] # [doc = "negative values are reserved for future use)"] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = "* `SubnetDoesNotExist` - If the specified subnet does not exist."] # [doc = "* `NegativeSigmoidSteepness` - If the steepness is negative and the caller is"] # [doc = "root."] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_alpha_sigmoid_steepness { netuid : :: core :: primitive :: u16 , steepness : :: core :: primitive :: i16 , } , # [codec (index = 69)] # [doc = "Enables or disables Yuma3 for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Yuma3."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] sudo_set_yuma3_enabled { netuid : :: core :: primitive :: u16 , enabled : :: core :: primitive :: bool , } , # [codec (index = 70)] # [doc = "Enables or disables Bonds Reset for a given subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The origin of the call, which must be the root account or subnet owner."] # [doc = "- `netuid`: The unique identifier for the subnet."] # [doc = "- `enabled`: A boolean flag to enable or disable Bonds Reset."] # [doc = ""] # [doc = "# Weight"] # [doc = "This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees."] sudo_set_bonds_reset_enabled { netuid : :: core :: primitive :: u16 , enabled : :: core :: primitive :: bool , } , # [codec (index = 67)] # [doc = "Sets or updates the hotkey account associated with the owner of a specific subnet."] # [doc = ""] # [doc = "This function allows either the root origin or the current subnet owner to set or update"] # [doc = "the hotkey for a given subnet. The subnet must already exist. To prevent abuse, the call is"] # [doc = "rate-limited to once per configured interval (default: one week) per subnet."] # [doc = ""] # [doc = "# Parameters"] # [doc = "- `origin`: The dispatch origin of the call. Must be either root or the current owner of the subnet."] # [doc = "- `netuid`: The unique identifier of the subnet whose owner hotkey is being set."] # [doc = "- `hotkey`: The new hotkey account to associate with the subnet owner."] # [doc = ""] # [doc = "# Returns"] # [doc = "- `DispatchResult`: Returns `Ok(())` if the hotkey was successfully set, or an appropriate error otherwise."] # [doc = ""] # [doc = "# Errors"] # [doc = "- `Error::SubnetNotExists`: If the specified subnet does not exist."] # [doc = "- `Error::TxRateLimitExceeded`: If the function is called more frequently than the allowed rate limit."] # [doc = ""] # [doc = "# Access Control"] # [doc = "Only callable by:"] # [doc = "- Root origin, or"] # [doc = "- The coldkey account that owns the subnet."] # [doc = ""] # [doc = "# Storage"] # [doc = "- Updates [`SubnetOwnerHotkey`] for the given `netuid`."] # [doc = "- Reads and updates [`LastRateLimitedBlock`] for rate-limiting."] # [doc = "- Reads [`DefaultSetSNOwnerHotkeyRateLimit`] to determine the interval between allowed updates."] # [doc = ""] # [doc = "# Rate Limiting"] # [doc = "This function is rate-limited to one call per subnet per interval (e.g., one week)."] sudo_set_sn_owner_hotkey { netuid : :: core :: primitive :: u16 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 66)] # [doc = "Enables or disables subtoken trading for a given subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the root account."] # [doc = "* `netuid` - The unique identifier of the subnet."] # [doc = "* `subtoken_enabled` - A boolean indicating whether subtoken trading should be enabled or disabled."] # [doc = ""] # [doc = "# Errors"] # [doc = "* `BadOrigin` - If the caller is not the root account."] # [doc = ""] # [doc = "# Weight"] # [doc = "Weight is handled by the `#[pallet::weight]` attribute."] sudo_set_subtoken_enabled { netuid : :: core :: primitive :: u16 , subtoken_enabled : :: core :: primitive :: bool , } , # [codec (index = 71)] # [doc = "Sets the commit-reveal weights version for all subnets"] sudo_set_commit_reveal_version { version : :: core :: primitive :: u16 , } , # [codec (index = 72)] # [doc = "Sets the number of immune owner neurons"] sudo_set_owner_immune_neuron_limit { netuid : :: core :: primitive :: u16 , immune_neurons : :: core :: primitive :: u16 , } , # [codec (index = 73)] # [doc = "Sets the childkey burn for a subnet."] # [doc = "It is only callable by the root account."] # [doc = "The extrinsic will call the Subtensor pallet to set the childkey burn."] sudo_set_ck_burn { burn : :: core :: primitive :: u64 , } , # [codec (index = 74)] # [doc = "Sets the admin freeze window length (in blocks) at the end of a tempo."] # [doc = "Only callable by root."] sudo_set_admin_freeze_window { window : :: core :: primitive :: u16 , } , # [codec (index = 75)] # [doc = "Sets the owner hyperparameter rate limit in epochs (global multiplier)."] # [doc = "Only callable by root."] sudo_set_owner_hparam_rate_limit { epochs : :: core :: primitive :: u16 , } , # [codec (index = 76)] # [doc = "Sets the desired number of mechanisms in a subnet"] sudo_set_mechanism_count { netuid : :: core :: primitive :: u16 , mechanism_count : :: core :: primitive :: u8 , } , # [codec (index = 77)] # [doc = "Sets the emission split between mechanisms in a subnet"] sudo_set_mechanism_emission_split { netuid : :: core :: primitive :: u16 , maybe_split : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > , } , # [codec (index = 78)] # [doc = "Trims the maximum number of UIDs for a subnet."] # [doc = ""] # [doc = "The trimming is done by sorting the UIDs by emission descending and then trimming"] # [doc = "the lowest emitters while preserving temporally and owner immune UIDs. The UIDs are"] # [doc = "then compressed to the left and storage is migrated to the new compressed UIDs."] sudo_trim_to_max_allowed_uids { netuid : :: core :: primitive :: u16 , max_n : :: core :: primitive :: u16 , } , # [codec (index = 79)] # [doc = "The extrinsic sets the minimum allowed UIDs for a subnet."] # [doc = "It is only callable by the root account."] sudo_set_min_allowed_uids { netuid : :: core :: primitive :: u16 , min_allowed_uids : :: core :: primitive :: u16 , } , # [codec (index = 81)] # [doc = "Sets TAO flow cutoff value (A)"] sudo_set_tao_flow_cutoff { flow_cutoff : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , } , # [codec (index = 82)] # [doc = "Sets TAO flow normalization exponent (p)"] sudo_set_tao_flow_normalization_exponent { exponent : runtime_types :: substrate_fixed :: FixedU128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , } , # [codec (index = 83)] # [doc = "Sets TAO flow smoothing factor (alpha)"] sudo_set_tao_flow_smoothing_factor { smoothing_factor : :: core :: primitive :: u64 , } , # [codec (index = 84)] # [doc = "Sets the minimum number of non-immortal & non-immune UIDs that must remain in a subnet"] sudo_set_min_non_immune_uids { netuid : :: core :: primitive :: u16 , min : :: core :: primitive :: u16 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The subnet does not exist, check the netuid parameter"] SubnetDoesNotExist , # [codec (index = 1)] # [doc = "The maximum number of subnet validators must be less than the maximum number of allowed UIDs in the subnet."] MaxValidatorsLargerThanMaxUIds , # [codec (index = 2)] # [doc = "The maximum number of subnet validators must be more than the current number of UIDs already in the subnet."] MaxAllowedUIdsLessThanCurrentUIds , # [codec (index = 3)] # [doc = "The maximum value for bonds moving average is reached"] BondsMovingAverageMaxReached , # [codec (index = 4)] # [doc = "Only root can set negative sigmoid steepness values"] NegativeSigmoidSteepness , # [codec (index = 5)] # [doc = "Value not in allowed bounds."] ValueNotInBounds , # [codec (index = 6)] # [doc = "The minimum allowed UIDs must be less than the current number of UIDs in the subnet."] MinAllowedUidsGreaterThanCurrentUids , # [codec (index = 7)] # [doc = "The minimum allowed UIDs must be less than the maximum allowed UIDs."] MinAllowedUidsGreaterThanMaxAllowedUids , # [codec (index = 8)] # [doc = "The maximum allowed UIDs must be greater than the minimum allowed UIDs."] MaxAllowedUidsLessThanMinAllowedUids , # [codec (index = 9)] # [doc = "The maximum allowed UIDs must be less than the default maximum allowed UIDs."] MaxAllowedUidsGreaterThanDefaultMaxAllowedUids , # [codec (index = 10)] # [doc = "Bad parameter value"] InvalidValue , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Event emitted when a precompile operation is updated."] PrecompileUpdated { precompile_id : runtime_types :: pallet_admin_utils :: pallet :: PrecompileEnum , enabled : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "Event emitted when the Yuma3 enable is toggled."] Yuma3EnableToggled { netuid : :: core :: primitive :: u16 , enabled : :: core :: primitive :: bool , } , # [codec (index = 2)] # [doc = "Event emitted when Bonds Reset is toggled."] BondsResetToggled { netuid : :: core :: primitive :: u16 , enabled : :: core :: primitive :: bool , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum PrecompileEnum { # [codec (index = 0)] BalanceTransfer , # [codec (index = 1)] Staking , # [codec (index = 2)] Subnet , # [codec (index = 3)] Metagraph , # [codec (index = 4)] Neuron , # [codec (index = 5)] UidLookup , # [codec (index = 6)] Alpha , # [codec (index = 7)] Crowdloan , # [codec (index = 8)] Proxy , # [codec (index = 9)] Leasing , } } } pub mod pallet_balances { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Transfer some liquid free balance to another account."] # [doc = ""] # [doc = "`transfer_allow_death` will set the `FreeBalance` of the sender and receiver."] # [doc = "If the sender's account is below the existential deposit as a result"] # [doc = "of the transfer, the account will be reaped."] # [doc = ""] # [doc = "The dispatch origin for this call must be `Signed` by the transactor."] transfer_allow_death { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Exactly as `transfer_allow_death`, except the origin must be root and the source account"] # [doc = "may be specified."] force_transfer { source : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u64 , } , # [codec (index = 3)] # [doc = "Same as the [`transfer_allow_death`] call, but with a check that the transfer will not"] # [doc = "kill the origin account."] # [doc = ""] # [doc = "99% of the time you want [`transfer_allow_death`] instead."] # [doc = ""] # [doc = "[`transfer_allow_death`]: struct.Pallet.html#method.transfer"] transfer_keep_alive { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u64 , } , # [codec (index = 4)] # [doc = "Transfer the entire transferable balance from the caller account."] # [doc = ""] # [doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] # [doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] # [doc = "transferred by this function. To ensure that this function results in a killed account,"] # [doc = "you might need to prepare the account by removing any reference counters, storage"] # [doc = "deposits, etc..."] # [doc = ""] # [doc = "The dispatch origin of this call must be Signed."] # [doc = ""] # [doc = "- `dest`: The recipient of the transfer."] # [doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] # [doc = "  of the funds the account has, causing the sender account to be killed (false), or"] # [doc = "  transfer everything except at least the existential deposit, which will guarantee to"] # [doc = "  keep the sender account alive (true)."] transfer_all { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , keep_alive : :: core :: primitive :: bool , } , # [codec (index = 5)] # [doc = "Unreserve some balance from a user by force."] # [doc = ""] # [doc = "Can only be called by ROOT."] force_unreserve { who : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , amount : :: core :: primitive :: u64 , } , # [codec (index = 6)] # [doc = "Upgrade a specified account."] # [doc = ""] # [doc = "- `origin`: Must be `Signed`."] # [doc = "- `who`: The account to be upgraded."] # [doc = ""] # [doc = "This will waive the transaction fee if at least all but 10% of the accounts needed to"] # [doc = "be upgraded. (We let some not have to be upgraded just in order to allow for the"] # [doc = "possibility of churn)."] upgrade_accounts { who : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 8)] # [doc = "Set the regular balance of a given account."] # [doc = ""] # [doc = "The dispatch origin for this call is `root`."] force_set_balance { who : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] new_free : :: core :: primitive :: u64 , } , # [codec (index = 9)] # [doc = "Adjust the total issuance in a saturating way."] # [doc = ""] # [doc = "Can only be called by root and always needs a positive `delta`."] # [doc = ""] # [doc = "# Example"] force_adjust_total_issuance { direction : runtime_types :: pallet_balances :: types :: AdjustmentDirection , # [codec (compact)] delta : :: core :: primitive :: u64 , } , # [codec (index = 10)] # [doc = "Burn the specified liquid free balance from the origin account."] # [doc = ""] # [doc = "If the origin's account ends up below the existential deposit as a result"] # [doc = "of the burn and `keep_alive` is false, the account will be reaped."] # [doc = ""] # [doc = "Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,"] # [doc = "this `burn` operation will reduce total issuance by the amount _burned_."] burn { # [codec (compact)] value : :: core :: primitive :: u64 , keep_alive : :: core :: primitive :: bool , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Vesting balance too high to send value."] VestingBalance , # [codec (index = 1)] # [doc = "Account liquidity restrictions prevent withdrawal."] LiquidityRestrictions , # [codec (index = 2)] # [doc = "Balance too low to send value."] InsufficientBalance , # [codec (index = 3)] # [doc = "Value too low to create account due to existential deposit."] ExistentialDeposit , # [codec (index = 4)] # [doc = "Transfer/payment would kill account."] Expendability , # [codec (index = 5)] # [doc = "A vesting schedule already exists for this account."] ExistingVestingSchedule , # [codec (index = 6)] # [doc = "Beneficiary account must pre-exist."] DeadAccount , # [codec (index = 7)] # [doc = "Number of named reserves exceed `MaxReserves`."] TooManyReserves , # [codec (index = 8)] # [doc = "Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`."] TooManyHolds , # [codec (index = 9)] # [doc = "Number of freezes exceed `MaxFreezes`."] TooManyFreezes , # [codec (index = 10)] # [doc = "The issuance cannot be modified since it is already deactivated."] IssuanceDeactivated , # [codec (index = 11)] # [doc = "The delta cannot be zero."] DeltaZero , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "An account was created with some free balance."] Endowed { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , free_balance : :: core :: primitive :: u64 , } , # [codec (index = 1)] # [doc = "An account was removed whose balance was non-zero but below ExistentialDeposit,"] # [doc = "resulting in an outright loss."] DustLost { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Transfer succeeded."] Transfer { from : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , to : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 3)] # [doc = "A balance was set by root."] BalanceSet { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , free : :: core :: primitive :: u64 , } , # [codec (index = 4)] # [doc = "Some balance was reserved (moved from free to reserved)."] Reserved { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 5)] # [doc = "Some balance was unreserved (moved from reserved to free)."] Unreserved { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 6)] # [doc = "Some balance was moved from the reserve of the first account to the second account."] # [doc = "Final argument indicates the destination balance type."] ReserveRepatriated { from : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , to : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , destination_status : runtime_types :: frame_support :: traits :: tokens :: misc :: BalanceStatus , } , # [codec (index = 7)] # [doc = "Some amount was deposited (e.g. for transaction fees)."] Deposit { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 8)] # [doc = "Some amount was withdrawn from the account (e.g. for transaction fees)."] Withdraw { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 9)] # [doc = "Some amount was removed from the account (e.g. for misbehavior)."] Slashed { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 10)] # [doc = "Some amount was minted into an account."] Minted { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 11)] # [doc = "Some amount was burned from an account."] Burned { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 12)] # [doc = "Some amount was suspended from an account (it can be restored later)."] Suspended { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 13)] # [doc = "Some amount was restored into an account."] Restored { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 14)] # [doc = "An account was upgraded."] Upgraded { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 15)] # [doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] Issued { amount : :: core :: primitive :: u64 , } , # [codec (index = 16)] # [doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] Rescinded { amount : :: core :: primitive :: u64 , } , # [codec (index = 17)] # [doc = "Some balance was locked."] Locked { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 18)] # [doc = "Some balance was unlocked."] Unlocked { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 19)] # [doc = "Some balance was frozen."] Frozen { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 20)] # [doc = "Some balance was thawed."] Thawed { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 21)] # [doc = "The `TotalIssuance` was forcefully changed."] TotalIssuanceForced { old : :: core :: primitive :: u64 , new : :: core :: primitive :: u64 , } , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum AdjustmentDirection { # [codec (index = 0)] Increase , # [codec (index = 1)] Decrease , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ExtraFlags (pub :: core :: primitive :: u128 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Reasons { # [codec (index = 0)] Fee , # [codec (index = 1)] Misc , # [codec (index = 2)] All , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] set_base_fee_per_gas { fee : runtime_types :: primitive_types :: U256 , } , # [codec (index = 1)] set_elasticity { elasticity : runtime_types :: sp_arithmetic :: per_things :: Permill , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "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_commitments { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Set the commitment for a given netuid"] set_commitment { netuid : :: core :: primitive :: u16 , info : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: pallet_commitments :: types :: CommitmentInfo > , } , # [codec (index = 2)] # [doc = "Sudo-set MaxSpace"] set_max_space { new_limit : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Account passed too many additional fields to their commitment"] TooManyFieldsInCommitmentInfo , # [codec (index = 1)] # [doc = "Account is not allowed to make commitments to the chain"] AccountNotAllowedCommit , # [codec (index = 2)] # [doc = "Space Limit Exceeded for the current interval"] SpaceLimitExceeded , # [codec (index = 3)] # [doc = "Indicates that unreserve returned a leftover, which is unexpected."] UnexpectedUnreserveLeftover , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A commitment was set"] Commitment { netuid : :: core :: primitive :: u16 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "A timelock-encrypted commitment was set"] TimelockCommitment { netuid : :: core :: primitive :: u16 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , reveal_round : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "A timelock-encrypted commitment was auto-revealed"] CommitmentRevealed { netuid : :: core :: primitive :: u16 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CommitmentInfo { pub fields : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < runtime_types :: pallet_commitments :: types :: Data > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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)] Raw33 ([:: core :: primitive :: u8 ; 33usize] ,) , # [codec (index = 35)] Raw34 ([:: core :: primitive :: u8 ; 34usize] ,) , # [codec (index = 36)] Raw35 ([:: core :: primitive :: u8 ; 35usize] ,) , # [codec (index = 37)] Raw36 ([:: core :: primitive :: u8 ; 36usize] ,) , # [codec (index = 38)] Raw37 ([:: core :: primitive :: u8 ; 37usize] ,) , # [codec (index = 39)] Raw38 ([:: core :: primitive :: u8 ; 38usize] ,) , # [codec (index = 40)] Raw39 ([:: core :: primitive :: u8 ; 39usize] ,) , # [codec (index = 41)] Raw40 ([:: core :: primitive :: u8 ; 40usize] ,) , # [codec (index = 42)] Raw41 ([:: core :: primitive :: u8 ; 41usize] ,) , # [codec (index = 43)] Raw42 ([:: core :: primitive :: u8 ; 42usize] ,) , # [codec (index = 44)] Raw43 ([:: core :: primitive :: u8 ; 43usize] ,) , # [codec (index = 45)] Raw44 ([:: core :: primitive :: u8 ; 44usize] ,) , # [codec (index = 46)] Raw45 ([:: core :: primitive :: u8 ; 45usize] ,) , # [codec (index = 47)] Raw46 ([:: core :: primitive :: u8 ; 46usize] ,) , # [codec (index = 48)] Raw47 ([:: core :: primitive :: u8 ; 47usize] ,) , # [codec (index = 49)] Raw48 ([:: core :: primitive :: u8 ; 48usize] ,) , # [codec (index = 50)] Raw49 ([:: core :: primitive :: u8 ; 49usize] ,) , # [codec (index = 51)] Raw50 ([:: core :: primitive :: u8 ; 50usize] ,) , # [codec (index = 52)] Raw51 ([:: core :: primitive :: u8 ; 51usize] ,) , # [codec (index = 53)] Raw52 ([:: core :: primitive :: u8 ; 52usize] ,) , # [codec (index = 54)] Raw53 ([:: core :: primitive :: u8 ; 53usize] ,) , # [codec (index = 55)] Raw54 ([:: core :: primitive :: u8 ; 54usize] ,) , # [codec (index = 56)] Raw55 ([:: core :: primitive :: u8 ; 55usize] ,) , # [codec (index = 57)] Raw56 ([:: core :: primitive :: u8 ; 56usize] ,) , # [codec (index = 58)] Raw57 ([:: core :: primitive :: u8 ; 57usize] ,) , # [codec (index = 59)] Raw58 ([:: core :: primitive :: u8 ; 58usize] ,) , # [codec (index = 60)] Raw59 ([:: core :: primitive :: u8 ; 59usize] ,) , # [codec (index = 61)] Raw60 ([:: core :: primitive :: u8 ; 60usize] ,) , # [codec (index = 62)] Raw61 ([:: core :: primitive :: u8 ; 61usize] ,) , # [codec (index = 63)] Raw62 ([:: core :: primitive :: u8 ; 62usize] ,) , # [codec (index = 64)] Raw63 ([:: core :: primitive :: u8 ; 63usize] ,) , # [codec (index = 65)] Raw64 ([:: core :: primitive :: u8 ; 64usize] ,) , # [codec (index = 66)] Raw65 ([:: core :: primitive :: u8 ; 65usize] ,) , # [codec (index = 67)] Raw66 ([:: core :: primitive :: u8 ; 66usize] ,) , # [codec (index = 68)] Raw67 ([:: core :: primitive :: u8 ; 67usize] ,) , # [codec (index = 69)] Raw68 ([:: core :: primitive :: u8 ; 68usize] ,) , # [codec (index = 70)] Raw69 ([:: core :: primitive :: u8 ; 69usize] ,) , # [codec (index = 71)] Raw70 ([:: core :: primitive :: u8 ; 70usize] ,) , # [codec (index = 72)] Raw71 ([:: core :: primitive :: u8 ; 71usize] ,) , # [codec (index = 73)] Raw72 ([:: core :: primitive :: u8 ; 72usize] ,) , # [codec (index = 74)] Raw73 ([:: core :: primitive :: u8 ; 73usize] ,) , # [codec (index = 75)] Raw74 ([:: core :: primitive :: u8 ; 74usize] ,) , # [codec (index = 76)] Raw75 ([:: core :: primitive :: u8 ; 75usize] ,) , # [codec (index = 77)] Raw76 ([:: core :: primitive :: u8 ; 76usize] ,) , # [codec (index = 78)] Raw77 ([:: core :: primitive :: u8 ; 77usize] ,) , # [codec (index = 79)] Raw78 ([:: core :: primitive :: u8 ; 78usize] ,) , # [codec (index = 80)] Raw79 ([:: core :: primitive :: u8 ; 79usize] ,) , # [codec (index = 81)] Raw80 ([:: core :: primitive :: u8 ; 80usize] ,) , # [codec (index = 82)] Raw81 ([:: core :: primitive :: u8 ; 81usize] ,) , # [codec (index = 83)] Raw82 ([:: core :: primitive :: u8 ; 82usize] ,) , # [codec (index = 84)] Raw83 ([:: core :: primitive :: u8 ; 83usize] ,) , # [codec (index = 85)] Raw84 ([:: core :: primitive :: u8 ; 84usize] ,) , # [codec (index = 86)] Raw85 ([:: core :: primitive :: u8 ; 85usize] ,) , # [codec (index = 87)] Raw86 ([:: core :: primitive :: u8 ; 86usize] ,) , # [codec (index = 88)] Raw87 ([:: core :: primitive :: u8 ; 87usize] ,) , # [codec (index = 89)] Raw88 ([:: core :: primitive :: u8 ; 88usize] ,) , # [codec (index = 90)] Raw89 ([:: core :: primitive :: u8 ; 89usize] ,) , # [codec (index = 91)] Raw90 ([:: core :: primitive :: u8 ; 90usize] ,) , # [codec (index = 92)] Raw91 ([:: core :: primitive :: u8 ; 91usize] ,) , # [codec (index = 93)] Raw92 ([:: core :: primitive :: u8 ; 92usize] ,) , # [codec (index = 94)] Raw93 ([:: core :: primitive :: u8 ; 93usize] ,) , # [codec (index = 95)] Raw94 ([:: core :: primitive :: u8 ; 94usize] ,) , # [codec (index = 96)] Raw95 ([:: core :: primitive :: u8 ; 95usize] ,) , # [codec (index = 97)] Raw96 ([:: core :: primitive :: u8 ; 96usize] ,) , # [codec (index = 98)] Raw97 ([:: core :: primitive :: u8 ; 97usize] ,) , # [codec (index = 99)] Raw98 ([:: core :: primitive :: u8 ; 98usize] ,) , # [codec (index = 100)] Raw99 ([:: core :: primitive :: u8 ; 99usize] ,) , # [codec (index = 101)] Raw100 ([:: core :: primitive :: u8 ; 100usize] ,) , # [codec (index = 102)] Raw101 ([:: core :: primitive :: u8 ; 101usize] ,) , # [codec (index = 103)] Raw102 ([:: core :: primitive :: u8 ; 102usize] ,) , # [codec (index = 104)] Raw103 ([:: core :: primitive :: u8 ; 103usize] ,) , # [codec (index = 105)] Raw104 ([:: core :: primitive :: u8 ; 104usize] ,) , # [codec (index = 106)] Raw105 ([:: core :: primitive :: u8 ; 105usize] ,) , # [codec (index = 107)] Raw106 ([:: core :: primitive :: u8 ; 106usize] ,) , # [codec (index = 108)] Raw107 ([:: core :: primitive :: u8 ; 107usize] ,) , # [codec (index = 109)] Raw108 ([:: core :: primitive :: u8 ; 108usize] ,) , # [codec (index = 110)] Raw109 ([:: core :: primitive :: u8 ; 109usize] ,) , # [codec (index = 111)] Raw110 ([:: core :: primitive :: u8 ; 110usize] ,) , # [codec (index = 112)] Raw111 ([:: core :: primitive :: u8 ; 111usize] ,) , # [codec (index = 113)] Raw112 ([:: core :: primitive :: u8 ; 112usize] ,) , # [codec (index = 114)] Raw113 ([:: core :: primitive :: u8 ; 113usize] ,) , # [codec (index = 115)] Raw114 ([:: core :: primitive :: u8 ; 114usize] ,) , # [codec (index = 116)] Raw115 ([:: core :: primitive :: u8 ; 115usize] ,) , # [codec (index = 117)] Raw116 ([:: core :: primitive :: u8 ; 116usize] ,) , # [codec (index = 118)] Raw117 ([:: core :: primitive :: u8 ; 117usize] ,) , # [codec (index = 119)] Raw118 ([:: core :: primitive :: u8 ; 118usize] ,) , # [codec (index = 120)] Raw119 ([:: core :: primitive :: u8 ; 119usize] ,) , # [codec (index = 121)] Raw120 ([:: core :: primitive :: u8 ; 120usize] ,) , # [codec (index = 122)] Raw121 ([:: core :: primitive :: u8 ; 121usize] ,) , # [codec (index = 123)] Raw122 ([:: core :: primitive :: u8 ; 122usize] ,) , # [codec (index = 124)] Raw123 ([:: core :: primitive :: u8 ; 123usize] ,) , # [codec (index = 125)] Raw124 ([:: core :: primitive :: u8 ; 124usize] ,) , # [codec (index = 126)] Raw125 ([:: core :: primitive :: u8 ; 125usize] ,) , # [codec (index = 127)] Raw126 ([:: core :: primitive :: u8 ; 126usize] ,) , # [codec (index = 128)] Raw127 ([:: core :: primitive :: u8 ; 127usize] ,) , # [codec (index = 129)] Raw128 ([:: core :: primitive :: u8 ; 128usize] ,) , # [codec (index = 130)] BlakeTwo256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 131)] Sha256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 132)] Keccak256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 133)] ShaThree256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 134)] TimelockEncrypted { encrypted : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , reveal_round : :: core :: primitive :: u64 , } , # [codec (index = 135)] ResetBondsFlag , # [codec (index = 136)] BigRaw (runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Registration < _0 , _2 > { pub deposit : _0 , pub block : _2 , pub info : runtime_types :: pallet_commitments :: types :: CommitmentInfo , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UsageTracker { pub last_epoch : :: core :: primitive :: u64 , pub used_space : :: core :: primitive :: u64 , } } } pub mod pallet_contracts { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Deprecated version if [`Self::call`] for use in an in-storage `Call`."] call_old_weight { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u64 , # [codec (compact)] gas_limit : :: core :: primitive :: u64 , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`."] instantiate_with_code_old_weight { # [codec (compact)] value : :: core :: primitive :: u64 , # [codec (compact)] gas_limit : :: core :: primitive :: u64 , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , salt : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 2)] # [doc = "Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`."] instantiate_old_weight { # [codec (compact)] value : :: core :: primitive :: u64 , # [codec (compact)] gas_limit : :: core :: primitive :: u64 , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , salt : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 3)] # [doc = "Upload new `code` without instantiating a contract from it."] # [doc = ""] # [doc = "If the code does not already exist a deposit is reserved from the caller"] # [doc = "and unreserved only when [`Self::remove_code`] is called. The size of the reserve"] # [doc = "depends on the size of the supplied `code`."] # [doc = ""] # [doc = "If the code already exists in storage it will still return `Ok` and upgrades"] # [doc = "the in storage version to the current"] # [doc = "[`InstructionWeights::version`](InstructionWeights)."] # [doc = ""] # [doc = "- `determinism`: If this is set to any other value but [`Determinism::Enforced`] then"] # [doc = "  the only way to use this code is to delegate call into it from an offchain execution."] # [doc = "  Set to [`Determinism::Enforced`] if in doubt."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Anyone can instantiate a contract from any uploaded code and thus prevent its removal."] # [doc = "To avoid this situation a constructor could employ access control so that it can"] # [doc = "only be instantiated by permissioned entities. The same is true when uploading"] # [doc = "through [`Self::instantiate_with_code`]."] # [doc = ""] # [doc = "Use [`Determinism::Relaxed`] exclusively for non-deterministic code. If the uploaded"] # [doc = "code is deterministic, specifying [`Determinism::Relaxed`] will be disregarded and"] # [doc = "result in higher gas costs."] upload_code { code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , determinism : runtime_types :: pallet_contracts :: wasm :: Determinism , } , # [codec (index = 4)] # [doc = "Remove the code stored under `code_hash` and refund the deposit to its owner."] # [doc = ""] # [doc = "A code can only be removed by its original uploader (its owner) and only if it is"] # [doc = "not used by any contract."] remove_code { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 5)] # [doc = "Privileged function that changes the code of an existing contract."] # [doc = ""] # [doc = "This takes care of updating refcounts and all other necessary operations. Returns"] # [doc = "an error if either the `code_hash` or `dest` do not exist."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "This does **not** change the address of the contract in question. This means"] # [doc = "that the contract address is no longer derived from its code hash after calling"] # [doc = "this dispatchable."] set_code { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 6)] # [doc = "Makes a call to an account, optionally transferring some balance."] # [doc = ""] # [doc = "# Parameters"] # [doc = ""] # [doc = "* `dest`: Address of the contract to call."] # [doc = "* `value`: The balance to transfer from the `origin` to `dest`."] # [doc = "* `gas_limit`: The gas limit enforced when executing the constructor."] # [doc = "* `storage_deposit_limit`: The maximum amount of balance that can be charged from the"] # [doc = "  caller to pay for the storage consumed."] # [doc = "* `data`: The input data to pass to the contract."] # [doc = ""] # [doc = "* If the account is a smart-contract account, the associated code will be"] # [doc = "executed and any value will be transferred."] # [doc = "* If the account is a regular account, any value will be transferred."] # [doc = "* If no account exists and the call value is not less than `existential_deposit`,"] # [doc = "a regular account will be created and any value will be transferred."] call { dest : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , # [codec (compact)] value : :: core :: primitive :: u64 , gas_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 7)] # [doc = "Instantiates a new contract from the supplied `code` optionally transferring"] # [doc = "some balance."] # [doc = ""] # [doc = "This dispatchable has the same effect as calling [`Self::upload_code`] +"] # [doc = "[`Self::instantiate`]. Bundling them together provides efficiency gains. Please"] # [doc = "also check the documentation of [`Self::upload_code`]."] # [doc = ""] # [doc = "# Parameters"] # [doc = ""] # [doc = "* `value`: The balance to transfer from the `origin` to the newly created contract."] # [doc = "* `gas_limit`: The gas limit enforced when executing the constructor."] # [doc = "* `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved"] # [doc = "  from the caller to pay for the storage consumed."] # [doc = "* `code`: The contract code to deploy in raw bytes."] # [doc = "* `data`: The input data to pass to the contract constructor."] # [doc = "* `salt`: Used for the address derivation. See [`Pallet::contract_address`]."] # [doc = ""] # [doc = "Instantiation is executed as follows:"] # [doc = ""] # [doc = "- The supplied `code` is deployed, and a `code_hash` is created for that code."] # [doc = "- If the `code_hash` already exists on the chain the underlying `code` will be shared."] # [doc = "- The destination address is computed based on the sender, code_hash and the salt."] # [doc = "- The smart-contract account is created at the computed address."] # [doc = "- The `value` is transferred to the new account."] # [doc = "- The `deploy` function is executed in the context of the newly-created account."] instantiate_with_code { # [codec (compact)] value : :: core :: primitive :: u64 , gas_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , code : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , salt : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 8)] # [doc = "Instantiates a contract from a previously deployed wasm binary."] # [doc = ""] # [doc = "This function is identical to [`Self::instantiate_with_code`] but without the"] # [doc = "code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary"] # [doc = "must be supplied."] instantiate { # [codec (compact)] value : :: core :: primitive :: u64 , gas_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , storage_deposit_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , salt : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 9)] # [doc = "When a migration is in progress, this dispatchable can be used to run migration steps."] # [doc = "Calls that contribute to advancing the migration have their fees waived, as it's helpful"] # [doc = "for the chain. Note that while the migration is in progress, the pallet will also"] # [doc = "leverage the `on_idle` hooks to run migration steps."] migrate { weight_limit : runtime_types :: sp_weights :: weight_v2 :: Weight , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Invalid schedule supplied, e.g. with zero weight of a basic operation."] InvalidSchedule , # [codec (index = 1)] # [doc = "Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`."] InvalidCallFlags , # [codec (index = 2)] # [doc = "The executed contract exhausted its gas limit."] OutOfGas , # [codec (index = 3)] # [doc = "The output buffer supplied to a contract API call was too small."] OutputBufferTooSmall , # [codec (index = 4)] # [doc = "Performing the requested transfer failed. Probably because there isn't enough"] # [doc = "free balance in the sender's account."] TransferFailed , # [codec (index = 5)] # [doc = "Performing a call was denied because the calling depth reached the limit"] # [doc = "of what is specified in the schedule."] MaxCallDepthReached , # [codec (index = 6)] # [doc = "No contract was found at the specified address."] ContractNotFound , # [codec (index = 7)] # [doc = "The code supplied to `instantiate_with_code` exceeds the limit specified in the"] # [doc = "current schedule."] CodeTooLarge , # [codec (index = 8)] # [doc = "No code could be found at the supplied code hash."] CodeNotFound , # [codec (index = 9)] # [doc = "No code info could be found at the supplied code hash."] CodeInfoNotFound , # [codec (index = 10)] # [doc = "A buffer outside of sandbox memory was passed to a contract API function."] OutOfBounds , # [codec (index = 11)] # [doc = "Input passed to a contract API function failed to decode as expected type."] DecodingFailed , # [codec (index = 12)] # [doc = "Contract trapped during execution."] ContractTrapped , # [codec (index = 13)] # [doc = "The size defined in `T::MaxValueSize` was exceeded."] ValueTooLarge , # [codec (index = 14)] # [doc = "Termination of a contract is not allowed while the contract is already"] # [doc = "on the call stack. Can be triggered by `seal_terminate`."] TerminatedWhileReentrant , # [codec (index = 15)] # [doc = "`seal_call` forwarded this contracts input. It therefore is no longer available."] InputForwarded , # [codec (index = 16)] # [doc = "The subject passed to `seal_random` exceeds the limit."] RandomSubjectTooLong , # [codec (index = 17)] # [doc = "The amount of topics passed to `seal_deposit_events` exceeds the limit."] TooManyTopics , # [codec (index = 18)] # [doc = "The chain does not provide a chain extension. Calling the chain extension results"] # [doc = "in this error. Note that this usually  shouldn't happen as deploying such contracts"] # [doc = "is rejected."] NoChainExtension , # [codec (index = 19)] # [doc = "Failed to decode the XCM program."] XCMDecodeFailed , # [codec (index = 20)] # [doc = "A contract with the same AccountId already exists."] DuplicateContract , # [codec (index = 21)] # [doc = "A contract self destructed in its constructor."] # [doc = ""] # [doc = "This can be triggered by a call to `seal_terminate`."] TerminatedInConstructor , # [codec (index = 22)] # [doc = "A call tried to invoke a contract that is flagged as non-reentrant."] # [doc = "The only other cause is that a call from a contract into the runtime tried to call back"] # [doc = "into `pallet-contracts`. This would make the whole pallet reentrant with regard to"] # [doc = "contract code execution which is not supported."] ReentranceDenied , # [codec (index = 23)] # [doc = "A contract attempted to invoke a state modifying API while being in read-only mode."] StateChangeDenied , # [codec (index = 24)] # [doc = "Origin doesn't have enough balance to pay the required storage deposits."] StorageDepositNotEnoughFunds , # [codec (index = 25)] # [doc = "More storage was created than allowed by the storage deposit limit."] StorageDepositLimitExhausted , # [codec (index = 26)] # [doc = "Code removal was denied because the code is still in use by at least one contract."] CodeInUse , # [codec (index = 27)] # [doc = "The contract ran to completion but decided to revert its storage changes."] # [doc = "Please note that this error is only returned from extrinsics. When called directly"] # [doc = "or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags"] # [doc = "to determine whether a reversion has taken place."] ContractReverted , # [codec (index = 28)] # [doc = "The contract's code was found to be invalid during validation."] # [doc = ""] # [doc = "The most likely cause of this is that an API was used which is not supported by the"] # [doc = "node. This happens if an older node is used with a new version of ink!. Try updating"] # [doc = "your node to the newest available version."] # [doc = ""] # [doc = "A more detailed error can be found on the node console if debug messages are enabled"] # [doc = "by supplying `-lruntime::contracts=debug`."] CodeRejected , # [codec (index = 29)] # [doc = "An indeterministic code was used in a context where this is not permitted."] Indeterministic , # [codec (index = 30)] # [doc = "A pending migration needs to complete before the extrinsic can be called."] MigrationInProgress , # [codec (index = 31)] # [doc = "Migrate dispatch call was attempted but no migration was performed."] NoMigrationPerformed , # [codec (index = 32)] # [doc = "The contract has reached its maximum number of delegate dependencies."] MaxDelegateDependenciesReached , # [codec (index = 33)] # [doc = "The dependency was not found in the contract's delegate dependencies."] DelegateDependencyNotFound , # [codec (index = 34)] # [doc = "The contract already depends on the given delegate dependency."] DelegateDependencyAlreadyExists , # [codec (index = 35)] # [doc = "Can not add a delegate dependency to the code hash of the contract itself."] CannotAddSelfAsDelegateDependency , # [codec (index = 36)] # [doc = "Can not add more data to transient storage."] OutOfTransientStorage , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Contract deployed by address at the specified address."] Instantiated { deployer : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , contract : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "Contract has been removed."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "The only way for a contract to be removed and emitting this event is by calling"] # [doc = "`seal_terminate`."] Terminated { contract : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , beneficiary : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 2)] # [doc = "Code with the specified hash has been stored."] CodeStored { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , deposit_held : :: core :: primitive :: u64 , uploader : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 3)] # [doc = "A custom event emitted by the contract."] ContractEmitted { contract : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 4)] # [doc = "A code with the specified hash was removed."] CodeRemoved { code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , deposit_released : :: core :: primitive :: u64 , remover : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 5)] # [doc = "A contract's code was updated."] ContractCodeUpdated { contract : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , old_code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 6)] # [doc = "A contract was called either by a plain account or another contract."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Please keep in mind that like all events this is only emitted for successful"] # [doc = "calls. This is because on failure all storage changes including events are"] # [doc = "rolled back."] Called { caller : runtime_types :: pallet_contracts :: Origin < runtime_types :: node_subtensor_runtime :: Runtime > , contract : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 7)] # [doc = "A contract delegate called a code hash."] # [doc = ""] # [doc = "# Note"] # [doc = ""] # [doc = "Please keep in mind that like all events this is only emitted for successful"] # [doc = "calls. This is because on failure all storage changes including events are"] # [doc = "rolled back."] DelegateCalled { contract : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 8)] # [doc = "Some funds have been transferred and held as storage deposit."] StorageDepositTransferredAndHeld { from : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , to : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 9)] # [doc = "Some storage deposit funds have been transferred and released."] StorageDepositTransferredAndReleased { from : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , to : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum HoldReason { # [codec (index = 0)] CodeUploadDepositReserve , # [codec (index = 1)] StorageDepositReserve , } } pub mod primitives { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Code < _0 > { # [codec (index = 0)] Upload (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 1)] Existing (_0 ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CodeUploadReturnValue < _0 , _1 > { pub code_hash : _0 , pub deposit : _1 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ContractAccessError { # [codec (index = 0)] DoesntExist , # [codec (index = 1)] KeyDecodingFailed , # [codec (index = 2)] MigrationInProgress , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ContractResult < _0 , _1 , _2 > { pub gas_consumed : runtime_types :: sp_weights :: weight_v2 :: Weight , pub gas_required : runtime_types :: sp_weights :: weight_v2 :: Weight , pub storage_deposit : runtime_types :: pallet_contracts :: primitives :: StorageDeposit < _1 > , pub debug_message : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub result : _0 , pub events : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _2 > > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ExecReturnValue { pub flags : runtime_types :: pallet_contracts_uapi :: flags :: ReturnFlags , pub data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InstantiateReturnValue < _0 > { pub result : runtime_types :: pallet_contracts :: primitives :: ExecReturnValue , pub account_id : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum StorageDeposit < _0 > { # [codec (index = 0)] Refund (_0 ,) , # [codec (index = 1)] Charge (_0 ,) , } } pub mod schedule { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InstructionWeights { pub base : :: core :: primitive :: u32 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Limits { pub event_topics : :: core :: primitive :: u32 , pub memory_pages : :: core :: primitive :: u32 , pub subject_len : :: core :: primitive :: u32 , pub payload_len : :: core :: primitive :: u32 , pub runtime_memory : :: core :: primitive :: u32 , pub validator_runtime_memory : :: core :: primitive :: u32 , pub event_ref_time : :: core :: primitive :: u64 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Schedule { pub limits : runtime_types :: pallet_contracts :: schedule :: Limits , pub instruction_weights : runtime_types :: pallet_contracts :: schedule :: InstructionWeights , } } pub mod storage { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ContractInfo { pub trie_id : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub code_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , pub storage_bytes : :: core :: primitive :: u32 , pub storage_items : :: core :: primitive :: u32 , pub storage_byte_deposit : :: core :: primitive :: u64 , pub storage_item_deposit : :: core :: primitive :: u64 , pub storage_base_deposit : :: core :: primitive :: u64 , pub delegate_dependencies : runtime_types :: bounded_collections :: bounded_btree_map :: BoundedBTreeMap < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u64 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DeletionQueueManager { pub insert_counter : :: core :: primitive :: u32 , pub delete_counter : :: core :: primitive :: u32 , } } pub mod wasm { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CodeInfo { pub owner : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , # [codec (compact)] pub deposit : :: core :: primitive :: u64 , # [codec (compact)] pub refcount : :: core :: primitive :: u64 , pub determinism : runtime_types :: pallet_contracts :: wasm :: Determinism , pub code_len : :: core :: primitive :: u32 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Determinism { # [codec (index = 0)] Enforced , # [codec (index = 1)] Relaxed , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ApiVersion (pub :: core :: primitive :: u16 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Environment { pub account_id : runtime_types :: pallet_contracts :: EnvironmentType < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , pub balance : runtime_types :: pallet_contracts :: EnvironmentType < :: core :: primitive :: u64 > , pub hash : runtime_types :: pallet_contracts :: EnvironmentType < :: subxt :: ext :: subxt_core :: utils :: H256 > , pub hasher : runtime_types :: pallet_contracts :: EnvironmentType < runtime_types :: sp_runtime :: traits :: BlakeTwo256 > , pub timestamp : runtime_types :: pallet_contracts :: EnvironmentType < :: core :: primitive :: u64 > , pub block_number : runtime_types :: pallet_contracts :: EnvironmentType < :: core :: primitive :: u32 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EnvironmentType < _0 > (pub :: core :: marker :: PhantomData < _0 >) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Origin < _0 > { # [codec (index = 0)] Root , # [codec (index = 1)] Signed (:: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , __Ignore (:: core :: marker :: PhantomData < _0 >) , } } pub mod pallet_contracts_uapi { use super :: runtime_types ; pub mod flags { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ReturnFlags { pub bits : :: core :: primitive :: u32 , } } } pub mod pallet_crowdloan { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Create a crowdloan that will raise funds up to a maximum cap and if successful,"] # [doc = "will transfer funds to the target address if provided and dispatch the call"] # [doc = "(using creator origin)."] # [doc = ""] # [doc = "The initial deposit will be transfered to the crowdloan account and will be refunded"] # [doc = "in case the crowdloan fails to raise the cap. Additionally, the creator will pay for"] # [doc = "the execution of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `deposit`: The initial deposit from the creator."] # [doc = "- `min_contribution`: The minimum contribution required to contribute to the crowdloan."] # [doc = "- `cap`: The maximum amount of funds that can be raised."] # [doc = "- `end`: The block number at which the crowdloan will end."] # [doc = "- `call`: The call to dispatch when the crowdloan is finalized."] # [doc = "- `target_address`: The address to transfer the raised funds to if provided."] create { # [codec (compact)] deposit : :: core :: primitive :: u64 , # [codec (compact)] min_contribution : :: core :: primitive :: u64 , # [codec (compact)] cap : :: core :: primitive :: u64 , # [codec (compact)] end : :: core :: primitive :: u32 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < :: core :: option :: Option < runtime_types :: node_subtensor_runtime :: RuntimeCall > > , target_address : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , } , # [codec (index = 1)] # [doc = "Contribute to an active crowdloan."] # [doc = ""] # [doc = "The contribution will be transfered to the crowdloan account and will be refunded"] # [doc = "if the crowdloan fails to raise the cap. If the contribution would raise the amount above the cap,"] # [doc = "the contribution will be set to the amount that is left to be raised."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to contribute to."] # [doc = "- `amount`: The amount to contribute."] contribute { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , # [codec (compact)] amount : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Withdraw a contribution from an active (not yet finalized or dissolved) crowdloan."] # [doc = ""] # [doc = "Only contributions over the deposit can be withdrawn by the creator."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to withdraw from."] withdraw { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Finalize crowdloan that has reached the cap."] # [doc = ""] # [doc = "The call will transfer the raised amount to the target address if it was provided when the crowdloan was created"] # [doc = "and dispatch the call that was provided using the creator origin. The CurrentCrowdloanId will be set to the"] # [doc = "crowdloan id being finalized so the dispatched call can access it temporarily by accessing"] # [doc = "the `CurrentCrowdloanId` storage item."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to finalize."] finalize { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "Refund contributors of a non-finalized crowdloan."] # [doc = ""] # [doc = "The call will try to refund all contributors (excluding the creator) up to the limit defined by the `RefundContributorsLimit`."] # [doc = "If the limit is reached, the call will stop and the crowdloan will be marked as partially refunded."] # [doc = "It may be needed to dispatch this call multiple times to refund all contributors."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and doesn't need to be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to refund."] refund { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "Dissolve a crowdloan."] # [doc = ""] # [doc = "The crowdloan will be removed from the storage."] # [doc = "All contributions must have been refunded before the crowdloan can be dissolved (except the creator's one)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to dissolve."] dissolve { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Update the minimum contribution of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the minimum contribution of."] # [doc = "- `new_min_contribution`: The new minimum contribution."] update_min_contribution { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , # [codec (compact)] new_min_contribution : :: core :: primitive :: u64 , } , # [codec (index = 7)] # [doc = "Update the end block of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the end block of."] # [doc = "- `new_end`: The new end block."] update_end { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , # [codec (compact)] new_end : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Update the cap of a non-finalized crowdloan."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the creator of the crowdloan."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `crowdloan_id`: The id of the crowdloan to update the cap of."] # [doc = "- `new_cap`: The new cap."] update_cap { # [codec (compact)] crowdloan_id : :: core :: primitive :: u32 , # [codec (compact)] new_cap : :: core :: primitive :: u64 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The crowdloan initial deposit is too low."] DepositTooLow , # [codec (index = 1)] # [doc = "The crowdloan cap is too low."] CapTooLow , # [codec (index = 2)] # [doc = "The minimum contribution is too low."] MinimumContributionTooLow , # [codec (index = 3)] # [doc = "The crowdloan cannot end in the past."] CannotEndInPast , # [codec (index = 4)] # [doc = "The crowdloan block duration is too short."] BlockDurationTooShort , # [codec (index = 5)] # [doc = "The block duration is too long."] BlockDurationTooLong , # [codec (index = 6)] # [doc = "The account does not have enough balance to pay for the initial deposit/contribution."] InsufficientBalance , # [codec (index = 7)] # [doc = "An overflow occurred."] Overflow , # [codec (index = 8)] # [doc = "The crowdloan id is invalid."] InvalidCrowdloanId , # [codec (index = 9)] # [doc = "The crowdloan cap has been fully raised."] CapRaised , # [codec (index = 10)] # [doc = "The contribution period has ended."] ContributionPeriodEnded , # [codec (index = 11)] # [doc = "The contribution is too low."] ContributionTooLow , # [codec (index = 12)] # [doc = "The origin of this call is invalid."] InvalidOrigin , # [codec (index = 13)] # [doc = "The crowdloan has already been finalized."] AlreadyFinalized , # [codec (index = 14)] # [doc = "The crowdloan contribution period has not ended yet."] ContributionPeriodNotEnded , # [codec (index = 15)] # [doc = "The contributor has no contribution for this crowdloan."] NoContribution , # [codec (index = 16)] # [doc = "The crowdloan cap has not been raised."] CapNotRaised , # [codec (index = 17)] # [doc = "An underflow occurred."] Underflow , # [codec (index = 18)] # [doc = "Call to dispatch was not found in the preimage storage."] CallUnavailable , # [codec (index = 19)] # [doc = "The crowdloan is not ready to be dissolved, it still has contributions."] NotReadyToDissolve , # [codec (index = 20)] # [doc = "The deposit cannot be withdrawn from the crowdloan."] DepositCannotBeWithdrawn , # [codec (index = 21)] # [doc = "The maximum number of contributors has been reached."] MaxContributorsReached , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A crowdloan was created."] Created { crowdloan_id : :: core :: primitive :: u32 , creator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , end : :: core :: primitive :: u32 , cap : :: core :: primitive :: u64 , } , # [codec (index = 1)] # [doc = "A contribution was made to an active crowdloan."] Contributed { crowdloan_id : :: core :: primitive :: u32 , contributor : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "A contribution was withdrawn from a failed crowdloan."] Withdrew { crowdloan_id : :: core :: primitive :: u32 , contributor : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 3)] # [doc = "A refund was partially processed for a failed crowdloan."] PartiallyRefunded { crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 4)] # [doc = "A refund was fully processed for a failed crowdloan."] AllRefunded { crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A crowdloan was finalized, funds were transferred and the call was dispatched."] Finalized { crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "A crowdloan was dissolved."] Dissolved { crowdloan_id : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "The minimum contribution was updated."] MinContributionUpdated { crowdloan_id : :: core :: primitive :: u32 , new_min_contribution : :: core :: primitive :: u64 , } , # [codec (index = 8)] # [doc = "The end was updated."] EndUpdated { crowdloan_id : :: core :: primitive :: u32 , new_end : :: core :: primitive :: u32 , } , # [codec (index = 9)] # [doc = "The cap was updated."] CapUpdated { crowdloan_id : :: core :: primitive :: u32 , new_cap : :: core :: primitive :: u64 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CrowdloanInfo < _0 , _1 , _2 , _3 > { pub creator : _0 , pub deposit : _1 , pub min_contribution : _1 , pub end : _2 , pub cap : _1 , pub funds_account : _0 , pub raised : _1 , pub target_address : :: core :: option :: Option < _0 > , pub call : :: core :: option :: Option < _3 > , pub finalized : :: core :: primitive :: bool , pub contributors_count : :: core :: primitive :: u32 , } } pub mod pallet_drand { use super :: runtime_types ; pub mod drand_priority { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DrandPriority < _0 > (pub :: core :: marker :: PhantomData < _0 >) ; } pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Verify and write a pulse from the beacon into the runtime"] write_pulse { pulses_payload : runtime_types :: pallet_drand :: types :: PulsesPayload < runtime_types :: sp_runtime :: MultiSigner , :: core :: primitive :: u32 > , signature : :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSignature > , } , # [codec (index = 1)] # [doc = "allows the root user to set the beacon configuration"] # [doc = "generally this would be called from an offchain worker context."] # [doc = "there is no verification of configurations, so be careful with this."] # [doc = ""] # [doc = "* `origin`: the root user"] # [doc = "* `config`: the beacon configuration"] set_beacon_config { config_payload : runtime_types :: pallet_drand :: types :: BeaconConfigurationPayload < runtime_types :: sp_runtime :: MultiSigner , :: core :: primitive :: u32 > , signature : :: core :: option :: Option < runtime_types :: sp_runtime :: MultiSignature > , } , # [codec (index = 2)] # [doc = "allows the root user to set the oldest stored round"] set_oldest_stored_round { oldest_round : :: core :: primitive :: u64 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The value retrieved was `None` as no value was previously set."] NoneValue , # [codec (index = 1)] # [doc = "There was an attempt to increment the value in storage over `u32::MAX`."] StorageOverflow , # [codec (index = 2)] # [doc = "failed to connect to the"] DrandConnectionFailure , # [codec (index = 3)] # [doc = "the pulse is invalid"] UnverifiedPulse , # [codec (index = 4)] # [doc = "the round number did not increment"] InvalidRoundNumber , # [codec (index = 5)] # [doc = "the pulse could not be verified"] PulseVerificationError , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Beacon Configuration has changed."] BeaconConfigChanged , # [codec (index = 1)] # [doc = "Successfully set a new pulse(s)."] NewPulse { rounds : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > , } , # [codec (index = 2)] # [doc = "Oldest Stored Round has been set."] SetOldestStoredRound (:: core :: primitive :: u64 ,) , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BeaconConfiguration { pub public_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub period : :: core :: primitive :: u32 , pub genesis_time : :: core :: primitive :: u32 , pub hash : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub group_hash : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub scheme_id : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub metadata : runtime_types :: pallet_drand :: types :: Metadata , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BeaconConfigurationPayload < _0 , _1 > { pub block_number : _1 , pub config : runtime_types :: pallet_drand :: types :: BeaconConfiguration , pub public : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Metadata { pub beacon_id : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Pulse { pub round : :: core :: primitive :: u64 , pub randomness : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub signature : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PulsesPayload < _0 , _1 > { pub block_number : _1 , pub pulses : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_drand :: types :: Pulse > , pub public : _0 , } } } pub mod pallet_ethereum { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Transact an Ethereum transaction."] transact { transaction : runtime_types :: ethereum :: transaction :: TransactionV3 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Signature is invalid."] InvalidSignature , # [codec (index = 1)] # [doc = "Pre-log is present, therefore transact is not allowed."] PreLogExists , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "An ethereum transaction was successfully executed."] Executed { from : :: subxt :: ext :: subxt_core :: utils :: H160 , to : :: subxt :: ext :: subxt_core :: utils :: H160 , transaction_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , exit_reason : runtime_types :: evm_core :: error :: ExitReason , extra_data : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RawOrigin { # [codec (index = 0)] EthereumTransaction (:: subxt :: ext :: subxt_core :: utils :: H160 ,) , } } pub mod pallet_evm { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Withdraw balance from EVM into currency/balances pallet."] withdraw { address : :: subxt :: ext :: subxt_core :: utils :: H160 , value : :: core :: primitive :: u64 , } , # [codec (index = 1)] # [doc = "Issue an EVM call operation. This is similar to a message call transaction in Ethereum."] call { source : :: subxt :: ext :: subxt_core :: utils :: H160 , target : :: subxt :: ext :: subxt_core :: utils :: H160 , input : :: subxt :: ext :: subxt_core :: alloc :: 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 < runtime_types :: primitive_types :: U256 > , access_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > , authorization_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > , } , # [codec (index = 2)] # [doc = "Issue an EVM create operation. This is similar to a contract creation transaction in"] # [doc = "Ethereum."] create { source : :: subxt :: ext :: subxt_core :: utils :: H160 , init : :: subxt :: ext :: subxt_core :: alloc :: 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 < runtime_types :: primitive_types :: U256 > , access_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > , authorization_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > , } , # [codec (index = 3)] # [doc = "Issue an EVM create2 operation."] create2 { source : :: subxt :: ext :: subxt_core :: utils :: H160 , init : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , salt : :: subxt :: ext :: subxt_core :: 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 < runtime_types :: primitive_types :: U256 > , access_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: utils :: H160 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) > , authorization_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: ethereum :: transaction :: eip7702 :: AuthorizationListItem > , } , # [codec (index = 4)] set_whitelist { new : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H160 > , } , # [codec (index = 5)] disable_whitelist { disabled : :: core :: primitive :: bool , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Not enough balance to perform action"] BalanceLow , # [codec (index = 1)] # [doc = "Calculating total fee overflowed"] FeeOverflow , # [codec (index = 2)] # [doc = "Calculating total payment overflowed"] PaymentOverflow , # [codec (index = 3)] # [doc = "Withdraw fee failed"] WithdrawFailed , # [codec (index = 4)] # [doc = "Gas price is too low."] GasPriceTooLow , # [codec (index = 5)] # [doc = "Nonce is invalid"] InvalidNonce , # [codec (index = 6)] # [doc = "Gas limit is too low."] GasLimitTooLow , # [codec (index = 7)] # [doc = "Gas limit is too high."] GasLimitTooHigh , # [codec (index = 8)] # [doc = "The chain id is invalid."] InvalidChainId , # [codec (index = 9)] # [doc = "the signature is invalid."] InvalidSignature , # [codec (index = 10)] # [doc = "EVM reentrancy"] Reentrancy , # [codec (index = 11)] # [doc = "EIP-3607,"] TransactionMustComeFromEOA , # [codec (index = 12)] # [doc = "Undefined error."] Undefined , # [codec (index = 13)] # [doc = "Origin is not allowed to perform the operation."] NotAllowed , # [codec (index = 14)] # [doc = "Address not allowed to deploy contracts either via CREATE or CALL(CREATE)."] CreateOriginNotAllowed , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Ethereum events from contracts."] Log { log : runtime_types :: ethereum :: log :: Log , } , # [codec (index = 1)] # [doc = "A contract has been created at given address."] Created { address : :: subxt :: ext :: subxt_core :: utils :: H160 , } , # [codec (index = 2)] # [doc = "A contract was attempted to be created, but the execution failed."] CreatedFailed { address : :: subxt :: ext :: subxt_core :: utils :: H160 , } , # [codec (index = 3)] # [doc = "A contract has been executed successfully with states applied."] Executed { address : :: subxt :: ext :: subxt_core :: utils :: H160 , } , # [codec (index = 4)] # [doc = "A contract has been executed with errors. States are reverted with only gas fees applied."] ExecutedFailed { address : :: subxt :: ext :: subxt_core :: utils :: H160 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct CodeMetadata { pub size : :: core :: primitive :: u64 , pub hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } } pub mod pallet_grandpa { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] report_equivocation { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > , key_owner_proof : runtime_types :: sp_core :: Void , } , # [codec (index = 1)] # [doc = "Report voter equivocation/misbehavior. This method will verify the"] # [doc = "equivocation proof and validate the given key ownership proof"] # [doc = "against the extracted offender. If both are valid, the offence"] # [doc = "will be reported."] # [doc = ""] # [doc = "This extrinsic must be called unsigned and it is expected that only"] # [doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] # [doc = "if the block author is defined it will be defined as the equivocation"] # [doc = "reporter."] report_equivocation_unsigned { equivocation_proof : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: sp_consensus_grandpa :: EquivocationProof < :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u32 > > , key_owner_proof : runtime_types :: sp_core :: Void , } , # [codec (index = 2)] # [doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] # [doc = ""] # [doc = "This will trigger a forced authority set change at the beginning of the next session, to"] # [doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] # [doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] # [doc = "The block production rate (which may be slowed down because of finality lagging) should"] # [doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] # [doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] # [doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] # [doc = "block of all validators of the new authority set."] # [doc = ""] # [doc = "Only callable by root."] note_stalled { delay : :: core :: primitive :: u32 , best_finalized_block_number : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Attempt to signal GRANDPA pause when the authority set isn't live"] # [doc = "(either paused or already pending pause)."] PauseFailed , # [codec (index = 1)] # [doc = "Attempt to signal GRANDPA resume when the authority set isn't paused"] # [doc = "(either live or already pending resume)."] ResumeFailed , # [codec (index = 2)] # [doc = "Attempt to signal GRANDPA change with one already pending."] ChangePending , # [codec (index = 3)] # [doc = "Cannot signal forced change so soon after last."] TooSoon , # [codec (index = 4)] # [doc = "A key ownership proof provided as part of an equivocation report is invalid."] InvalidKeyOwnershipProof , # [codec (index = 5)] # [doc = "An equivocation proof provided as part of an equivocation report is invalid."] InvalidEquivocationProof , # [codec (index = 6)] # [doc = "A given equivocation report is valid but already previously reported."] DuplicateOffenceReport , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "New authority set has been applied."] NewAuthorities { authority_set : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (runtime_types :: sp_consensus_grandpa :: app :: Public , :: core :: primitive :: u64 ,) > , } , # [codec (index = 1)] # [doc = "Current authority set has been paused."] Paused , # [codec (index = 2)] # [doc = "Current authority set has been resumed."] Resumed , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , :: core :: primitive :: u64 ,) > , pub forced : :: core :: option :: Option < _0 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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_multisig { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "multi-signature, but do not participate in the approval process."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result."] # [doc = ""] # [doc = "## Complexity"] # [doc = "O(Z + C) where Z is the length of the call and C its execution weight."] as_multi_threshold_1 { other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "If there are enough, then dispatch the call."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call`: The call to be executed."] # [doc = ""] # [doc = "NOTE: Unless this is the final approval, you will generally want to use"] # [doc = "`approve_as_multi` instead, since it only requires a hash of the call."] # [doc = ""] # [doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] # [doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] # [doc = "may be found in the deposited `MultisigExecuted` event."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S + Z + Call)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- The weight of the `call`."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = "  taken for its lifetime of `DepositBase + threshold * DepositFactor`."] as_multi { threshold : :: core :: primitive :: u16 , other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , maybe_timepoint : :: core :: option :: Option < runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , max_weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 2)] # [doc = "Register approval for a dispatch to be made from a deterministic composite account if"] # [doc = "approved by a total of `threshold - 1` of `other_signatories`."] # [doc = ""] # [doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] # [doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] # [doc = "is cancelled."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] # [doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] # [doc = "transaction index) of the first approval transaction."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- Up to one binary search and insert (`O(logS + S)`)."] # [doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] # [doc = "- One event."] # [doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] # [doc = "  taken for its lifetime of `DepositBase + threshold * DepositFactor`."] approve_as_multi { threshold : :: core :: primitive :: u16 , other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , maybe_timepoint : :: core :: option :: Option < runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > > , call_hash : [:: core :: primitive :: u8 ; 32usize] , max_weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 3)] # [doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] # [doc = "for this operation will be unreserved on success."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] # [doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] # [doc = "dispatch. May not be empty."] # [doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] # [doc = "transaction for this dispatch."] # [doc = "- `call_hash`: The hash of the call to be executed."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(S)`."] # [doc = "- Up to one balance-reserve or unreserve operation."] # [doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] # [doc = "  signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] # [doc = "- One encode & hash, both of complexity `O(S)`."] # [doc = "- One event."] # [doc = "- I/O: 1 read `O(S)`, one remove."] # [doc = "- Storage: removes one item."] cancel_as_multi { threshold : :: core :: primitive :: u16 , other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , timepoint : runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 4)] # [doc = "Poke the deposit reserved for an existing multisig operation."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and must be the original depositor of"] # [doc = "the multisig operation."] # [doc = ""] # [doc = "The transaction fee is waived if the deposit amount has changed."] # [doc = ""] # [doc = "- `threshold`: The total number of approvals needed for this multisig."] # [doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] # [doc = "  multisig."] # [doc = "- `call_hash`: The hash of the call this deposit is reserved for."] # [doc = ""] # [doc = "Emits `DepositPoked` if successful."] poke_deposit { threshold : :: core :: primitive :: u16 , other_signatories : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Threshold must be 2 or greater."] MinimumThreshold , # [codec (index = 1)] # [doc = "Call is already approved by this signatory."] AlreadyApproved , # [codec (index = 2)] # [doc = "Call doesn't need any (more) approvals."] NoApprovalsNeeded , # [codec (index = 3)] # [doc = "There are too few signatories in the list."] TooFewSignatories , # [codec (index = 4)] # [doc = "There are too many signatories in the list."] TooManySignatories , # [codec (index = 5)] # [doc = "The signatories were provided out of order; they should be ordered."] SignatoriesOutOfOrder , # [codec (index = 6)] # [doc = "The sender was contained in the other signatories; it shouldn't be."] SenderInSignatories , # [codec (index = 7)] # [doc = "Multisig operation not found in storage."] NotFound , # [codec (index = 8)] # [doc = "Only the account that originally created the multisig is able to cancel it or update"] # [doc = "its deposits."] NotOwner , # [codec (index = 9)] # [doc = "No timepoint was given, yet the multisig operation is already underway."] NoTimepoint , # [codec (index = 10)] # [doc = "A different timepoint was given to the multisig operation that is underway."] WrongTimepoint , # [codec (index = 11)] # [doc = "A timepoint was given, yet no multisig operation is underway."] UnexpectedTimepoint , # [codec (index = 12)] # [doc = "The maximum weight information provided was too low."] MaxWeightTooLow , # [codec (index = 13)] # [doc = "The data to be stored is already stored."] AlreadyStored , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A new multisig operation has begun."] NewMultisig { approving : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , multisig : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 1)] # [doc = "A multisig operation has been approved by someone."] MultisigApproval { approving : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , timepoint : runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > , multisig : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 2)] # [doc = "A multisig operation has been executed."] MultisigExecuted { approving : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , timepoint : runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > , multisig : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 3)] # [doc = "A multisig operation has been cancelled."] MultisigCancelled { cancelling : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , timepoint : runtime_types :: pallet_multisig :: Timepoint < :: core :: primitive :: u32 > , multisig : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 4)] # [doc = "The deposit for a multisig operation has been updated/poked."] DepositPoked { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : [:: core :: primitive :: u8 ; 32usize] , old_deposit : :: core :: primitive :: u64 , new_deposit : :: core :: primitive :: u64 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Timepoint < _0 > { pub height : _0 , pub index : :: core :: primitive :: u32 , } } pub mod pallet_preimage { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Register a preimage on-chain."] # [doc = ""] # [doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] # [doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] note_preimage { bytes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Clear an unrequested preimage from the runtime storage."] # [doc = ""] # [doc = "If `len` is provided, then it will be a much cheaper operation."] # [doc = ""] # [doc = "- `hash`: The hash of the preimage to be removed from the store."] # [doc = "- `len`: The length of the preimage of `hash`."] unnote_preimage { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 2)] # [doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] # [doc = ""] # [doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] # [doc = "a user may have paid, and take the control of the preimage out of their hands."] request_preimage { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 3)] # [doc = "Clear a previously made request for a preimage."] # [doc = ""] # [doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] unrequest_preimage { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 4)] # [doc = "Ensure that the bulk of pre-images is upgraded."] # [doc = ""] # [doc = "The caller pays no fee if at least 90% of pre-images were successfully updated."] ensure_updated { hashes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Preimage is too large to store on-chain."] TooBig , # [codec (index = 1)] # [doc = "Preimage has already been noted on-chain."] AlreadyNoted , # [codec (index = 2)] # [doc = "The user is not authorized to perform this action."] NotAuthorized , # [codec (index = 3)] # [doc = "The preimage cannot be removed since it has not yet been noted."] NotNoted , # [codec (index = 4)] # [doc = "A preimage may not be removed when there are outstanding requests."] Requested , # [codec (index = 5)] # [doc = "The preimage request cannot be removed since no outstanding requests exist."] NotRequested , # [codec (index = 6)] # [doc = "More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once."] TooMany , # [codec (index = 7)] # [doc = "Too few hashes were requested to be upgraded (i.e. zero)."] TooFew , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A preimage has been noted."] Noted { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 1)] # [doc = "A preimage has been requested."] Requested { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 2)] # [doc = "A preimage has ben cleared."] Cleared { hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum HoldReason { # [codec (index = 0)] Preimage , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum OldRequestStatus < _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 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RequestStatus < _0 , _1 > { # [codec (index = 0)] Unrequested { ticket : (_0 , _1 ,) , len : :: core :: primitive :: u32 , } , # [codec (index = 1)] Requested { maybe_ticket : :: core :: option :: Option < (_0 , _1 ,) > , count : :: core :: primitive :: u32 , maybe_len : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } } pub mod pallet_registry { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Register an identity for an account. This will overwrite any existing identity."] set_identity { identified : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , info : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: pallet_registry :: types :: IdentityInfo > , } , # [codec (index = 1)] # [doc = "Clear the identity of an account."] clear_identity { identified : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Account attempted to register an identity but does not meet the requirements."] CannotRegister , # [codec (index = 1)] # [doc = "Account passed too many additional fields to their identity"] TooManyFieldsInIdentityInfo , # [codec (index = 2)] # [doc = "Account doesn't have a registered identity"] NotRegistered , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Emitted when a user registers an identity"] IdentitySet { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "Emitted when a user dissolves an identity"] IdentityDissolved { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum HoldReason { # [codec (index = 0)] RegistryIdentity , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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)] Raw33 ([:: core :: primitive :: u8 ; 33usize] ,) , # [codec (index = 35)] Raw34 ([:: core :: primitive :: u8 ; 34usize] ,) , # [codec (index = 36)] Raw35 ([:: core :: primitive :: u8 ; 35usize] ,) , # [codec (index = 37)] Raw36 ([:: core :: primitive :: u8 ; 36usize] ,) , # [codec (index = 38)] Raw37 ([:: core :: primitive :: u8 ; 37usize] ,) , # [codec (index = 39)] Raw38 ([:: core :: primitive :: u8 ; 38usize] ,) , # [codec (index = 40)] Raw39 ([:: core :: primitive :: u8 ; 39usize] ,) , # [codec (index = 41)] Raw40 ([:: core :: primitive :: u8 ; 40usize] ,) , # [codec (index = 42)] Raw41 ([:: core :: primitive :: u8 ; 41usize] ,) , # [codec (index = 43)] Raw42 ([:: core :: primitive :: u8 ; 42usize] ,) , # [codec (index = 44)] Raw43 ([:: core :: primitive :: u8 ; 43usize] ,) , # [codec (index = 45)] Raw44 ([:: core :: primitive :: u8 ; 44usize] ,) , # [codec (index = 46)] Raw45 ([:: core :: primitive :: u8 ; 45usize] ,) , # [codec (index = 47)] Raw46 ([:: core :: primitive :: u8 ; 46usize] ,) , # [codec (index = 48)] Raw47 ([:: core :: primitive :: u8 ; 47usize] ,) , # [codec (index = 49)] Raw48 ([:: core :: primitive :: u8 ; 48usize] ,) , # [codec (index = 50)] Raw49 ([:: core :: primitive :: u8 ; 49usize] ,) , # [codec (index = 51)] Raw50 ([:: core :: primitive :: u8 ; 50usize] ,) , # [codec (index = 52)] Raw51 ([:: core :: primitive :: u8 ; 51usize] ,) , # [codec (index = 53)] Raw52 ([:: core :: primitive :: u8 ; 52usize] ,) , # [codec (index = 54)] Raw53 ([:: core :: primitive :: u8 ; 53usize] ,) , # [codec (index = 55)] Raw54 ([:: core :: primitive :: u8 ; 54usize] ,) , # [codec (index = 56)] Raw55 ([:: core :: primitive :: u8 ; 55usize] ,) , # [codec (index = 57)] Raw56 ([:: core :: primitive :: u8 ; 56usize] ,) , # [codec (index = 58)] Raw57 ([:: core :: primitive :: u8 ; 57usize] ,) , # [codec (index = 59)] Raw58 ([:: core :: primitive :: u8 ; 58usize] ,) , # [codec (index = 60)] Raw59 ([:: core :: primitive :: u8 ; 59usize] ,) , # [codec (index = 61)] Raw60 ([:: core :: primitive :: u8 ; 60usize] ,) , # [codec (index = 62)] Raw61 ([:: core :: primitive :: u8 ; 61usize] ,) , # [codec (index = 63)] Raw62 ([:: core :: primitive :: u8 ; 62usize] ,) , # [codec (index = 64)] Raw63 ([:: core :: primitive :: u8 ; 63usize] ,) , # [codec (index = 65)] Raw64 ([:: core :: primitive :: u8 ; 64usize] ,) , # [codec (index = 66)] BlakeTwo256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 67)] Sha256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 68)] Keccak256 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 69)] ShaThree256 ([:: core :: primitive :: u8 ; 32usize] ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct IdentityInfo { pub additional : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < (runtime_types :: pallet_registry :: types :: Data , runtime_types :: pallet_registry :: types :: Data ,) > , pub display : runtime_types :: pallet_registry :: types :: Data , pub legal : runtime_types :: pallet_registry :: types :: Data , pub web : runtime_types :: pallet_registry :: types :: Data , pub riot : runtime_types :: pallet_registry :: types :: Data , pub email : runtime_types :: pallet_registry :: types :: Data , pub pgp_fingerprint : :: core :: option :: Option < [:: core :: primitive :: u8 ; 20usize] > , pub image : runtime_types :: pallet_registry :: types :: Data , pub twitter : runtime_types :: pallet_registry :: types :: Data , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Registration < _0 > { pub deposit : _0 , pub info : runtime_types :: pallet_registry :: types :: IdentityInfo , } } } pub mod pallet_safe_mode { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Enter safe-mode permissionlessly for [`Config::EnterDuration`] blocks."] # [doc = ""] # [doc = "Reserves [`Config::EnterDepositAmount`] from the caller's account."] # [doc = "Emits an [`Event::Entered`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is already entered."] # [doc = "Errors with [`Error::NotConfigured`] if the deposit amount is `None`."] enter , # [codec (index = 1)] # [doc = "Enter safe-mode by force for a per-origin configured number of blocks."] # [doc = ""] # [doc = "Emits an [`Event::Entered`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is already entered."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceEnterOrigin`] origin."] force_enter , # [codec (index = 2)] # [doc = "Extend the safe-mode permissionlessly for [`Config::ExtendDuration`] blocks."] # [doc = ""] # [doc = "This accumulates on top of the current remaining duration."] # [doc = "Reserves [`Config::ExtendDepositAmount`] from the caller's account."] # [doc = "Emits an [`Event::Extended`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is entered."] # [doc = "Errors with [`Error::NotConfigured`] if the deposit amount is `None`."] # [doc = ""] # [doc = "This may be called by any signed origin with [`Config::ExtendDepositAmount`] free"] # [doc = "currency to reserve. This call can be disabled for all origins by configuring"] # [doc = "[`Config::ExtendDepositAmount`] to `None`."] extend , # [codec (index = 3)] # [doc = "Extend the safe-mode by force for a per-origin configured number of blocks."] # [doc = ""] # [doc = "Emits an [`Event::Extended`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is inactive."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceExtendOrigin`] origin."] force_extend , # [codec (index = 4)] # [doc = "Exit safe-mode by force."] # [doc = ""] # [doc = "Emits an [`Event::Exited`] with [`ExitReason::Force`] event on success."] # [doc = "Errors with [`Error::Exited`] if the safe-mode is inactive."] # [doc = ""] # [doc = "Note: `safe-mode` will be automatically deactivated by [`Pallet::on_initialize`] hook"] # [doc = "after the block height is greater than the [`EnteredUntil`] storage item."] # [doc = "Emits an [`Event::Exited`] with [`ExitReason::Timeout`] event when deactivated in the"] # [doc = "hook."] force_exit , # [codec (index = 5)] # [doc = "Slash a deposit for an account that entered or extended safe-mode at a given"] # [doc = "historical block."] # [doc = ""] # [doc = "This can only be called while safe-mode is entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositSlashed`] event on success."] # [doc = "Errors with [`Error::Entered`] if safe-mode is entered."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceDepositOrigin`] origin."] force_slash_deposit { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , block : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Permissionlessly release a deposit for an account that entered safe-mode at a"] # [doc = "given historical block."] # [doc = ""] # [doc = "The call can be completely disabled by setting [`Config::ReleaseDelay`] to `None`."] # [doc = "This cannot be called while safe-mode is entered and not until"] # [doc = "[`Config::ReleaseDelay`] blocks have passed since safe-mode was entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositReleased`] event on success."] # [doc = "Errors with [`Error::Entered`] if the safe-mode is entered."] # [doc = "Errors with [`Error::CannotReleaseYet`] if [`Config::ReleaseDelay`] block have not"] # [doc = "passed since safe-mode was entered. Errors with [`Error::NoDeposit`] if the payee has no"] # [doc = "reserved currency at the block specified."] release_deposit { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , block : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Force to release a deposit for an account that entered safe-mode at a given"] # [doc = "historical block."] # [doc = ""] # [doc = "This can be called while safe-mode is still entered."] # [doc = ""] # [doc = "Emits a [`Event::DepositReleased`] event on success."] # [doc = "Errors with [`Error::Entered`] if safe-mode is entered."] # [doc = "Errors with [`Error::NoDeposit`] if the payee has no reserved currency at the"] # [doc = "specified block."] # [doc = ""] # [doc = "Can only be called by the [`Config::ForceDepositOrigin`] origin."] force_release_deposit { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , block : :: core :: primitive :: u32 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The safe-mode is (already or still) entered."] Entered , # [codec (index = 1)] # [doc = "The safe-mode is (already or still) exited."] Exited , # [codec (index = 2)] # [doc = "This functionality of the pallet is disabled by the configuration."] NotConfigured , # [codec (index = 3)] # [doc = "There is no balance reserved."] NoDeposit , # [codec (index = 4)] # [doc = "The account already has a deposit reserved and can therefore not enter or extend again."] AlreadyDeposited , # [codec (index = 5)] # [doc = "This deposit cannot be released yet."] CannotReleaseYet , # [codec (index = 6)] # [doc = "An error from the underlying `Currency`."] CurrencyError , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "The safe-mode was entered until inclusively this block."] Entered { until : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "The safe-mode was extended until inclusively this block."] Extended { until : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Exited the safe-mode for a specific reason."] Exited { reason : runtime_types :: pallet_safe_mode :: pallet :: ExitReason , } , # [codec (index = 3)] # [doc = "An account reserved funds for either entering or extending the safe-mode."] DepositPlaced { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 4)] # [doc = "An account had a reserve released that was reserved."] DepositReleased { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 5)] # [doc = "An account had reserve slashed that was reserved."] DepositSlashed { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , } , # [codec (index = 6)] # [doc = "Could not hold funds for entering or extending the safe-mode."] # [doc = ""] # [doc = "This error comes from the underlying `Currency`."] CannotDeposit , # [codec (index = 7)] # [doc = "Could not release funds for entering or extending the safe-mode."] # [doc = ""] # [doc = "This error comes from the underlying `Currency`."] CannotRelease , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ExitReason { # [codec (index = 0)] Timeout , # [codec (index = 1)] Force , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum HoldReason { # [codec (index = 0)] EnterOrExtend , } } } pub mod pallet_scheduler { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Anonymously schedule a task."] schedule { when : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Cancel an anonymously scheduled task."] cancel { when : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Schedule a named task."] schedule_named { id : [:: core :: primitive :: u8 ; 32usize] , when : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 3)] # [doc = "Cancel a named scheduled task."] cancel_named { id : [:: core :: primitive :: u8 ; 32usize] , } , # [codec (index = 4)] # [doc = "Anonymously schedule a task after a delay."] schedule_after { after : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 5)] # [doc = "Schedule a named task after a delay."] schedule_named_after { id : [:: core :: primitive :: u8 ; 32usize] , after : :: core :: primitive :: u32 , maybe_periodic : :: core :: option :: Option < (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) > , priority : :: core :: primitive :: u8 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 6)] # [doc = "Set a retry configuration for a task so that, in case its scheduled run fails, it will"] # [doc = "be retried after `period` blocks, for a total amount of `retries` retries or until it"] # [doc = "succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] set_retry { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , retries : :: core :: primitive :: u8 , period : :: core :: primitive :: u32 , } , # [codec (index = 7)] # [doc = "Set a retry configuration for a named task so that, in case its scheduled run fails, it"] # [doc = "will be retried after `period` blocks, for a total amount of `retries` retries or until"] # [doc = "it succeeds."] # [doc = ""] # [doc = "Tasks which need to be scheduled for a retry are still subject to weight metering and"] # [doc = "agenda space, same as a regular task. If a periodic task fails, it will be scheduled"] # [doc = "normally while the task is retrying."] # [doc = ""] # [doc = "Tasks scheduled as a result of a retry for a periodic task are unnamed, non-periodic"] # [doc = "clones of the original task. Their retry configuration will be derived from the"] # [doc = "original task's configuration, but will have a lower value for `remaining` than the"] # [doc = "original `total_retries`."] set_retry_named { id : [:: core :: primitive :: u8 ; 32usize] , retries : :: core :: primitive :: u8 , period : :: core :: primitive :: u32 , } , # [codec (index = 8)] # [doc = "Removes the retry configuration of a task."] cancel_retry { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , } , # [codec (index = 9)] # [doc = "Cancel the retry configuration of a named task."] cancel_retry_named { id : [:: core :: primitive :: u8 ; 32usize] , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Failed to schedule a call"] FailedToSchedule , # [codec (index = 1)] # [doc = "Cannot find the scheduled call."] NotFound , # [codec (index = 2)] # [doc = "Given target block number is in the past."] TargetBlockNumberInPast , # [codec (index = 3)] # [doc = "Reschedule failed because it does not change scheduled time."] RescheduleNoChange , # [codec (index = 4)] # [doc = "Attempt to use a non-named function on a named task."] Named , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Events type."] pub enum Event { # [codec (index = 0)] # [doc = "Scheduled some task."] Scheduled { when : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , } , # [codec (index = 1)] # [doc = "Canceled some task."] Canceled { when : :: core :: primitive :: u32 , index : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Dispatched some task."] Dispatched { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 3)] # [doc = "Set a retry configuration for some task."] RetrySet { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , period : :: core :: primitive :: u32 , retries : :: core :: primitive :: u8 , } , # [codec (index = 4)] # [doc = "Cancel a retry configuration for some task."] RetryCancelled { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 5)] # [doc = "The call for the provided hash was not found so the task has been aborted."] CallUnavailable { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 6)] # [doc = "The given task was unable to be renewed since the agenda is full at that block."] PeriodicFailed { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 7)] # [doc = "The given task was unable to be retried since the agenda is full at that block or there"] # [doc = "was not enough weight to reschedule it."] RetryFailed { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 8)] # [doc = "The given task can never be executed since it is overweight."] PermanentlyOverweight { task : (:: core :: primitive :: u32 , :: core :: primitive :: u32 ,) , id : :: core :: option :: Option < [:: core :: primitive :: u8 ; 32usize] > , } , # [codec (index = 9)] # [doc = "Agenda is incomplete from `when`."] AgendaIncomplete { when : :: core :: primitive :: u32 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RetryConfig < _0 > { pub total_retries : :: core :: primitive :: u8 , pub remaining : :: core :: primitive :: u8 , pub period : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , _2 ,) > , pub origin : _3 , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _4 > } } pub mod pallet_shield { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Announce the ML‑KEM public key that will become `CurrentKey` in"] # [doc = "the following block."] announce_next_key { public_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 1)] # [doc = "Users submit an encrypted wrapper."] # [doc = ""] # [doc = "Client‑side:"] # [doc = ""] # [doc = "  1. Read `NextKey` (ML‑KEM public key bytes) from storage."] # [doc = "  2. Sign your extrinsic so that it can be executed when added to the pool,"] # [doc = "       i.e. you may need to increment the nonce if you submit using the same account."] # [doc = "  3. `commitment = Hashing::hash(signed_extrinsic)`."] # [doc = "  4. Encrypt:"] # [doc = ""] # [doc = "       plaintext = signed_extrinsic"] # [doc = ""] # [doc = "     with ML‑KEM‑768 + XChaCha20‑Poly1305, producing"] # [doc = ""] # [doc = "       ciphertext = [u16 kem_len] || kem_ct || nonce24 || aead_ct"] # [doc = ""] submit_encrypted { commitment : :: subxt :: ext :: subxt_core :: utils :: H256 , ciphertext : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , # [codec (index = 3)] # [doc = "Marks a submission as failed to decrypt and removes it from storage."] # [doc = ""] # [doc = "Called by the block author when decryption fails at any stage (e.g., ML-KEM decapsulate"] # [doc = "failed, AEAD decrypt failed, invalid ciphertext format, etc.). This allows clients to be"] # [doc = "notified of decryption failures through on-chain events."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `id` - The wrapper id (hash of (author, commitment, ciphertext))"] # [doc = "* `reason` - Human-readable reason for the decryption failure (e.g., \"ML-KEM decapsulate failed\")"] mark_decryption_failed { id : :: subxt :: ext :: subxt_core :: utils :: H256 , reason : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "A submission with the same id already exists in `Submissions`."] SubmissionAlreadyExists , # [codec (index = 1)] # [doc = "The referenced submission id does not exist in `Submissions`."] MissingSubmission , # [codec (index = 2)] # [doc = "The recomputed commitment does not match the stored commitment."] CommitmentMismatch , # [codec (index = 3)] # [doc = "The provided signature over the payload is invalid."] SignatureInvalid , # [codec (index = 4)] # [doc = "The announced ML‑KEM public key length is invalid."] BadPublicKeyLen , # [codec (index = 5)] # [doc = "The MEV‑Shield key epoch for this submission has expired and is no longer accepted."] KeyExpired , # [codec (index = 6)] # [doc = "The provided `key_hash` does not match the expected epoch key hash."] KeyHashMismatch , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Encrypted wrapper accepted."] EncryptedSubmitted { id : :: subxt :: ext :: subxt_core :: utils :: H256 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 1)] # [doc = "Decrypted call executed."] DecryptedExecuted { id : :: subxt :: ext :: subxt_core :: utils :: H256 , signer : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 2)] # [doc = "Decrypted execution rejected."] DecryptedRejected { id : :: subxt :: ext :: subxt_core :: utils :: H256 , reason : runtime_types :: sp_runtime :: DispatchErrorWithPostInfo < runtime_types :: frame_support :: dispatch :: PostDispatchInfo > , } , # [codec (index = 3)] # [doc = "Decryption failed - validator could not decrypt the submission."] DecryptionFailed { id : :: subxt :: ext :: subxt_core :: utils :: H256 , reason : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Submission < _0 , _1 , _2 > { pub author : _0 , pub commitment : _2 , pub ciphertext : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub submitted_in : _1 , } } } pub mod pallet_subtensor { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct AxonInfo { pub block : :: core :: primitive :: u64 , pub version : :: core :: primitive :: u32 , pub ip : :: core :: primitive :: u128 , pub port : :: core :: primitive :: u16 , pub ip_type : :: core :: primitive :: u8 , pub protocol : :: core :: primitive :: u8 , pub placeholder1 : :: core :: primitive :: u8 , pub placeholder2 : :: core :: primitive :: u8 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Dispatchable functions allow users to interact with the pallet and invoke state changes."] # [doc = "These functions materialize as \"extrinsics\", which are often compared to transactions."] # [doc = "Dispatchable functions must be annotated with a weight and must return a DispatchResult."] pub enum Call { # [codec (index = 0)] # [doc = "--- Sets the caller weights for the incentive mechanism. The call can be"] # [doc = "made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."] set_weights { netuid : :: core :: primitive :: u16 , dests : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , weights : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , version_key : :: core :: primitive :: u64 , } , # [codec (index = 119)] # [doc = "--- Sets the caller weights for the incentive mechanism for mechanisms. The call"] # [doc = "can be made from the hotkey account so is potentially insecure, however, the damage"] # [doc = "of changing weights is minimal if caught early. This function includes all the"] # [doc = "checks that the passed weights meet the requirements. Stored as u16s they represent"] # [doc = "rational values in the range [0,1] which sum to 1 and can be interpreted as"] # [doc = "probabilities. The specific weights determine how inflation propagates outward"] # [doc = "from this peer."] # [doc = ""] # [doc = "Note: The 16 bit integers weights should represent 1.0 as the max u16."] # [doc = "However, the function normalizes all integers to u16_max anyway. This means that if the sum of all"] # [doc = "elements is larger or smaller than the amount of elements * u16_max, all elements"] # [doc = "will be corrected for this deviation."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "\t- The network uid we are setting these weights on."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechnism identifier."] # [doc = ""] # [doc = "* `dests` (Vec<u16>):"] # [doc = "\t- The edge endpoint for the weight, i.e. j for w_ij."] # [doc = ""] # [doc = "* 'weights' (Vec<u16>):"] # [doc = "\t- The u16 integer encoded weights. Interpreted as rational"] # [doc = "    values in the range [0,1]. They must sum to in32::MAX."] # [doc = ""] # [doc = "* 'version_key' ( u64 ):"] # [doc = "\t- The network version key to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'WeightVecNotEqualSize':"] # [doc = "\t- Attempting to set weights with uids not of same length."] # [doc = ""] # [doc = "* 'DuplicateUids':"] # [doc = "\t- Attempting to set weights with duplicate uids."] # [doc = ""] # [doc = "    * 'UidsLengthExceedUidsInSubNet':"] # [doc = "\t- Attempting to set weights above the max allowed uids."] # [doc = ""] # [doc = "* 'UidVecContainInvalidOne':"] # [doc = "\t- Attempting to set weights with invalid uids."] # [doc = ""] # [doc = "* 'WeightVecLengthIsLow':"] # [doc = "\t- Attempting to set weights with fewer weights than min."] # [doc = ""] # [doc = "* 'MaxWeightExceeded':"] # [doc = "\t- Attempting to set weights with max value exceeding limit."] set_mechanism_weights { netuid : :: core :: primitive :: u16 , mecid : :: core :: primitive :: u8 , dests : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , weights : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , version_key : :: core :: primitive :: u64 , } , # [codec (index = 80)] # [doc = "--- Allows a hotkey to set weights for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `weights` (Vec<Vec<(Compact<u16>, Compact<u16>)>):"] # [doc = "\t- The weights to set for each network. [(uid, weight), ...]"] # [doc = ""] # [doc = "* `version_keys` (Vec<Compact<u64>>):"] # [doc = "\t- The network version keys to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] batch_set_weights { netuids : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , weights : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > > , version_keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , } , # [codec (index = 96)] # [doc = "---- Used to commit a hash of your weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit_hash` (`H256`):"] # [doc = "  - The hash representing the committed weights."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] commit_weights { netuid : :: core :: primitive :: u16 , commit_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 115)] # [doc = "---- Used to commit a hash of your weight values to later be revealed for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit_hash` (`H256`):"] # [doc = "  - The hash representing the committed weights."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] commit_mechanism_weights { netuid : :: core :: primitive :: u16 , mecid : :: core :: primitive :: u8 , commit_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 100)] # [doc = "--- Allows a hotkey to commit weight hashes for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `commit_hashes` (Vec<H256>):"] # [doc = "\t- The commit hashes to commit."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] batch_commit_weights { netuids : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , commit_hashes : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > , } , # [codec (index = 97)] # [doc = "---- Used to reveal the weights for a previously committed hash."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `uids` (`Vec<u16>`):"] # [doc = "  - The uids for the weights being revealed."] # [doc = ""] # [doc = "* `values` (`Vec<u16>`):"] # [doc = "  - The values of the weights being revealed."] # [doc = ""] # [doc = "* `salt` (`Vec<u16>`):"] # [doc = "  - The salt used to generate the commit hash."] # [doc = ""] # [doc = "* `version_key` (`u64`):"] # [doc = "  - The network version key."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] reveal_weights { netuid : :: core :: primitive :: u16 , uids : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , values : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , salt : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , version_key : :: core :: primitive :: u64 , } , # [codec (index = 116)] # [doc = "---- Used to reveal the weights for a previously committed hash for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `uids` (`Vec<u16>`):"] # [doc = "  - The uids for the weights being revealed."] # [doc = ""] # [doc = "* `values` (`Vec<u16>`):"] # [doc = "  - The values of the weights being revealed."] # [doc = ""] # [doc = "* `salt` (`Vec<u16>`):"] # [doc = "  - The salt used to generate the commit hash."] # [doc = ""] # [doc = "* `version_key` (`u64`):"] # [doc = "  - The network version key."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] reveal_mechanism_weights { netuid : :: core :: primitive :: u16 , mecid : :: core :: primitive :: u8 , uids : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , values : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , salt : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , version_key : :: core :: primitive :: u64 , } , # [codec (index = 117)] # [doc = "---- Used to commit encrypted commit-reveal v3 weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealV3Disabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] # [doc = "---- Used to commit encrypted commit-reveal v3 weight values to later be revealed for mechanisms."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealV3Disabled`:"] # [doc = "  - Attempting to commit when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `TooManyUnrevealedCommits`:"] # [doc = "  - Attempting to commit when the user has more than the allowed limit of unrevealed commits."] # [doc = ""] commit_crv3_mechanism_weights { netuid : :: core :: primitive :: u16 , mecid : :: core :: primitive :: u8 , commit : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , reveal_round : :: core :: primitive :: u64 , } , # [codec (index = 98)] # [doc = "---- The implementation for batch revealing committed weights."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The signature of the revealing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `uids_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of uids for each set of weights being revealed."] # [doc = ""] # [doc = "* `values_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of values for each set of weights being revealed."] # [doc = ""] # [doc = "* `salts_list` (`Vec<Vec<u16>>`):"] # [doc = "  - A list of salts used to generate the commit hashes."] # [doc = ""] # [doc = "* `version_keys` (`Vec<u64>`):"] # [doc = "  - A list of network version keys."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `CommitRevealDisabled`:"] # [doc = "  - Attempting to reveal weights when the commit-reveal mechanism is disabled."] # [doc = ""] # [doc = "* `NoWeightsCommitFound`:"] # [doc = "  - Attempting to reveal weights without an existing commit."] # [doc = ""] # [doc = "* `ExpiredWeightCommit`:"] # [doc = "  - Attempting to reveal a weight commit that has expired."] # [doc = ""] # [doc = "* `RevealTooEarly`:"] # [doc = "  - Attempting to reveal weights outside the valid reveal period."] # [doc = ""] # [doc = "* `InvalidRevealCommitHashNotMatch`:"] # [doc = "  - The revealed hash does not match any committed hash."] # [doc = ""] # [doc = "* `InvalidInputLengths`:"] # [doc = "  - The input vectors are of mismatched lengths."] batch_reveal_weights { netuid : :: core :: primitive :: u16 , uids_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > , values_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > , salts_list : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > > , version_keys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > , } , # [codec (index = 65)] # [doc = "--- Allows delegates to decrease its take value."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>::Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The hotkey we are delegating (must be owned by the coldkey.)"] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- Subnet ID to decrease take for"] # [doc = ""] # [doc = "* 'take' (u16):"] # [doc = "\t- The new stake proportion that this hotkey takes from delegations."] # [doc = "       The new value can be between 0 and 11_796 and should be strictly"] # [doc = "       lower than the previous value. It T is the new value (rational number),"] # [doc = "       the the parameter is calculated as [65535 * T]. For example, 1% would be"] # [doc = "       [0.01 * 65535] = [655.35] = 655"] # [doc = ""] # [doc = "# Event:"] # [doc = "* TakeDecreased;"] # [doc = "\t- On successfully setting a decreased take for this hotkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- The hotkey we are delegating is not registered on the network."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- The hotkey we are delegating is not owned by the calling coldkey."] # [doc = ""] # [doc = "* 'DelegateTakeTooLow':"] # [doc = "\t- The delegate is setting a take which is not lower than the previous."] # [doc = ""] decrease_take { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , take : :: core :: primitive :: u16 , } , # [codec (index = 66)] # [doc = "--- Allows delegates to increase its take value. This call is rate-limited."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>::Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The hotkey we are delegating (must be owned by the coldkey.)"] # [doc = ""] # [doc = "* 'take' (u16):"] # [doc = "\t- The new stake proportion that this hotkey takes from delegations."] # [doc = "       The new value can be between 0 and 11_796 and should be strictly"] # [doc = "       greater than the previous value. T is the new value (rational number),"] # [doc = "       the the parameter is calculated as [65535 * T]. For example, 1% would be"] # [doc = "       [0.01 * 65535] = [655.35] = 655"] # [doc = ""] # [doc = "# Event:"] # [doc = "* TakeIncreased;"] # [doc = "\t- On successfully setting a increased take for this hotkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- The hotkey we are delegating is not registered on the network."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- The hotkey we are delegating is not owned by the calling coldkey."] # [doc = ""] # [doc = "* 'DelegateTakeTooHigh':"] # [doc = "\t- The delegate is setting a take which is not greater than the previous."] # [doc = ""] increase_take { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , take : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "--- Adds stake to a hotkey. The call is made from a coldkey account."] # [doc = "This delegates stake to the hotkey."] # [doc = ""] # [doc = "Note: the coldkey account may own the hotkey, in which case they are"] # [doc = "delegating to themselves."] # [doc = ""] # [doc = "# Args:"] # [doc = " * 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = " * 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = " * 'amount_staked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = "# Event:"] # [doc = " * StakeAdded;"] # [doc = "\t- On the successfully adding stake to a global account."] # [doc = ""] # [doc = "# Raises:"] # [doc = " * 'NotEnoughBalanceToStake':"] # [doc = "\t- Not enough balance on the coldkey to add onto the global account."] # [doc = ""] # [doc = " * 'NonAssociatedColdKey':"] # [doc = "\t- The calling coldkey is not associated with this hotkey."] # [doc = ""] # [doc = " * 'BalanceWithdrawalError':"] # [doc = " \t- Errors stemming from transaction pallet."] # [doc = ""] add_stake { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , amount_staked : :: core :: primitive :: u64 , } , # [codec (index = 3)] # [doc = "Remove stake from the staking account. The call must be made"] # [doc = "from the coldkey account attached to the neuron metadata. Only this key"] # [doc = "has permission to make staking and unstaking requests."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = "* 'amount_unstaked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "\t- On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* 'NotEnoughStakeToWithdraw':"] # [doc = "\t- Thrown if there is not enough stake on the hotkey to withdwraw this amount."] # [doc = ""] remove_stake { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , amount_unstaked : :: core :: primitive :: u64 , } , # [codec (index = 4)] # [doc = "Serves or updates axon /prometheus information for the neuron associated with the caller. If the caller is"] # [doc = "already registered the metadata is updated. If the caller is not registered this call throws NotRegistered."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u64):"] # [doc = "\t- The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u64):"] # [doc = "\t- The endpoint ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The endpoint port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The endpoint ip version as a u8, 4 or 6."] # [doc = ""] # [doc = "* 'protocol' (u8):"] # [doc = "\t- UDP:1 or TCP:0"] # [doc = ""] # [doc = "* 'placeholder1' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'placeholder2' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "# Event:"] # [doc = "* AxonServed;"] # [doc = "\t- On successfully serving the axon info."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'InvalidIpType':"] # [doc = "\t- The ip type is not 4 or 6."] # [doc = ""] # [doc = "* 'InvalidIpAddress':"] # [doc = "\t- The numerically encoded ip address does not resolve to a proper ip."] # [doc = ""] # [doc = "* 'ServingRateLimitExceeded':"] # [doc = "\t- Attempting to set prometheus information withing the rate limit min."] # [doc = ""] serve_axon { netuid : :: core :: primitive :: u16 , version : :: core :: primitive :: u32 , ip : :: core :: primitive :: u128 , port : :: core :: primitive :: u16 , ip_type : :: core :: primitive :: u8 , protocol : :: core :: primitive :: u8 , placeholder1 : :: core :: primitive :: u8 , placeholder2 : :: core :: primitive :: u8 , } , # [codec (index = 40)] # [doc = "Same as `serve_axon` but takes a certificate as an extra optional argument."] # [doc = "Serves or updates axon /prometheus information for the neuron associated with the caller. If the caller is"] # [doc = "already registered the metadata is updated. If the caller is not registered this call throws NotRegistered."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u64):"] # [doc = "\t- The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u64):"] # [doc = "\t- The endpoint ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The endpoint port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The endpoint ip version as a u8, 4 or 6."] # [doc = ""] # [doc = "* 'protocol' (u8):"] # [doc = "\t- UDP:1 or TCP:0"] # [doc = ""] # [doc = "* 'placeholder1' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'placeholder2' (u8):"] # [doc = "\t- Placeholder for further extra params."] # [doc = ""] # [doc = "* 'certificate' (Vec<u8>):"] # [doc = "    - TLS certificate for inter neuron communitation."] # [doc = ""] # [doc = "# Event:"] # [doc = "* AxonServed;"] # [doc = "\t- On successfully serving the axon info."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to set weights on a non-existent network."] # [doc = ""] # [doc = "* 'NotRegistered':"] # [doc = "\t- Attempting to set weights from a non registered account."] # [doc = ""] # [doc = "* 'InvalidIpType':"] # [doc = "\t- The ip type is not 4 or 6."] # [doc = ""] # [doc = "* 'InvalidIpAddress':"] # [doc = "\t- The numerically encoded ip address does not resolve to a proper ip."] # [doc = ""] # [doc = "* 'ServingRateLimitExceeded':"] # [doc = "\t- Attempting to set prometheus information withing the rate limit min."] # [doc = ""] serve_axon_tls { netuid : :: core :: primitive :: u16 , version : :: core :: primitive :: u32 , ip : :: core :: primitive :: u128 , port : :: core :: primitive :: u16 , ip_type : :: core :: primitive :: u8 , protocol : :: core :: primitive :: u8 , placeholder1 : :: core :: primitive :: u8 , placeholder2 : :: core :: primitive :: u8 , certificate : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 5)] # [doc = "---- Set prometheus information for the neuron."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u16):"] # [doc = "\t-  The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u128):"] # [doc = "\t- The prometheus ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The prometheus port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The ip type v4 or v6."] # [doc = ""] serve_prometheus { netuid : :: core :: primitive :: u16 , version : :: core :: primitive :: u32 , ip : :: core :: primitive :: u128 , port : :: core :: primitive :: u16 , ip_type : :: core :: primitive :: u8 , } , # [codec (index = 6)] # [doc = "---- Registers a new neuron to the subnetwork."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'block_number' ( u64 ):"] # [doc = "\t- Block hash used to prove work done."] # [doc = ""] # [doc = "* 'nonce' ( u64 ):"] # [doc = "\t- Positive integer nonce used in POW."] # [doc = ""] # [doc = "* 'work' ( Vec<u8> ):"] # [doc = "\t- Vector encoded bytes representing work done."] # [doc = ""] # [doc = "* 'hotkey' ( T::AccountId ):"] # [doc = "\t- Hotkey to be registered to the network."] # [doc = ""] # [doc = "* 'coldkey' ( T::AccountId ):"] # [doc = "\t- Associated coldkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* NeuronRegistered;"] # [doc = "\t- On successfully registering a uid to a neuron slot on a subnetwork."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'MechanismDoesNotExist':"] # [doc = "\t- Attempting to register to a non existent network."] # [doc = ""] # [doc = "* 'TooManyRegistrationsThisBlock':"] # [doc = "\t- This registration exceeds the total allowed on this network this block."] # [doc = ""] # [doc = "* 'HotKeyAlreadyRegisteredInSubNet':"] # [doc = "\t- The hotkey is already registered on this network."] # [doc = ""] # [doc = "* 'InvalidWorkBlock':"] # [doc = "\t- The work has been performed on a stale, future, or non existent block."] # [doc = ""] # [doc = "* 'InvalidDifficulty':"] # [doc = "\t- The work does not match the difficulty."] # [doc = ""] # [doc = "* 'InvalidSeal':"] # [doc = "\t- The seal is incorrect."] # [doc = ""] register { netuid : :: core :: primitive :: u16 , block_number : :: core :: primitive :: u64 , nonce : :: core :: primitive :: u64 , work : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 62)] # [doc = "Register the hotkey to root network"] root_register { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 7)] # [doc = "User register a new subnetwork via burning token"] burned_register { netuid : :: core :: primitive :: u16 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 70)] # [doc = "The extrinsic for user to change its hotkey in subnet or all subnets."] swap_hotkey { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: option :: Option < :: core :: primitive :: u16 > , } , # [codec (index = 71)] # [doc = "The extrinsic for user to change the coldkey associated with their account."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - The origin of the call, must be signed by the old coldkey."] # [doc = "* `old_coldkey` - The current coldkey associated with the account."] # [doc = "* `new_coldkey` - The new coldkey to be associated with the account."] # [doc = ""] # [doc = "# Returns"] # [doc = ""] # [doc = "Returns a `DispatchResultWithPostInfo` indicating success or failure of the operation."] # [doc = ""] # [doc = "# Weight"] # [doc = ""] # [doc = "Weight is calculated based on the number of database reads and writes."] swap_coldkey { old_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , swap_cost : :: core :: primitive :: u64 , } , # [codec (index = 75)] # [doc = "Sets the childkey take for a given hotkey."] # [doc = ""] # [doc = "This function allows a coldkey to set the childkey take for a given hotkey."] # [doc = "The childkey take determines the proportion of stake that the hotkey keeps for itself"] # [doc = "when distributing stake to its children."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` (<T as frame_system::Config>::RuntimeOrigin):"] # [doc = "    - The signature of the calling coldkey. Setting childkey take can only be done by the coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey for which the childkey take will be set."] # [doc = ""] # [doc = "* `take` (u16):"] # [doc = "    - The new childkey take value. This is a percentage represented as a value between 0 and 10000,"] # [doc = "      where 10000 represents 100%."] # [doc = ""] # [doc = "# Events:"] # [doc = "* `ChildkeyTakeSet`:"] # [doc = "    - On successfully setting the childkey take for a hotkey."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - The coldkey does not own the hotkey."] # [doc = "* `InvalidChildkeyTake`:"] # [doc = "    - The provided take value is invalid (greater than the maximum allowed take)."] # [doc = "* `TxChildkeyTakeRateLimitExceeded`:"] # [doc = "    - The rate limit for changing childkey take has been exceeded."] # [doc = ""] set_childkey_take { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , take : :: core :: primitive :: u16 , } , # [codec (index = 69)] # [doc = "Sets the transaction rate limit for changing childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `tx_rate_limit` - The new rate limit in blocks."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] sudo_set_tx_childkey_take_rate_limit { tx_rate_limit : :: core :: primitive :: u64 , } , # [codec (index = 76)] # [doc = "Sets the minimum allowed childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `take` - The new minimum childkey take value."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] sudo_set_min_childkey_take { take : :: core :: primitive :: u16 , } , # [codec (index = 77)] # [doc = "Sets the maximum allowed childkey take."] # [doc = ""] # [doc = "This function can only be called by the root origin."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` - The origin of the call, must be root."] # [doc = "* `take` - The new maximum childkey take value."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `BadOrigin` - If the origin is not root."] # [doc = ""] sudo_set_max_childkey_take { take : :: core :: primitive :: u16 , } , # [codec (index = 59)] # [doc = "User register a new subnetwork"] register_network { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 61)] # [doc = "Remove a user's subnetwork"] # [doc = "The caller must be the owner of the network"] dissolve_network { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , } , # [codec (index = 67)] # [doc = "Set a single child for a given hotkey on a specified network."] # [doc = ""] # [doc = "This function allows a coldkey to set a single child for a given hotkey on a specified network."] # [doc = "The proportion of the hotkey's stake to be allocated to the child is also specified."] # [doc = ""] # [doc = "# Arguments:"] # [doc = "* `origin` (<T as frame_system::Config>::RuntimeOrigin):"] # [doc = "    - The signature of the calling coldkey. Setting a hotkey child can only be done by the coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey which will be assigned the child."] # [doc = ""] # [doc = "* `child` (T::AccountId):"] # [doc = "    - The child which will be assigned to the hotkey."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "    - The u16 network identifier where the childkey will exist."] # [doc = ""] # [doc = "* `proportion` (u64):"] # [doc = "    - Proportion of the hotkey's stake to be given to the child, the value must be u64 normalized."] # [doc = ""] # [doc = "# Events:"] # [doc = "* `ChildAddedSingular`:"] # [doc = "    - On successfully registering a child to a hotkey."] # [doc = ""] # [doc = "# Errors:"] # [doc = "* `MechanismDoesNotExist`:"] # [doc = "    - Attempting to register to a non-existent network."] # [doc = "* `RegistrationNotPermittedOnRootSubnet`:"] # [doc = "    - Attempting to register a child on the root network."] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - The coldkey does not own the hotkey or the child is the same as the hotkey."] # [doc = "* `HotKeyAccountNotExists`:"] # [doc = "    - The hotkey account does not exist."] # [doc = ""] # [doc = "# Detailed Explanation of Checks:"] # [doc = "1. **Signature Verification**: Ensures that the caller has signed the transaction, verifying the coldkey."] # [doc = "2. **Root Network Check**: Ensures that the delegation is not on the root network, as child hotkeys are not valid on the root."] # [doc = "3. **Network Existence Check**: Ensures that the specified network exists."] # [doc = "4. **Ownership Verification**: Ensures that the coldkey owns the hotkey."] # [doc = "5. **Hotkey Account Existence Check**: Ensures that the hotkey account already exists."] # [doc = "6. **Child-Hotkey Distinction**: Ensures that the child is not the same as the hotkey."] # [doc = "7. **Old Children Cleanup**: Removes the hotkey from the parent list of its old children."] # [doc = "8. **New Children Assignment**: Assigns the new child to the hotkey and updates the parent list for the new child."] set_children { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , children : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > , } , # [codec (index = 73)] # [doc = "Schedules a coldkey swap operation to be executed at a future block."] # [doc = ""] # [doc = "This function allows a user to schedule the swapping of their coldkey to a new one"] # [doc = "at a specified future block. The swap is not executed immediately but is scheduled"] # [doc = "to occur at the specified block number."] # [doc = ""] # [doc = "# Arguments"] # [doc = ""] # [doc = "* `origin` - The origin of the call, which should be signed by the current coldkey owner."] # [doc = "* `new_coldkey` - The account ID of the new coldkey that will replace the current one."] # [doc = "* `when` - The block number at which the coldkey swap should be executed."] # [doc = ""] # [doc = "# Returns"] # [doc = ""] # [doc = "Returns a `DispatchResultWithPostInfo` indicating whether the scheduling was successful."] # [doc = ""] # [doc = "# Errors"] # [doc = ""] # [doc = "This function may return an error if:"] # [doc = "* The origin is not signed."] # [doc = "* The scheduling fails due to conflicts or system constraints."] # [doc = ""] # [doc = "# Notes"] # [doc = ""] # [doc = "- The actual swap is not performed by this function. It merely schedules the swap operation."] # [doc = "- The weight of this call is set to a fixed value and may need adjustment based on benchmarking."] # [doc = ""] # [doc = "# TODO"] # [doc = ""] # [doc = "- Implement proper weight calculation based on the complexity of the operation."] # [doc = "- Consider adding checks to prevent scheduling too far into the future."] # [doc = "TODO: Benchmark this call"] schedule_swap_coldkey { new_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 68)] # [doc = "---- Set prometheus information for the neuron."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the calling hotkey."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "\t- The u16 network identifier."] # [doc = ""] # [doc = "* 'version' (u16):"] # [doc = "\t-  The bittensor version identifier."] # [doc = ""] # [doc = "* 'ip' (u128):"] # [doc = "\t- The prometheus ip information as a u128 encoded integer."] # [doc = ""] # [doc = "* 'port' (u16):"] # [doc = "\t- The prometheus port information as a u16 encoded integer."] # [doc = ""] # [doc = "* 'ip_type' (u8):"] # [doc = "\t- The ip type v4 or v6."] # [doc = ""] set_identity { name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , url : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , github_repo : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , image : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , discord : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , description : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , additional : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 78)] # [doc = "---- Set the identity information for a subnet."] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the calling coldkey, which must be the owner of the subnet."] # [doc = ""] # [doc = "* `netuid` (u16):"] # [doc = "    - The unique network identifier of the subnet."] # [doc = ""] # [doc = "* `subnet_name` (Vec<u8>):"] # [doc = "    - The name of the subnet."] # [doc = ""] # [doc = "* `github_repo` (Vec<u8>):"] # [doc = "    - The GitHub repository associated with the subnet identity."] # [doc = ""] # [doc = "* `subnet_contact` (Vec<u8>):"] # [doc = "    - The contact information for the subnet."] set_subnet_identity { netuid : :: core :: primitive :: u16 , subnet_name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , github_repo : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , subnet_contact : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , subnet_url : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , discord : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , description : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , logo_url : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , additional : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 79)] # [doc = "User register a new subnetwork"] register_network_with_identity { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , identity : :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 > , } , # [codec (index = 83)] # [doc = "---- The implementation for the extrinsic unstake_all: Removes all stake from a hotkey account across all subnets and adds it onto a coldkey."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The associated hotkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "    - On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `NotRegistered`:"] # [doc = "    - Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* `NotEnoughStakeToWithdraw`:"] # [doc = "    - Thrown if there is not enough stake on the hotkey to withdraw this amount."] # [doc = ""] # [doc = "* `TxRateLimitExceeded`:"] # [doc = "    - Thrown if key has hit transaction rate limit"] unstake_all { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 84)] # [doc = "---- The implementation for the extrinsic unstake_all: Removes all stake from a hotkey account across all subnets and adds it onto a coldkey."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The associated hotkey account."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "    - On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* `NotRegistered`:"] # [doc = "    - Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* `NonAssociatedColdKey`:"] # [doc = "    - Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* `NotEnoughStakeToWithdraw`:"] # [doc = "    - Thrown if there is not enough stake on the hotkey to withdraw this amount."] # [doc = ""] # [doc = "* `TxRateLimitExceeded`:"] # [doc = "    - Thrown if key has hit transaction rate limit"] unstake_all_alpha { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 85)] # [doc = "---- The implementation for the extrinsic move_stake: Moves specified amount of stake from a hotkey to another across subnets."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `origin_hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to move stake from."] # [doc = ""] # [doc = "* `destination_hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to move stake to."] # [doc = ""] # [doc = "* `origin_netuid` (T::AccountId):"] # [doc = "    - The subnet ID to move stake from."] # [doc = ""] # [doc = "* `destination_netuid` (T::AccountId):"] # [doc = "    - The subnet ID to move stake to."] # [doc = ""] # [doc = "* `alpha_amount` (T::AccountId):"] # [doc = "    - The alpha stake amount to move."] # [doc = ""] move_stake { origin_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , destination_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , origin_netuid : :: core :: primitive :: u16 , destination_netuid : :: core :: primitive :: u16 , alpha_amount : :: core :: primitive :: u64 , } , # [codec (index = 86)] # [doc = "Transfers a specified amount of stake from one coldkey to another, optionally across subnets,"] # [doc = "while keeping the same hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the `origin_coldkey`."] # [doc = "* `destination_coldkey` - The coldkey to which the stake is transferred."] # [doc = "* `hotkey` - The hotkey associated with the stake."] # [doc = "* `origin_netuid` - The network/subnet ID to move stake from."] # [doc = "* `destination_netuid` - The network/subnet ID to move stake to (for cross-subnet transfer)."] # [doc = "* `alpha_amount` - The amount of stake to transfer."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The origin is not signed by the correct coldkey."] # [doc = "* Either subnet does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(origin_coldkey, hotkey, origin_netuid)`."] # [doc = "* The transfer amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeTransferred` event on success."] transfer_stake { destination_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , origin_netuid : :: core :: primitive :: u16 , destination_netuid : :: core :: primitive :: u16 , alpha_amount : :: core :: primitive :: u64 , } , # [codec (index = 87)] # [doc = "Swaps a specified amount of stake from one subnet to another, while keeping the same coldkey and hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey whose stake is being swapped."] # [doc = "* `origin_netuid` - The network/subnet ID from which stake is removed."] # [doc = "* `destination_netuid` - The network/subnet ID to which stake is added."] # [doc = "* `alpha_amount` - The amount of stake to swap."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the correct coldkey (i.e., `coldkey_owns_hotkey` fails)."] # [doc = "* Either `origin_netuid` or `destination_netuid` does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(coldkey, hotkey, origin_netuid)`."] # [doc = "* The swap amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeSwapped` event on success."] swap_stake { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , origin_netuid : :: core :: primitive :: u16 , destination_netuid : :: core :: primitive :: u16 , alpha_amount : :: core :: primitive :: u64 , } , # [codec (index = 88)] # [doc = "--- Adds stake to a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (lower) the staking should execute."] # [doc = ""] # [doc = "In case if slippage occurs and the price shall move beyond the limit"] # [doc = "price, the staking order may execute only partially or not execute"] # [doc = "at all."] # [doc = ""] # [doc = "# Args:"] # [doc = " * 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = " * 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = " * 'amount_staked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = " * 'limit_price' (u64):"] # [doc = "\t- The limit price expressed in units of RAO per one Alpha."] # [doc = ""] # [doc = " * 'allow_partial' (bool):"] # [doc = "\t- Allows partial execution of the amount. If set to false, this becomes"] # [doc = "      fill or kill type or order."] # [doc = ""] # [doc = "# Event:"] # [doc = " * StakeAdded;"] # [doc = "\t- On the successfully adding stake to a global account."] # [doc = ""] # [doc = "# Raises:"] # [doc = " * 'NotEnoughBalanceToStake':"] # [doc = "\t- Not enough balance on the coldkey to add onto the global account."] # [doc = ""] # [doc = " * 'NonAssociatedColdKey':"] # [doc = "\t- The calling coldkey is not associated with this hotkey."] # [doc = ""] # [doc = " * 'BalanceWithdrawalError':"] # [doc = " \t- Errors stemming from transaction pallet."] # [doc = ""] add_stake_limit { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , amount_staked : :: core :: primitive :: u64 , limit_price : :: core :: primitive :: u64 , allow_partial : :: core :: primitive :: bool , } , # [codec (index = 89)] # [doc = "--- Removes stake from a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (higher) the staking should execute."] # [doc = ""] # [doc = "In case if slippage occurs and the price shall move beyond the limit"] # [doc = "price, the staking order may execute only partially or not execute"] # [doc = "at all."] # [doc = ""] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "* 'hotkey' (T::AccountId):"] # [doc = "\t- The associated hotkey account."] # [doc = ""] # [doc = "* 'netuid' (u16):"] # [doc = "    - Subnetwork UID"] # [doc = ""] # [doc = "* 'amount_unstaked' (u64):"] # [doc = "\t- The amount of stake to be added to the hotkey staking account."] # [doc = ""] # [doc = " * 'limit_price' (u64):"] # [doc = "    - The limit price expressed in units of RAO per one Alpha."] # [doc = ""] # [doc = " * 'allow_partial' (bool):"] # [doc = "    - Allows partial execution of the amount. If set to false, this becomes"] # [doc = "      fill or kill type or order."] # [doc = ""] # [doc = "# Event:"] # [doc = "* StakeRemoved;"] # [doc = "\t- On the successfully removing stake from the hotkey account."] # [doc = ""] # [doc = "# Raises:"] # [doc = "* 'NotRegistered':"] # [doc = "\t- Thrown if the account we are attempting to unstake from is non existent."] # [doc = ""] # [doc = "* 'NonAssociatedColdKey':"] # [doc = "\t- Thrown if the coldkey does not own the hotkey we are unstaking from."] # [doc = ""] # [doc = "* 'NotEnoughStakeToWithdraw':"] # [doc = "\t- Thrown if there is not enough stake on the hotkey to withdwraw this amount."] # [doc = ""] remove_stake_limit { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , amount_unstaked : :: core :: primitive :: u64 , limit_price : :: core :: primitive :: u64 , allow_partial : :: core :: primitive :: bool , } , # [codec (index = 90)] # [doc = "Swaps a specified amount of stake from one subnet to another, while keeping the same coldkey and hotkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey whose stake is being swapped."] # [doc = "* `origin_netuid` - The network/subnet ID from which stake is removed."] # [doc = "* `destination_netuid` - The network/subnet ID to which stake is added."] # [doc = "* `alpha_amount` - The amount of stake to swap."] # [doc = "* `limit_price` - The limit price expressed in units of RAO per one Alpha."] # [doc = "* `allow_partial` - Allows partial execution of the amount. If set to false, this becomes fill or kill type or order."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the correct coldkey (i.e., `coldkey_owns_hotkey` fails)."] # [doc = "* Either `origin_netuid` or `destination_netuid` does not exist."] # [doc = "* The hotkey does not exist."] # [doc = "* There is insufficient stake on `(coldkey, hotkey, origin_netuid)`."] # [doc = "* The swap amount is below the minimum stake requirement."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `StakeSwapped` event on success."] swap_stake_limit { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , origin_netuid : :: core :: primitive :: u16 , destination_netuid : :: core :: primitive :: u16 , alpha_amount : :: core :: primitive :: u64 , limit_price : :: core :: primitive :: u64 , allow_partial : :: core :: primitive :: bool , } , # [codec (index = 91)] # [doc = "Attempts to associate a hotkey with a coldkey."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the coldkey that owns the `hotkey`."] # [doc = "* `hotkey` - The hotkey to associate with the coldkey."] # [doc = ""] # [doc = "# Note"] # [doc = "Will charge based on the weight even if the hotkey is already associated with a coldkey."] try_associate_hotkey { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 92)] # [doc = "Initiates a call on a subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be signed by the subnet owner."] # [doc = "* `netuid` - The unique identifier of the subnet on which the call is being initiated."] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `FirstEmissionBlockNumberSet` event on success."] start_call { netuid : :: core :: primitive :: u16 , } , # [codec (index = 93)] # [doc = "Attempts to associate a hotkey with an EVM key."] # [doc = ""] # [doc = "The signature will be checked to see if the recovered public key matches the `evm_key` provided."] # [doc = ""] # [doc = "The EVM key is expected to sign the message according to this formula to produce the signature:"] # [doc = "```text"] # [doc = "keccak_256(hotkey ++ keccak_256(block_number))"] # [doc = "```"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the transaction, which must be signed by the `hotkey`."] # [doc = "* `netuid` - The netuid that the `hotkey` belongs to."] # [doc = "* `evm_key` - The EVM key to associate with the `hotkey`."] # [doc = "* `block_number` - The block number used in the `signature`."] # [doc = "* `signature` - A signed message by the `evm_key` containing the `hotkey` and the hashed `block_number`."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed."] # [doc = "* The hotkey does not belong to the subnet identified by the netuid."] # [doc = "* The EVM key cannot be recovered from the signature."] # [doc = "* The EVM key recovered from the signature does not match the given EVM key."] # [doc = ""] # [doc = "# Events"] # [doc = "May emit a `EvmKeyAssociated` event on success"] associate_evm_key { netuid : :: core :: primitive :: u16 , evm_key : :: subxt :: ext :: subxt_core :: utils :: H160 , block_number : :: core :: primitive :: u64 , signature : [:: core :: primitive :: u8 ; 65usize] , } , # [codec (index = 101)] # [doc = "Recycles alpha from a cold/hot key pair, reducing AlphaOut on a subnet"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call (must be signed by the coldkey)"] # [doc = "* `hotkey` - The hotkey account"] # [doc = "* `amount` - The amount of alpha to recycle"] # [doc = "* `netuid` - The subnet ID"] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `TokensRecycled` event on success."] recycle_alpha { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , netuid : :: core :: primitive :: u16 , } , # [codec (index = 102)] # [doc = "Burns alpha from a cold/hot key pair without reducing `AlphaOut`"] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call (must be signed by the coldkey)"] # [doc = "* `hotkey` - The hotkey account"] # [doc = "* `amount` - The amount of alpha to burn"] # [doc = "* `netuid` - The subnet ID"] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `TokensBurned` event on success."] burn_alpha { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , amount : :: core :: primitive :: u64 , netuid : :: core :: primitive :: u16 , } , # [codec (index = 109)] # [doc = "Sets the pending childkey cooldown (in blocks). Root only."] set_pending_childkey_cooldown { cooldown : :: core :: primitive :: u64 , } , # [codec (index = 103)] # [doc = "Removes all stake from a hotkey on a subnet with a price limit."] # [doc = "This extrinsic allows to specify the limit price for alpha token"] # [doc = "at which or better (higher) the staking should execute."] # [doc = "Without limit_price it remove all the stake similar to `remove_stake` extrinsic"] remove_stake_full_limit { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , limit_price : :: core :: option :: Option < :: core :: primitive :: u64 > , } , # [codec (index = 110)] # [doc = "Register a new leased network."] # [doc = ""] # [doc = "The crowdloan's contributions are used to compute the share of the emissions that the contributors"] # [doc = "will receive as dividends."] # [doc = ""] # [doc = "The leftover cap is refunded to the contributors and the beneficiary."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `emissions_share` (Percent):"] # [doc = "    - The share of the emissions that the contributors will receive as dividends."] # [doc = ""] # [doc = "* `end_block` (Option<BlockNumberFor<T>>):"] # [doc = "    - The block at which the lease will end. If not defined, the lease is perpetual."] register_leased_network { emissions_share : runtime_types :: sp_arithmetic :: per_things :: Percent , end_block : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 111)] # [doc = "Terminate a lease."] # [doc = ""] # [doc = "The beneficiary can terminate the lease after the end block has passed and get the subnet ownership."] # [doc = "The subnet is transferred to the beneficiary and the lease is removed from storage."] # [doc = ""] # [doc = "**The hotkey must be owned by the beneficiary coldkey.**"] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `lease_id` (LeaseId):"] # [doc = "    - The ID of the lease to terminate."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey of the beneficiary to mark as subnet owner hotkey."] terminate_lease { lease_id : :: core :: primitive :: u32 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 112)] # [doc = "Updates the symbol for a subnet."] # [doc = ""] # [doc = "# Arguments"] # [doc = "* `origin` - The origin of the call, which must be the subnet owner or root."] # [doc = "* `netuid` - The unique identifier of the subnet on which the symbol is being set."] # [doc = "* `symbol` - The symbol to set for the subnet."] # [doc = ""] # [doc = "# Errors"] # [doc = "Returns an error if:"] # [doc = "* The transaction is not signed by the subnet owner."] # [doc = "* The symbol does not exist."] # [doc = "* The symbol is already in use by another subnet."] # [doc = ""] # [doc = "# Events"] # [doc = "Emits a `SymbolUpdated` event on success."] update_symbol { netuid : :: core :: primitive :: u16 , symbol : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 113)] # [doc = "---- Used to commit timelock encrypted commit-reveal weight values to later be revealed."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "* commit_reveal_version (`u16`):"] # [doc = "    - The client (bittensor-drand) version"] commit_timelocked_weights { netuid : :: core :: primitive :: u16 , commit : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , reveal_round : :: core :: primitive :: u64 , commit_reveal_version : :: core :: primitive :: u16 , } , # [codec (index = 114)] # [doc = "Set the autostake destination hotkey for a coldkey."] # [doc = ""] # [doc = "The caller selects a hotkey where all future rewards"] # [doc = "will be automatically staked."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin` - (<T as frame_system::Config>::Origin):"] # [doc = "    - The signature of the caller's coldkey."] # [doc = ""] # [doc = "* `hotkey` (T::AccountId):"] # [doc = "    - The hotkey account to designate as the autostake destination."] set_coldkey_auto_stake_hotkey { netuid : :: core :: primitive :: u16 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 118)] # [doc = "---- Used to commit timelock encrypted commit-reveal weight values to later be revealed for"] # [doc = "a mechanism."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):"] # [doc = "  - The committing hotkey."] # [doc = ""] # [doc = "* `netuid` (`u16`):"] # [doc = "  - The u16 network identifier."] # [doc = ""] # [doc = "* `mecid` (`u8`):"] # [doc = "  - The u8 mechanism identifier."] # [doc = ""] # [doc = "* `commit` (`Vec<u8>`):"] # [doc = "  - The encrypted compressed commit."] # [doc = "    The steps for this are:"] # [doc = "    1. Instantiate [`WeightsTlockPayload`]"] # [doc = "    2. Serialize it using the `parity_scale_codec::Encode` trait"] # [doc = "    3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]"] # [doc = "       to produce a [`TLECiphertext<TinyBLS381>`] type."] # [doc = "    4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait."] # [doc = ""] # [doc = "* reveal_round (`u64`):"] # [doc = "   - The drand reveal round which will be avaliable during epoch `n+1` from the current"] # [doc = "     epoch."] # [doc = ""] # [doc = "* commit_reveal_version (`u16`):"] # [doc = "    - The client (bittensor-drand) version"] commit_timelocked_mechanism_weights { netuid : :: core :: primitive :: u16 , mecid : :: core :: primitive :: u8 , commit : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , reveal_round : :: core :: primitive :: u64 , commit_reveal_version : :: core :: primitive :: u16 , } , # [codec (index = 120)] # [doc = "Remove a subnetwork"] # [doc = "The caller must be root"] root_dissolve_network { netuid : :: core :: primitive :: u16 , } , # [codec (index = 121)] # [doc = "--- Claims the root emissions for a coldkey."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "# Event:"] # [doc = "* RootClaimed;"] # [doc = "\t- On the successfully claiming the root emissions for a coldkey."] # [doc = ""] # [doc = "# Raises:"] # [doc = ""] claim_root { subnets : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , } , # [codec (index = 122)] # [doc = "--- Sets the root claim type for the coldkey."] # [doc = "# Args:"] # [doc = "* 'origin': (<T as frame_system::Config>Origin):"] # [doc = "\t- The signature of the caller's coldkey."] # [doc = ""] # [doc = "# Event:"] # [doc = "* RootClaimTypeSet;"] # [doc = "\t- On the successfully setting the root claim type for the coldkey."] # [doc = ""] set_root_claim_type { new_root_claim_type : runtime_types :: pallet_subtensor :: pallet :: RootClaimTypeEnum , } , # [codec (index = 123)] # [doc = "--- Sets root claim number (sudo extrinsic). Zero disables auto-claim."] sudo_set_num_root_claims { new_value : :: core :: primitive :: u64 , } , # [codec (index = 124)] # [doc = "--- Sets root claim threshold for subnet (sudo or owner origin)."] sudo_set_root_claim_threshold { netuid : :: core :: primitive :: u16 , new_value : :: core :: primitive :: u64 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ChainIdentityV2 { pub name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub url : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub github_repo : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub image : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub discord : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub description : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub additional : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The root network does not exist."] RootNetworkDoesNotExist , # [codec (index = 1)] # [doc = "The user is trying to serve an axon which is not of type 4 (IPv4) or 6 (IPv6)."] InvalidIpType , # [codec (index = 2)] # [doc = "An invalid IP address is passed to the serve function."] InvalidIpAddress , # [codec (index = 3)] # [doc = "An invalid port is passed to the serve function."] InvalidPort , # [codec (index = 4)] # [doc = "The hotkey is not registered in subnet"] HotKeyNotRegisteredInSubNet , # [codec (index = 5)] # [doc = "The hotkey does not exists"] HotKeyAccountNotExists , # [codec (index = 6)] # [doc = "The hotkey is not registered in any subnet."] HotKeyNotRegisteredInNetwork , # [codec (index = 7)] # [doc = "Request to stake, unstake or subscribe is made by a coldkey that is not associated with"] # [doc = "the hotkey account."] NonAssociatedColdKey , # [codec (index = 8)] # [doc = "DEPRECATED: Stake amount to withdraw is zero."] # [doc = "The caller does not have enought stake to perform this action."] NotEnoughStake , # [codec (index = 9)] # [doc = "The caller is requesting removing more stake than there exists in the staking account."] # [doc = "See: \"[remove_stake()]\"."] NotEnoughStakeToWithdraw , # [codec (index = 10)] # [doc = "The caller is requesting to set weights but the caller has less than minimum stake"] # [doc = "required to set weights (less than WeightsMinStake)."] NotEnoughStakeToSetWeights , # [codec (index = 11)] # [doc = "The parent hotkey doesn't have enough own stake to set childkeys."] NotEnoughStakeToSetChildkeys , # [codec (index = 12)] # [doc = "The caller is requesting adding more stake than there exists in the coldkey account."] # [doc = "See: \"[add_stake()]\""] NotEnoughBalanceToStake , # [codec (index = 13)] # [doc = "The caller is trying to add stake, but for some reason the requested amount could not be"] # [doc = "withdrawn from the coldkey account."] BalanceWithdrawalError , # [codec (index = 14)] # [doc = "Unsuccessfully withdraw, balance could be zero (can not make account exist) after"] # [doc = "withdrawal."] ZeroBalanceAfterWithdrawn , # [codec (index = 15)] # [doc = "The caller is attempting to set non-self weights without being a permitted validator."] NeuronNoValidatorPermit , # [codec (index = 16)] # [doc = "The caller is attempting to set the weight keys and values but these vectors have"] # [doc = "different size."] WeightVecNotEqualSize , # [codec (index = 17)] # [doc = "The caller is attempting to set weights with duplicate UIDs in the weight matrix."] DuplicateUids , # [codec (index = 18)] # [doc = "The caller is attempting to set weight to at least one UID that does not exist in the"] # [doc = "metagraph."] UidVecContainInvalidOne , # [codec (index = 19)] # [doc = "The dispatch is attempting to set weights on chain with fewer elements than are allowed."] WeightVecLengthIsLow , # [codec (index = 20)] # [doc = "Number of registrations in this block exceeds the allowed number (i.e., exceeds the"] # [doc = "subnet hyperparameter \"max_regs_per_block\")."] TooManyRegistrationsThisBlock , # [codec (index = 21)] # [doc = "The caller is requesting registering a neuron which already exists in the active set."] HotKeyAlreadyRegisteredInSubNet , # [codec (index = 22)] # [doc = "The new hotkey is the same as old one"] NewHotKeyIsSameWithOld , # [codec (index = 23)] # [doc = "The supplied PoW hash block is in the future or negative."] InvalidWorkBlock , # [codec (index = 24)] # [doc = "The supplied PoW hash block does not meet the network difficulty."] InvalidDifficulty , # [codec (index = 25)] # [doc = "The supplied PoW hash seal does not match the supplied work."] InvalidSeal , # [codec (index = 26)] # [doc = "The dispatch is attempting to set weights on chain with weight value exceeding the"] # [doc = "configured max weight limit (currently `u16::MAX`)."] MaxWeightExceeded , # [codec (index = 27)] # [doc = "The hotkey is attempting to become a delegate when the hotkey is already a delegate."] HotKeyAlreadyDelegate , # [codec (index = 28)] # [doc = "A transactor exceeded the rate limit for setting weights."] SettingWeightsTooFast , # [codec (index = 29)] # [doc = "A validator is attempting to set weights from a validator with incorrect weight version."] IncorrectWeightVersionKey , # [codec (index = 30)] # [doc = "An axon or prometheus serving exceeded the rate limit for a registered neuron."] ServingRateLimitExceeded , # [codec (index = 31)] # [doc = "The caller is attempting to set weights with more UIDs than allowed."] UidsLengthExceedUidsInSubNet , # [codec (index = 32)] # [doc = "A transactor exceeded the rate limit for add network transaction."] NetworkTxRateLimitExceeded , # [codec (index = 33)] # [doc = "A transactor exceeded the rate limit for delegate transaction."] DelegateTxRateLimitExceeded , # [codec (index = 34)] # [doc = "A transactor exceeded the rate limit for setting or swapping hotkey."] HotKeySetTxRateLimitExceeded , # [codec (index = 35)] # [doc = "A transactor exceeded the rate limit for staking."] StakingRateLimitExceeded , # [codec (index = 36)] # [doc = "Registration is disabled."] SubNetRegistrationDisabled , # [codec (index = 37)] # [doc = "The number of registration attempts exceeded the allowed number in the interval."] TooManyRegistrationsThisInterval , # [codec (index = 38)] # [doc = "The hotkey is required to be the origin."] TransactorAccountShouldBeHotKey , # [codec (index = 39)] # [doc = "Faucet is disabled."] FaucetDisabled , # [codec (index = 40)] # [doc = "Not a subnet owner."] NotSubnetOwner , # [codec (index = 41)] # [doc = "Operation is not permitted on the root subnet."] RegistrationNotPermittedOnRootSubnet , # [codec (index = 42)] # [doc = "A hotkey with too little stake is attempting to join the root subnet."] StakeTooLowForRoot , # [codec (index = 43)] # [doc = "All subnets are in the immunity period."] AllNetworksInImmunity , # [codec (index = 44)] # [doc = "Not enough balance to pay swapping hotkey."] NotEnoughBalanceToPaySwapHotKey , # [codec (index = 45)] # [doc = "Netuid does not match for setting root network weights."] NotRootSubnet , # [codec (index = 46)] # [doc = "Can not set weights for the root network."] CanNotSetRootNetworkWeights , # [codec (index = 47)] # [doc = "No neuron ID is available."] NoNeuronIdAvailable , # [codec (index = 48)] # [doc = "Delegate take is too low."] DelegateTakeTooLow , # [codec (index = 49)] # [doc = "Delegate take is too high."] DelegateTakeTooHigh , # [codec (index = 50)] # [doc = "No commit found for the provided hotkey+netuid combination when attempting to reveal the"] # [doc = "weights."] NoWeightsCommitFound , # [codec (index = 51)] # [doc = "Committed hash does not equal the hashed reveal data."] InvalidRevealCommitHashNotMatch , # [codec (index = 52)] # [doc = "Attempting to call set_weights when commit/reveal is enabled"] CommitRevealEnabled , # [codec (index = 53)] # [doc = "Attemtping to commit/reveal weights when disabled."] CommitRevealDisabled , # [codec (index = 54)] # [doc = "Attempting to set alpha high/low while disabled"] LiquidAlphaDisabled , # [codec (index = 55)] # [doc = "Alpha high is too low: alpha_high > 0.8"] AlphaHighTooLow , # [codec (index = 56)] # [doc = "Alpha low is out of range: alpha_low > 0 && alpha_low < 0.8"] AlphaLowOutOfRange , # [codec (index = 57)] # [doc = "The coldkey has already been swapped"] ColdKeyAlreadyAssociated , # [codec (index = 58)] # [doc = "The coldkey balance is not enough to pay for the swap"] NotEnoughBalanceToPaySwapColdKey , # [codec (index = 59)] # [doc = "The coldkey is in arbitration"] ColdkeyIsInArbitration , # [codec (index = 60)] # [doc = "Attempting to set an invalid child for a hotkey on a network."] InvalidChild , # [codec (index = 61)] # [doc = "Duplicate child when setting children."] DuplicateChild , # [codec (index = 62)] # [doc = "Proportion overflow when setting children."] ProportionOverflow , # [codec (index = 63)] # [doc = "Too many children MAX 5."] TooManyChildren , # [codec (index = 64)] # [doc = "Default transaction rate limit exceeded."] TxRateLimitExceeded , # [codec (index = 65)] # [doc = "Swap already scheduled."] SwapAlreadyScheduled , # [codec (index = 66)] # [doc = "failed to swap coldkey"] FailedToSchedule , # [codec (index = 67)] # [doc = "New coldkey is hotkey"] NewColdKeyIsHotkey , # [codec (index = 68)] # [doc = "Childkey take is invalid."] InvalidChildkeyTake , # [codec (index = 69)] # [doc = "Childkey take rate limit exceeded."] TxChildkeyTakeRateLimitExceeded , # [codec (index = 70)] # [doc = "Invalid identity."] InvalidIdentity , # [codec (index = 71)] # [doc = "Subnet mechanism does not exist."] MechanismDoesNotExist , # [codec (index = 72)] # [doc = "Trying to unstake your lock amount."] CannotUnstakeLock , # [codec (index = 73)] # [doc = "Trying to perform action on non-existent subnet."] SubnetNotExists , # [codec (index = 74)] # [doc = "Maximum commit limit reached"] TooManyUnrevealedCommits , # [codec (index = 75)] # [doc = "Attempted to reveal weights that are expired."] ExpiredWeightCommit , # [codec (index = 76)] # [doc = "Attempted to reveal weights too early."] RevealTooEarly , # [codec (index = 77)] # [doc = "Attempted to batch reveal weights with mismatched vector input lenghts."] InputLengthsUnequal , # [codec (index = 78)] # [doc = "A transactor exceeded the rate limit for setting weights."] CommittingWeightsTooFast , # [codec (index = 79)] # [doc = "Stake amount is too low."] AmountTooLow , # [codec (index = 80)] # [doc = "Not enough liquidity."] InsufficientLiquidity , # [codec (index = 81)] # [doc = "Slippage is too high for the transaction."] SlippageTooHigh , # [codec (index = 82)] # [doc = "Subnet disallows transfer."] TransferDisallowed , # [codec (index = 83)] # [doc = "Activity cutoff is being set too low."] ActivityCutoffTooLow , # [codec (index = 84)] # [doc = "Call is disabled"] CallDisabled , # [codec (index = 85)] # [doc = "FirstEmissionBlockNumber is already set."] FirstEmissionBlockNumberAlreadySet , # [codec (index = 86)] # [doc = "need wait for more blocks to accept the start call extrinsic."] NeedWaitingMoreBlocksToStarCall , # [codec (index = 87)] # [doc = "Not enough AlphaOut on the subnet to recycle"] NotEnoughAlphaOutToRecycle , # [codec (index = 88)] # [doc = "Cannot burn or recycle TAO from root subnet"] CannotBurnOrRecycleOnRootSubnet , # [codec (index = 89)] # [doc = "Public key cannot be recovered."] UnableToRecoverPublicKey , # [codec (index = 90)] # [doc = "Recovered public key is invalid."] InvalidRecoveredPublicKey , # [codec (index = 91)] # [doc = "SubToken disabled now"] SubtokenDisabled , # [codec (index = 92)] # [doc = "Too frequent hotkey swap on subnet"] HotKeySwapOnSubnetIntervalNotPassed , # [codec (index = 93)] # [doc = "Zero max stake amount"] ZeroMaxStakeAmount , # [codec (index = 94)] # [doc = "Invalid netuid duplication"] SameNetuid , # [codec (index = 95)] # [doc = "The caller does not have enough balance for the operation."] InsufficientBalance , # [codec (index = 96)] # [doc = "Too frequent staking operations"] StakingOperationRateLimitExceeded , # [codec (index = 97)] # [doc = "Invalid lease beneficiary to register the leased network."] InvalidLeaseBeneficiary , # [codec (index = 98)] # [doc = "Lease cannot end in the past."] LeaseCannotEndInThePast , # [codec (index = 99)] # [doc = "Couldn't find the lease netuid."] LeaseNetuidNotFound , # [codec (index = 100)] # [doc = "Lease does not exist."] LeaseDoesNotExist , # [codec (index = 101)] # [doc = "Lease has no end block."] LeaseHasNoEndBlock , # [codec (index = 102)] # [doc = "Lease has not ended."] LeaseHasNotEnded , # [codec (index = 103)] # [doc = "An overflow occurred."] Overflow , # [codec (index = 104)] # [doc = "Beneficiary does not own hotkey."] BeneficiaryDoesNotOwnHotkey , # [codec (index = 105)] # [doc = "Expected beneficiary origin."] ExpectedBeneficiaryOrigin , # [codec (index = 106)] # [doc = "Admin operation is prohibited during the protected weights window"] AdminActionProhibitedDuringWeightsWindow , # [codec (index = 107)] # [doc = "Symbol does not exist."] SymbolDoesNotExist , # [codec (index = 108)] # [doc = "Symbol already in use."] SymbolAlreadyInUse , # [codec (index = 109)] # [doc = "Incorrect commit-reveal version."] IncorrectCommitRevealVersion , # [codec (index = 110)] # [doc = "Reveal period is too large."] RevealPeriodTooLarge , # [codec (index = 111)] # [doc = "Reveal period is too small."] RevealPeriodTooSmall , # [codec (index = 112)] # [doc = "Generic error for out-of-range parameter value"] InvalidValue , # [codec (index = 113)] # [doc = "Subnet limit reached & there is no eligible subnet to prune"] SubnetLimitReached , # [codec (index = 114)] # [doc = "Insufficient funds to meet the subnet lock cost"] CannotAffordLockCost , # [codec (index = 115)] # [doc = "exceeded the rate limit for associating an EVM key."] EvmKeyAssociateRateLimitExceeded , # [codec (index = 116)] # [doc = "Same auto stake hotkey already set"] SameAutoStakeHotkeyAlreadySet , # [codec (index = 117)] # [doc = "The UID map for the subnet could not be cleared"] UidMapCouldNotBeCleared , # [codec (index = 118)] # [doc = "Trimming would exceed the max immune neurons percentage"] TrimmingWouldExceedMaxImmunePercentage , # [codec (index = 119)] # [doc = "Violating the rules of Childkey-Parentkey consistency"] ChildParentInconsistency , # [codec (index = 120)] # [doc = "Invalid number of root claims"] InvalidNumRootClaim , # [codec (index = 121)] # [doc = "Invalid value of root claim threshold"] InvalidRootClaimThreshold , # [codec (index = 122)] # [doc = "Exceeded subnet limit number or zero."] InvalidSubnetNumber , # [codec (index = 123)] # [doc = "Unintended precision loss when unstaking alpha"] PrecisionLoss , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "a new network is added."] NetworkAdded (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 1)] # [doc = "a network is removed."] NetworkRemoved (:: core :: primitive :: u16 ,) , # [codec (index = 2)] # [doc = "stake has been transferred from the a coldkey account onto the hotkey staking account."] StakeAdded (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u64 , :: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 3)] # [doc = "stake has been removed from the hotkey staking account onto the coldkey account."] StakeRemoved (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u64 , :: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 4)] # [doc = "stake has been moved from origin (hotkey, subnet ID) to destination (hotkey, subnet ID) of this amount (in TAO)."] StakeMoved (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 5)] # [doc = "a caller successfully sets their weights on a subnetwork."] WeightsSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 6)] # [doc = "a new neuron account has been registered to the chain."] NeuronRegistered (:: core :: primitive :: u16 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 7)] # [doc = "multiple uids have been concurrently registered."] BulkNeuronsRegistered (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 8)] # [doc = "FIXME: Not used yet"] BulkBalancesSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 9)] # [doc = "max allowed uids has been set for a subnetwork."] MaxAllowedUidsSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 10)] # [doc = "DEPRECATED: max weight limit updates are no longer supported."] MaxWeightLimitSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 11)] # [doc = "the difficulty has been set for a subnet."] DifficultySet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 12)] # [doc = "the adjustment interval is set for a subnet."] AdjustmentIntervalSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 13)] # [doc = "registration per interval is set for a subnet."] RegistrationPerIntervalSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 14)] # [doc = "we set max registrations per block."] MaxRegistrationsPerBlockSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 15)] # [doc = "an activity cutoff is set for a subnet."] ActivityCutoffSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 16)] # [doc = "Rho value is set."] RhoSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 17)] # [doc = "steepness of the sigmoid used to compute alpha values."] AlphaSigmoidSteepnessSet (:: core :: primitive :: u16 , :: core :: primitive :: i16 ,) , # [codec (index = 18)] # [doc = "Kappa is set for a subnet."] KappaSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 19)] # [doc = "minimum allowed weight is set for a subnet."] MinAllowedWeightSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 20)] # [doc = "the validator pruning length has been set."] ValidatorPruneLenSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 21)] # [doc = "the scaling law power has been set for a subnet."] ScalingLawPowerSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 22)] # [doc = "weights set rate limit has been set for a subnet."] WeightsSetRateLimitSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 23)] # [doc = "immunity period is set for a subnet."] ImmunityPeriodSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 24)] # [doc = "bonds moving average is set for a subnet."] BondsMovingAverageSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 25)] # [doc = "bonds penalty is set for a subnet."] BondsPenaltySet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 26)] # [doc = "bonds reset is set for a subnet."] BondsResetOnSet (:: core :: primitive :: u16 , :: core :: primitive :: bool ,) , # [codec (index = 27)] # [doc = "setting the max number of allowed validators on a subnet."] MaxAllowedValidatorsSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 28)] # [doc = "the axon server information is added to the network."] AxonServed (:: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 29)] # [doc = "the prometheus server information is added to the network."] PrometheusServed (:: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 30)] # [doc = "a hotkey has become a delegate."] DelegateAdded (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 ,) , # [codec (index = 31)] # [doc = "the default take is set."] DefaultTakeSet (:: core :: primitive :: u16 ,) , # [codec (index = 32)] # [doc = "weights version key is set for a network."] WeightsVersionKeySet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 33)] # [doc = "setting min difficulty on a network."] MinDifficultySet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 34)] # [doc = "setting max difficulty on a network."] MaxDifficultySet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 35)] # [doc = "setting the prometheus serving rate limit."] ServingRateLimitSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 36)] # [doc = "setting burn on a network."] BurnSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 37)] # [doc = "setting max burn on a network."] MaxBurnSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 38)] # [doc = "setting min burn on a network."] MinBurnSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 39)] # [doc = "setting the transaction rate limit."] TxRateLimitSet (:: core :: primitive :: u64 ,) , # [codec (index = 40)] # [doc = "setting the delegate take transaction rate limit."] TxDelegateTakeRateLimitSet (:: core :: primitive :: u64 ,) , # [codec (index = 41)] # [doc = "setting the childkey take transaction rate limit."] TxChildKeyTakeRateLimitSet (:: core :: primitive :: u64 ,) , # [codec (index = 42)] # [doc = "setting the admin freeze window length (last N blocks of tempo)"] AdminFreezeWindowSet (:: core :: primitive :: u16 ,) , # [codec (index = 43)] # [doc = "setting the owner hyperparameter rate limit in epochs"] OwnerHyperparamRateLimitSet (:: core :: primitive :: u16 ,) , # [codec (index = 44)] # [doc = "minimum childkey take set"] MinChildKeyTakeSet (:: core :: primitive :: u16 ,) , # [codec (index = 45)] # [doc = "maximum childkey take set"] MaxChildKeyTakeSet (:: core :: primitive :: u16 ,) , # [codec (index = 46)] # [doc = "childkey take set"] ChildKeyTakeSet (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 ,) , # [codec (index = 47)] # [doc = "a sudo call is done."] Sudid (:: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > ,) , # [codec (index = 48)] # [doc = "registration is allowed/disallowed for a subnet."] RegistrationAllowed (:: core :: primitive :: u16 , :: core :: primitive :: bool ,) , # [codec (index = 49)] # [doc = "POW registration is allowed/disallowed for a subnet."] PowRegistrationAllowed (:: core :: primitive :: u16 , :: core :: primitive :: bool ,) , # [codec (index = 50)] # [doc = "setting tempo on a network"] TempoSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 51)] # [doc = "setting the RAO recycled for registration."] RAORecycledForRegistrationSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 52)] # [doc = "min stake is set for validators to set weights."] StakeThresholdSet (:: core :: primitive :: u64 ,) , # [codec (index = 53)] # [doc = "setting the adjustment alpha on a subnet."] AdjustmentAlphaSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 54)] # [doc = "the faucet it called on the test net."] Faucet (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 ,) , # [codec (index = 55)] # [doc = "the subnet owner cut is set."] SubnetOwnerCutSet (:: core :: primitive :: u16 ,) , # [codec (index = 56)] # [doc = "the network creation rate limit is set."] NetworkRateLimitSet (:: core :: primitive :: u64 ,) , # [codec (index = 57)] # [doc = "the network immunity period is set."] NetworkImmunityPeriodSet (:: core :: primitive :: u64 ,) , # [codec (index = 58)] # [doc = "the network minimum locking cost is set."] NetworkMinLockCostSet (:: core :: primitive :: u64 ,) , # [codec (index = 59)] # [doc = "the maximum number of subnets is set"] SubnetLimitSet (:: core :: primitive :: u16 ,) , # [codec (index = 60)] # [doc = "the lock cost reduction is set"] NetworkLockCostReductionIntervalSet (:: core :: primitive :: u64 ,) , # [codec (index = 61)] # [doc = "the take for a delegate is decreased."] TakeDecreased (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 ,) , # [codec (index = 62)] # [doc = "the take for a delegate is increased."] TakeIncreased (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 ,) , # [codec (index = 63)] # [doc = "the hotkey is swapped"] HotkeySwapped { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , old_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 64)] # [doc = "maximum delegate take is set by sudo/admin transaction"] MaxDelegateTakeSet (:: core :: primitive :: u16 ,) , # [codec (index = 65)] # [doc = "minimum delegate take is set by sudo/admin transaction"] MinDelegateTakeSet (:: core :: primitive :: u16 ,) , # [codec (index = 66)] # [doc = "A coldkey has been swapped"] ColdkeySwapped { old_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , swap_cost : :: core :: primitive :: u64 , } , # [codec (index = 67)] # [doc = "All balance of a hotkey has been unstaked and transferred to a new coldkey"] AllBalanceUnstakedAndTransferredToNewColdkey { current_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , total_balance : :: core :: primitive :: u64 , } , # [codec (index = 68)] # [doc = "A coldkey swap has been scheduled"] ColdkeySwapScheduled { old_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , execution_block : :: core :: primitive :: u32 , swap_cost : :: core :: primitive :: u64 , } , # [codec (index = 69)] # [doc = "The arbitration period has been extended"] ArbitrationPeriodExtended { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 70)] # [doc = "Setting of children of a hotkey have been scheduled"] SetChildrenScheduled (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ,) , # [codec (index = 71)] # [doc = "The children of a hotkey have been set"] SetChildren (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: core :: primitive :: u64 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) > ,) , # [codec (index = 72)] # [doc = "The identity of a coldkey has been set"] ChainIdentitySet (:: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 73)] # [doc = "The identity of a subnet has been set"] SubnetIdentitySet (:: core :: primitive :: u16 ,) , # [codec (index = 74)] # [doc = "The identity of a subnet has been removed"] SubnetIdentityRemoved (:: core :: primitive :: u16 ,) , # [codec (index = 75)] # [doc = "A dissolve network extrinsic scheduled."] DissolveNetworkScheduled { account : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , execution_block : :: core :: primitive :: u32 , } , # [codec (index = 76)] # [doc = "The duration of schedule coldkey swap has been set"] ColdkeySwapScheduleDurationSet (:: core :: primitive :: u32 ,) , # [codec (index = 77)] # [doc = "The duration of dissolve network has been set"] DissolveNetworkScheduleDurationSet (:: core :: primitive :: u32 ,) , # [codec (index = 78)] # [doc = "Commit-reveal v3 weights have been successfully committed."] # [doc = ""] # [doc = "- **who**: The account ID of the user committing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash representing the committed weights."] CRV3WeightsCommitted (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: H256 ,) , # [codec (index = 79)] # [doc = "Weights have been successfully committed."] # [doc = ""] # [doc = "- **who**: The account ID of the user committing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash representing the committed weights."] WeightsCommitted (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: H256 ,) , # [codec (index = 80)] # [doc = "Weights have been successfully revealed."] # [doc = ""] # [doc = "- **who**: The account ID of the user revealing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash of the revealed weights."] WeightsRevealed (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: H256 ,) , # [codec (index = 81)] # [doc = "Weights have been successfully batch revealed."] # [doc = ""] # [doc = "- **who**: The account ID of the user revealing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **revealed_hashes**: A vector of hashes representing each revealed weight set."] WeightsBatchRevealed (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: utils :: H256 > ,) , # [codec (index = 82)] # [doc = "A batch of weights (or commits) have been force-set."] # [doc = ""] # [doc = "- **netuids**: The netuids these weights were successfully set/committed for."] # [doc = "- **who**: The hotkey that set this batch."] BatchWeightsCompleted (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 83)] # [doc = "A batch extrinsic completed but with some errors."] BatchCompletedWithErrors , # [codec (index = 84)] # [doc = "A weight set among a batch of weights failed."] # [doc = ""] # [doc = "- **error**: The dispatch error emitted by the failed item."] BatchWeightItemFailed (runtime_types :: sp_runtime :: DispatchError ,) , # [codec (index = 85)] # [doc = "Stake has been transferred from one coldkey to another on the same subnet."] # [doc = "Parameters:"] # [doc = "(origin_coldkey, destination_coldkey, hotkey, origin_netuid, destination_netuid, amount)"] StakeTransferred (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 86)] # [doc = "Stake has been swapped from one subnet to another for the same coldkey-hotkey pair."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(coldkey, hotkey, origin_netuid, destination_netuid, amount)"] StakeSwapped (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 87)] # [doc = "Event called when transfer is toggled on a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(netuid, bool)"] TransferToggle (:: core :: primitive :: u16 , :: core :: primitive :: bool ,) , # [codec (index = 88)] # [doc = "The owner hotkey for a subnet has been set."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(netuid, new_hotkey)"] SubnetOwnerHotkeySet (:: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 89)] # [doc = "FirstEmissionBlockNumber is set via start call extrinsic"] # [doc = ""] # [doc = "Parameters:"] # [doc = "netuid"] # [doc = "block number"] FirstEmissionBlockNumberSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 90)] # [doc = "Alpha has been recycled, reducing AlphaOut on a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(coldkey, hotkey, amount, subnet_id)"] AlphaRecycled (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u16 ,) , # [codec (index = 91)] # [doc = "Alpha have been burned without reducing AlphaOut."] # [doc = ""] # [doc = "Parameters:"] # [doc = "(coldkey, hotkey, amount, subnet_id)"] AlphaBurned (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u64 , :: core :: primitive :: u16 ,) , # [codec (index = 92)] # [doc = "An EVM key has been associated with a hotkey."] EvmKeyAssociated { netuid : :: core :: primitive :: u16 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , evm_key : :: subxt :: ext :: subxt_core :: utils :: H160 , block_associated : :: core :: primitive :: u64 , } , # [codec (index = 93)] # [doc = "CRV3 Weights have been successfully revealed."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **who**: The account ID of the user revealing the weights."] CRV3WeightsRevealed (:: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 94)] # [doc = "Commit-Reveal periods has been successfully set."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **periods**: The number of epochs before the reveal."] CommitRevealPeriodsSet (:: core :: primitive :: u16 , :: core :: primitive :: u64 ,) , # [codec (index = 95)] # [doc = "Commit-Reveal has been successfully toggled."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **Enabled**: Is Commit-Reveal enabled."] CommitRevealEnabled (:: core :: primitive :: u16 , :: core :: primitive :: bool ,) , # [codec (index = 96)] # [doc = "the hotkey is swapped"] HotkeySwappedOnSubnet { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , old_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , new_hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , } , # [codec (index = 97)] # [doc = "A subnet lease has been created."] SubnetLeaseCreated { beneficiary : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , lease_id : :: core :: primitive :: u32 , netuid : :: core :: primitive :: u16 , end_block : :: core :: option :: Option < :: core :: primitive :: u32 > , } , # [codec (index = 98)] # [doc = "A subnet lease has been terminated."] SubnetLeaseTerminated { beneficiary : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , } , # [codec (index = 99)] # [doc = "The symbol for a subnet has been updated."] SymbolUpdated { netuid : :: core :: primitive :: u16 , symbol : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } , # [codec (index = 100)] # [doc = "Commit Reveal Weights version has been updated."] # [doc = ""] # [doc = "- **version**: The required version."] CommitRevealVersionSet (:: core :: primitive :: u16 ,) , # [codec (index = 101)] # [doc = "Timelocked weights have been successfully committed."] # [doc = ""] # [doc = "- **who**: The account ID of the user committing the weights."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **commit_hash**: The hash representing the committed weights."] # [doc = "- **reveal_round**: The round at which weights can be revealed."] TimelockedWeightsCommitted (:: subxt :: ext :: subxt_core :: utils :: AccountId32 , :: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: H256 , :: core :: primitive :: u64 ,) , # [codec (index = 102)] # [doc = "Timelocked Weights have been successfully revealed."] # [doc = ""] # [doc = "- **netuid**: The network identifier."] # [doc = "- **who**: The account ID of the user revealing the weights."] TimelockedWeightsRevealed (:: core :: primitive :: u16 , :: subxt :: ext :: subxt_core :: utils :: AccountId32 ,) , # [codec (index = 103)] # [doc = "Auto-staking hotkey received stake"] AutoStakeAdded { netuid : :: core :: primitive :: u16 , destination : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , owner : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , incentive : :: core :: primitive :: u64 , } , # [codec (index = 104)] # [doc = "End-of-epoch miner incentive alpha by UID"] IncentiveAlphaEmittedToMiners { netuid : :: core :: primitive :: u16 , emissions : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u64 > , } , # [codec (index = 105)] # [doc = "The minimum allowed UIDs for a subnet have been set."] MinAllowedUidsSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 106)] # [doc = "The auto stake destination has been set."] # [doc = ""] # [doc = "- **coldkey**: The account ID of the coldkey."] # [doc = "- **netuid**: The network identifier."] # [doc = "- **hotkey**: The account ID of the hotkey."] AutoStakeDestinationSet { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 107)] # [doc = "The minimum allowed non-Immune UIDs has been set."] MinNonImmuneUidsSet (:: core :: primitive :: u16 , :: core :: primitive :: u16 ,) , # [codec (index = 108)] # [doc = "Root emissions have been claimed for a coldkey on all subnets and hotkeys."] # [doc = "Parameters:"] # [doc = "(coldkey)"] RootClaimed { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 109)] # [doc = "Root claim type for a coldkey has been set."] # [doc = "Parameters:"] # [doc = "(coldkey, u8)"] RootClaimTypeSet { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , root_claim_type : runtime_types :: pallet_subtensor :: pallet :: RootClaimTypeEnum , } , # [codec (index = 110)] # [doc = "Subnet lease dividends have been distributed."] SubnetLeaseDividendsDistributed { lease_id : :: core :: primitive :: u32 , contributor : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , alpha : :: core :: primitive :: u64 , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NeuronCertificate { pub public_key : runtime_types :: bounded_collections :: bounded_vec :: BoundedVec < :: core :: primitive :: u8 > , pub algorithm : :: core :: primitive :: u8 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PrometheusInfo { pub block : :: core :: primitive :: u64 , pub version : :: core :: primitive :: u32 , pub ip : :: core :: primitive :: u128 , pub port : :: core :: primitive :: u16 , pub ip_type : :: core :: primitive :: u8 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RecycleOrBurnEnum { # [codec (index = 0)] Burn , # [codec (index = 1)] Recycle , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RootClaimTypeEnum { # [codec (index = 0)] Swap , # [codec (index = 1)] Keep , # [codec (index = 2)] KeepSubnets { subnets : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u16 > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetIdentityV3 { pub subnet_name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub github_repo : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub subnet_contact : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub subnet_url : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub discord : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub description : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub logo_url : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , pub additional : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > , } } pub mod rpc_info { use super :: runtime_types ; pub mod delegate_info { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DelegateInfo < _0 > { pub delegate_ss58 : _0 , # [codec (compact)] pub take : :: core :: primitive :: u16 , pub nominators : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > ,) > , pub owner_ss58 : _0 , pub registrations : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub validator_permits : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , # [codec (compact)] pub return_per_1000 : :: core :: primitive :: u64 , # [codec (compact)] pub total_daily_return : :: core :: primitive :: u64 , } } pub mod dynamic_info { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DynamicInfo < _0 > { # [codec (compact)] pub netuid : :: core :: primitive :: u16 , pub owner_hotkey : _0 , pub owner_coldkey : _0 , pub subnet_name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > , pub token_symbol : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > , # [codec (compact)] pub tempo : :: core :: primitive :: u16 , # [codec (compact)] pub last_step : :: core :: primitive :: u64 , # [codec (compact)] pub blocks_since_last_step : :: core :: primitive :: u64 , # [codec (compact)] pub emission : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_in : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_out : :: core :: primitive :: u64 , # [codec (compact)] pub tao_in : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_out_emission : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_in_emission : :: core :: primitive :: u64 , # [codec (compact)] pub tao_in_emission : :: core :: primitive :: u64 , # [codec (compact)] pub pending_alpha_emission : :: core :: primitive :: u64 , # [codec (compact)] pub pending_root_emission : :: core :: primitive :: u64 , # [codec (compact)] pub subnet_volume : :: core :: primitive :: u128 , # [codec (compact)] pub network_registered_at : :: core :: primitive :: u64 , pub subnet_identity : :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 > , pub moving_price : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , } } pub mod metagraph { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Metagraph < _0 > { # [codec (compact)] pub netuid : :: core :: primitive :: u16 , pub name : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > , pub symbol : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > , pub identity : :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 > , # [codec (compact)] pub network_registered_at : :: core :: primitive :: u64 , pub owner_hotkey : _0 , pub owner_coldkey : _0 , # [codec (compact)] pub block : :: core :: primitive :: u64 , # [codec (compact)] pub tempo : :: core :: primitive :: u16 , # [codec (compact)] pub last_step : :: core :: primitive :: u64 , # [codec (compact)] pub blocks_since_last_step : :: core :: primitive :: u64 , # [codec (compact)] pub subnet_emission : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_in : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_out : :: core :: primitive :: u64 , # [codec (compact)] pub tao_in : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_out_emission : :: core :: primitive :: u64 , # [codec (compact)] pub alpha_in_emission : :: core :: primitive :: u64 , # [codec (compact)] pub tao_in_emission : :: core :: primitive :: u64 , # [codec (compact)] pub pending_alpha_emission : :: core :: primitive :: u64 , # [codec (compact)] pub pending_root_emission : :: core :: primitive :: u64 , # [codec (compact)] pub subnet_volume : :: core :: primitive :: u128 , pub moving_price : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , # [codec (compact)] pub rho : :: core :: primitive :: u16 , # [codec (compact)] pub kappa : :: core :: primitive :: u16 , # [codec (compact)] pub min_allowed_weights : :: core :: primitive :: u16 , # [codec (compact)] pub max_weights_limit : :: core :: primitive :: u16 , # [codec (compact)] pub weights_version : :: core :: primitive :: u64 , # [codec (compact)] pub weights_rate_limit : :: core :: primitive :: u64 , # [codec (compact)] pub activity_cutoff : :: core :: primitive :: u16 , # [codec (compact)] pub max_validators : :: core :: primitive :: u16 , # [codec (compact)] pub num_uids : :: core :: primitive :: u16 , # [codec (compact)] pub max_uids : :: core :: primitive :: u16 , # [codec (compact)] pub burn : :: core :: primitive :: u64 , # [codec (compact)] pub difficulty : :: core :: primitive :: u64 , pub registration_allowed : :: core :: primitive :: bool , pub pow_registration_allowed : :: core :: primitive :: bool , # [codec (compact)] pub immunity_period : :: core :: primitive :: u16 , # [codec (compact)] pub min_difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub max_difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub min_burn : :: core :: primitive :: u64 , # [codec (compact)] pub max_burn : :: core :: primitive :: u64 , # [codec (compact)] pub adjustment_alpha : :: core :: primitive :: u64 , # [codec (compact)] pub adjustment_interval : :: core :: primitive :: u16 , # [codec (compact)] pub target_regs_per_interval : :: core :: primitive :: u16 , # [codec (compact)] pub max_regs_per_block : :: core :: primitive :: u16 , # [codec (compact)] pub serving_rate_limit : :: core :: primitive :: u64 , pub commit_reveal_weights_enabled : :: core :: primitive :: bool , # [codec (compact)] pub commit_reveal_period : :: core :: primitive :: u64 , pub liquid_alpha_enabled : :: core :: primitive :: bool , # [codec (compact)] pub alpha_high : :: core :: primitive :: u16 , # [codec (compact)] pub alpha_low : :: core :: primitive :: u16 , # [codec (compact)] pub bonds_moving_avg : :: core :: primitive :: u64 , pub hotkeys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub coldkeys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub identities : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: ChainIdentityV2 > > , pub axons : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: pallet :: AxonInfo > , pub active : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > , pub validator_permit : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > , pub pruning_score : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub last_update : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub emission : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub dividends : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub incentives : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub consensus : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub trust : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub rank : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub block_at_registration : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub alpha_stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub tao_stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub total_stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub tao_dividends_per_hotkey : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > , pub alpha_dividends_per_hotkey : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SelectiveMetagraph < _0 > { # [codec (compact)] pub netuid : :: core :: primitive :: u16 , pub name : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > > , pub symbol : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > > , pub identity : :: core :: option :: Option < :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 > > , pub network_registered_at : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub owner_hotkey : :: core :: option :: Option < _0 > , pub owner_coldkey : :: core :: option :: Option < _0 > , pub block : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub tempo : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub last_step : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub blocks_since_last_step : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub subnet_emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub alpha_in : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub alpha_out : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub tao_in : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub alpha_out_emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub alpha_in_emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub tao_in_emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub pending_alpha_emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub pending_root_emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub subnet_volume : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u128 > > , pub moving_price : :: core :: option :: Option < runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > > , pub rho : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub kappa : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub min_allowed_weights : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub max_weights_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub weights_version : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub weights_rate_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub activity_cutoff : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub max_validators : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub num_uids : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub max_uids : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub burn : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub difficulty : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub registration_allowed : :: core :: option :: Option < :: core :: primitive :: bool > , pub pow_registration_allowed : :: core :: option :: Option < :: core :: primitive :: bool > , pub immunity_period : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub min_difficulty : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub max_difficulty : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub min_burn : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub max_burn : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub adjustment_alpha : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub adjustment_interval : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub target_regs_per_interval : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub max_regs_per_block : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub serving_rate_limit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub commit_reveal_weights_enabled : :: core :: option :: Option < :: core :: primitive :: bool > , pub commit_reveal_period : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub liquid_alpha_enabled : :: core :: option :: Option < :: core :: primitive :: bool > , pub alpha_high : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub alpha_low : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub bonds_moving_avg : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub hotkeys : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > > , pub coldkeys : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > > , pub identities : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: ChainIdentityV2 > > > , pub axons : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: pallet_subtensor :: pallet :: AxonInfo > > , pub active : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > > , pub validator_permit : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > > , pub pruning_score : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub last_update : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , pub emission : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , pub dividends : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub incentives : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub consensus : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub trust : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub rank : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub block_at_registration : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , pub alpha_stake : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , pub tao_stake : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , pub total_stake : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , pub tao_dividends_per_hotkey : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > > , pub alpha_dividends_per_hotkey : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > > , pub validators : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > > , pub commitments : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u8 > > ,) > > , } } pub mod neuron_info { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NeuronInfo < _0 > { pub hotkey : _0 , pub coldkey : _0 , # [codec (compact)] pub uid : :: core :: primitive :: u16 , # [codec (compact)] pub netuid : :: core :: primitive :: u16 , pub active : :: core :: primitive :: bool , pub axon_info : runtime_types :: pallet_subtensor :: pallet :: AxonInfo , pub prometheus_info : runtime_types :: pallet_subtensor :: pallet :: PrometheusInfo , pub stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > , # [codec (compact)] pub rank : :: core :: primitive :: u16 , # [codec (compact)] pub emission : :: core :: primitive :: u64 , # [codec (compact)] pub incentive : :: core :: primitive :: u16 , # [codec (compact)] pub consensus : :: core :: primitive :: u16 , # [codec (compact)] pub trust : :: core :: primitive :: u16 , # [codec (compact)] pub validator_trust : :: core :: primitive :: u16 , # [codec (compact)] pub dividends : :: core :: primitive :: u16 , # [codec (compact)] pub last_update : :: core :: primitive :: u64 , pub validator_permit : :: core :: primitive :: bool , pub weights : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , pub bonds : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (:: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > ,) > , # [codec (compact)] pub pruning_score : :: core :: primitive :: u16 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct NeuronInfoLite < _0 > { pub hotkey : _0 , pub coldkey : _0 , # [codec (compact)] pub uid : :: core :: primitive :: u16 , # [codec (compact)] pub netuid : :: core :: primitive :: u16 , pub active : :: core :: primitive :: bool , pub axon_info : runtime_types :: pallet_subtensor :: pallet :: AxonInfo , pub prometheus_info : runtime_types :: pallet_subtensor :: pallet :: PrometheusInfo , pub stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < (_0 , :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > ,) > , # [codec (compact)] pub rank : :: core :: primitive :: u16 , # [codec (compact)] pub emission : :: core :: primitive :: u64 , # [codec (compact)] pub incentive : :: core :: primitive :: u16 , # [codec (compact)] pub consensus : :: core :: primitive :: u16 , # [codec (compact)] pub trust : :: core :: primitive :: u16 , # [codec (compact)] pub validator_trust : :: core :: primitive :: u16 , # [codec (compact)] pub dividends : :: core :: primitive :: u16 , # [codec (compact)] pub last_update : :: core :: primitive :: u64 , pub validator_permit : :: core :: primitive :: bool , # [codec (compact)] pub pruning_score : :: core :: primitive :: u16 , } } pub mod show_subnet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetState < _0 > { # [codec (compact)] pub netuid : :: core :: primitive :: u16 , pub hotkeys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub coldkeys : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _0 > , pub active : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > , pub validator_permit : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: bool > , pub pruning_score : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub last_update : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub emission : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub dividends : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub incentives : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub consensus : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub trust : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub rank : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u16 > > , pub block_at_registration : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub alpha_stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub tao_stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub total_stake : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > , pub emission_history : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: ext :: codec :: Compact < :: core :: primitive :: u64 > > > , } } pub mod stake_info { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct StakeInfo < _0 > { pub hotkey : _0 , pub coldkey : _0 , # [codec (compact)] pub netuid : :: core :: primitive :: u16 , # [codec (compact)] pub stake : :: core :: primitive :: u64 , # [codec (compact)] pub locked : :: core :: primitive :: u64 , # [codec (compact)] pub emission : :: core :: primitive :: u64 , # [codec (compact)] pub tao_emission : :: core :: primitive :: u64 , # [codec (compact)] pub drain : :: core :: primitive :: u64 , pub is_registered : :: core :: primitive :: bool , } } pub mod subnet_info { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetHyperparams { # [codec (compact)] pub rho : :: core :: primitive :: u16 , # [codec (compact)] pub kappa : :: core :: primitive :: u16 , # [codec (compact)] pub immunity_period : :: core :: primitive :: u16 , # [codec (compact)] pub min_allowed_weights : :: core :: primitive :: u16 , # [codec (compact)] pub max_weights_limit : :: core :: primitive :: u16 , # [codec (compact)] pub tempo : :: core :: primitive :: u16 , # [codec (compact)] pub min_difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub max_difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub weights_version : :: core :: primitive :: u64 , # [codec (compact)] pub weights_rate_limit : :: core :: primitive :: u64 , # [codec (compact)] pub adjustment_interval : :: core :: primitive :: u16 , # [codec (compact)] pub activity_cutoff : :: core :: primitive :: u16 , pub registration_allowed : :: core :: primitive :: bool , # [codec (compact)] pub target_regs_per_interval : :: core :: primitive :: u16 , # [codec (compact)] pub min_burn : :: core :: primitive :: u64 , # [codec (compact)] pub max_burn : :: core :: primitive :: u64 , # [codec (compact)] pub bonds_moving_avg : :: core :: primitive :: u64 , # [codec (compact)] pub max_regs_per_block : :: core :: primitive :: u16 , # [codec (compact)] pub serving_rate_limit : :: core :: primitive :: u64 , # [codec (compact)] pub max_validators : :: core :: primitive :: u16 , # [codec (compact)] pub adjustment_alpha : :: core :: primitive :: u64 , # [codec (compact)] pub difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub commit_reveal_period : :: core :: primitive :: u64 , pub commit_reveal_weights_enabled : :: core :: primitive :: bool , # [codec (compact)] pub alpha_high : :: core :: primitive :: u16 , # [codec (compact)] pub alpha_low : :: core :: primitive :: u16 , pub liquid_alpha_enabled : :: core :: primitive :: bool , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetHyperparamsV2 { # [codec (compact)] pub rho : :: core :: primitive :: u16 , # [codec (compact)] pub kappa : :: core :: primitive :: u16 , # [codec (compact)] pub immunity_period : :: core :: primitive :: u16 , # [codec (compact)] pub min_allowed_weights : :: core :: primitive :: u16 , # [codec (compact)] pub max_weights_limit : :: core :: primitive :: u16 , # [codec (compact)] pub tempo : :: core :: primitive :: u16 , # [codec (compact)] pub min_difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub max_difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub weights_version : :: core :: primitive :: u64 , # [codec (compact)] pub weights_rate_limit : :: core :: primitive :: u64 , # [codec (compact)] pub adjustment_interval : :: core :: primitive :: u16 , # [codec (compact)] pub activity_cutoff : :: core :: primitive :: u16 , pub registration_allowed : :: core :: primitive :: bool , # [codec (compact)] pub target_regs_per_interval : :: core :: primitive :: u16 , # [codec (compact)] pub min_burn : :: core :: primitive :: u64 , # [codec (compact)] pub max_burn : :: core :: primitive :: u64 , # [codec (compact)] pub bonds_moving_avg : :: core :: primitive :: u64 , # [codec (compact)] pub max_regs_per_block : :: core :: primitive :: u16 , # [codec (compact)] pub serving_rate_limit : :: core :: primitive :: u64 , # [codec (compact)] pub max_validators : :: core :: primitive :: u16 , # [codec (compact)] pub adjustment_alpha : :: core :: primitive :: u64 , # [codec (compact)] pub difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub commit_reveal_period : :: core :: primitive :: u64 , pub commit_reveal_weights_enabled : :: core :: primitive :: bool , # [codec (compact)] pub alpha_high : :: core :: primitive :: u16 , # [codec (compact)] pub alpha_low : :: core :: primitive :: u16 , pub liquid_alpha_enabled : :: core :: primitive :: bool , pub alpha_sigmoid_steepness : runtime_types :: substrate_fixed :: FixedI64 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , # [codec (compact)] pub yuma_version : :: core :: primitive :: u16 , pub subnet_is_active : :: core :: primitive :: bool , pub transfers_enabled : :: core :: primitive :: bool , pub bonds_reset_enabled : :: core :: primitive :: bool , pub user_liquidity_enabled : :: core :: primitive :: bool , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetInfo < _0 > { # [codec (compact)] pub netuid : :: core :: primitive :: u16 , # [codec (compact)] pub rho : :: core :: primitive :: u16 , # [codec (compact)] pub kappa : :: core :: primitive :: u16 , # [codec (compact)] pub difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub immunity_period : :: core :: primitive :: u16 , # [codec (compact)] pub max_allowed_validators : :: core :: primitive :: u16 , # [codec (compact)] pub min_allowed_weights : :: core :: primitive :: u16 , # [codec (compact)] pub max_weights_limit : :: core :: primitive :: u16 , # [codec (compact)] pub scaling_law_power : :: core :: primitive :: u16 , # [codec (compact)] pub subnetwork_n : :: core :: primitive :: u16 , # [codec (compact)] pub max_allowed_uids : :: core :: primitive :: u16 , # [codec (compact)] pub blocks_since_last_step : :: core :: primitive :: u64 , # [codec (compact)] pub tempo : :: core :: primitive :: u16 , # [codec (compact)] pub network_modality : :: core :: primitive :: u16 , pub network_connect : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < [:: core :: primitive :: u16 ; 2usize] > , # [codec (compact)] pub emission_values : :: core :: primitive :: u64 , # [codec (compact)] pub burn : :: core :: primitive :: u64 , pub owner : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetInfov2 < _0 > { # [codec (compact)] pub netuid : :: core :: primitive :: u16 , # [codec (compact)] pub rho : :: core :: primitive :: u16 , # [codec (compact)] pub kappa : :: core :: primitive :: u16 , # [codec (compact)] pub difficulty : :: core :: primitive :: u64 , # [codec (compact)] pub immunity_period : :: core :: primitive :: u16 , # [codec (compact)] pub max_allowed_validators : :: core :: primitive :: u16 , # [codec (compact)] pub min_allowed_weights : :: core :: primitive :: u16 , # [codec (compact)] pub max_weights_limit : :: core :: primitive :: u16 , # [codec (compact)] pub scaling_law_power : :: core :: primitive :: u16 , # [codec (compact)] pub subnetwork_n : :: core :: primitive :: u16 , # [codec (compact)] pub max_allowed_uids : :: core :: primitive :: u16 , # [codec (compact)] pub blocks_since_last_step : :: core :: primitive :: u64 , # [codec (compact)] pub tempo : :: core :: primitive :: u16 , # [codec (compact)] pub network_modality : :: core :: primitive :: u16 , pub network_connect : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < [:: core :: primitive :: u16 ; 2usize] > , # [codec (compact)] pub emission_value : :: core :: primitive :: u64 , # [codec (compact)] pub burn : :: core :: primitive :: u64 , pub owner : _0 , pub identity : :: core :: option :: Option < runtime_types :: pallet_subtensor :: pallet :: SubnetIdentityV3 > , } } } pub mod subnets { use super :: runtime_types ; pub mod leasing { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubnetLease < _0 , _1 , _2 > { pub beneficiary : _0 , pub coldkey : _0 , pub hotkey : _0 , pub emissions_share : runtime_types :: sp_arithmetic :: per_things :: Percent , pub end_block : :: core :: option :: Option < _1 > , pub netuid : :: core :: primitive :: u16 , pub cost : _2 , } } } pub mod transaction_extension { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SubtensorTransactionExtension < _0 > (pub :: core :: marker :: PhantomData < _0 >) ; } pub mod utils { use super :: runtime_types ; pub mod rate_limiting { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Hyperparameter { # [codec (index = 0)] Unknown , # [codec (index = 1)] ServingRateLimit , # [codec (index = 2)] MaxDifficulty , # [codec (index = 3)] AdjustmentAlpha , # [codec (index = 4)] MaxWeightLimit , # [codec (index = 5)] ImmunityPeriod , # [codec (index = 6)] MinAllowedWeights , # [codec (index = 7)] Kappa , # [codec (index = 8)] Rho , # [codec (index = 9)] ActivityCutoff , # [codec (index = 10)] PowRegistrationAllowed , # [codec (index = 11)] MinBurn , # [codec (index = 12)] MaxBurn , # [codec (index = 13)] BondsMovingAverage , # [codec (index = 14)] BondsPenalty , # [codec (index = 15)] CommitRevealEnabled , # [codec (index = 16)] LiquidAlphaEnabled , # [codec (index = 17)] AlphaValues , # [codec (index = 18)] WeightCommitInterval , # [codec (index = 19)] TransferEnabled , # [codec (index = 20)] AlphaSigmoidSteepness , # [codec (index = 21)] Yuma3Enabled , # [codec (index = 22)] BondsResetEnabled , # [codec (index = 23)] ImmuneNeuronLimit , # [codec (index = 24)] RecycleOrBurn , # [codec (index = 25)] MaxAllowedUids , } } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum RateLimitKey < _0 > { # [codec (index = 0)] SetSNOwnerHotkey (:: core :: primitive :: u16 ,) , # [codec (index = 1)] OwnerHyperparamUpdate (:: core :: primitive :: u16 , runtime_types :: pallet_subtensor :: utils :: rate_limiting :: Hyperparameter ,) , # [codec (index = 2)] NetworkLastRegistered , # [codec (index = 3)] LastTxBlock (_0 ,) , # [codec (index = 4)] LastTxBlockChildKeyTake (_0 ,) , # [codec (index = 5)] LastTxBlockDelegateTake (_0 ,) , } } pub mod pallet_subtensor_proxy { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Dispatch the given `call` from an account that the sender is authorised for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] proxy { real : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , force_proxy_type : :: core :: option :: Option < runtime_types :: subtensor_runtime_common :: ProxyType > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Register a proxy account for the sender that is able to make calls on its behalf."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to make a proxy."] # [doc = "- `proxy_type`: The permissions allowed for this proxy account."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] add_proxy { delegate : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , delay : :: core :: primitive :: u32 , } , # [codec (index = 2)] # [doc = "Unregister a proxy account for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `proxy`: The account that the `caller` would like to remove as a proxy."] # [doc = "- `proxy_type`: The permissions currently enabled for the removed proxy account."] remove_proxy { delegate : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , delay : :: core :: primitive :: u32 , } , # [codec (index = 3)] # [doc = "Unregister all proxy accounts for the sender."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "WARNING: This may be called on accounts created by `create_pure`, however if done, then"] # [doc = "the unreserved fees will be inaccessible. **All access to this account will be lost.**"] remove_proxies , # [codec (index = 4)] # [doc = "Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and"] # [doc = "initialize it with a proxy of `proxy_type` for `origin` sender."] # [doc = ""] # [doc = "Requires a `Signed` origin."] # [doc = ""] # [doc = "- `proxy_type`: The type of the proxy that the sender will be registered as over the"] # [doc = "new account. This will almost always be the most permissive `ProxyType` possible to"] # [doc = "allow for maximum flexibility."] # [doc = "- `index`: A disambiguation index, in case this is called multiple times in the same"] # [doc = "transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just"] # [doc = "want to use `0`."] # [doc = "- `delay`: The announcement period required of the initial proxy. Will generally be"] # [doc = "zero."] # [doc = ""] # [doc = "Fails with `Duplicate` if this has already been called in this transaction, from the"] # [doc = "same sender, with the same parameters."] # [doc = ""] # [doc = "Fails if there are insufficient funds to pay for deposit."] create_pure { proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , delay : :: core :: primitive :: u32 , index : :: core :: primitive :: u16 , } , # [codec (index = 5)] # [doc = "Removes a previously spawned pure proxy."] # [doc = ""] # [doc = "WARNING: **All access to this account will be lost.** Any funds held in it will be"] # [doc = "inaccessible."] # [doc = ""] # [doc = "Requires a `Signed` origin, and the sender account must have been created by a call to"] # [doc = "`create_pure` with corresponding parameters."] # [doc = ""] # [doc = "- `spawner`: The account that originally called `create_pure` to create this account."] # [doc = "- `index`: The disambiguation index originally passed to `create_pure`. Probably `0`."] # [doc = "- `proxy_type`: The proxy type originally passed to `create_pure`."] # [doc = "- `height`: The height of the chain when the call to `create_pure` was processed."] # [doc = "- `ext_index`: The extrinsic index in which the call to `create_pure` was processed."] # [doc = ""] # [doc = "Fails with `NoPermission` in case the caller is not a previously created pure"] # [doc = "account whose `create_pure` call has corresponding parameters."] kill_pure { spawner : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , index : :: core :: primitive :: u16 , # [codec (compact)] height : :: core :: primitive :: u32 , # [codec (compact)] ext_index : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "Publish the hash of a proxy-call that will be made in the future."] # [doc = ""] # [doc = "This must be called some number of blocks before the corresponding `proxy` is attempted"] # [doc = "if the delay associated with the proxy relationship is greater than zero."] # [doc = ""] # [doc = "No more than `MaxPending` announcements may be made at any one time."] # [doc = ""] # [doc = "This will take a deposit of `AnnouncementDepositFactor` as well as"] # [doc = "`AnnouncementDepositBase` if there are no other pending announcements."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_ and a proxy of `real`."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] announce { real : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 7)] # [doc = "Remove a given announcement."] # [doc = ""] # [doc = "May be called by a proxy account to remove a call they previously announced and return"] # [doc = "the deposit."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `call_hash`: The hash of the call to be made by the `real` account."] remove_announcement { real : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 8)] # [doc = "Remove the given announcement of a delegate."] # [doc = ""] # [doc = "May be called by a target (proxied) account to remove a call that one of their delegates"] # [doc = "(`delegate`) has announced they want to execute. The deposit is returned."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `delegate`: The account that previously announced the call."] # [doc = "- `call_hash`: The hash of the call to be made."] reject_announcement { delegate : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 9)] # [doc = "Dispatch the given `call` from an account that the sender is authorized for through"] # [doc = "`add_proxy`."] # [doc = ""] # [doc = "Removes any corresponding announcement(s)."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- `real`: The account that the proxy will make a call on behalf of."] # [doc = "- `force_proxy_type`: Specify the exact proxy type to be used and checked for this call."] # [doc = "- `call`: The call to be made by the `real` account."] proxy_announced { delegate : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , real : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , force_proxy_type : :: core :: option :: Option < runtime_types :: subtensor_runtime_common :: ProxyType > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 10)] # [doc = "Poke / Adjust deposits made for proxies and announcements based on current values."] # [doc = "This can be used by accounts to possibly lower their locked amount."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] # [doc = ""] # [doc = "The transaction fee is waived if the deposit amount has changed."] # [doc = ""] # [doc = "Emits `DepositPoked` if successful."] poke_deposit , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "There are too many proxies registered or too many announcements pending."] TooMany , # [codec (index = 1)] # [doc = "Proxy registration not found."] NotFound , # [codec (index = 2)] # [doc = "Sender is not a proxy of the account to be proxied."] NotProxy , # [codec (index = 3)] # [doc = "A call which is incompatible with the proxy type's filter was attempted."] Unproxyable , # [codec (index = 4)] # [doc = "Account is already a proxy."] Duplicate , # [codec (index = 5)] # [doc = "Call may not be made by proxy because it may escalate its privileges."] NoPermission , # [codec (index = 6)] # [doc = "Announcement, if made at all, was made too recently."] Unannounced , # [codec (index = 7)] # [doc = "Cannot add self as proxy."] NoSelfProxy , # [codec (index = 8)] # [doc = "Invariant violated: deposit recomputation returned None after updating announcements."] AnnouncementDepositInvariantViolated , # [codec (index = 9)] # [doc = "Failed to derive a valid account id from the provided entropy."] InvalidDerivedAccountId , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A proxy was executed correctly, with the given."] ProxyExecuted { result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 1)] # [doc = "A pure account has been created by new proxy with given"] # [doc = "disambiguation index and proxy type."] PureCreated { pure : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , disambiguation_index : :: core :: primitive :: u16 , } , # [codec (index = 2)] # [doc = "A pure proxy was killed by its spawner."] PureKilled { pure : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , spawner : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , disambiguation_index : :: core :: primitive :: u16 , } , # [codec (index = 3)] # [doc = "An announcement was placed to make a call in the future."] Announced { real : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , call_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , } , # [codec (index = 4)] # [doc = "A proxy was added."] ProxyAdded { delegator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , delegatee : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , delay : :: core :: primitive :: u32 , } , # [codec (index = 5)] # [doc = "A proxy was removed."] ProxyRemoved { delegator : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , delegatee : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , proxy_type : runtime_types :: subtensor_runtime_common :: ProxyType , delay : :: core :: primitive :: u32 , } , # [codec (index = 6)] # [doc = "A deposit stored for proxies or announcements was poked / updated."] DepositPoked { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , kind : runtime_types :: pallet_subtensor_proxy :: DepositKind , old_deposit : :: core :: primitive :: u64 , new_deposit : :: core :: primitive :: u64 , } , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Announcement < _0 , _1 , _2 > { pub real : _0 , pub call_hash : _1 , pub height : _2 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum DepositKind { # [codec (index = 0)] Proxies , # [codec (index = 1)] Announcements , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ProxyDefinition < _0 , _1 , _2 > { pub delegate : _0 , pub proxy_type : _1 , pub delay : _2 , } } pub mod pallet_subtensor_swap { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Set the fee rate for swaps on a specific subnet (normalized value)."] # [doc = "For example, 0.3% is approximately 196."] # [doc = ""] # [doc = "Only callable by the admin origin"] set_fee_rate { netuid : :: core :: primitive :: u16 , rate : :: core :: primitive :: u16 , } , # [codec (index = 4)] # [doc = "Enable user liquidity operations for a specific subnet. This switches the"] # [doc = "subnet from V2 to V3 swap mode. Thereafter, adding new user liquidity can be disabled"] # [doc = "by toggling this flag to false, but the swap mode will remain V3 because of existing"] # [doc = "user liquidity until all users withdraw their liquidity."] # [doc = ""] # [doc = "Only sudo or subnet owner can enable user liquidity."] # [doc = "Only sudo can disable user liquidity."] toggle_user_liquidity { netuid : :: core :: primitive :: u16 , enable : :: core :: primitive :: bool , } , # [codec (index = 1)] # [doc = "Add liquidity to a specific price range for a subnet."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- tick_low: Lower bound of the price range"] # [doc = "- tick_high: Upper bound of the price range"] # [doc = "- liquidity: Amount of liquidity to add"] # [doc = ""] # [doc = "Emits `Event::LiquidityAdded` on success"] add_liquidity { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , tick_low : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , tick_high : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , liquidity : :: core :: primitive :: u64 , } , # [codec (index = 2)] # [doc = "Remove liquidity from a specific position."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- position_id: ID of the position to remove"] # [doc = ""] # [doc = "Emits `Event::LiquidityRemoved` on success"] remove_liquidity { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , position_id : runtime_types :: pallet_subtensor_swap :: position :: PositionId , } , # [codec (index = 3)] # [doc = "Modify a liquidity position."] # [doc = ""] # [doc = "Parameters:"] # [doc = "- origin: The origin of the transaction"] # [doc = "- netuid: Subnet ID"] # [doc = "- position_id: ID of the position to remove"] # [doc = "- liquidity_delta: Liquidity to add (if positive) or remove (if negative)"] # [doc = ""] # [doc = "Emits `Event::LiquidityRemoved` on success"] modify_position { hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , position_id : runtime_types :: pallet_subtensor_swap :: position :: PositionId , liquidity_delta : :: core :: primitive :: i64 , } , # [codec (index = 5)] # [doc = "Disable user liquidity in all subnets."] # [doc = ""] # [doc = "Emits `Event::UserLiquidityToggled` on success"] disable_lp , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "The fee rate is too high"] FeeRateTooHigh , # [codec (index = 1)] # [doc = "The provided amount is insufficient for the swap."] InsufficientInputAmount , # [codec (index = 2)] # [doc = "The provided liquidity is insufficient for the operation."] InsufficientLiquidity , # [codec (index = 3)] # [doc = "The operation would exceed the price limit."] PriceLimitExceeded , # [codec (index = 4)] # [doc = "The caller does not have enough balance for the operation."] InsufficientBalance , # [codec (index = 5)] # [doc = "Attempted to remove liquidity that does not exist."] LiquidityNotFound , # [codec (index = 6)] # [doc = "The provided tick range is invalid."] InvalidTickRange , # [codec (index = 7)] # [doc = "Maximum user positions exceeded"] MaxPositionsExceeded , # [codec (index = 8)] # [doc = "Too many swap steps"] TooManySwapSteps , # [codec (index = 9)] # [doc = "Provided liquidity parameter is invalid (likely too small)"] InvalidLiquidityValue , # [codec (index = 10)] # [doc = "Reserves too low for operation."] ReservesTooLow , # [codec (index = 11)] # [doc = "The subnet does not exist."] MechanismDoesNotExist , # [codec (index = 12)] # [doc = "User liquidity operations are disabled for this subnet"] UserLiquidityDisabled , # [codec (index = 13)] # [doc = "The subnet does not have subtoken enabled"] SubtokenDisabled , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "Event emitted when the fee rate has been updated for a subnet"] FeeRateSet { netuid : :: core :: primitive :: u16 , rate : :: core :: primitive :: u16 , } , # [codec (index = 1)] # [doc = "Event emitted when user liquidity operations are enabled for a subnet."] # [doc = "First enable even indicates a switch from V2 to V3 swap."] UserLiquidityToggled { netuid : :: core :: primitive :: u16 , enable : :: core :: primitive :: bool , } , # [codec (index = 2)] # [doc = "Event emitted when a liquidity position is added to a subnet's liquidity pool."] LiquidityAdded { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , position_id : runtime_types :: pallet_subtensor_swap :: position :: PositionId , liquidity : :: core :: primitive :: u64 , tao : :: core :: primitive :: u64 , alpha : :: core :: primitive :: u64 , tick_low : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , tick_high : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , } , # [codec (index = 3)] # [doc = "Event emitted when a liquidity position is removed from a subnet's liquidity pool."] LiquidityRemoved { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , position_id : runtime_types :: pallet_subtensor_swap :: position :: PositionId , liquidity : :: core :: primitive :: u64 , tao : :: core :: primitive :: u64 , alpha : :: core :: primitive :: u64 , fee_tao : :: core :: primitive :: u64 , fee_alpha : :: core :: primitive :: u64 , tick_low : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , tick_high : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , } , # [codec (index = 4)] # [doc = "Event emitted when a liquidity position is modified in a subnet's liquidity pool."] # [doc = "Modifying causes the fees to be claimed."] LiquidityModified { coldkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , hotkey : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , netuid : :: core :: primitive :: u16 , position_id : runtime_types :: pallet_subtensor_swap :: position :: PositionId , liquidity : :: core :: primitive :: i64 , tao : :: core :: primitive :: i64 , alpha : :: core :: primitive :: i64 , fee_tao : :: core :: primitive :: u64 , fee_alpha : :: core :: primitive :: u64 , tick_low : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , tick_high : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , } , } } } pub mod position { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Position { pub id : runtime_types :: pallet_subtensor_swap :: position :: PositionId , pub netuid : :: core :: primitive :: u16 , pub tick_low : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , pub tick_high : runtime_types :: pallet_subtensor_swap :: tick :: TickIndex , pub liquidity : :: core :: primitive :: u64 , pub fees_tao : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , pub fees_alpha : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct PositionId (pub :: core :: primitive :: u128 ,) ; } pub mod tick { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum LayerLevel { # [codec (index = 0)] Top , # [codec (index = 1)] Middle , # [codec (index = 2)] Bottom , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Tick { pub liquidity_net : :: core :: primitive :: i128 , pub liquidity_gross : :: core :: primitive :: u64 , pub fees_out_tao : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , pub fees_out_alpha : runtime_types :: substrate_fixed :: FixedI128 < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UInt < runtime_types :: substrate_typenum :: uint :: UTerm , runtime_types :: substrate_typenum :: bit :: B1 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > , runtime_types :: substrate_typenum :: bit :: B0 > > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct TickIndex (pub :: core :: primitive :: i32 ,) ; } } pub mod pallet_subtensor_swap_runtime_api { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SimSwapResult { pub tao_amount : :: core :: primitive :: u64 , pub alpha_amount : :: core :: primitive :: u64 , pub tao_fee : :: core :: primitive :: u64 , pub alpha_fee : :: core :: primitive :: u64 , } } pub mod pallet_subtensor_utility { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Send a batch of dispatch calls."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] # [doc = ""] # [doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] # [doc = "event is deposited. If a call failed and the batch was interrupted, then the"] # [doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] # [doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] # [doc = "event is deposited."] batch { calls : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Send a call through an indexed pseudonym of the sender."] # [doc = ""] # [doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] # [doc = "use the same filter as the origin of this call."] # [doc = ""] # [doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] # [doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] # [doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] # [doc = "in the Multisig pallet instead."] # [doc = ""] # [doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] as_derivative { index : :: core :: primitive :: u16 , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 2)] # [doc = "Send a batch of dispatch calls and atomically execute them."] # [doc = "The whole transaction will rollback and fail if any of the calls failed."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] batch_all { calls : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 3)] # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(1)."] dispatch_as { as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: OriginCaller > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 4)] # [doc = "Send a batch of dispatch calls."] # [doc = "Unlike `batch`, it allows errors and won't interrupt."] # [doc = ""] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] # [doc = "  exceed the constant: `batched_calls_limit` (available in constant metadata)."] # [doc = ""] # [doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] # [doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- O(C) where C is the number of calls to be batched."] force_batch { calls : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 5)] # [doc = "Dispatch a function call with a specified weight."] # [doc = ""] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Root origin to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] with_weight { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 6)] # [doc = "Dispatch a fallback call in the event the main call fails to execute."] # [doc = "May be called from any origin except `None`."] # [doc = ""] # [doc = "This function first attempts to dispatch the `main` call."] # [doc = "If the `main` call fails, the `fallback` is attemted."] # [doc = "if the fallback is successfully dispatched, the weights of both calls"] # [doc = "are accumulated and an event containing the main call error is deposited."] # [doc = ""] # [doc = "In the event of a fallback failure the whole call fails"] # [doc = "with the weights returned."] # [doc = ""] # [doc = "- `main`: The main call to be dispatched. This is the primary action to execute."] # [doc = "- `fallback`: The fallback call to be dispatched in case the `main` call fails."] # [doc = ""] # [doc = "## Dispatch Logic"] # [doc = "- If the origin is `root`, both the main and fallback calls are executed without"] # [doc = "  applying any origin filters."] # [doc = "- If the origin is not `root`, the origin filter is applied to both the `main` and"] # [doc = "  `fallback` calls."] # [doc = ""] # [doc = "## Use Case"] # [doc = "- Some use cases might involve submitting a `batch` type call in either main, fallback"] # [doc = "  or both."] if_else { main : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , fallback : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 7)] # [doc = "Dispatches a function call with a provided origin."] # [doc = ""] # [doc = "Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Root_."] dispatch_as_fallible { as_origin : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: OriginCaller > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Error` enum of this pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Too many calls batched."] TooManyCalls , # [codec (index = 1)] # [doc = "Bad input data for derived account ID"] InvalidDerivedAccount , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [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)] # [doc = "Batch of dispatches completed fully with no error."] BatchCompleted , # [codec (index = 2)] # [doc = "Batch of dispatches completed but has errors."] BatchCompletedWithErrors , # [codec (index = 3)] # [doc = "A single item within a Batch of dispatches has completed with no error."] ItemCompleted , # [codec (index = 4)] # [doc = "A single item within a Batch of dispatches has completed with error."] ItemFailed { error : runtime_types :: sp_runtime :: DispatchError , } , # [codec (index = 5)] # [doc = "A call was dispatched."] DispatchedAs { result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 6)] # [doc = "Main call was dispatched."] IfElseMainSuccess , # [codec (index = 7)] # [doc = "The fallback call was dispatched."] IfElseFallbackCalled { main_error : runtime_types :: sp_runtime :: DispatchError , } , } } } pub mod pallet_sudo { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] sudo { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 1)] # [doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] # [doc = "This function does not check the weight of the call, and instead allows the"] # [doc = "Sudo user to specify the weight of the call."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] sudo_unchecked_weight { call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , weight : runtime_types :: sp_weights :: weight_v2 :: Weight , } , # [codec (index = 2)] # [doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] # [doc = "key."] set_key { new : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , } , # [codec (index = 3)] # [doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] # [doc = "a given account."] # [doc = ""] # [doc = "The dispatch origin for this call must be _Signed_."] sudo_as { who : :: subxt :: ext :: subxt_core :: utils :: MultiAddress < :: subxt :: ext :: subxt_core :: utils :: AccountId32 , () > , call : :: subxt :: ext :: subxt_core :: alloc :: boxed :: Box < runtime_types :: node_subtensor_runtime :: RuntimeCall > , } , # [codec (index = 4)] # [doc = "Permanently removes the sudo key."] # [doc = ""] # [doc = "**This cannot be un-done.**"] remove_key , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Error for the Sudo pallet."] pub enum Error { # [codec (index = 0)] # [doc = "Sender must be the Sudo account."] RequireSudo , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A sudo call just took place."] Sudid { sudo_result : :: core :: result :: Result < () , runtime_types :: sp_runtime :: DispatchError > , } , # [codec (index = 1)] # [doc = "The sudo key has been updated."] KeyChanged { old : :: core :: option :: Option < :: subxt :: ext :: subxt_core :: utils :: AccountId32 > , new : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , } , # [codec (index = 2)] # [doc = "The key was permanently removed."] KeyRemoved , # [codec (index = 3)] # [doc = "A [sudo_as](Pallet::sudo_as) call just took place."] 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { # [codec (index = 0)] # [doc = "Set the current time."] # [doc = ""] # [doc = "This call should be invoked exactly once per block. It will panic at the finalization"] # [doc = "phase, if this call hasn't been invoked by that time."] # [doc = ""] # [doc = "The timestamp should be greater than the previous one by the amount specified by"] # [doc = "[`Config::MinimumPeriod`]."] # [doc = ""] # [doc = "The dispatch origin for this call must be _None_."] # [doc = ""] # [doc = "This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware"] # [doc = "that changing the complexity of this call could result exhausting the resources in a"] # [doc = "block to execute any other calls."] # [doc = ""] # [doc = "## Complexity"] # [doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] # [doc = "- 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in"] # [doc = "  `on_finalize`)"] # [doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] set { # [codec (compact)] now : :: core :: primitive :: u64 , } , } } } pub mod pallet_transaction_payment { use super :: runtime_types ; pub mod pallet { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] # [doc = "The `Event` enum of this pallet"] pub enum Event { # [codec (index = 0)] # [doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] # [doc = "has been paid by `who`."] TransactionFeePaid { who : :: subxt :: ext :: subxt_core :: utils :: AccountId32 , actual_fee : :: core :: primitive :: u64 , tip : :: core :: primitive :: u64 , } , } } pub mod types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InclusionFee < _0 > { pub base_fee : _0 , pub len_fee : _0 , pub adjusted_weight_fee : _0 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ChargeTransactionPayment (# [codec (compact)] pub :: core :: primitive :: u64 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Releases { # [codec (index = 0)] V1Ancient , # [codec (index = 1)] V2 , } } pub mod primitive_types { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct U256 (pub [:: core :: primitive :: u64 ; 4usize] ,) ; } pub mod sp_arithmetic { use super :: runtime_types ; pub mod fixed_point { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FixedU128 (pub :: core :: primitive :: u128 ,) ; } pub mod per_things { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Perbill (pub :: core :: primitive :: u32 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Percent (pub :: core :: primitive :: u8 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Permill (pub :: core :: primitive :: u32 ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ArithmeticError { # [codec (index = 0)] Underflow , # [codec (index = 1)] Overflow , # [codec (index = 2)] DivisionByZero , } } pub mod sp_consensus_aura { use super :: runtime_types ; pub mod sr25519 { use super :: runtime_types ; pub mod app_sr25519 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 32usize] ,) ; } } } pub mod sp_consensus_babe { use super :: runtime_types ; pub mod app { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 32usize] ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum AllowedSlots { # [codec (index = 0)] PrimarySlots , # [codec (index = 1)] PrimaryAndSecondaryPlainSlots , # [codec (index = 2)] PrimaryAndSecondaryVRFSlots , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 : :: subxt :: ext :: subxt_core :: alloc :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 : :: subxt :: ext :: subxt_core :: alloc :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OpaqueKeyOwnershipProof (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; } pub mod sp_consensus_grandpa { use super :: runtime_types ; pub mod app { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Public (pub [:: core :: primitive :: u8 ; 32usize] ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Signature (pub [:: core :: primitive :: u8 ; 64usize] ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct EquivocationProof < _0 , _1 > { pub set_id : :: core :: primitive :: u64 , pub equivocation : runtime_types :: sp_consensus_grandpa :: Equivocation < _0 , _1 > , } } pub mod sp_consensus_slots { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Slot (pub :: core :: primitive :: u64 ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct SlotDuration (pub :: core :: primitive :: u64 ,) ; } pub mod sp_core { use super :: runtime_types ; pub mod crypto { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct KeyTypeId (pub [:: core :: primitive :: u8 ; 4usize] ,) ; } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OpaqueMetadata (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum Void { } } pub mod sp_inherents { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct InherentData { pub data : :: subxt :: ext :: subxt_core :: utils :: KeyedVec < [:: core :: primitive :: u8 ; 8usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , } } 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Block < _0 , _1 > { pub header : _0 , pub extrinsics : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < _1 > , } } pub mod digest { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Digest { pub logs : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < runtime_types :: sp_runtime :: generic :: digest :: DigestItem > , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum DigestItem { # [codec (index = 6)] PreRuntime ([:: core :: primitive :: u8 ; 4usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 4)] Consensus ([:: core :: primitive :: u8 ; 4usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 5)] Seal ([:: core :: primitive :: u8 ; 4usize] , :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 0)] Other (:: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) , # [codec (index = 8)] RuntimeEnvironmentUpdated , } } pub mod era { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct Header < _0 > { pub parent_hash : :: subxt :: ext :: subxt_core :: utils :: H256 , # [codec (compact)] pub number : _0 , pub state_root : :: subxt :: ext :: subxt_core :: utils :: H256 , pub extrinsics_root : :: subxt :: ext :: subxt_core :: utils :: H256 , pub digest : runtime_types :: sp_runtime :: generic :: digest :: Digest , } } } pub mod proving_trie { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TrieError { # [codec (index = 0)] InvalidStateRoot , # [codec (index = 1)] IncompleteDatabase , # [codec (index = 2)] ValueAtIncompleteKey , # [codec (index = 3)] DecoderError , # [codec (index = 4)] InvalidHash , # [codec (index = 5)] DuplicateKey , # [codec (index = 6)] ExtraneousNode , # [codec (index = 7)] ExtraneousValue , # [codec (index = 8)] ExtraneousHashReference , # [codec (index = 9)] InvalidChildReference , # [codec (index = 10)] ValueMismatch , # [codec (index = 11)] IncompleteProof , # [codec (index = 12)] RootMismatch , # [codec (index = 13)] DecodeError , } } pub mod traits { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct BlakeTwo256 ; } pub mod transaction_validity { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , # [codec (index = 11)] IndeterminateImplicit , # [codec (index = 12)] UnknownOrigin , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TransactionSource { # [codec (index = 0)] InBlock , # [codec (index = 1)] Local , # [codec (index = 2)] External , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum UnknownTransaction { # [codec (index = 0)] CannotLookup , # [codec (index = 1)] NoUnsignedValidator , # [codec (index = 2)] Custom (:: core :: primitive :: u8 ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ValidTransaction { pub priority : :: core :: primitive :: u64 , pub requires : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , pub provides : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > > , pub longevity : :: core :: primitive :: u64 , pub propagate : :: core :: primitive :: bool , } } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 , # [codec (index = 14)] Trie (runtime_types :: sp_runtime :: proving_trie :: TrieError ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct DispatchErrorWithPostInfo < _0 > { pub post_info : _0 , pub error : runtime_types :: sp_runtime :: DispatchError , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ExtrinsicInclusionMode { # [codec (index = 0)] AllExtrinsics , # [codec (index = 1)] OnlyInherents , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct ModuleError { pub index : :: core :: primitive :: u8 , pub error : [:: core :: primitive :: u8 ; 4usize] , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum MultiSignature { # [codec (index = 0)] Ed25519 ([:: core :: primitive :: u8 ; 64usize] ,) , # [codec (index = 1)] Sr25519 ([:: core :: primitive :: u8 ; 64usize] ,) , # [codec (index = 2)] Ecdsa ([:: core :: primitive :: u8 ; 65usize] ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum MultiSigner { # [codec (index = 0)] Ed25519 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 1)] Sr25519 ([:: core :: primitive :: u8 ; 32usize] ,) , # [codec (index = 2)] Ecdsa ([:: core :: primitive :: u8 ; 33usize] ,) , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct OpaqueValue (pub :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < :: core :: primitive :: u8 > ,) ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum TransactionalError { # [codec (index = 0)] LimitReached , # [codec (index = 1)] NoLayer , } } pub mod sp_version { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RuntimeVersion { pub spec_name : :: subxt :: ext :: subxt_core :: alloc :: string :: String , pub impl_name : :: subxt :: ext :: subxt_core :: alloc :: string :: String , pub authoring_version : :: core :: primitive :: u32 , pub spec_version : :: core :: primitive :: u32 , pub impl_version : :: core :: primitive :: u32 , pub apis : :: subxt :: ext :: subxt_core :: alloc :: vec :: Vec < ([:: core :: primitive :: u8 ; 8usize] , :: core :: primitive :: u32 ,) > , pub transaction_version : :: core :: primitive :: u32 , pub system_version : :: core :: primitive :: u8 , } } pub mod sp_weights { use super :: runtime_types ; pub mod weight_v2 { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: 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 :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct RuntimeDbWeight { pub read : :: core :: primitive :: u64 , pub write : :: core :: primitive :: u64 , } } pub mod substrate_fixed { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FixedI128 < _0 > { pub bits : :: core :: primitive :: i128 , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _0 > } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FixedI64 < _0 > { pub bits : :: core :: primitive :: i64 , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _0 > } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct FixedU128 < _0 > { pub bits : :: core :: primitive :: u128 , # [codec (skip)] pub __ignore : :: core :: marker :: PhantomData < _0 > } } pub mod substrate_typenum { use super :: runtime_types ; pub mod bit { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct B0 ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct B1 ; } pub mod uint { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UInt < _0 , _1 > { pub msb : _0 , pub lsb : _1 , } # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub struct UTerm ; } } pub mod subtensor_runtime_common { use super :: runtime_types ; # [derive (:: subxt :: ext :: subxt_core :: ext :: scale_decode :: DecodeAsType , :: subxt :: ext :: subxt_core :: ext :: scale_encode :: EncodeAsType , Debug)] # [decode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_decode")] # [encode_as_type (crate_path = ":: subxt :: ext :: subxt_core :: ext :: scale_encode")] pub enum ProxyType { # [codec (index = 0)] Any , # [codec (index = 1)] Owner , # [codec (index = 2)] NonCritical , # [codec (index = 3)] NonTransfer , # [codec (index = 4)] Senate , # [codec (index = 5)] NonFungible , # [codec (index = 6)] Triumvirate , # [codec (index = 7)] Governance , # [codec (index = 8)] Staking , # [codec (index = 9)] Registration , # [codec (index = 10)] Transfer , # [codec (index = 11)] SmallTransfer , # [codec (index = 12)] RootWeights , # [codec (index = 13)] ChildKeys , # [codec (index = 14)] SudoUncheckedSetCode , # [codec (index = 15)] SwapHotkey , # [codec (index = 16)] SubnetLeaseBeneficiary , # [codec (index = 17)] RootClaim , } } } }
[INFO] [stdout]   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               +                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `T`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/bittensor-rs-947ae3f8b8f52047/out/metadata.rs:3:332757
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a ...
[INFO] [stdout]   |                                                                      ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `u16`
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/bittensor-rs-947ae3f8b8f52047/out/metadata.rs:3:332630
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... = "--- Allows a hotkey to set weights for multiple netuids as a batch."] # [doc = ""] # [doc = "# Args:"] # [doc = "* `origin`: (<T as frame_system::Config>Origin):"] # [doc = "    - The caller, a hotkey who wishes to set their weights."] # [doc = ""] # [doc = "* `netuids` (Vec<Compact<u16>>):"] # [doc = "\t- The network uids we are setting these weights on."] # [doc = ""] # [doc = "* `weights` (Vec<Vec<(Compact<u16>, Compact<u16>)>):"] # [doc = "\t- The weights to set for each network. [(uid, weight), ...]"] # [doc = ""] # [doc = "* `version_keys` (Vec<Compact<u64>>):"] # [doc = "\t- The network version keys to check if the validator is up to date."] # [doc = ""] # [doc = "# Event:"] # [doc = "* WeightsSet;"] # [doc = "\t- On successfully setting the weights on chain."] # [doc = "* BatchWeightsCompleted;"] # [doc = "\t- On success of the batch."] # [doc = "* BatchCompletedWithErrors;"] # [doc = "\t- On failure of any of the weights in the batch."] # [doc = "* BatchWeightItemFailed;"] # [doc = "\t- On failure for each failed item in the batch."] # [doc = ""] p...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: try marking as source code
[INFO] [stdout]   |
[WARN] too much data in the log, truncating it
